@geckoui/geckoui 2.0.0-beta-0 → 2.0.0
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 +29 -34
- package/dist/index.d.mts +3254 -1218
- package/dist/index.d.ts +3254 -1218
- package/dist/index.js +6615 -2096
- package/dist/index.mjs +6626 -2106
- package/dist/styles.css +4504 -1940
- package/package.json +31 -25
- package/dist/index.css +0 -16
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
The only thing our Gecko 🦎 eats is bugs! 🐛<br />
|
|
9
9
|
</p>
|
|
10
10
|
|
|
11
|
-
📚 **Documentation**: [Gecko](https://
|
|
11
|
+
📚 **Documentation**: [Gecko](https://geckoui.dev)
|
|
12
12
|
|
|
13
13
|
## Installation
|
|
14
14
|
|
|
@@ -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
|
|
104
|
-
|
|
105
|
-
### Creating Custom Themes
|
|
89
|
+
### Customizing Colors
|
|
106
90
|
|
|
107
|
-
|
|
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
|
|
|
@@ -148,6 +133,16 @@ All components are fully typed. Import types as needed:
|
|
|
148
133
|
import type { ButtonProps, InputProps } from "@geckoui/geckoui";
|
|
149
134
|
```
|
|
150
135
|
|
|
136
|
+
## AI Skills
|
|
137
|
+
|
|
138
|
+
Install the GeckoUI skill to help AI assistants (Claude Code, etc.) generate accurate component code and themes:
|
|
139
|
+
|
|
140
|
+
```
|
|
141
|
+
npx skills add GeckoUI/skills
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
The skill provides component API references, theming variables, and class name mappings so AI agents can generate correct GeckoUI code without hallucination.
|
|
145
|
+
|
|
151
146
|
## License
|
|
152
147
|
|
|
153
148
|
This project is licensed under the MIT License.
|