@j3m-quantum/ui 0.9.0 → 1.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 +48 -11
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/styles/index.css +213 -379
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -114,14 +114,49 @@ Combine with dark mode:
|
|
|
114
114
|
|
|
115
115
|
## Design Tokens
|
|
116
116
|
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
117
|
+
### Color System: Radix 12-Step Scale
|
|
118
|
+
|
|
119
|
+
Colors use HSL format for easy theming and opacity manipulation:
|
|
120
|
+
|
|
121
|
+
```css
|
|
122
|
+
/* Change accent color once, updates everywhere */
|
|
123
|
+
:root {
|
|
124
|
+
--primary: 24 91% 62%; /* Your brand orange */
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/* Usage with opacity */
|
|
128
|
+
background: hsl(var(--primary)); /* Solid */
|
|
129
|
+
background: hsl(var(--primary) / 0.3); /* 30% opacity */
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
### Color Scales
|
|
133
|
+
|
|
134
|
+
| Scale | Steps | Purpose |
|
|
135
|
+
|-------|-------|---------|
|
|
136
|
+
| `--j3m-orange-1` to `--j3m-orange-12` | 12 | Primary/accent colors |
|
|
137
|
+
| `--j3m-gray-1` to `--j3m-gray-12` | 12 | Neutral colors |
|
|
138
|
+
|
|
139
|
+
### Scale Step Usage
|
|
140
|
+
|
|
141
|
+
| Step | Purpose | Example |
|
|
142
|
+
|------|---------|---------|
|
|
143
|
+
| 1-2 | Backgrounds | Page bg, subtle areas |
|
|
144
|
+
| 3-5 | Interactive | Button bg, hover states |
|
|
145
|
+
| 6-8 | Borders | Input borders, dividers |
|
|
146
|
+
| 9-10 | Solid colors | Primary buttons |
|
|
147
|
+
| 11-12 | Text | Body text, headings |
|
|
148
|
+
|
|
149
|
+
### Semantic Tokens
|
|
150
|
+
|
|
151
|
+
| Token | Description |
|
|
152
|
+
|-------|-------------|
|
|
153
|
+
| `--primary` | Brand accent (orange-9) |
|
|
154
|
+
| `--background` | Page background |
|
|
155
|
+
| `--foreground` | Main text |
|
|
156
|
+
| `--muted` | Subtle backgrounds |
|
|
157
|
+
| `--border` | Default borders |
|
|
158
|
+
| `--ring` | Focus rings |
|
|
159
|
+
| `--radius` | Global border radius (12px) |
|
|
125
160
|
|
|
126
161
|
## Included Dependencies
|
|
127
162
|
|
|
@@ -150,20 +185,22 @@ import '@j3m-quantum/ui/styles'
|
|
|
150
185
|
|
|
151
186
|
## Customization
|
|
152
187
|
|
|
153
|
-
Override CSS variables after the import:
|
|
188
|
+
Override CSS variables after the import using HSL format:
|
|
154
189
|
|
|
155
190
|
```css
|
|
156
191
|
@import "tailwindcss";
|
|
157
192
|
@import "tw-animate-css";
|
|
158
193
|
@import "@j3m-quantum/ui/styles";
|
|
159
194
|
|
|
160
|
-
/* Custom overrides */
|
|
195
|
+
/* Custom overrides - use HSL values */
|
|
161
196
|
:root {
|
|
162
|
-
--primary:
|
|
197
|
+
--primary: 210 100% 50%; /* Blue accent instead of orange */
|
|
163
198
|
--radius: 8px;
|
|
164
199
|
}
|
|
165
200
|
```
|
|
166
201
|
|
|
202
|
+
The HSL format allows automatic opacity variations throughout the UI.
|
|
203
|
+
|
|
167
204
|
## Troubleshooting
|
|
168
205
|
|
|
169
206
|
### Animations not working (Dialog, Sheet, Select, etc.)
|
package/dist/index.cjs
CHANGED
|
@@ -990,7 +990,7 @@ function PlayerCanvasPlayButton({
|
|
|
990
990
|
className
|
|
991
991
|
),
|
|
992
992
|
style: {
|
|
993
|
-
backgroundColor: "var(--
|
|
993
|
+
backgroundColor: "hsl(var(--primary))",
|
|
994
994
|
...style
|
|
995
995
|
},
|
|
996
996
|
...props,
|
|
@@ -1130,7 +1130,7 @@ function PlayerCanvasProgress({
|
|
|
1130
1130
|
className: "absolute inset-y-0 left-0 rounded-full transition-all duration-200",
|
|
1131
1131
|
style: {
|
|
1132
1132
|
width: `${percentage}%`,
|
|
1133
|
-
backgroundColor: "var(--
|
|
1133
|
+
backgroundColor: "hsl(var(--primary))"
|
|
1134
1134
|
}
|
|
1135
1135
|
}
|
|
1136
1136
|
)
|