@geckoui/geckoui 1.2.0-beta.2 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -33
- package/dist/index.css +3237 -12
- package/dist/index.d.mts +116 -157
- package/dist/index.d.ts +116 -157
- package/dist/index.js +514 -527
- package/dist/index.mjs +503 -524
- package/dist/styles.css +1513 -1653
- package/package.json +15 -22
package/README.md
CHANGED
|
@@ -74,64 +74,49 @@ function App() {
|
|
|
74
74
|
|
|
75
75
|
## Theming
|
|
76
76
|
|
|
77
|
-
GeckoUI uses
|
|
77
|
+
GeckoUI uses [OKLCH](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/oklch) color values with CSS custom properties (`--color-*`) powered by Tailwind CSS v4. You can override colors using **any CSS color format** — oklch, hex, rgb, hsl, etc.
|
|
78
78
|
|
|
79
|
-
###
|
|
79
|
+
### Dark Mode
|
|
80
80
|
|
|
81
|
-
|
|
81
|
+
Add the `.dark` class to your root element:
|
|
82
82
|
|
|
83
83
|
```tsx
|
|
84
|
-
// Light theme (default)
|
|
85
|
-
<div className="light">
|
|
86
|
-
<App />
|
|
87
|
-
</div>
|
|
88
|
-
|
|
89
|
-
// Dark theme
|
|
90
84
|
<div className="dark">
|
|
91
85
|
<App />
|
|
92
86
|
</div>
|
|
93
|
-
|
|
94
|
-
// Custom theme
|
|
95
|
-
<div className="neon">
|
|
96
|
-
<App />
|
|
97
|
-
</div>
|
|
98
87
|
```
|
|
99
88
|
|
|
100
|
-
###
|
|
101
|
-
|
|
102
|
-
- **Light** (default) - Clean, bright interface
|
|
103
|
-
- **Dark** - Easy on the eyes
|
|
89
|
+
### Customizing Colors
|
|
104
90
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
Create a CSS file with your theme:
|
|
91
|
+
Override CSS variables to match your brand:
|
|
108
92
|
|
|
109
93
|
```css
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
94
|
+
:root {
|
|
95
|
+
--color-primary-500: oklch(0.65 0.24 330);
|
|
96
|
+
--color-primary-600: oklch(0.55 0.22 330);
|
|
97
|
+
|
|
98
|
+
/* hex works too */
|
|
99
|
+
--color-primary-700: #6d28d9;
|
|
113
100
|
}
|
|
114
101
|
```
|
|
115
102
|
|
|
116
|
-
Import
|
|
103
|
+
Import after the base styles:
|
|
117
104
|
|
|
118
105
|
```tsx
|
|
119
|
-
import "
|
|
106
|
+
import "@geckoui/geckoui/styles.css";
|
|
120
107
|
|
|
121
|
-
|
|
122
|
-
<App />
|
|
123
|
-
</div>;
|
|
108
|
+
import "./my-theme.css";
|
|
124
109
|
```
|
|
125
110
|
|
|
126
111
|
## Advanced Usage
|
|
127
112
|
|
|
128
|
-
### Custom Styling with
|
|
113
|
+
### Custom Styling with Data Attributes
|
|
129
114
|
|
|
130
|
-
|
|
115
|
+
Components use `data-*` attributes for variant/state styling:
|
|
131
116
|
|
|
132
117
|
```css
|
|
133
|
-
/* Target specific
|
|
134
|
-
.GeckoUIButton
|
|
118
|
+
/* Target specific variants */
|
|
119
|
+
.GeckoUIButton[data-variant="filled"][data-color="primary"] {
|
|
135
120
|
/* Your custom styles */
|
|
136
121
|
}
|
|
137
122
|
|