@lumaui/tokens 0.1.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 +284 -0
- package/build/luma-dark.css +59 -0
- package/build/luma.css +623 -0
- package/package.json +52 -0
- package/src/components/badge/badge.dark.json +11 -0
- package/src/components/badge/badge.json +36 -0
- package/src/components/button/button.dark.json +96 -0
- package/src/components/button/button.json +154 -0
- package/src/components/card/card.dark.json +81 -0
- package/src/components/card/card.json +111 -0
- package/src/core/colors.dark.json +154 -0
- package/src/core/colors.json +164 -0
- package/src/core/spacing.json +53 -0
- package/src/core/transitions.json +23 -0
- package/src/core/typography.json +64 -0
- package/src/index.ts +8 -0
- package/src/luma-dark.css +34 -0
- package/src/luma.css +273 -0
- package/src/themes/dark.tokens.css +55 -0
- package/src/themes/light.tokens.css +55 -0
package/build/luma.css
ADDED
|
@@ -0,0 +1,623 @@
|
|
|
1
|
+
@import "tailwindcss";
|
|
2
|
+
|
|
3
|
+
@theme {
|
|
4
|
+
/* Luma Design System Tokens */
|
|
5
|
+
|
|
6
|
+
/* Color */
|
|
7
|
+
--luma-color-primary-50: oklch(0.63 0.14 232.13);
|
|
8
|
+
--luma-color-primary-60: oklch(0.56 0.13 232.13);
|
|
9
|
+
--luma-color-primary-70: oklch(0.49 0.12 232.13);
|
|
10
|
+
--luma-color-primary-80: oklch(0.43 0.11 232.13);
|
|
11
|
+
--luma-color-neutral-50: oklch(0.99 0 0);
|
|
12
|
+
--luma-color-neutral-60: oklch(0.92 0.008 265);
|
|
13
|
+
--luma-color-neutral-70: oklch(0.85 0.01 265);
|
|
14
|
+
--luma-color-neutral-80: oklch(0.45 0.01 265);
|
|
15
|
+
--luma-color-neutral-90: oklch(0.45 0.01 265);
|
|
16
|
+
--luma-color-neutral-100: oklch(0.22 0.01 265);
|
|
17
|
+
--luma-color-success-50: oklch(0.72 0.08 150);
|
|
18
|
+
--luma-color-success-60: oklch(0.65 0.07 150);
|
|
19
|
+
--luma-color-success-70: oklch(0.58 0.06 150);
|
|
20
|
+
--luma-color-success-80: oklch(0.52 0.05 150);
|
|
21
|
+
--luma-color-warning-50: oklch(0.78 0.10 85);
|
|
22
|
+
--luma-color-warning-60: oklch(0.72 0.09 85);
|
|
23
|
+
--luma-color-warning-70: oklch(0.65 0.08 85);
|
|
24
|
+
--luma-color-warning-80: oklch(0.58 0.07 85);
|
|
25
|
+
--luma-color-error-50: oklch(0.62 0.11 25);
|
|
26
|
+
--luma-color-error-60: oklch(0.56 0.10 25);
|
|
27
|
+
--luma-color-error-70: oklch(0.50 0.09 25);
|
|
28
|
+
--luma-color-error-80: oklch(0.44 0.08 25);
|
|
29
|
+
--luma-color-surface-base: oklch(1 0 0);
|
|
30
|
+
--luma-color-text-primary: oklch(0.22 0.01 265);
|
|
31
|
+
--luma-color-text-secondary: oklch(0.45 0.01 265);
|
|
32
|
+
|
|
33
|
+
/* Focus */
|
|
34
|
+
--luma-focus-ring-color: oklch(0.63 0.14 232.13 / 0.45);
|
|
35
|
+
--luma-focus-ring-width: 2px;
|
|
36
|
+
--luma-focus-ring-offset: 2px;
|
|
37
|
+
|
|
38
|
+
/* Spacing */
|
|
39
|
+
--luma-spacing-xs: 0.25rem;
|
|
40
|
+
--luma-spacing-sm: 0.5rem;
|
|
41
|
+
--luma-spacing-md: 1rem;
|
|
42
|
+
--luma-spacing-lg: 1.5rem;
|
|
43
|
+
--luma-spacing-xl: 2.5rem;
|
|
44
|
+
|
|
45
|
+
/* Radius */
|
|
46
|
+
--luma-radius-sm: 6px;
|
|
47
|
+
--luma-radius-md: 10px;
|
|
48
|
+
--luma-radius-lg: 18px;
|
|
49
|
+
--luma-radius-full: 9999px;
|
|
50
|
+
|
|
51
|
+
/* Font */
|
|
52
|
+
--luma-font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
|
53
|
+
--luma-font-weight-regular: 400;
|
|
54
|
+
--luma-font-weight-medium: 500;
|
|
55
|
+
--luma-font-weight-semibold: 600;
|
|
56
|
+
|
|
57
|
+
/* Text */
|
|
58
|
+
--luma-text-sm: 0.75rem;
|
|
59
|
+
--luma-text-base: 1rem;
|
|
60
|
+
--luma-text-lg: 1.875rem;
|
|
61
|
+
|
|
62
|
+
/* Line-height */
|
|
63
|
+
--luma-line-height-none: 1;
|
|
64
|
+
--luma-line-height-snug: 1.375;
|
|
65
|
+
--luma-line-height-relaxed: 1.625;
|
|
66
|
+
|
|
67
|
+
/* Duration */
|
|
68
|
+
--luma-duration-fast: 150ms;
|
|
69
|
+
--luma-duration-base: 200ms;
|
|
70
|
+
|
|
71
|
+
/* Transition */
|
|
72
|
+
--luma-transition-ease: ease-out;
|
|
73
|
+
|
|
74
|
+
/* Button */
|
|
75
|
+
--luma-button-primary-bg: oklch(0.63 0.14 232.13);
|
|
76
|
+
--luma-button-primary-bg-hover: oklch(0.49 0.12 232.13);
|
|
77
|
+
--luma-button-primary-bg-active: oklch(0.43 0.11 232.13);
|
|
78
|
+
--luma-button-primary-text: oklch(1 0 0);
|
|
79
|
+
--luma-button-outline-border: oklch(0.92 0.008 265);
|
|
80
|
+
--luma-button-outline-border-hover: oklch(0.45 0.01 265);
|
|
81
|
+
--luma-button-outline-bg-hover: oklch(0.99 0 0);
|
|
82
|
+
--luma-button-outline-text: oklch(0.22 0.01 265);
|
|
83
|
+
--luma-button-ghost-bg: rgba(0, 0, 0, 0);
|
|
84
|
+
--luma-button-ghost-bg-hover: oklch(0.99 0 0);
|
|
85
|
+
--luma-button-ghost-text: oklch(0.22 0.01 265);
|
|
86
|
+
--luma-button-danger-bg: oklch(0.62 0.11 25);
|
|
87
|
+
--luma-button-danger-bg-hover: oklch(0.50 0.09 25);
|
|
88
|
+
--luma-button-danger-bg-active: oklch(0.44 0.08 25);
|
|
89
|
+
--luma-button-danger-text: oklch(1 0 0);
|
|
90
|
+
--luma-button-padding-x-sm: 1rem;
|
|
91
|
+
--luma-button-padding-x-md: 1.5rem;
|
|
92
|
+
--luma-button-padding-x-lg: 2rem;
|
|
93
|
+
--luma-button-padding-y-sm: 0.5rem;
|
|
94
|
+
--luma-button-padding-y-md: 0.75rem;
|
|
95
|
+
--luma-button-padding-y-lg: 1rem;
|
|
96
|
+
--luma-button-radius: 10px;
|
|
97
|
+
--luma-button-transition-duration: 200ms;
|
|
98
|
+
--luma-button-transition-timing: ease-out;
|
|
99
|
+
--luma-button-focus-ring-width: 2px;
|
|
100
|
+
--luma-button-focus-ring-color: oklch(0.63 0.14 232.13 / 0.45);
|
|
101
|
+
|
|
102
|
+
/* Card */
|
|
103
|
+
--luma-card-shadow-background: oklch(1 0 0);
|
|
104
|
+
--luma-card-shadow-border: oklch(0.92 0.008 265);
|
|
105
|
+
--luma-card-shadow-shadow: 0 8px 24px oklch(0.22 0.01 265 / 0.06);
|
|
106
|
+
--luma-card-shadow-radius: 16px;
|
|
107
|
+
--luma-card-nested-background: oklch(0.99 0 0);
|
|
108
|
+
--luma-card-nested-border: oklch(0.99 0 0);
|
|
109
|
+
--luma-card-nested-radius: 12px;
|
|
110
|
+
--luma-card-preview-background: oklch(0.99 0 0);
|
|
111
|
+
--luma-card-preview-border: oklch(0.92 0.008 265);
|
|
112
|
+
--luma-card-preview-radius: 12px;
|
|
113
|
+
--luma-card-gradient-from: oklch(0.92 0.005 0 / 0.6);
|
|
114
|
+
--luma-card-gradient-to: oklch(0.96 0.003 0 / 0.6);
|
|
115
|
+
--luma-card-background: oklch(1 0 0);
|
|
116
|
+
--luma-card-padding: 1.5rem;
|
|
117
|
+
--luma-card-box-shadow: 0px 2px 0 0px #e4e4e4;
|
|
118
|
+
|
|
119
|
+
/* Code */
|
|
120
|
+
--luma-code-background: oklch(0.12 0.005 265);
|
|
121
|
+
--luma-code-text: oklch(0.9 0 0);
|
|
122
|
+
--luma-code-border: oklch(0.25 0.008 265);
|
|
123
|
+
--luma-code-radius: 8px;
|
|
124
|
+
|
|
125
|
+
/* Badge */
|
|
126
|
+
--luma-badge-color: oklch(0.63 0.14 232.13);
|
|
127
|
+
--luma-badge-bg: oklch(0.54 0.1 230 / 0.1);
|
|
128
|
+
--luma-badge-padding-x: 0.625rem;
|
|
129
|
+
--luma-badge-padding-y: 0.25rem;
|
|
130
|
+
--luma-badge-font-size: 0.75rem;
|
|
131
|
+
--luma-badge-font-weight: 500;
|
|
132
|
+
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/* Tailwind Utilities - All prefixed with lm- */
|
|
136
|
+
|
|
137
|
+
/* Scale-Based Color Utilities */
|
|
138
|
+
@utility lm-bg-primary-50 {
|
|
139
|
+
background-color: var(--luma-color-primary-50);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
@utility lm-text-primary-50 {
|
|
143
|
+
color: var(--luma-color-primary-50);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
@utility lm-border-primary-50 {
|
|
147
|
+
border-color: var(--luma-color-primary-50);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
@utility lm-bg-primary-60 {
|
|
151
|
+
background-color: var(--luma-color-primary-60);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
@utility lm-text-primary-60 {
|
|
155
|
+
color: var(--luma-color-primary-60);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
@utility lm-border-primary-60 {
|
|
159
|
+
border-color: var(--luma-color-primary-60);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
@utility lm-bg-primary-70 {
|
|
163
|
+
background-color: var(--luma-color-primary-70);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
@utility lm-text-primary-70 {
|
|
167
|
+
color: var(--luma-color-primary-70);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
@utility lm-border-primary-70 {
|
|
171
|
+
border-color: var(--luma-color-primary-70);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
@utility lm-bg-primary-80 {
|
|
175
|
+
background-color: var(--luma-color-primary-80);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
@utility lm-text-primary-80 {
|
|
179
|
+
color: var(--luma-color-primary-80);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
@utility lm-border-primary-80 {
|
|
183
|
+
border-color: var(--luma-color-primary-80);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
@utility lm-bg-neutral-50 {
|
|
187
|
+
background-color: var(--luma-color-neutral-50);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
@utility lm-text-neutral-50 {
|
|
191
|
+
color: var(--luma-color-neutral-50);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
@utility lm-border-neutral-50 {
|
|
195
|
+
border-color: var(--luma-color-neutral-50);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
@utility lm-bg-neutral-60 {
|
|
199
|
+
background-color: var(--luma-color-neutral-60);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
@utility lm-text-neutral-60 {
|
|
203
|
+
color: var(--luma-color-neutral-60);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
@utility lm-border-neutral-60 {
|
|
207
|
+
border-color: var(--luma-color-neutral-60);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
@utility lm-bg-neutral-70 {
|
|
211
|
+
background-color: var(--luma-color-neutral-70);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
@utility lm-text-neutral-70 {
|
|
215
|
+
color: var(--luma-color-neutral-70);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
@utility lm-border-neutral-70 {
|
|
219
|
+
border-color: var(--luma-color-neutral-70);
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
@utility lm-bg-neutral-80 {
|
|
223
|
+
background-color: var(--luma-color-neutral-80);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
@utility lm-text-neutral-80 {
|
|
227
|
+
color: var(--luma-color-neutral-80);
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
@utility lm-border-neutral-80 {
|
|
231
|
+
border-color: var(--luma-color-neutral-80);
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
@utility lm-bg-neutral-90 {
|
|
235
|
+
background-color: var(--luma-color-neutral-90);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
@utility lm-text-neutral-90 {
|
|
239
|
+
color: var(--luma-color-neutral-90);
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
@utility lm-border-neutral-90 {
|
|
243
|
+
border-color: var(--luma-color-neutral-90);
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
@utility lm-bg-neutral-100 {
|
|
247
|
+
background-color: var(--luma-color-neutral-100);
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
@utility lm-text-neutral-100 {
|
|
251
|
+
color: var(--luma-color-neutral-100);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
@utility lm-border-neutral-100 {
|
|
255
|
+
border-color: var(--luma-color-neutral-100);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
@utility lm-bg-success-50 {
|
|
259
|
+
background-color: var(--luma-color-success-50);
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
@utility lm-text-success-50 {
|
|
263
|
+
color: var(--luma-color-success-50);
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
@utility lm-border-success-50 {
|
|
267
|
+
border-color: var(--luma-color-success-50);
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
@utility lm-bg-success-60 {
|
|
271
|
+
background-color: var(--luma-color-success-60);
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
@utility lm-text-success-60 {
|
|
275
|
+
color: var(--luma-color-success-60);
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
@utility lm-border-success-60 {
|
|
279
|
+
border-color: var(--luma-color-success-60);
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
@utility lm-bg-success-70 {
|
|
283
|
+
background-color: var(--luma-color-success-70);
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
@utility lm-text-success-70 {
|
|
287
|
+
color: var(--luma-color-success-70);
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
@utility lm-border-success-70 {
|
|
291
|
+
border-color: var(--luma-color-success-70);
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
@utility lm-bg-success-80 {
|
|
295
|
+
background-color: var(--luma-color-success-80);
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
@utility lm-text-success-80 {
|
|
299
|
+
color: var(--luma-color-success-80);
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
@utility lm-border-success-80 {
|
|
303
|
+
border-color: var(--luma-color-success-80);
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
@utility lm-bg-warning-50 {
|
|
307
|
+
background-color: var(--luma-color-warning-50);
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
@utility lm-text-warning-50 {
|
|
311
|
+
color: var(--luma-color-warning-50);
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
@utility lm-border-warning-50 {
|
|
315
|
+
border-color: var(--luma-color-warning-50);
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
@utility lm-bg-warning-60 {
|
|
319
|
+
background-color: var(--luma-color-warning-60);
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
@utility lm-text-warning-60 {
|
|
323
|
+
color: var(--luma-color-warning-60);
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
@utility lm-border-warning-60 {
|
|
327
|
+
border-color: var(--luma-color-warning-60);
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
@utility lm-bg-warning-70 {
|
|
331
|
+
background-color: var(--luma-color-warning-70);
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
@utility lm-text-warning-70 {
|
|
335
|
+
color: var(--luma-color-warning-70);
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
@utility lm-border-warning-70 {
|
|
339
|
+
border-color: var(--luma-color-warning-70);
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
@utility lm-bg-warning-80 {
|
|
343
|
+
background-color: var(--luma-color-warning-80);
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
@utility lm-text-warning-80 {
|
|
347
|
+
color: var(--luma-color-warning-80);
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
@utility lm-border-warning-80 {
|
|
351
|
+
border-color: var(--luma-color-warning-80);
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
@utility lm-bg-error-50 {
|
|
355
|
+
background-color: var(--luma-color-error-50);
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
@utility lm-text-error-50 {
|
|
359
|
+
color: var(--luma-color-error-50);
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
@utility lm-border-error-50 {
|
|
363
|
+
border-color: var(--luma-color-error-50);
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
@utility lm-bg-error-60 {
|
|
367
|
+
background-color: var(--luma-color-error-60);
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
@utility lm-text-error-60 {
|
|
371
|
+
color: var(--luma-color-error-60);
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
@utility lm-border-error-60 {
|
|
375
|
+
border-color: var(--luma-color-error-60);
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
@utility lm-bg-error-70 {
|
|
379
|
+
background-color: var(--luma-color-error-70);
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
@utility lm-text-error-70 {
|
|
383
|
+
color: var(--luma-color-error-70);
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
@utility lm-border-error-70 {
|
|
387
|
+
border-color: var(--luma-color-error-70);
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
@utility lm-bg-error-80 {
|
|
391
|
+
background-color: var(--luma-color-error-80);
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
@utility lm-text-error-80 {
|
|
395
|
+
color: var(--luma-color-error-80);
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
@utility lm-border-error-80 {
|
|
399
|
+
border-color: var(--luma-color-error-80);
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
/* Semantic Text Utilities */
|
|
403
|
+
@utility lm-text-primary {
|
|
404
|
+
color: var(--luma-color-text-primary);
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
@utility lm-text-secondary {
|
|
408
|
+
color: var(--luma-color-text-secondary);
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
@utility lm-bg-surface-base {
|
|
412
|
+
background-color: var(--luma-color-surface-base);
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
/* Global Focus Ring */
|
|
416
|
+
@utility lm-ring-focus {
|
|
417
|
+
outline: var(--luma-focus-ring-width) solid var(--luma-focus-ring-color);
|
|
418
|
+
outline-offset: var(--luma-focus-ring-offset);
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
/* Button Background Colors */
|
|
422
|
+
@utility lm-bg-button-primary-bg {
|
|
423
|
+
background-color: var(--luma-button-primary-bg);
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
@utility lm-bg-button-primary-bg-hover {
|
|
427
|
+
background-color: var(--luma-button-primary-bg-hover);
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
@utility lm-bg-button-primary-bg-active {
|
|
431
|
+
background-color: var(--luma-button-primary-bg-active);
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
@utility lm-bg-button-outline-bg-hover {
|
|
435
|
+
background-color: var(--luma-button-outline-bg-hover);
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
@utility lm-bg-button-ghost-bg {
|
|
439
|
+
background-color: var(--luma-button-ghost-bg);
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
@utility lm-bg-button-ghost-bg-hover {
|
|
443
|
+
background-color: var(--luma-button-ghost-bg-hover);
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
@utility lm-bg-button-danger-bg {
|
|
447
|
+
background-color: var(--luma-button-danger-bg);
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
@utility lm-bg-button-danger-bg-hover {
|
|
451
|
+
background-color: var(--luma-button-danger-bg-hover);
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
@utility lm-bg-button-danger-bg-active {
|
|
455
|
+
background-color: var(--luma-button-danger-bg-active);
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
/* Button Text Colors */
|
|
459
|
+
@utility lm-text-button-primary-text {
|
|
460
|
+
color: var(--luma-button-primary-text);
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
@utility lm-text-button-outline-text {
|
|
464
|
+
color: var(--luma-button-outline-text);
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
@utility lm-text-button-ghost-text {
|
|
468
|
+
color: var(--luma-button-ghost-text);
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
@utility lm-text-button-danger-text {
|
|
472
|
+
color: var(--luma-button-danger-text);
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
/* Button Border Colors */
|
|
476
|
+
@utility lm-border-button-outline-border {
|
|
477
|
+
border-color: var(--luma-button-outline-border);
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
@utility lm-border-button-outline-border-hover {
|
|
481
|
+
border-color: var(--luma-button-outline-border-hover);
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
/* Button Focus Ring */
|
|
485
|
+
@utility lm-ring-button-focus {
|
|
486
|
+
outline: var(--luma-button-focus-ring-width) solid var(--luma-button-focus-ring-color);
|
|
487
|
+
outline-offset: 2px;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
/* Button Radius */
|
|
491
|
+
@utility lm-rounded-button {
|
|
492
|
+
border-radius: var(--luma-button-radius);
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
/* Card Variant Utilities */
|
|
496
|
+
@utility lm-bg-card-shadow {
|
|
497
|
+
background-color: var(--luma-card-shadow-background);
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
@utility lm-border-card-shadow {
|
|
501
|
+
border-color: var(--luma-card-shadow-border);
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
@utility lm-shadow-card-shadow {
|
|
505
|
+
box-shadow: var(--luma-card-shadow-shadow);
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
@utility lm-rounded-card-shadow {
|
|
509
|
+
border-radius: var(--luma-card-shadow-radius);
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
@utility lm-bg-card-nested {
|
|
513
|
+
background-color: var(--luma-card-nested-background);
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
@utility lm-border-card-nested {
|
|
517
|
+
border-color: var(--luma-card-nested-border);
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
@utility lm-rounded-card-nested {
|
|
521
|
+
border-radius: var(--luma-card-nested-radius);
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
@utility lm-bg-card-preview {
|
|
525
|
+
background-color: var(--luma-card-preview-background);
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
@utility lm-border-card-preview {
|
|
529
|
+
border-color: var(--luma-card-preview-border);
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
@utility lm-rounded-card-preview {
|
|
533
|
+
border-radius: var(--luma-card-preview-radius);
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
/* Card Legacy Utilities (gradient wrapper) */
|
|
537
|
+
@utility lm-from-card-gradient-from {
|
|
538
|
+
--tw-gradient-from: var(--luma-card-gradient-from);
|
|
539
|
+
--tw-gradient-to: rgb(255 255 255 / 0);
|
|
540
|
+
--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
@utility lm-to-card-gradient-to {
|
|
544
|
+
--tw-gradient-to: var(--luma-card-gradient-to);
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
@utility lm-bg-card-background {
|
|
548
|
+
background-color: var(--luma-card-background);
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
@utility lm-p-card {
|
|
552
|
+
padding: var(--luma-card-padding);
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
@utility lm-shadow-card {
|
|
556
|
+
box-shadow: var(--luma-card-box-shadow);
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
/* Code Block Utilities */
|
|
560
|
+
@utility lm-bg-code {
|
|
561
|
+
background-color: var(--luma-code-background);
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
@utility lm-text-code {
|
|
565
|
+
color: var(--luma-code-text);
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
@utility lm-border-code {
|
|
569
|
+
border-color: var(--luma-code-border);
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
@utility lm-rounded-code {
|
|
573
|
+
border-radius: var(--luma-code-radius);
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
/* Border Radius */
|
|
577
|
+
@utility lm-rounded-sm {
|
|
578
|
+
border-radius: var(--luma-radius-sm);
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
@utility lm-rounded-md {
|
|
582
|
+
border-radius: var(--luma-radius-md);
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
@utility lm-rounded-lg {
|
|
586
|
+
border-radius: var(--luma-radius-lg);
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
@utility lm-rounded-full {
|
|
590
|
+
border-radius: var(--luma-radius-full);
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
/* Font Sizes */
|
|
594
|
+
@utility lm-text-size-sm {
|
|
595
|
+
font-size: var(--luma-text-sm);
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
@utility lm-text-size-base {
|
|
599
|
+
font-size: var(--luma-text-base);
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
@utility lm-text-size-lg {
|
|
603
|
+
font-size: var(--luma-text-lg);
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
/* Transitions */
|
|
607
|
+
@utility lm-duration-fast {
|
|
608
|
+
transition-duration: var(--luma-duration-fast);
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
@utility lm-duration-base {
|
|
612
|
+
transition-duration: var(--luma-duration-base);
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
/* Badge */
|
|
616
|
+
@utility lm-bg-badge {
|
|
617
|
+
background-color: var(--luma-badge-bg);
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
@utility lm-text-badge {
|
|
621
|
+
color: var(--luma-badge-color);
|
|
622
|
+
}
|
|
623
|
+
|
package/package.json
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@lumaui/tokens",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Design tokens for Luma UI - Neo-Minimal design system",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "src/index.ts",
|
|
7
|
+
"types": "src/index.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": "./src/index.ts",
|
|
10
|
+
"./styles.css": "./build/luma.css",
|
|
11
|
+
"./styles/dark.css": "./build/luma-dark.css"
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"build/",
|
|
15
|
+
"src/",
|
|
16
|
+
"README.md"
|
|
17
|
+
],
|
|
18
|
+
"scripts": {
|
|
19
|
+
"build": "npm run build:light && npm run build:dark",
|
|
20
|
+
"build:light": "style-dictionary build --config config.js",
|
|
21
|
+
"build:dark": "style-dictionary build --config config.dark.js",
|
|
22
|
+
"watch": "npm run build && npm run watch:light & npm run watch:dark",
|
|
23
|
+
"watch:light": "style-dictionary build --config config.js --watch",
|
|
24
|
+
"watch:dark": "style-dictionary build --config config.dark.js --watch"
|
|
25
|
+
},
|
|
26
|
+
"keywords": [
|
|
27
|
+
"design-tokens",
|
|
28
|
+
"design-system",
|
|
29
|
+
"neo-minimal",
|
|
30
|
+
"luma",
|
|
31
|
+
"lumaui",
|
|
32
|
+
"css-variables",
|
|
33
|
+
"tailwind"
|
|
34
|
+
],
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"style-dictionary": "^5.1.4"
|
|
37
|
+
},
|
|
38
|
+
"publishConfig": {
|
|
39
|
+
"access": "public"
|
|
40
|
+
},
|
|
41
|
+
"license": "MIT",
|
|
42
|
+
"author": "Luma UI Team",
|
|
43
|
+
"repository": {
|
|
44
|
+
"type": "git",
|
|
45
|
+
"url": "https://github.com/pureartisan/lumo.git",
|
|
46
|
+
"directory": "packages/tokens"
|
|
47
|
+
},
|
|
48
|
+
"homepage": "https://github.com/pureartisan/lumo#readme",
|
|
49
|
+
"bugs": {
|
|
50
|
+
"url": "https://github.com/pureartisan/lumo/issues"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"luma": {
|
|
3
|
+
"badge": {
|
|
4
|
+
"color": {
|
|
5
|
+
"value": "{luma.color.primary.50}",
|
|
6
|
+
"type": "color",
|
|
7
|
+
"description": "Badge text color"
|
|
8
|
+
},
|
|
9
|
+
"bg": {
|
|
10
|
+
"value": "oklch(0.54 0.1 230 / 0.1)",
|
|
11
|
+
"type": "color",
|
|
12
|
+
"description": "Badge background color"
|
|
13
|
+
},
|
|
14
|
+
"padding-x": {
|
|
15
|
+
"value": "0.625rem",
|
|
16
|
+
"type": "dimension",
|
|
17
|
+
"description": "Badge horizontal padding"
|
|
18
|
+
},
|
|
19
|
+
"padding-y": {
|
|
20
|
+
"value": "0.25rem",
|
|
21
|
+
"type": "dimension",
|
|
22
|
+
"description": "Badge vertical padding"
|
|
23
|
+
},
|
|
24
|
+
"font-size": {
|
|
25
|
+
"value": "{luma.text.sm}",
|
|
26
|
+
"type": "dimension",
|
|
27
|
+
"description": "Badge font size"
|
|
28
|
+
},
|
|
29
|
+
"font-weight": {
|
|
30
|
+
"value": "{luma.font.weight.medium}",
|
|
31
|
+
"type": "fontWeight",
|
|
32
|
+
"description": "Badge font weight"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|