@lumaui/tokens 0.1.0 → 0.1.2
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/build/luma-classes.js +75 -0
- package/build/luma-complete.css +21 -0
- package/package.json +8 -7
- package/src/components/badge/badge.dark.json +0 -11
- package/src/components/badge/badge.json +0 -36
- package/src/components/button/button.dark.json +0 -96
- package/src/components/button/button.json +0 -154
- package/src/components/card/card.dark.json +0 -81
- package/src/components/card/card.json +0 -111
- package/src/core/colors.dark.json +0 -154
- package/src/core/colors.json +0 -164
- package/src/core/spacing.json +0 -53
- package/src/core/transitions.json +0 -23
- package/src/core/typography.json +0 -64
- package/src/index.ts +0 -8
- package/src/luma-dark.css +0 -34
- package/src/luma.css +0 -273
- package/src/themes/dark.tokens.css +0 -55
- package/src/themes/light.tokens.css +0 -55
package/src/luma.css
DELETED
|
@@ -1,273 +0,0 @@
|
|
|
1
|
-
@import 'tailwindcss';
|
|
2
|
-
|
|
3
|
-
@theme {
|
|
4
|
-
/* Luma UI Design Tokens */
|
|
5
|
-
|
|
6
|
-
/* Colors - Primary */
|
|
7
|
-
--luma-color-primary: oklch(0.54 0.1 230);
|
|
8
|
-
--luma-color-primary-hover: oklch(0.49 0.09 230);
|
|
9
|
-
--luma-color-primary-active: oklch(0.44 0.08 230);
|
|
10
|
-
|
|
11
|
-
/* Colors - Surface */
|
|
12
|
-
--luma-color-surface-base: oklch(1 0 0);
|
|
13
|
-
|
|
14
|
-
/* Colors - Text */
|
|
15
|
-
--luma-color-text-primary: oklch(0.2 0.005 0);
|
|
16
|
-
--luma-color-text-secondary: oklch(0.5 0.01 0);
|
|
17
|
-
|
|
18
|
-
/* Colors - Card */
|
|
19
|
-
--luma-card-background: oklch(0.99 0 0);
|
|
20
|
-
--luma-card-gradient-from: oklch(0.92 0.005 0 / 0.6);
|
|
21
|
-
--luma-card-gradient-to: oklch(0.96 0.003 0 / 0.6);
|
|
22
|
-
|
|
23
|
-
/* Colors - Badge */
|
|
24
|
-
--luma-color-badge: var(--luma-color-primary);
|
|
25
|
-
--luma-color-badge-bg: oklch(0.54 0.1 230 / 0.1);
|
|
26
|
-
|
|
27
|
-
/* Font Family */
|
|
28
|
-
--luma-font-family-base:
|
|
29
|
-
'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
|
30
|
-
|
|
31
|
-
/* Font Sizes */
|
|
32
|
-
--luma-text-sm: 0.75rem;
|
|
33
|
-
--luma-text-base: 1rem;
|
|
34
|
-
--luma-text-lg: 1.875rem;
|
|
35
|
-
|
|
36
|
-
/* Font Weights */
|
|
37
|
-
--luma-font-weight-regular: 400;
|
|
38
|
-
--luma-font-weight-medium: 500;
|
|
39
|
-
--luma-font-weight-semibold: 600;
|
|
40
|
-
|
|
41
|
-
/* Line Heights */
|
|
42
|
-
--luma-line-height-snug: 1.375;
|
|
43
|
-
--luma-line-height-relaxed: 1.625;
|
|
44
|
-
--luma-line-height-none: 1;
|
|
45
|
-
|
|
46
|
-
/* Spacing */
|
|
47
|
-
--luma-spacing-xs: 0.25rem;
|
|
48
|
-
--luma-spacing-sm: 0.5rem;
|
|
49
|
-
--luma-spacing-md: 1rem;
|
|
50
|
-
--luma-spacing-lg: 1.5rem;
|
|
51
|
-
--luma-spacing-xl: 2.5rem;
|
|
52
|
-
--luma-card-padding: 1.5rem;
|
|
53
|
-
|
|
54
|
-
/* Border Radius */
|
|
55
|
-
--radius-luma-sm: 6px;
|
|
56
|
-
--radius-luma-md: 10px;
|
|
57
|
-
--radius-luma-lg: 18px;
|
|
58
|
-
--radius-luma-full: 9999px;
|
|
59
|
-
|
|
60
|
-
/* Transitions */
|
|
61
|
-
--luma-duration-fast: 150ms;
|
|
62
|
-
--luma-duration-base: 200ms;
|
|
63
|
-
--luma-transition-ease: ease-out;
|
|
64
|
-
|
|
65
|
-
/* Badge */
|
|
66
|
-
--luma-badge-padding-x: 0.625rem;
|
|
67
|
-
--luma-badge-padding-y: 0.25rem;
|
|
68
|
-
--luma-badge-font-size: var(--luma-text-sm);
|
|
69
|
-
--luma-badge-font-weight: var(--luma-font-weight-medium);
|
|
70
|
-
|
|
71
|
-
/* Card */
|
|
72
|
-
--luma-card-border-width: 1px;
|
|
73
|
-
|
|
74
|
-
/* Button Tokens */
|
|
75
|
-
/* Primary */
|
|
76
|
-
--luma-button-primary-bg: oklch(0.54 0.1 230);
|
|
77
|
-
--luma-button-primary-bg-hover: oklch(0.49 0.09 230);
|
|
78
|
-
--luma-button-primary-bg-active: oklch(0.44 0.08 230);
|
|
79
|
-
--luma-button-primary-text: oklch(1 0 0);
|
|
80
|
-
|
|
81
|
-
/* Outline */
|
|
82
|
-
--luma-button-outline-border: oklch(0.5 0.01 0);
|
|
83
|
-
--luma-button-outline-border-hover: oklch(0.2 0.005 0);
|
|
84
|
-
--luma-button-outline-bg-hover: oklch(0.96 0.01 230);
|
|
85
|
-
--luma-button-outline-text: oklch(0.2 0.005 0);
|
|
86
|
-
|
|
87
|
-
/* Ghost */
|
|
88
|
-
--luma-button-ghost-bg: transparent;
|
|
89
|
-
--luma-button-ghost-bg-hover: oklch(0.96 0.01 230);
|
|
90
|
-
--luma-button-ghost-text: oklch(0.2 0.005 0);
|
|
91
|
-
|
|
92
|
-
/* Danger */
|
|
93
|
-
--luma-button-danger-bg: oklch(0.55 0.22 25);
|
|
94
|
-
--luma-button-danger-bg-hover: oklch(0.5 0.2 25);
|
|
95
|
-
--luma-button-danger-bg-active: oklch(0.45 0.18 25);
|
|
96
|
-
--luma-button-danger-text: oklch(1 0 0);
|
|
97
|
-
|
|
98
|
-
/* Button Layout */
|
|
99
|
-
--luma-button-padding-x-sm: 1rem;
|
|
100
|
-
--luma-button-padding-y-sm: 0.5rem;
|
|
101
|
-
--luma-button-padding-x-md: 1.5rem;
|
|
102
|
-
--luma-button-padding-y-md: 0.75rem;
|
|
103
|
-
--luma-button-padding-x-lg: 2rem;
|
|
104
|
-
--luma-button-padding-y-lg: 1rem;
|
|
105
|
-
--luma-button-radius: var(--luma-radius-md);
|
|
106
|
-
|
|
107
|
-
/* Button Focus */
|
|
108
|
-
--luma-button-focus-ring-width: 2px;
|
|
109
|
-
--luma-button-focus-ring-color: oklch(0.54 0.1 230 / 0.25);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
/* Utilities - Background Colors */
|
|
113
|
-
@utility lm-bg-primary {
|
|
114
|
-
background-color: var(--luma-color-primary);
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
@utility lm-bg-surface-base {
|
|
118
|
-
background-color: var(--luma-color-surface-base);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
@utility lm-bg-card-background {
|
|
122
|
-
background-color: var(--luma-card-background);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
@utility lm-bg-badge-bg {
|
|
126
|
-
background-color: var(--luma-color-badge-bg);
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
/* Utilities - Text Colors */
|
|
130
|
-
@utility lm-text-primary {
|
|
131
|
-
color: var(--luma-color-text-primary);
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
@utility lm-text-secondary {
|
|
135
|
-
color: var(--luma-color-text-secondary);
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
@utility lm-text-badge {
|
|
139
|
-
color: var(--luma-color-badge);
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
/* Utilities - Border Colors */
|
|
143
|
-
@utility lm-border-text-primary {
|
|
144
|
-
border-color: var(--luma-color-text-primary);
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
@utility lm-border-text-secondary {
|
|
148
|
-
border-color: var(--luma-color-text-secondary);
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
/* Utilities - Border Radius */
|
|
152
|
-
@utility lm-rounded-sm {
|
|
153
|
-
border-radius: var(--luma-radius-sm);
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
@utility lm-rounded-md {
|
|
157
|
-
border-radius: var(--luma-radius-md);
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
@utility lm-rounded-lg {
|
|
161
|
-
border-radius: var(--luma-radius-lg);
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
/* Utilities - Font Sizes */
|
|
165
|
-
@utility lm-text-sm {
|
|
166
|
-
font-size: var(--luma-text-sm);
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
@utility lm-text-base {
|
|
170
|
-
font-size: var(--luma-text-base);
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
@utility lm-text-lg {
|
|
174
|
-
font-size: var(--luma-text-lg);
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
/* Utilities - Transitions */
|
|
178
|
-
@utility lm-duration-fast {
|
|
179
|
-
transition-duration: var(--luma-duration-fast);
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
@utility lm-duration-base {
|
|
183
|
-
transition-duration: var(--luma-duration-base);
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
/* Utilities - Gradient */
|
|
187
|
-
@utility lm-from-card-gradient-from {
|
|
188
|
-
--tw-gradient-from: var(--luma-card-gradient-from);
|
|
189
|
-
--tw-gradient-to: rgb(255 255 255 / 0);
|
|
190
|
-
--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
@utility lm-to-card-gradient-to {
|
|
194
|
-
--tw-gradient-to: var(--luma-card-gradient-to);
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
/* Utilities - Padding */
|
|
198
|
-
@utility lm-p-card {
|
|
199
|
-
padding: var(--luma-card-padding);
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
/* ===== BUTTON UTILITIES ===== */
|
|
203
|
-
|
|
204
|
-
/* Primary Button */
|
|
205
|
-
@utility lm-bg-button-primary {
|
|
206
|
-
background-color: var(--luma-button-primary-bg);
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
@utility lm-bg-button-primary-hover {
|
|
210
|
-
background-color: var(--luma-button-primary-bg-hover);
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
@utility lm-bg-button-primary-active {
|
|
214
|
-
background-color: var(--luma-button-primary-bg-active);
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
@utility lm-text-button-primary-text {
|
|
218
|
-
color: var(--luma-button-primary-text);
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
/* Outline Button */
|
|
222
|
-
@utility lm-border-button-outline-border {
|
|
223
|
-
border-color: var(--luma-button-outline-border);
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
@utility lm-border-button-outline-border-hover {
|
|
227
|
-
border-color: var(--luma-button-outline-border-hover);
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
@utility lm-bg-button-outline-bg-hover {
|
|
231
|
-
background-color: var(--luma-button-outline-bg-hover);
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
@utility lm-button-outline-text {
|
|
235
|
-
color: var(--luma-button-outline-text);
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
/* Ghost Button */
|
|
239
|
-
@utility lm-button-ghost-bg {
|
|
240
|
-
background-color: var(--luma-button-ghost-bg);
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
@utility lm-button-ghost-bg-hover {
|
|
244
|
-
background-color: var(--luma-button-ghost-bg-hover);
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
@utility lm-button-ghost-text {
|
|
248
|
-
color: var(--luma-button-ghost-text);
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
/* Danger Button */
|
|
252
|
-
@utility lm-button-danger-bg {
|
|
253
|
-
background-color: var(--luma-button-danger-bg);
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
@utility lm-button-danger-bg-hover {
|
|
257
|
-
background-color: var(--luma-button-danger-bg-hover);
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
@utility lm-button-danger-bg-active {
|
|
261
|
-
background-color: var(--luma-button-danger-bg-active);
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
@utility lm-button-danger-text {
|
|
265
|
-
color: var(--luma-button-danger-text);
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
/* Button Focus Ring */
|
|
269
|
-
@utility lm-ring-button-focus {
|
|
270
|
-
outline: var(--luma-button-focus-ring-width) solid
|
|
271
|
-
var(--luma-button-focus-ring-color);
|
|
272
|
-
outline-offset: 2px;
|
|
273
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
/* Cores - Primária (Blue Neo-Minimal) - Dark theme */
|
|
3
|
-
--lumo-color-primary: #5ca3d8;
|
|
4
|
-
--lumo-color-primary-hover: #4a91c6;
|
|
5
|
-
--lumo-color-primary-active: #387fb4;
|
|
6
|
-
--lumo-color-primary-focus: rgba(92, 163, 216, 0.3);
|
|
7
|
-
--lumo-color-primary-background: rgba(92, 163, 216, 0.15);
|
|
8
|
-
|
|
9
|
-
/* Cores - Neutros - Dark theme */
|
|
10
|
-
--lumo-color-surface-base: #0f1114;
|
|
11
|
-
--lumo-color-text-primary: #f9fafb;
|
|
12
|
-
--lumo-color-text-secondary: #9ca3af;
|
|
13
|
-
--lumo-color-gradient-from: rgba(39, 39, 42, 0.6);
|
|
14
|
-
--lumo-color-gradient-to: rgba(24, 24, 27, 0.6);
|
|
15
|
-
|
|
16
|
-
/* Tipografia permanece a mesma */
|
|
17
|
-
--lumo-font-family-base:
|
|
18
|
-
'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
|
19
|
-
--lumo-font-size-sm: 0.75rem;
|
|
20
|
-
--lumo-font-size-base: 1rem;
|
|
21
|
-
--lumo-font-size-lg: 1.875rem;
|
|
22
|
-
--lumo-font-weight-regular: 400;
|
|
23
|
-
--lumo-font-weight-medium: 500;
|
|
24
|
-
--lumo-font-weight-semibold: 600;
|
|
25
|
-
--lumo-line-height-snug: 1.375;
|
|
26
|
-
--lumo-line-height-relaxed: 1.625;
|
|
27
|
-
--lumo-line-height-none: 1;
|
|
28
|
-
|
|
29
|
-
/* Espaçamento permanece o mesmo */
|
|
30
|
-
--lumo-spacing-xs: 0.25rem;
|
|
31
|
-
--lumo-spacing-sm: 0.5rem;
|
|
32
|
-
--lumo-spacing-md: 1rem;
|
|
33
|
-
--lumo-spacing-lg: 1.5rem;
|
|
34
|
-
--lumo-spacing-xl: 2.5rem;
|
|
35
|
-
|
|
36
|
-
/* Border Radius permanece o mesmo */
|
|
37
|
-
--lumo-radius-sm: 6px;
|
|
38
|
-
--lumo-radius-md: 10px;
|
|
39
|
-
--lumo-radius-lg: 18px;
|
|
40
|
-
--lumo-radius-full: 9999px;
|
|
41
|
-
|
|
42
|
-
/* Transições permanecem as mesmas */
|
|
43
|
-
--lumo-transition-duration-fast: 150ms;
|
|
44
|
-
--lumo-transition-duration-base: 200ms;
|
|
45
|
-
--lumo-transition-ease: ease-out;
|
|
46
|
-
|
|
47
|
-
/* Badge - Dark theme */
|
|
48
|
-
--lumo-badge-background: var(--lumo-color-primary-background);
|
|
49
|
-
--lumo-badge-color: var(--lumo-color-primary);
|
|
50
|
-
--lumo-badge-padding-x: 0.625rem;
|
|
51
|
-
--lumo-badge-padding-y: 0.25rem;
|
|
52
|
-
--lumo-badge-radius: var(--lumo-radius-full);
|
|
53
|
-
--lumo-badge-font-size: var(--lumo-font-size-sm);
|
|
54
|
-
--lumo-badge-font-weight: var(--lumo-font-weight-medium);
|
|
55
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
/* Cores - Primária (Blue Neo-Minimal) */
|
|
3
|
-
--lumo-color-primary: #327fb3;
|
|
4
|
-
--lumo-color-primary-hover: #35709c;
|
|
5
|
-
--lumo-color-primary-active: #31678f;
|
|
6
|
-
--lumo-color-primary-focus: rgba(50, 127, 179, 0.25);
|
|
7
|
-
--lumo-color-primary-background: rgba(50, 127, 179, 0.1);
|
|
8
|
-
|
|
9
|
-
/* Cores - Neutros */
|
|
10
|
-
--lumo-color-surface-base: #ffffff;
|
|
11
|
-
--lumo-color-text-primary: #111827;
|
|
12
|
-
--lumo-color-text-secondary: #6b7280;
|
|
13
|
-
--lumo-color-gradient-from: rgba(228, 228, 231, 0.6);
|
|
14
|
-
--lumo-color-gradient-to: rgba(244, 244, 245, 0.6);
|
|
15
|
-
|
|
16
|
-
/* Tipografia */
|
|
17
|
-
--lumo-font-family-base:
|
|
18
|
-
'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
|
19
|
-
--lumo-font-size-sm: 0.75rem;
|
|
20
|
-
--lumo-font-size-base: 1rem;
|
|
21
|
-
--lumo-font-size-lg: 1.875rem;
|
|
22
|
-
--lumo-font-weight-regular: 400;
|
|
23
|
-
--lumo-font-weight-medium: 500;
|
|
24
|
-
--lumo-font-weight-semibold: 600;
|
|
25
|
-
--lumo-line-height-snug: 1.375;
|
|
26
|
-
--lumo-line-height-relaxed: 1.625;
|
|
27
|
-
--lumo-line-height-none: 1;
|
|
28
|
-
|
|
29
|
-
/* Espaçamento */
|
|
30
|
-
--lumo-spacing-xs: 0.25rem;
|
|
31
|
-
--lumo-spacing-sm: 0.5rem;
|
|
32
|
-
--lumo-spacing-md: 1rem;
|
|
33
|
-
--lumo-spacing-lg: 1.5rem;
|
|
34
|
-
--lumo-spacing-xl: 2.5rem;
|
|
35
|
-
|
|
36
|
-
/* Border Radius */
|
|
37
|
-
--lumo-radius-sm: 6px;
|
|
38
|
-
--lumo-radius-md: 10px;
|
|
39
|
-
--lumo-radius-lg: 18px;
|
|
40
|
-
--lumo-radius-full: 9999px;
|
|
41
|
-
|
|
42
|
-
/* Transições */
|
|
43
|
-
--lumo-transition-duration-fast: 150ms;
|
|
44
|
-
--lumo-transition-duration-base: 200ms;
|
|
45
|
-
--lumo-transition-ease: ease-out;
|
|
46
|
-
|
|
47
|
-
/* Badge */
|
|
48
|
-
--lumo-badge-background: var(--lumo-color-primary-background);
|
|
49
|
-
--lumo-badge-color: var(--lumo-color-primary);
|
|
50
|
-
--lumo-badge-padding-x: 0.625rem;
|
|
51
|
-
--lumo-badge-padding-y: 0.25rem;
|
|
52
|
-
--lumo-badge-radius: var(--lumo-radius-full);
|
|
53
|
-
--lumo-badge-font-size: var(--lumo-font-size-sm);
|
|
54
|
-
--lumo-badge-font-weight: var(--lumo-font-weight-medium);
|
|
55
|
-
}
|