@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 CHANGED
@@ -114,14 +114,49 @@ Combine with dark mode:
114
114
 
115
115
  ## Design Tokens
116
116
 
117
- | Token | Light | Dark |
118
- |-------|-------|------|
119
- | `--primary` | #F58446 | #F58446 |
120
- | `--background` | #FFFFFF | #333333 |
121
- | `--foreground` | #333333 | #FFFFFF |
122
- | `--muted` | #E8E8E8 | #4A4A4A |
123
- | `--destructive` | #FB3748 | #D00416 |
124
- | `--radius` | 12px | 12px |
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: #your-color;
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(--j3m-primary-250)",
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(--j3m-primary-250)"
1133
+ backgroundColor: "hsl(var(--primary))"
1134
1134
  }
1135
1135
  }
1136
1136
  )