@tac-ui/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/dist/chunk-T3JFXTDW.mjs +723 -0
- package/dist/index.d.mts +1094 -0
- package/dist/index.d.ts +1094 -0
- package/dist/index.js +828 -0
- package/dist/index.mjs +88 -0
- package/dist/web/css-variables.d.mts +7 -0
- package/dist/web/css-variables.d.ts +7 -0
- package/dist/web/css-variables.js +946 -0
- package/dist/web/css-variables.mjs +336 -0
- package/package.json +38 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,828 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// src/primitive.ts
|
|
4
|
+
var primitiveColors = {
|
|
5
|
+
white: "#FFFFFF",
|
|
6
|
+
// Pantone 11-0601 TCX
|
|
7
|
+
black: "#000000",
|
|
8
|
+
// Pure Black
|
|
9
|
+
gray: {
|
|
10
|
+
50: "#F5F5F6",
|
|
11
|
+
// Cool Gray 1 U
|
|
12
|
+
100: "#E6E7E8",
|
|
13
|
+
// Cool Gray 2 C
|
|
14
|
+
200: "#D1D3D4",
|
|
15
|
+
// Cool Gray 3 C
|
|
16
|
+
300: "#BCBEC0",
|
|
17
|
+
// Cool Gray 4 C
|
|
18
|
+
400: "#A7A9AC",
|
|
19
|
+
// Cool Gray 5 C
|
|
20
|
+
500: "#808285",
|
|
21
|
+
// Cool Gray 7 C
|
|
22
|
+
600: "#6D6E71",
|
|
23
|
+
// Cool Gray 8 C
|
|
24
|
+
700: "#58595B",
|
|
25
|
+
// Cool Gray 9 C
|
|
26
|
+
800: "#414042",
|
|
27
|
+
// Cool Gray 11 C
|
|
28
|
+
900: "#2D2A26",
|
|
29
|
+
// Pantone Black C
|
|
30
|
+
950: "#101820"
|
|
31
|
+
// Pantone Black 6 C
|
|
32
|
+
},
|
|
33
|
+
warmGray: {
|
|
34
|
+
50: "#F6F5F3",
|
|
35
|
+
100: "#E5E1E0",
|
|
36
|
+
// Warm Gray 1 C
|
|
37
|
+
200: "#D7D2CB",
|
|
38
|
+
// Warm Gray 2 C
|
|
39
|
+
300: "#BFB8AF",
|
|
40
|
+
// Warm Gray 3 C
|
|
41
|
+
400: "#ACA39A",
|
|
42
|
+
// Warm Gray 5 C
|
|
43
|
+
500: "#968C83",
|
|
44
|
+
// Warm Gray 7 C
|
|
45
|
+
600: "#83786F",
|
|
46
|
+
// Warm Gray 8 C
|
|
47
|
+
700: "#6E6259",
|
|
48
|
+
// Warm Gray 10 C
|
|
49
|
+
800: "#5C5146",
|
|
50
|
+
// Warm Gray 11 C
|
|
51
|
+
900: "#4A4138"
|
|
52
|
+
},
|
|
53
|
+
status: {
|
|
54
|
+
success: "#1A4331",
|
|
55
|
+
// Pantone 343 C
|
|
56
|
+
successLight: "#EAF1EC",
|
|
57
|
+
warning: "#8A6D3B",
|
|
58
|
+
// Pantone 117 C
|
|
59
|
+
warningLight: "#F7F3EA",
|
|
60
|
+
error: "#7C2128",
|
|
61
|
+
// Pantone 188 C
|
|
62
|
+
errorLight: "#F4EAEB"
|
|
63
|
+
},
|
|
64
|
+
dark: {
|
|
65
|
+
bg: "#101820",
|
|
66
|
+
// Black 6 C
|
|
67
|
+
bgSubtle: "#1A1C20",
|
|
68
|
+
surface: "#1A1C20",
|
|
69
|
+
surfaceHover: "#22252A",
|
|
70
|
+
border: "#2D2A26",
|
|
71
|
+
// Black C
|
|
72
|
+
muted: "#1A1C20",
|
|
73
|
+
mutedFg: "#808285"
|
|
74
|
+
// Cool Gray 7 C
|
|
75
|
+
},
|
|
76
|
+
glass: {
|
|
77
|
+
bg: "rgba(16, 24, 32, 0.8)",
|
|
78
|
+
bgHover: "rgba(16, 24, 32, 0.9)",
|
|
79
|
+
border: "rgba(255, 255, 255, 0.05)",
|
|
80
|
+
borderHover: "rgba(255, 255, 255, 0.1)",
|
|
81
|
+
lightBg: "rgba(255, 255, 255, 0.8)",
|
|
82
|
+
lightBgHover: "rgba(255, 255, 255, 0.9)",
|
|
83
|
+
lightBorder: "rgba(16, 24, 32, 0.04)",
|
|
84
|
+
lightBorderHover: "rgba(16, 24, 32, 0.08)"
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
// src/semantic.ts
|
|
89
|
+
var semanticTokens = {
|
|
90
|
+
light: {
|
|
91
|
+
// ── Canvas & Surface (Off-white paper base) ──
|
|
92
|
+
background: "#FAFAFA",
|
|
93
|
+
// Off-white base
|
|
94
|
+
backgroundSubtle: "#F4F4F5",
|
|
95
|
+
// Slightly darker gray
|
|
96
|
+
surface: "#FCFCFC",
|
|
97
|
+
// Just faintly off-white surface
|
|
98
|
+
surfaceHover: "#F4F4F5",
|
|
99
|
+
surfaceBase: "#FAFAFA",
|
|
100
|
+
surfaceElevatedLow: "#FCFCFC",
|
|
101
|
+
surfaceElevatedMid: "#FCFCFC",
|
|
102
|
+
surfaceElevatedHigh: "#FCFCFC",
|
|
103
|
+
card: "#FCFCFC",
|
|
104
|
+
cardForeground: "#121212",
|
|
105
|
+
// Barely off-black
|
|
106
|
+
// ── Text ──
|
|
107
|
+
foreground: "#121212",
|
|
108
|
+
muted: "#F4F4F5",
|
|
109
|
+
mutedForeground: "#71717A",
|
|
110
|
+
// ── Brand ──
|
|
111
|
+
primary: "#1E232D",
|
|
112
|
+
// Iron Navy
|
|
113
|
+
primaryHover: "#2A303D",
|
|
114
|
+
// Slightly lighter for hover
|
|
115
|
+
primaryForeground: "#FAFAFA",
|
|
116
|
+
secondary: "#E4E4E7",
|
|
117
|
+
// Darkened from F4F4F5 for better visibility
|
|
118
|
+
secondaryForeground: "#1E232D",
|
|
119
|
+
ring: "#1E232D",
|
|
120
|
+
// ── Point / Accent (Steel Navy) ──
|
|
121
|
+
point: "#323944",
|
|
122
|
+
pointHover: "#4A5361",
|
|
123
|
+
pointForeground: "#FAFAFA",
|
|
124
|
+
pointSubtle: "rgba(30, 35, 45, 0.08)",
|
|
125
|
+
// ── Border ──
|
|
126
|
+
border: "#E4E4E7",
|
|
127
|
+
input: "#E4E4E7",
|
|
128
|
+
// ── Gray Scale ──
|
|
129
|
+
gray50: "#FAFAFA",
|
|
130
|
+
gray100: "#F4F4F5",
|
|
131
|
+
gray200: "#E4E4E7",
|
|
132
|
+
gray300: "#D4D4D8",
|
|
133
|
+
gray400: "#A1A1AA",
|
|
134
|
+
gray500: "#71717A",
|
|
135
|
+
gray600: "#52525B",
|
|
136
|
+
gray700: "#3F3F46",
|
|
137
|
+
gray800: "#27272A",
|
|
138
|
+
gray900: "#18181B",
|
|
139
|
+
// ── Glass & Effects ──
|
|
140
|
+
glassBg: "rgba(252, 252, 252, 0.85)",
|
|
141
|
+
glassBorder: "rgba(18, 18, 18, 0.04)",
|
|
142
|
+
glassInset: "inset 0 1px 0 rgba(250, 250, 250, 0.6)",
|
|
143
|
+
glassPanelShadow: "0 12px 40px rgba(18, 18, 18, 0.04), 0 1px 3px rgba(18, 18, 18, 0.02)",
|
|
144
|
+
accentGlow: "0 0 0 transparent",
|
|
145
|
+
// ── Gradients ──
|
|
146
|
+
gradientBrand: "none",
|
|
147
|
+
gradientBrandHover: "none",
|
|
148
|
+
gradientSubtle: "none",
|
|
149
|
+
gradientAccent: "none",
|
|
150
|
+
gradientAccentVivid: "none",
|
|
151
|
+
gradientGlow: "none",
|
|
152
|
+
gradientMesh: "none",
|
|
153
|
+
gradientSurface: "none",
|
|
154
|
+
gradientGlowShadow: "none",
|
|
155
|
+
// ── Shadow ──
|
|
156
|
+
shadowColor: "rgba(18, 18, 18, 0.05)",
|
|
157
|
+
// ── Status ──
|
|
158
|
+
success: "#1A4331",
|
|
159
|
+
successBg: "#EAF1EC",
|
|
160
|
+
successForeground: "#1A4331",
|
|
161
|
+
warning: "#8A6D3B",
|
|
162
|
+
warningBg: "#F7F3EA",
|
|
163
|
+
warningForeground: "#8A6D3B",
|
|
164
|
+
error: "#7C2128",
|
|
165
|
+
errorBg: "#F4EAEB",
|
|
166
|
+
errorForeground: "#7C2128",
|
|
167
|
+
info: "#121212",
|
|
168
|
+
infoBg: "#FAFAFA",
|
|
169
|
+
infoForeground: "#121212",
|
|
170
|
+
// ── Interaction States ──
|
|
171
|
+
interactiveHover: "rgba(18, 18, 18, 0.04)",
|
|
172
|
+
interactivePressed: "rgba(18, 18, 18, 0.08)",
|
|
173
|
+
interactiveFocus: "#121212",
|
|
174
|
+
interactiveSurfaceTint: "rgba(18, 18, 18, 0.02)",
|
|
175
|
+
interactiveHoverTint: "rgba(18, 18, 18, 0.04)",
|
|
176
|
+
focusGlow: "0 0 0 2px #E4E4E7",
|
|
177
|
+
pointGlow: "0 0 0 2px rgba(18, 18, 18, 0.15)",
|
|
178
|
+
// ── Components ──
|
|
179
|
+
btnPrimarySurface: "#1E232D",
|
|
180
|
+
btnPrimaryHover: "#2A303D",
|
|
181
|
+
btnPrimaryEnergy: "0 4px 12px rgba(30, 35, 45, 0.16)",
|
|
182
|
+
btnPrimaryInset: "none",
|
|
183
|
+
btnSecondarySurface: "#E4E4E7",
|
|
184
|
+
btnSecondaryHover: "#D4D4D8",
|
|
185
|
+
btnOutlineBorder: "#E4E4E7",
|
|
186
|
+
btnOutlineBorderHover: "#D4D4D8",
|
|
187
|
+
btnOutlineHoverBg: "#F4F4F5",
|
|
188
|
+
btnGhostHover: "#F4F4F5",
|
|
189
|
+
btnPointSurface: "#323944",
|
|
190
|
+
btnPointBorder: "transparent",
|
|
191
|
+
btnPointHoverSurface: "#4A5361",
|
|
192
|
+
btnPointHoverBorder: "transparent",
|
|
193
|
+
btnPointEnergy: "0 4px 12px rgba(50, 57, 68, 0.2)",
|
|
194
|
+
btnDestructiveSurface: "#7C2128",
|
|
195
|
+
btnDestructiveHover: "#5B171D",
|
|
196
|
+
inputBg: "#FCFCFC",
|
|
197
|
+
inputBorderRest: "#E4E4E7",
|
|
198
|
+
inputBorderHover: "#A1A1AA",
|
|
199
|
+
inputHoverGlow: "0 0 0 2px #F4F4F5",
|
|
200
|
+
inputFocusGlow: "0 0 0 2px #E4E4E7",
|
|
201
|
+
inputErrorGlow: "0 0 0 2px #F4EAEB",
|
|
202
|
+
dropdownBg: "#FCFCFC",
|
|
203
|
+
dropdownShadow: "0 20px 25px -5px rgba(18, 18, 18, 0.08), 0 0 0 1px rgba(18, 18, 18, 0.03)",
|
|
204
|
+
dropdownItemHover: "#F4F4F5",
|
|
205
|
+
cardAccentBorder: "#E4E4E7",
|
|
206
|
+
cardAccentGlow: "none",
|
|
207
|
+
cardAccentHoverBorder: "#D4D4D8",
|
|
208
|
+
cardAccentHoverGlow: "0 8px 24px rgba(18, 18, 18, 0.06)"
|
|
209
|
+
},
|
|
210
|
+
dark: {
|
|
211
|
+
// ── Canvas & Surface (High-Contrast Charcoal Base) ──
|
|
212
|
+
background: "#121214",
|
|
213
|
+
// Off-black charcoal
|
|
214
|
+
backgroundSubtle: "#18181A",
|
|
215
|
+
// Zinc 900
|
|
216
|
+
surface: "#27272A",
|
|
217
|
+
// Zinc 800 - distinct from subtle background
|
|
218
|
+
surfaceHover: "#3F3F46",
|
|
219
|
+
// Zinc 700
|
|
220
|
+
surfaceBase: "#121214",
|
|
221
|
+
surfaceElevatedLow: "#18181A",
|
|
222
|
+
surfaceElevatedMid: "#27272A",
|
|
223
|
+
surfaceElevatedHigh: "#3F3F46",
|
|
224
|
+
card: "#18181A",
|
|
225
|
+
// Zinc 900
|
|
226
|
+
cardForeground: "#F4F4F5",
|
|
227
|
+
// Off-white
|
|
228
|
+
// ── Text ──
|
|
229
|
+
foreground: "#F4F4F5",
|
|
230
|
+
// Off-white
|
|
231
|
+
muted: "#27272A",
|
|
232
|
+
// Zinc 800
|
|
233
|
+
mutedForeground: "#A1A1AA",
|
|
234
|
+
// Zinc 400
|
|
235
|
+
// ── Brand (Iron Navy Light / Cold Steel Blue-Gray) ──
|
|
236
|
+
primary: "#B8C4D9",
|
|
237
|
+
primaryHover: "#D1DBE8",
|
|
238
|
+
primaryForeground: "#1E232D",
|
|
239
|
+
// Deep Iron Navy text
|
|
240
|
+
secondary: "#27272A",
|
|
241
|
+
secondaryForeground: "#B8C4D9",
|
|
242
|
+
ring: "#B8C4D9",
|
|
243
|
+
// ── Point / Accent (Lighter Steel Blue-Gray) ──
|
|
244
|
+
point: "#D1DBE8",
|
|
245
|
+
pointHover: "#E6ECEF",
|
|
246
|
+
pointForeground: "#1E232D",
|
|
247
|
+
pointSubtle: "rgba(209, 219, 232, 0.12)",
|
|
248
|
+
// ── Border (Highly Visible) ──
|
|
249
|
+
border: "#3F3F46",
|
|
250
|
+
// Zinc 700
|
|
251
|
+
input: "#3F3F46",
|
|
252
|
+
// ── Gray Scale (Zinc) ──
|
|
253
|
+
gray50: "#121214",
|
|
254
|
+
gray100: "#18181A",
|
|
255
|
+
gray200: "#27272A",
|
|
256
|
+
gray300: "#3F3F46",
|
|
257
|
+
gray400: "#52525B",
|
|
258
|
+
gray500: "#71717A",
|
|
259
|
+
gray600: "#A1A1AA",
|
|
260
|
+
gray700: "#D4D4D8",
|
|
261
|
+
gray800: "#E4E4E7",
|
|
262
|
+
gray900: "#FAFAFA",
|
|
263
|
+
// ── Glass & Effects ──
|
|
264
|
+
glassBg: "rgba(18, 18, 20, 0.85)",
|
|
265
|
+
glassBorder: "rgba(250, 250, 250, 0.1)",
|
|
266
|
+
glassInset: "inset 0 1px 0 rgba(250, 250, 250, 0.05)",
|
|
267
|
+
glassPanelShadow: "0 20px 40px rgba(0, 0, 0, 0.8)",
|
|
268
|
+
accentGlow: "none",
|
|
269
|
+
// ── Gradients ──
|
|
270
|
+
gradientBrand: "none",
|
|
271
|
+
gradientBrandHover: "none",
|
|
272
|
+
gradientSubtle: "none",
|
|
273
|
+
gradientAccent: "none",
|
|
274
|
+
gradientAccentVivid: "none",
|
|
275
|
+
gradientGlow: "none",
|
|
276
|
+
gradientMesh: "none",
|
|
277
|
+
gradientSurface: "none",
|
|
278
|
+
gradientGlowShadow: "none",
|
|
279
|
+
// ── Shadow ──
|
|
280
|
+
shadowColor: "rgba(0, 0, 0, 0.9)",
|
|
281
|
+
// ── Status (Deep & Clear) ──
|
|
282
|
+
success: "#34D399",
|
|
283
|
+
successBg: "rgba(52, 211, 153, 0.15)",
|
|
284
|
+
successForeground: "#34D399",
|
|
285
|
+
warning: "#FBBF24",
|
|
286
|
+
warningBg: "rgba(251, 191, 36, 0.15)",
|
|
287
|
+
warningForeground: "#FBBF24",
|
|
288
|
+
error: "#F87171",
|
|
289
|
+
errorBg: "rgba(248, 113, 113, 0.15)",
|
|
290
|
+
errorForeground: "#F87171",
|
|
291
|
+
info: "#FAFAFA",
|
|
292
|
+
infoBg: "rgba(250, 250, 250, 0.15)",
|
|
293
|
+
infoForeground: "#FAFAFA",
|
|
294
|
+
// ── Interaction States ──
|
|
295
|
+
interactiveHover: "rgba(250, 250, 250, 0.08)",
|
|
296
|
+
interactivePressed: "rgba(250, 250, 250, 0.12)",
|
|
297
|
+
interactiveFocus: "#FAFAFA",
|
|
298
|
+
interactiveSurfaceTint: "rgba(250, 250, 250, 0.04)",
|
|
299
|
+
interactiveHoverTint: "rgba(250, 250, 250, 0.08)",
|
|
300
|
+
focusGlow: "0 0 0 2px #3F3F46",
|
|
301
|
+
pointGlow: "0 0 0 2px rgba(250, 250, 250, 0.3)",
|
|
302
|
+
// ── Components ──
|
|
303
|
+
btnPrimarySurface: "#B8C4D9",
|
|
304
|
+
btnPrimaryHover: "#D1DBE8",
|
|
305
|
+
btnPrimaryEnergy: "0 4px 16px rgba(184, 196, 217, 0.25)",
|
|
306
|
+
btnPrimaryInset: "none",
|
|
307
|
+
btnSecondarySurface: "#27272A",
|
|
308
|
+
btnSecondaryHover: "#3F3F46",
|
|
309
|
+
btnOutlineBorder: "#3F3F46",
|
|
310
|
+
btnOutlineBorderHover: "#52525B",
|
|
311
|
+
btnOutlineHoverBg: "#27272A",
|
|
312
|
+
btnGhostHover: "#27272A",
|
|
313
|
+
btnPointSurface: "#D1DBE8",
|
|
314
|
+
btnPointBorder: "transparent",
|
|
315
|
+
btnPointHoverSurface: "#E6ECEF",
|
|
316
|
+
btnPointHoverBorder: "transparent",
|
|
317
|
+
btnPointEnergy: "0 4px 16px rgba(209, 219, 232, 0.25)",
|
|
318
|
+
btnDestructiveSurface: "#7C2128",
|
|
319
|
+
btnDestructiveHover: "#9A2A32",
|
|
320
|
+
inputBg: "#18181A",
|
|
321
|
+
inputBorderRest: "#3F3F46",
|
|
322
|
+
inputBorderHover: "#52525B",
|
|
323
|
+
inputHoverGlow: "0 0 0 2px #27272A",
|
|
324
|
+
inputFocusGlow: "0 0 0 2px #3F3F46",
|
|
325
|
+
inputErrorGlow: "0 0 0 2px #3E1014",
|
|
326
|
+
dropdownBg: "#18181A",
|
|
327
|
+
dropdownShadow: "0 20px 25px -5px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(250,250,250,0.1)",
|
|
328
|
+
dropdownItemHover: "#27272A",
|
|
329
|
+
cardAccentBorder: "#3F3F46",
|
|
330
|
+
cardAccentGlow: "none",
|
|
331
|
+
cardAccentHoverBorder: "#52525B",
|
|
332
|
+
cardAccentHoverGlow: "0 8px 24px rgba(0, 0, 0, 0.8)"
|
|
333
|
+
}
|
|
334
|
+
};
|
|
335
|
+
|
|
336
|
+
// src/component.ts
|
|
337
|
+
var component = {
|
|
338
|
+
button: {
|
|
339
|
+
sm: { height: 34, paddingX: 18, paddingY: 8, fontSize: 12, borderRadius: 8, iconSize: 16 },
|
|
340
|
+
md: { height: 42, paddingX: 28, paddingY: 12, fontSize: 13, borderRadius: 10, iconSize: 18 },
|
|
341
|
+
lg: { height: 50, paddingX: 36, paddingY: 16, fontSize: 15, borderRadius: 14, iconSize: 20 }
|
|
342
|
+
},
|
|
343
|
+
input: {
|
|
344
|
+
height: 42,
|
|
345
|
+
paddingX: 18,
|
|
346
|
+
paddingY: 12,
|
|
347
|
+
fontSize: 14,
|
|
348
|
+
borderRadius: 10,
|
|
349
|
+
iconSize: 18,
|
|
350
|
+
iconPadding: 42
|
|
351
|
+
},
|
|
352
|
+
card: {
|
|
353
|
+
padding: 28,
|
|
354
|
+
gap: 20,
|
|
355
|
+
borderRadius: 16,
|
|
356
|
+
titleSize: 17,
|
|
357
|
+
bodySize: 14
|
|
358
|
+
},
|
|
359
|
+
badge: {
|
|
360
|
+
paddingX: 12,
|
|
361
|
+
paddingY: 6,
|
|
362
|
+
fontSize: 12,
|
|
363
|
+
fontWeight: 500,
|
|
364
|
+
borderRadius: 9999
|
|
365
|
+
},
|
|
366
|
+
checkbox: {
|
|
367
|
+
wrapperPaddingX: 16,
|
|
368
|
+
wrapperPaddingY: 10,
|
|
369
|
+
wrapperRadius: 10,
|
|
370
|
+
gap: 12,
|
|
371
|
+
size: 20,
|
|
372
|
+
borderRadius: 6,
|
|
373
|
+
borderWidth: 2,
|
|
374
|
+
iconSize: 14,
|
|
375
|
+
labelSize: 14
|
|
376
|
+
},
|
|
377
|
+
radio: {
|
|
378
|
+
wrapperPaddingX: 16,
|
|
379
|
+
wrapperPaddingY: 10,
|
|
380
|
+
wrapperRadius: 10,
|
|
381
|
+
gap: 12,
|
|
382
|
+
size: 20,
|
|
383
|
+
borderWidth: 2,
|
|
384
|
+
checkedBorderWidth: 6,
|
|
385
|
+
labelSize: 14
|
|
386
|
+
},
|
|
387
|
+
switch: {
|
|
388
|
+
width: 52,
|
|
389
|
+
height: 32,
|
|
390
|
+
thumbSize: 24,
|
|
391
|
+
thumbOffset: 4,
|
|
392
|
+
thumbTranslateOn: 24,
|
|
393
|
+
thumbTranslateOff: 4
|
|
394
|
+
},
|
|
395
|
+
chip: {
|
|
396
|
+
paddingX: 16,
|
|
397
|
+
paddingY: 8,
|
|
398
|
+
fontSize: 13,
|
|
399
|
+
borderRadius: 9999,
|
|
400
|
+
iconSize: 14,
|
|
401
|
+
iconPaddingX: 12
|
|
402
|
+
},
|
|
403
|
+
tabs: {
|
|
404
|
+
primary: {
|
|
405
|
+
paddingX: 20,
|
|
406
|
+
paddingY: 12,
|
|
407
|
+
fontSize: 14,
|
|
408
|
+
indicatorHeight: 2
|
|
409
|
+
},
|
|
410
|
+
secondary: {
|
|
411
|
+
paddingX: 20,
|
|
412
|
+
paddingY: 8,
|
|
413
|
+
fontSize: 13,
|
|
414
|
+
containerPadding: 4,
|
|
415
|
+
containerRadius: 14,
|
|
416
|
+
itemRadius: 10
|
|
417
|
+
}
|
|
418
|
+
},
|
|
419
|
+
slider: {
|
|
420
|
+
trackHeight: 6,
|
|
421
|
+
thumbSize: 20,
|
|
422
|
+
thumbBorderWidth: 2
|
|
423
|
+
},
|
|
424
|
+
tooltip: {
|
|
425
|
+
simple: { paddingX: 14, paddingY: 8, fontSize: 13, borderRadius: 10 },
|
|
426
|
+
rich: { paddingX: 16, paddingY: 10, maxWidth: 240, borderRadius: 10 },
|
|
427
|
+
delay: 150
|
|
428
|
+
},
|
|
429
|
+
avatar: {
|
|
430
|
+
sm: { size: 28, fontSize: 11 },
|
|
431
|
+
md: { size: 36, fontSize: 14 },
|
|
432
|
+
lg: { size: 48, fontSize: 18 },
|
|
433
|
+
xl: { size: 64, fontSize: 24 },
|
|
434
|
+
statusDot: 10,
|
|
435
|
+
statusBorder: 2
|
|
436
|
+
},
|
|
437
|
+
divider: {
|
|
438
|
+
thickness: 1,
|
|
439
|
+
thickThickness: 8,
|
|
440
|
+
insetMargin: 64,
|
|
441
|
+
labelSize: 12
|
|
442
|
+
},
|
|
443
|
+
progress: {
|
|
444
|
+
linear: { height: 8, borderRadius: 9999 },
|
|
445
|
+
circular: { strokeWidth: 4, textSize: 14 }
|
|
446
|
+
},
|
|
447
|
+
snackbar: {
|
|
448
|
+
paddingTop: 16,
|
|
449
|
+
paddingRight: 18,
|
|
450
|
+
paddingBottom: 16,
|
|
451
|
+
paddingLeft: 22,
|
|
452
|
+
borderRadius: 14,
|
|
453
|
+
gap: 12,
|
|
454
|
+
iconSize: 18,
|
|
455
|
+
messageSize: 14,
|
|
456
|
+
actionPaddingX: 14,
|
|
457
|
+
actionPaddingY: 6,
|
|
458
|
+
actionRadius: 8,
|
|
459
|
+
actionSize: 13
|
|
460
|
+
},
|
|
461
|
+
dialog: {
|
|
462
|
+
width: 380,
|
|
463
|
+
borderRadius: 20,
|
|
464
|
+
headerPaddingX: 28,
|
|
465
|
+
headerPaddingY: 24,
|
|
466
|
+
footerPaddingX: 28,
|
|
467
|
+
footerPaddingY: 20,
|
|
468
|
+
titleSize: 17,
|
|
469
|
+
descSize: 14,
|
|
470
|
+
footerGap: 14
|
|
471
|
+
},
|
|
472
|
+
animatedToggle: {
|
|
473
|
+
size: 40,
|
|
474
|
+
borderRadius: 10,
|
|
475
|
+
iconSize: 20
|
|
476
|
+
}
|
|
477
|
+
};
|
|
478
|
+
|
|
479
|
+
// src/typography.ts
|
|
480
|
+
var typography = {
|
|
481
|
+
fontFamily: {
|
|
482
|
+
primary: "Pretendard",
|
|
483
|
+
secondary: "Pretendard",
|
|
484
|
+
display: "Pretendard"
|
|
485
|
+
},
|
|
486
|
+
display: {
|
|
487
|
+
lg: { size: 56, weight: 700, lineHeight: 1.12, letterSpacing: -0.03 },
|
|
488
|
+
md: { size: 48, weight: 700, lineHeight: 1.12, letterSpacing: -0.025 },
|
|
489
|
+
sm: { size: 40, weight: 600, lineHeight: 1.15, letterSpacing: -0.02 }
|
|
490
|
+
},
|
|
491
|
+
heading: {
|
|
492
|
+
h1: { size: 32, weight: 700, lineHeight: 1.2, letterSpacing: -0.025 },
|
|
493
|
+
h2: { size: 28, weight: 600, lineHeight: 1.22, letterSpacing: -0.02 },
|
|
494
|
+
h3: { size: 24, weight: 600, lineHeight: 1.25, letterSpacing: -0.015 },
|
|
495
|
+
h4: { size: 20, weight: 500, lineHeight: 1.3, letterSpacing: -0.01 },
|
|
496
|
+
h5: { size: 16, weight: 500, lineHeight: 1.35, letterSpacing: -5e-3 },
|
|
497
|
+
h6: { size: 14, weight: 500, lineHeight: 1.4, letterSpacing: 0 }
|
|
498
|
+
},
|
|
499
|
+
body: {
|
|
500
|
+
lg: { size: 17, weight: 400, lineHeight: 1.65, letterSpacing: -0.01 },
|
|
501
|
+
md: { size: 15, weight: 400, lineHeight: 1.6, letterSpacing: -5e-3 },
|
|
502
|
+
sm: { size: 13, weight: 400, lineHeight: 1.55, letterSpacing: 0 }
|
|
503
|
+
},
|
|
504
|
+
caption: { size: 11, weight: 400, lineHeight: 1.5, letterSpacing: 0.01 },
|
|
505
|
+
fontWeight: {
|
|
506
|
+
light: "300",
|
|
507
|
+
regular: "400",
|
|
508
|
+
medium: "500",
|
|
509
|
+
semibold: "600",
|
|
510
|
+
bold: "700"
|
|
511
|
+
}
|
|
512
|
+
};
|
|
513
|
+
|
|
514
|
+
// src/spacing.ts
|
|
515
|
+
var spacing = {
|
|
516
|
+
"2xs": 2,
|
|
517
|
+
xs: 4,
|
|
518
|
+
sm: 8,
|
|
519
|
+
m: 16,
|
|
520
|
+
lg: 24,
|
|
521
|
+
xl: 40,
|
|
522
|
+
"2xl": 56,
|
|
523
|
+
"3xl": 80
|
|
524
|
+
};
|
|
525
|
+
var radius = {
|
|
526
|
+
none: 0,
|
|
527
|
+
xs: 4,
|
|
528
|
+
sm: 6,
|
|
529
|
+
m: 10,
|
|
530
|
+
lg: 14,
|
|
531
|
+
xl: 20,
|
|
532
|
+
"2xl": 24,
|
|
533
|
+
pill: 9999
|
|
534
|
+
};
|
|
535
|
+
var breakpoints = {
|
|
536
|
+
sm: 640,
|
|
537
|
+
md: 768,
|
|
538
|
+
lg: 1024,
|
|
539
|
+
xl: 1280,
|
|
540
|
+
"2xl": 1536
|
|
541
|
+
};
|
|
542
|
+
var grid = {
|
|
543
|
+
columns: 12,
|
|
544
|
+
gutter: 20,
|
|
545
|
+
margin: {
|
|
546
|
+
mobile: 20,
|
|
547
|
+
tablet: 32,
|
|
548
|
+
desktop: 40
|
|
549
|
+
}
|
|
550
|
+
};
|
|
551
|
+
var containers = {
|
|
552
|
+
sm: 640,
|
|
553
|
+
md: 768,
|
|
554
|
+
lg: 1024,
|
|
555
|
+
xl: 1280
|
|
556
|
+
};
|
|
557
|
+
|
|
558
|
+
// src/elevation.ts
|
|
559
|
+
var elevation = {
|
|
560
|
+
light: {
|
|
561
|
+
sm: "0 1px 2px rgba(94,94,94,0.04), 0 1px 3px rgba(94,94,94,0.02)",
|
|
562
|
+
m: "0 2px 4px rgba(94,94,94,0.04), 0 8px 16px rgba(94,94,94,0.04)",
|
|
563
|
+
lg: "0 4px 8px rgba(94,94,94,0.05), 0 16px 32px rgba(94,94,94,0.06)",
|
|
564
|
+
xl: "0 8px 16px rgba(94,94,94,0.06), 0 24px 48px rgba(94,94,94,0.08)",
|
|
565
|
+
glass: "0 4px 24px rgba(94,94,94,0.05), 0 1px 2px rgba(94,94,94,0.02)",
|
|
566
|
+
glassLg: "0 8px 32px rgba(94,94,94,0.08), 0 2px 4px rgba(94,94,94,0.03)"
|
|
567
|
+
},
|
|
568
|
+
dark: {
|
|
569
|
+
sm: "0 1px 2px rgba(0,0,0,0.20), 0 1px 3px rgba(0,0,0,0.14)",
|
|
570
|
+
m: "0 1px 4px rgba(0,0,0,0.20), 0 4px 12px rgba(0,0,0,0.16)",
|
|
571
|
+
lg: "0 2px 8px rgba(0,0,0,0.20), 0 8px 24px rgba(0,0,0,0.18)",
|
|
572
|
+
xl: "0 4px 12px rgba(0,0,0,0.22), 0 12px 32px rgba(0,0,0,0.20)",
|
|
573
|
+
glass: "0 2px 12px rgba(0,0,0,0.18), 0 1px 2px rgba(0,0,0,0.12), 0 0 0 0.5px rgba(255,255,255,0.06)",
|
|
574
|
+
glassLg: "0 4px 20px rgba(0,0,0,0.20), 0 2px 4px rgba(0,0,0,0.12), 0 0 16px rgba(138,163,184,0.03)"
|
|
575
|
+
}
|
|
576
|
+
};
|
|
577
|
+
var elevationLight = elevation.light;
|
|
578
|
+
var zIndex = {
|
|
579
|
+
hide: -1,
|
|
580
|
+
base: 0,
|
|
581
|
+
dropdown: 1e3,
|
|
582
|
+
sticky: 1100,
|
|
583
|
+
overlay: 1200,
|
|
584
|
+
modal: 1300,
|
|
585
|
+
popover: 1400,
|
|
586
|
+
tooltip: 1500,
|
|
587
|
+
toast: 1600
|
|
588
|
+
};
|
|
589
|
+
|
|
590
|
+
// src/motion.ts
|
|
591
|
+
var DIA_SPRING_DEFAULT = { type: "spring", stiffness: 260, damping: 34, mass: 1 };
|
|
592
|
+
var DIA_SPRING_LIGHT = { type: "spring", stiffness: 260, damping: 34, mass: 0.5 };
|
|
593
|
+
var motion = {
|
|
594
|
+
duration: {
|
|
595
|
+
instant: 80,
|
|
596
|
+
fast: 150,
|
|
597
|
+
normal: 220,
|
|
598
|
+
slow: 320,
|
|
599
|
+
complex: 450
|
|
600
|
+
},
|
|
601
|
+
easing: {
|
|
602
|
+
/** Dia's signature curve — slight overshoot with smooth natural deceleration. */
|
|
603
|
+
standard: "cubic-bezier(0.22, 1, 0.36, 1)",
|
|
604
|
+
/** Exit easing — fast acceleration, abrupt departure. */
|
|
605
|
+
easeIn: "cubic-bezier(0.55, 0, 1, 0.45)",
|
|
606
|
+
/** Entrance easing — gentle deceleration without overshoot. */
|
|
607
|
+
easeOut: "cubic-bezier(0, 0.55, 0.45, 1)",
|
|
608
|
+
/** Symmetric ease — smooth in both directions. */
|
|
609
|
+
easeInOut: "cubic-bezier(0.65, 0, 0.35, 1)",
|
|
610
|
+
/** Playful overshoot — for toggles, switches, confirmatory feedback. */
|
|
611
|
+
bounce: "cubic-bezier(0.34, 1.56, 0.64, 1)",
|
|
612
|
+
/** Stronger spring feel — deliberate physical presence. */
|
|
613
|
+
spring: "cubic-bezier(0.22, 1.2, 0.36, 1)",
|
|
614
|
+
/** Subtle rubber-band — elastic resistance with quick snap back. */
|
|
615
|
+
elastic: "cubic-bezier(0.68, -0.2, 0.265, 1.2)"
|
|
616
|
+
},
|
|
617
|
+
/** Framer Motion spring presets calibrated for Dia-style organic feel. */
|
|
618
|
+
spring: {
|
|
619
|
+
/** Quick interactive feedback — subtle and responsive. */
|
|
620
|
+
snappy: { type: "spring", stiffness: 260, damping: 28 },
|
|
621
|
+
/** Smooth state changes — gentle spring resolution. */
|
|
622
|
+
gentle: { type: "spring", stiffness: 180, damping: 26 },
|
|
623
|
+
/** Toggle/switch feel — restrained with minimal bounce. */
|
|
624
|
+
bouncy: { type: "spring", stiffness: 260, damping: 24 },
|
|
625
|
+
/** Large layout shifts — deliberate mass with controlled deceleration. */
|
|
626
|
+
slow: { type: "spring", stiffness: 140, damping: 24 },
|
|
627
|
+
/** Press/release with life — elastic resistance, mass gives it weight. */
|
|
628
|
+
elastic: { type: "spring", stiffness: 220, damping: 22, mass: 0.8 },
|
|
629
|
+
/** Elements appearing — spring resolves cleanly with organic arrival. */
|
|
630
|
+
entrance: { type: "spring", stiffness: 180, damping: 24, mass: 0.9 }
|
|
631
|
+
},
|
|
632
|
+
/** Mass-differentiated spring configs for Dia Browser-like physics interactions. */
|
|
633
|
+
diaSpring: {
|
|
634
|
+
default: DIA_SPRING_DEFAULT,
|
|
635
|
+
light: DIA_SPRING_LIGHT,
|
|
636
|
+
heavy: { type: "spring", stiffness: 220, damping: 32, mass: 1.5 },
|
|
637
|
+
magnetic: { type: "spring", stiffness: 340, damping: 38, mass: 0.8 },
|
|
638
|
+
entrance: { type: "spring", stiffness: 180, damping: 28, mass: 1.2 }
|
|
639
|
+
},
|
|
640
|
+
/** Standard animation keyframe presets for reuse across components. */
|
|
641
|
+
keyframes: {
|
|
642
|
+
fadeIn: { from: { opacity: "0" }, to: { opacity: "1" } },
|
|
643
|
+
fadeOut: { from: { opacity: "1" }, to: { opacity: "0" } },
|
|
644
|
+
/** Blur entrance — element fades in from blurry with subtle upward spring motion. */
|
|
645
|
+
blurFadeIn: {
|
|
646
|
+
from: { opacity: "0", filter: "blur(4px)", transform: "translateY(4px)" },
|
|
647
|
+
to: { opacity: "1", filter: "blur(0px)", transform: "translateY(0)" }
|
|
648
|
+
},
|
|
649
|
+
/** Blur scale entrance — deblurs while gently scaling up from slight compression. */
|
|
650
|
+
blurScaleIn: {
|
|
651
|
+
from: { opacity: "0", filter: "blur(3px)", transform: "scale(0.98)" },
|
|
652
|
+
to: { opacity: "1", filter: "blur(0px)", transform: "scale(1)" }
|
|
653
|
+
},
|
|
654
|
+
/** Slide entrance from below — element springs up from offset position. */
|
|
655
|
+
slideInUp: { from: { opacity: "0", transform: "translateY(5px)" }, to: { opacity: "1", transform: "translateY(0)" } },
|
|
656
|
+
/** Slide entrance from above — element springs down from offset position. */
|
|
657
|
+
slideInDown: { from: { opacity: "0", transform: "translateY(-5px)" }, to: { opacity: "1", transform: "translateY(0)" } },
|
|
658
|
+
/** Slide entrance from left — element springs in from offset. */
|
|
659
|
+
slideInLeft: { from: { opacity: "0", transform: "translateX(-5px)" }, to: { opacity: "1", transform: "translateX(0)" } },
|
|
660
|
+
/** Slide entrance from right — element springs in from offset. */
|
|
661
|
+
slideInRight: { from: { opacity: "0", transform: "translateX(5px)" }, to: { opacity: "1", transform: "translateX(0)" } },
|
|
662
|
+
/** Scale entrance — element inflates from slight compression. */
|
|
663
|
+
scaleIn: { from: { opacity: "0", transform: "scale(0.98)" }, to: { opacity: "1", transform: "scale(1)" } },
|
|
664
|
+
scaleOut: { from: { opacity: "1", transform: "scale(1)" }, to: { opacity: "0", transform: "scale(0.98)" } },
|
|
665
|
+
/** Zoom entrance — element arrives from meaningful distance, not just nearby. */
|
|
666
|
+
zoomIn: { from: { opacity: "0", transform: "scale(0.92)" }, to: { opacity: "1", transform: "scale(1)" } },
|
|
667
|
+
/** Press feedback — subtle scale to confirm tap/click with physical weight. */
|
|
668
|
+
pressDown: { from: { transform: "scale(1)" }, to: { transform: "scale(0.98)" } },
|
|
669
|
+
/** Press keyframes — clean squish held at destination. */
|
|
670
|
+
elasticPress: {
|
|
671
|
+
"0%": { transform: "scale(1)" },
|
|
672
|
+
"50%": { transform: "scale(0.98)" },
|
|
673
|
+
"100%": { transform: "scale(0.98)" }
|
|
674
|
+
},
|
|
675
|
+
/** Release keyframes — spring overshoots slightly then resolves to rest. */
|
|
676
|
+
elasticRelease: {
|
|
677
|
+
"0%": { transform: "scale(0.98)" },
|
|
678
|
+
"50%": { transform: "scale(1.005)" },
|
|
679
|
+
"100%": { transform: "scale(1)" }
|
|
680
|
+
},
|
|
681
|
+
/** Lift — subtle elevation shift on hover, element has mass. */
|
|
682
|
+
liftUp: { from: { transform: "translateY(0)" }, to: { transform: "translateY(-1px)" } },
|
|
683
|
+
/** Glow pulse — ambient glow to indicate active state. */
|
|
684
|
+
glowPulse: {
|
|
685
|
+
"0%, 100%": { boxShadow: "0 0 0 0 color-mix(in srgb, var(--point) 0%, transparent)" },
|
|
686
|
+
"50%": { boxShadow: "0 0 12px 2px color-mix(in srgb, var(--point) 20%, transparent)" }
|
|
687
|
+
},
|
|
688
|
+
shimmer: {
|
|
689
|
+
"0%": { backgroundPosition: "-200% 0" },
|
|
690
|
+
"100%": { backgroundPosition: "200% 0" }
|
|
691
|
+
},
|
|
692
|
+
gradientShimmer: {
|
|
693
|
+
"0%": { backgroundPosition: "0% 50%" },
|
|
694
|
+
"50%": { backgroundPosition: "100% 50%" },
|
|
695
|
+
"100%": { backgroundPosition: "0% 50%" }
|
|
696
|
+
},
|
|
697
|
+
/** Gradient glow — soft glow for decorative emphasis. */
|
|
698
|
+
gradientGlow: {
|
|
699
|
+
"0%, 100%": { boxShadow: "0 0 0 0 color-mix(in srgb, var(--point) 0%, transparent)" },
|
|
700
|
+
"50%": { boxShadow: "0 0 16px 3px color-mix(in srgb, var(--point) 15%, transparent)" }
|
|
701
|
+
},
|
|
702
|
+
/** Spotlight pulse — radial glow that breathes gently. */
|
|
703
|
+
spotlightPulse: {
|
|
704
|
+
"0%, 100%": { opacity: "0" },
|
|
705
|
+
"50%": { opacity: "1" }
|
|
706
|
+
},
|
|
707
|
+
spin: { from: { transform: "rotate(0deg)" }, to: { transform: "rotate(360deg)" } },
|
|
708
|
+
pulse: { "0%, 100%": { opacity: "1" }, "50%": { opacity: "0.5" } },
|
|
709
|
+
bounce: { "0%, 100%": { transform: "translateY(0)" }, "50%": { transform: "translateY(-2px)" } },
|
|
710
|
+
/** Float — gentle hovering motion with spring-like rhythm. */
|
|
711
|
+
float: {
|
|
712
|
+
"0%, 100%": { transform: "translateY(0)" },
|
|
713
|
+
"50%": { transform: "translateY(-2px)" }
|
|
714
|
+
}
|
|
715
|
+
},
|
|
716
|
+
/** Glow animation configuration for border glow effects. */
|
|
717
|
+
glow: {
|
|
718
|
+
/** Rotation speed in seconds for the border glow sweep. */
|
|
719
|
+
rotationSpeed: { idle: 3, focused: 1.5 },
|
|
720
|
+
/** Blur radius in px applied to the glow trail. */
|
|
721
|
+
blur: { idle: 8, focused: 16 },
|
|
722
|
+
/** Opacity of the glow sweep. */
|
|
723
|
+
opacity: { idle: 0.3, focused: 0.6 },
|
|
724
|
+
/** Conic gradient color stop percentages. */
|
|
725
|
+
spread: { transparent: 25, start: 40, peak: 50, end: 60, fadeOut: 75 }
|
|
726
|
+
},
|
|
727
|
+
/** Layout morphing spring config — for FLIP transitions between components. */
|
|
728
|
+
morph: {
|
|
729
|
+
/** Spring config for morph transitions — references diaSpring.default. */
|
|
730
|
+
spring: DIA_SPRING_DEFAULT,
|
|
731
|
+
/** Faster variant for small elements. */
|
|
732
|
+
springFast: { type: "spring", stiffness: 400, damping: 35, mass: 0.8 }
|
|
733
|
+
}
|
|
734
|
+
};
|
|
735
|
+
var diaSpring = motion.diaSpring;
|
|
736
|
+
|
|
737
|
+
// src/chart.ts
|
|
738
|
+
var chart = {
|
|
739
|
+
light: {
|
|
740
|
+
colors: [
|
|
741
|
+
"#1E232D",
|
|
742
|
+
// chart-1: Iron Navy (Primary)
|
|
743
|
+
"#323944",
|
|
744
|
+
// chart-2: Steel Navy (Secondary)
|
|
745
|
+
"#4A5361",
|
|
746
|
+
// chart-3: Slate Navy (Tertiary)
|
|
747
|
+
"#71717A",
|
|
748
|
+
// chart-4: Zinc 500 (Accent 1)
|
|
749
|
+
"#A1A1AA",
|
|
750
|
+
// chart-5: Zinc 400 (Accent 2)
|
|
751
|
+
"#D4D4D8",
|
|
752
|
+
// chart-6: Zinc 300 (Fill)
|
|
753
|
+
"#0F172A",
|
|
754
|
+
// chart-7: Deep Slate 900 (Deep Fill)
|
|
755
|
+
"#E4E4E7"
|
|
756
|
+
// chart-8: Zinc 200 (Light Fill)
|
|
757
|
+
],
|
|
758
|
+
grid: "rgba(30, 35, 45, 0.04)",
|
|
759
|
+
axis: "rgba(30, 35, 45, 0.08)",
|
|
760
|
+
label: "#71717A",
|
|
761
|
+
// Zinc 500
|
|
762
|
+
tooltipBg: "#FFFFFF"
|
|
763
|
+
},
|
|
764
|
+
dark: {
|
|
765
|
+
colors: [
|
|
766
|
+
"#B8C4D9",
|
|
767
|
+
// chart-1: Bright Ice Navy (Primary)
|
|
768
|
+
"#D1DBE8",
|
|
769
|
+
// chart-2: Ice Steel (Secondary)
|
|
770
|
+
"#E6ECEF",
|
|
771
|
+
// chart-3: Pale Silver (Tertiary)
|
|
772
|
+
"#A1A1AA",
|
|
773
|
+
// chart-4: Zinc 400 (Accent 1)
|
|
774
|
+
"#71717A",
|
|
775
|
+
// chart-5: Zinc 500 (Accent 2)
|
|
776
|
+
"#808B9D",
|
|
777
|
+
// chart-6: Cold Steel (Fill)
|
|
778
|
+
"#FFFFFF",
|
|
779
|
+
// chart-7: Pure White (Highlight)
|
|
780
|
+
"#52525B"
|
|
781
|
+
// chart-8: Zinc 600 (Deep Fill)
|
|
782
|
+
],
|
|
783
|
+
grid: "rgba(255, 255, 255, 0.04)",
|
|
784
|
+
axis: "rgba(255, 255, 255, 0.06)",
|
|
785
|
+
label: "#A1A1AA",
|
|
786
|
+
// Zinc 400
|
|
787
|
+
tooltipBg: "#18181A"
|
|
788
|
+
// Off-black chart tooltip matches dropdowns
|
|
789
|
+
},
|
|
790
|
+
lineWidth: 1.5,
|
|
791
|
+
dotSize: 2.5,
|
|
792
|
+
barRadius: 4,
|
|
793
|
+
areaOpacity: 0.08
|
|
794
|
+
};
|
|
795
|
+
|
|
796
|
+
// src/web/unit-utils.ts
|
|
797
|
+
function rem(v) {
|
|
798
|
+
return `${v / 16}rem`;
|
|
799
|
+
}
|
|
800
|
+
function px(v) {
|
|
801
|
+
return `${v}px`;
|
|
802
|
+
}
|
|
803
|
+
function ms(v) {
|
|
804
|
+
return `${v}ms`;
|
|
805
|
+
}
|
|
806
|
+
function unitless(v) {
|
|
807
|
+
return `${v}`;
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
exports.breakpoints = breakpoints;
|
|
811
|
+
exports.chart = chart;
|
|
812
|
+
exports.component = component;
|
|
813
|
+
exports.containers = containers;
|
|
814
|
+
exports.diaSpring = diaSpring;
|
|
815
|
+
exports.elevation = elevation;
|
|
816
|
+
exports.elevationLight = elevationLight;
|
|
817
|
+
exports.grid = grid;
|
|
818
|
+
exports.motion = motion;
|
|
819
|
+
exports.ms = ms;
|
|
820
|
+
exports.primitiveColors = primitiveColors;
|
|
821
|
+
exports.px = px;
|
|
822
|
+
exports.radius = radius;
|
|
823
|
+
exports.rem = rem;
|
|
824
|
+
exports.semanticTokens = semanticTokens;
|
|
825
|
+
exports.spacing = spacing;
|
|
826
|
+
exports.typography = typography;
|
|
827
|
+
exports.unitless = unitless;
|
|
828
|
+
exports.zIndex = zIndex;
|