@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.d.mts
ADDED
|
@@ -0,0 +1,1094 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Primitive color tokens — Tac UI palette.
|
|
3
|
+
* Luxurious Pantone Black & White Series.
|
|
4
|
+
*/
|
|
5
|
+
declare const primitiveColors: {
|
|
6
|
+
readonly white: "#FFFFFF";
|
|
7
|
+
readonly black: "#000000";
|
|
8
|
+
readonly gray: {
|
|
9
|
+
readonly 50: "#F5F5F6";
|
|
10
|
+
readonly 100: "#E6E7E8";
|
|
11
|
+
readonly 200: "#D1D3D4";
|
|
12
|
+
readonly 300: "#BCBEC0";
|
|
13
|
+
readonly 400: "#A7A9AC";
|
|
14
|
+
readonly 500: "#808285";
|
|
15
|
+
readonly 600: "#6D6E71";
|
|
16
|
+
readonly 700: "#58595B";
|
|
17
|
+
readonly 800: "#414042";
|
|
18
|
+
readonly 900: "#2D2A26";
|
|
19
|
+
readonly 950: "#101820";
|
|
20
|
+
};
|
|
21
|
+
readonly warmGray: {
|
|
22
|
+
readonly 50: "#F6F5F3";
|
|
23
|
+
readonly 100: "#E5E1E0";
|
|
24
|
+
readonly 200: "#D7D2CB";
|
|
25
|
+
readonly 300: "#BFB8AF";
|
|
26
|
+
readonly 400: "#ACA39A";
|
|
27
|
+
readonly 500: "#968C83";
|
|
28
|
+
readonly 600: "#83786F";
|
|
29
|
+
readonly 700: "#6E6259";
|
|
30
|
+
readonly 800: "#5C5146";
|
|
31
|
+
readonly 900: "#4A4138";
|
|
32
|
+
};
|
|
33
|
+
readonly status: {
|
|
34
|
+
readonly success: "#1A4331";
|
|
35
|
+
readonly successLight: "#EAF1EC";
|
|
36
|
+
readonly warning: "#8A6D3B";
|
|
37
|
+
readonly warningLight: "#F7F3EA";
|
|
38
|
+
readonly error: "#7C2128";
|
|
39
|
+
readonly errorLight: "#F4EAEB";
|
|
40
|
+
};
|
|
41
|
+
readonly dark: {
|
|
42
|
+
readonly bg: "#101820";
|
|
43
|
+
readonly bgSubtle: "#1A1C20";
|
|
44
|
+
readonly surface: "#1A1C20";
|
|
45
|
+
readonly surfaceHover: "#22252A";
|
|
46
|
+
readonly border: "#2D2A26";
|
|
47
|
+
readonly muted: "#1A1C20";
|
|
48
|
+
readonly mutedFg: "#808285";
|
|
49
|
+
};
|
|
50
|
+
readonly glass: {
|
|
51
|
+
readonly bg: "rgba(16, 24, 32, 0.8)";
|
|
52
|
+
readonly bgHover: "rgba(16, 24, 32, 0.9)";
|
|
53
|
+
readonly border: "rgba(255, 255, 255, 0.05)";
|
|
54
|
+
readonly borderHover: "rgba(255, 255, 255, 0.1)";
|
|
55
|
+
readonly lightBg: "rgba(255, 255, 255, 0.8)";
|
|
56
|
+
readonly lightBgHover: "rgba(255, 255, 255, 0.9)";
|
|
57
|
+
readonly lightBorder: "rgba(16, 24, 32, 0.04)";
|
|
58
|
+
readonly lightBorderHover: "rgba(16, 24, 32, 0.08)";
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
declare const semanticTokens: {
|
|
63
|
+
readonly light: {
|
|
64
|
+
readonly background: "#FAFAFA";
|
|
65
|
+
readonly backgroundSubtle: "#F4F4F5";
|
|
66
|
+
readonly surface: "#FCFCFC";
|
|
67
|
+
readonly surfaceHover: "#F4F4F5";
|
|
68
|
+
readonly surfaceBase: "#FAFAFA";
|
|
69
|
+
readonly surfaceElevatedLow: "#FCFCFC";
|
|
70
|
+
readonly surfaceElevatedMid: "#FCFCFC";
|
|
71
|
+
readonly surfaceElevatedHigh: "#FCFCFC";
|
|
72
|
+
readonly card: "#FCFCFC";
|
|
73
|
+
readonly cardForeground: "#121212";
|
|
74
|
+
readonly foreground: "#121212";
|
|
75
|
+
readonly muted: "#F4F4F5";
|
|
76
|
+
readonly mutedForeground: "#71717A";
|
|
77
|
+
readonly primary: "#1E232D";
|
|
78
|
+
readonly primaryHover: "#2A303D";
|
|
79
|
+
readonly primaryForeground: "#FAFAFA";
|
|
80
|
+
readonly secondary: "#E4E4E7";
|
|
81
|
+
readonly secondaryForeground: "#1E232D";
|
|
82
|
+
readonly ring: "#1E232D";
|
|
83
|
+
readonly point: "#323944";
|
|
84
|
+
readonly pointHover: "#4A5361";
|
|
85
|
+
readonly pointForeground: "#FAFAFA";
|
|
86
|
+
readonly pointSubtle: "rgba(30, 35, 45, 0.08)";
|
|
87
|
+
readonly border: "#E4E4E7";
|
|
88
|
+
readonly input: "#E4E4E7";
|
|
89
|
+
readonly gray50: "#FAFAFA";
|
|
90
|
+
readonly gray100: "#F4F4F5";
|
|
91
|
+
readonly gray200: "#E4E4E7";
|
|
92
|
+
readonly gray300: "#D4D4D8";
|
|
93
|
+
readonly gray400: "#A1A1AA";
|
|
94
|
+
readonly gray500: "#71717A";
|
|
95
|
+
readonly gray600: "#52525B";
|
|
96
|
+
readonly gray700: "#3F3F46";
|
|
97
|
+
readonly gray800: "#27272A";
|
|
98
|
+
readonly gray900: "#18181B";
|
|
99
|
+
readonly glassBg: "rgba(252, 252, 252, 0.85)";
|
|
100
|
+
readonly glassBorder: "rgba(18, 18, 18, 0.04)";
|
|
101
|
+
readonly glassInset: "inset 0 1px 0 rgba(250, 250, 250, 0.6)";
|
|
102
|
+
readonly glassPanelShadow: "0 12px 40px rgba(18, 18, 18, 0.04), 0 1px 3px rgba(18, 18, 18, 0.02)";
|
|
103
|
+
readonly accentGlow: "0 0 0 transparent";
|
|
104
|
+
readonly gradientBrand: "none";
|
|
105
|
+
readonly gradientBrandHover: "none";
|
|
106
|
+
readonly gradientSubtle: "none";
|
|
107
|
+
readonly gradientAccent: "none";
|
|
108
|
+
readonly gradientAccentVivid: "none";
|
|
109
|
+
readonly gradientGlow: "none";
|
|
110
|
+
readonly gradientMesh: "none";
|
|
111
|
+
readonly gradientSurface: "none";
|
|
112
|
+
readonly gradientGlowShadow: "none";
|
|
113
|
+
readonly shadowColor: "rgba(18, 18, 18, 0.05)";
|
|
114
|
+
readonly success: "#1A4331";
|
|
115
|
+
readonly successBg: "#EAF1EC";
|
|
116
|
+
readonly successForeground: "#1A4331";
|
|
117
|
+
readonly warning: "#8A6D3B";
|
|
118
|
+
readonly warningBg: "#F7F3EA";
|
|
119
|
+
readonly warningForeground: "#8A6D3B";
|
|
120
|
+
readonly error: "#7C2128";
|
|
121
|
+
readonly errorBg: "#F4EAEB";
|
|
122
|
+
readonly errorForeground: "#7C2128";
|
|
123
|
+
readonly info: "#121212";
|
|
124
|
+
readonly infoBg: "#FAFAFA";
|
|
125
|
+
readonly infoForeground: "#121212";
|
|
126
|
+
readonly interactiveHover: "rgba(18, 18, 18, 0.04)";
|
|
127
|
+
readonly interactivePressed: "rgba(18, 18, 18, 0.08)";
|
|
128
|
+
readonly interactiveFocus: "#121212";
|
|
129
|
+
readonly interactiveSurfaceTint: "rgba(18, 18, 18, 0.02)";
|
|
130
|
+
readonly interactiveHoverTint: "rgba(18, 18, 18, 0.04)";
|
|
131
|
+
readonly focusGlow: "0 0 0 2px #E4E4E7";
|
|
132
|
+
readonly pointGlow: "0 0 0 2px rgba(18, 18, 18, 0.15)";
|
|
133
|
+
readonly btnPrimarySurface: "#1E232D";
|
|
134
|
+
readonly btnPrimaryHover: "#2A303D";
|
|
135
|
+
readonly btnPrimaryEnergy: "0 4px 12px rgba(30, 35, 45, 0.16)";
|
|
136
|
+
readonly btnPrimaryInset: "none";
|
|
137
|
+
readonly btnSecondarySurface: "#E4E4E7";
|
|
138
|
+
readonly btnSecondaryHover: "#D4D4D8";
|
|
139
|
+
readonly btnOutlineBorder: "#E4E4E7";
|
|
140
|
+
readonly btnOutlineBorderHover: "#D4D4D8";
|
|
141
|
+
readonly btnOutlineHoverBg: "#F4F4F5";
|
|
142
|
+
readonly btnGhostHover: "#F4F4F5";
|
|
143
|
+
readonly btnPointSurface: "#323944";
|
|
144
|
+
readonly btnPointBorder: "transparent";
|
|
145
|
+
readonly btnPointHoverSurface: "#4A5361";
|
|
146
|
+
readonly btnPointHoverBorder: "transparent";
|
|
147
|
+
readonly btnPointEnergy: "0 4px 12px rgba(50, 57, 68, 0.2)";
|
|
148
|
+
readonly btnDestructiveSurface: "#7C2128";
|
|
149
|
+
readonly btnDestructiveHover: "#5B171D";
|
|
150
|
+
readonly inputBg: "#FCFCFC";
|
|
151
|
+
readonly inputBorderRest: "#E4E4E7";
|
|
152
|
+
readonly inputBorderHover: "#A1A1AA";
|
|
153
|
+
readonly inputHoverGlow: "0 0 0 2px #F4F4F5";
|
|
154
|
+
readonly inputFocusGlow: "0 0 0 2px #E4E4E7";
|
|
155
|
+
readonly inputErrorGlow: "0 0 0 2px #F4EAEB";
|
|
156
|
+
readonly dropdownBg: "#FCFCFC";
|
|
157
|
+
readonly dropdownShadow: "0 20px 25px -5px rgba(18, 18, 18, 0.08), 0 0 0 1px rgba(18, 18, 18, 0.03)";
|
|
158
|
+
readonly dropdownItemHover: "#F4F4F5";
|
|
159
|
+
readonly cardAccentBorder: "#E4E4E7";
|
|
160
|
+
readonly cardAccentGlow: "none";
|
|
161
|
+
readonly cardAccentHoverBorder: "#D4D4D8";
|
|
162
|
+
readonly cardAccentHoverGlow: "0 8px 24px rgba(18, 18, 18, 0.06)";
|
|
163
|
+
};
|
|
164
|
+
readonly dark: {
|
|
165
|
+
readonly background: "#121214";
|
|
166
|
+
readonly backgroundSubtle: "#18181A";
|
|
167
|
+
readonly surface: "#27272A";
|
|
168
|
+
readonly surfaceHover: "#3F3F46";
|
|
169
|
+
readonly surfaceBase: "#121214";
|
|
170
|
+
readonly surfaceElevatedLow: "#18181A";
|
|
171
|
+
readonly surfaceElevatedMid: "#27272A";
|
|
172
|
+
readonly surfaceElevatedHigh: "#3F3F46";
|
|
173
|
+
readonly card: "#18181A";
|
|
174
|
+
readonly cardForeground: "#F4F4F5";
|
|
175
|
+
readonly foreground: "#F4F4F5";
|
|
176
|
+
readonly muted: "#27272A";
|
|
177
|
+
readonly mutedForeground: "#A1A1AA";
|
|
178
|
+
readonly primary: "#B8C4D9";
|
|
179
|
+
readonly primaryHover: "#D1DBE8";
|
|
180
|
+
readonly primaryForeground: "#1E232D";
|
|
181
|
+
readonly secondary: "#27272A";
|
|
182
|
+
readonly secondaryForeground: "#B8C4D9";
|
|
183
|
+
readonly ring: "#B8C4D9";
|
|
184
|
+
readonly point: "#D1DBE8";
|
|
185
|
+
readonly pointHover: "#E6ECEF";
|
|
186
|
+
readonly pointForeground: "#1E232D";
|
|
187
|
+
readonly pointSubtle: "rgba(209, 219, 232, 0.12)";
|
|
188
|
+
readonly border: "#3F3F46";
|
|
189
|
+
readonly input: "#3F3F46";
|
|
190
|
+
readonly gray50: "#121214";
|
|
191
|
+
readonly gray100: "#18181A";
|
|
192
|
+
readonly gray200: "#27272A";
|
|
193
|
+
readonly gray300: "#3F3F46";
|
|
194
|
+
readonly gray400: "#52525B";
|
|
195
|
+
readonly gray500: "#71717A";
|
|
196
|
+
readonly gray600: "#A1A1AA";
|
|
197
|
+
readonly gray700: "#D4D4D8";
|
|
198
|
+
readonly gray800: "#E4E4E7";
|
|
199
|
+
readonly gray900: "#FAFAFA";
|
|
200
|
+
readonly glassBg: "rgba(18, 18, 20, 0.85)";
|
|
201
|
+
readonly glassBorder: "rgba(250, 250, 250, 0.1)";
|
|
202
|
+
readonly glassInset: "inset 0 1px 0 rgba(250, 250, 250, 0.05)";
|
|
203
|
+
readonly glassPanelShadow: "0 20px 40px rgba(0, 0, 0, 0.8)";
|
|
204
|
+
readonly accentGlow: "none";
|
|
205
|
+
readonly gradientBrand: "none";
|
|
206
|
+
readonly gradientBrandHover: "none";
|
|
207
|
+
readonly gradientSubtle: "none";
|
|
208
|
+
readonly gradientAccent: "none";
|
|
209
|
+
readonly gradientAccentVivid: "none";
|
|
210
|
+
readonly gradientGlow: "none";
|
|
211
|
+
readonly gradientMesh: "none";
|
|
212
|
+
readonly gradientSurface: "none";
|
|
213
|
+
readonly gradientGlowShadow: "none";
|
|
214
|
+
readonly shadowColor: "rgba(0, 0, 0, 0.9)";
|
|
215
|
+
readonly success: "#34D399";
|
|
216
|
+
readonly successBg: "rgba(52, 211, 153, 0.15)";
|
|
217
|
+
readonly successForeground: "#34D399";
|
|
218
|
+
readonly warning: "#FBBF24";
|
|
219
|
+
readonly warningBg: "rgba(251, 191, 36, 0.15)";
|
|
220
|
+
readonly warningForeground: "#FBBF24";
|
|
221
|
+
readonly error: "#F87171";
|
|
222
|
+
readonly errorBg: "rgba(248, 113, 113, 0.15)";
|
|
223
|
+
readonly errorForeground: "#F87171";
|
|
224
|
+
readonly info: "#FAFAFA";
|
|
225
|
+
readonly infoBg: "rgba(250, 250, 250, 0.15)";
|
|
226
|
+
readonly infoForeground: "#FAFAFA";
|
|
227
|
+
readonly interactiveHover: "rgba(250, 250, 250, 0.08)";
|
|
228
|
+
readonly interactivePressed: "rgba(250, 250, 250, 0.12)";
|
|
229
|
+
readonly interactiveFocus: "#FAFAFA";
|
|
230
|
+
readonly interactiveSurfaceTint: "rgba(250, 250, 250, 0.04)";
|
|
231
|
+
readonly interactiveHoverTint: "rgba(250, 250, 250, 0.08)";
|
|
232
|
+
readonly focusGlow: "0 0 0 2px #3F3F46";
|
|
233
|
+
readonly pointGlow: "0 0 0 2px rgba(250, 250, 250, 0.3)";
|
|
234
|
+
readonly btnPrimarySurface: "#B8C4D9";
|
|
235
|
+
readonly btnPrimaryHover: "#D1DBE8";
|
|
236
|
+
readonly btnPrimaryEnergy: "0 4px 16px rgba(184, 196, 217, 0.25)";
|
|
237
|
+
readonly btnPrimaryInset: "none";
|
|
238
|
+
readonly btnSecondarySurface: "#27272A";
|
|
239
|
+
readonly btnSecondaryHover: "#3F3F46";
|
|
240
|
+
readonly btnOutlineBorder: "#3F3F46";
|
|
241
|
+
readonly btnOutlineBorderHover: "#52525B";
|
|
242
|
+
readonly btnOutlineHoverBg: "#27272A";
|
|
243
|
+
readonly btnGhostHover: "#27272A";
|
|
244
|
+
readonly btnPointSurface: "#D1DBE8";
|
|
245
|
+
readonly btnPointBorder: "transparent";
|
|
246
|
+
readonly btnPointHoverSurface: "#E6ECEF";
|
|
247
|
+
readonly btnPointHoverBorder: "transparent";
|
|
248
|
+
readonly btnPointEnergy: "0 4px 16px rgba(209, 219, 232, 0.25)";
|
|
249
|
+
readonly btnDestructiveSurface: "#7C2128";
|
|
250
|
+
readonly btnDestructiveHover: "#9A2A32";
|
|
251
|
+
readonly inputBg: "#18181A";
|
|
252
|
+
readonly inputBorderRest: "#3F3F46";
|
|
253
|
+
readonly inputBorderHover: "#52525B";
|
|
254
|
+
readonly inputHoverGlow: "0 0 0 2px #27272A";
|
|
255
|
+
readonly inputFocusGlow: "0 0 0 2px #3F3F46";
|
|
256
|
+
readonly inputErrorGlow: "0 0 0 2px #3E1014";
|
|
257
|
+
readonly dropdownBg: "#18181A";
|
|
258
|
+
readonly dropdownShadow: "0 20px 25px -5px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(250,250,250,0.1)";
|
|
259
|
+
readonly dropdownItemHover: "#27272A";
|
|
260
|
+
readonly cardAccentBorder: "#3F3F46";
|
|
261
|
+
readonly cardAccentGlow: "none";
|
|
262
|
+
readonly cardAccentHoverBorder: "#52525B";
|
|
263
|
+
readonly cardAccentHoverGlow: "0 8px 24px rgba(0, 0, 0, 0.8)";
|
|
264
|
+
};
|
|
265
|
+
};
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* Component-specific tokens — Tac UI brand.
|
|
269
|
+
* Increased padding for airy feel, softer radii.
|
|
270
|
+
*/
|
|
271
|
+
declare const component: {
|
|
272
|
+
readonly button: {
|
|
273
|
+
readonly sm: {
|
|
274
|
+
readonly height: 34;
|
|
275
|
+
readonly paddingX: 18;
|
|
276
|
+
readonly paddingY: 8;
|
|
277
|
+
readonly fontSize: 12;
|
|
278
|
+
readonly borderRadius: 8;
|
|
279
|
+
readonly iconSize: 16;
|
|
280
|
+
};
|
|
281
|
+
readonly md: {
|
|
282
|
+
readonly height: 42;
|
|
283
|
+
readonly paddingX: 28;
|
|
284
|
+
readonly paddingY: 12;
|
|
285
|
+
readonly fontSize: 13;
|
|
286
|
+
readonly borderRadius: 10;
|
|
287
|
+
readonly iconSize: 18;
|
|
288
|
+
};
|
|
289
|
+
readonly lg: {
|
|
290
|
+
readonly height: 50;
|
|
291
|
+
readonly paddingX: 36;
|
|
292
|
+
readonly paddingY: 16;
|
|
293
|
+
readonly fontSize: 15;
|
|
294
|
+
readonly borderRadius: 14;
|
|
295
|
+
readonly iconSize: 20;
|
|
296
|
+
};
|
|
297
|
+
};
|
|
298
|
+
readonly input: {
|
|
299
|
+
readonly height: 42;
|
|
300
|
+
readonly paddingX: 18;
|
|
301
|
+
readonly paddingY: 12;
|
|
302
|
+
readonly fontSize: 14;
|
|
303
|
+
readonly borderRadius: 10;
|
|
304
|
+
readonly iconSize: 18;
|
|
305
|
+
readonly iconPadding: 42;
|
|
306
|
+
};
|
|
307
|
+
readonly card: {
|
|
308
|
+
readonly padding: 28;
|
|
309
|
+
readonly gap: 20;
|
|
310
|
+
readonly borderRadius: 16;
|
|
311
|
+
readonly titleSize: 17;
|
|
312
|
+
readonly bodySize: 14;
|
|
313
|
+
};
|
|
314
|
+
readonly badge: {
|
|
315
|
+
readonly paddingX: 12;
|
|
316
|
+
readonly paddingY: 6;
|
|
317
|
+
readonly fontSize: 12;
|
|
318
|
+
readonly fontWeight: 500;
|
|
319
|
+
readonly borderRadius: 9999;
|
|
320
|
+
};
|
|
321
|
+
readonly checkbox: {
|
|
322
|
+
readonly wrapperPaddingX: 16;
|
|
323
|
+
readonly wrapperPaddingY: 10;
|
|
324
|
+
readonly wrapperRadius: 10;
|
|
325
|
+
readonly gap: 12;
|
|
326
|
+
readonly size: 20;
|
|
327
|
+
readonly borderRadius: 6;
|
|
328
|
+
readonly borderWidth: 2;
|
|
329
|
+
readonly iconSize: 14;
|
|
330
|
+
readonly labelSize: 14;
|
|
331
|
+
};
|
|
332
|
+
readonly radio: {
|
|
333
|
+
readonly wrapperPaddingX: 16;
|
|
334
|
+
readonly wrapperPaddingY: 10;
|
|
335
|
+
readonly wrapperRadius: 10;
|
|
336
|
+
readonly gap: 12;
|
|
337
|
+
readonly size: 20;
|
|
338
|
+
readonly borderWidth: 2;
|
|
339
|
+
readonly checkedBorderWidth: 6;
|
|
340
|
+
readonly labelSize: 14;
|
|
341
|
+
};
|
|
342
|
+
readonly switch: {
|
|
343
|
+
readonly width: 52;
|
|
344
|
+
readonly height: 32;
|
|
345
|
+
readonly thumbSize: 24;
|
|
346
|
+
readonly thumbOffset: 4;
|
|
347
|
+
readonly thumbTranslateOn: 24;
|
|
348
|
+
readonly thumbTranslateOff: 4;
|
|
349
|
+
};
|
|
350
|
+
readonly chip: {
|
|
351
|
+
readonly paddingX: 16;
|
|
352
|
+
readonly paddingY: 8;
|
|
353
|
+
readonly fontSize: 13;
|
|
354
|
+
readonly borderRadius: 9999;
|
|
355
|
+
readonly iconSize: 14;
|
|
356
|
+
readonly iconPaddingX: 12;
|
|
357
|
+
};
|
|
358
|
+
readonly tabs: {
|
|
359
|
+
readonly primary: {
|
|
360
|
+
readonly paddingX: 20;
|
|
361
|
+
readonly paddingY: 12;
|
|
362
|
+
readonly fontSize: 14;
|
|
363
|
+
readonly indicatorHeight: 2;
|
|
364
|
+
};
|
|
365
|
+
readonly secondary: {
|
|
366
|
+
readonly paddingX: 20;
|
|
367
|
+
readonly paddingY: 8;
|
|
368
|
+
readonly fontSize: 13;
|
|
369
|
+
readonly containerPadding: 4;
|
|
370
|
+
readonly containerRadius: 14;
|
|
371
|
+
readonly itemRadius: 10;
|
|
372
|
+
};
|
|
373
|
+
};
|
|
374
|
+
readonly slider: {
|
|
375
|
+
readonly trackHeight: 6;
|
|
376
|
+
readonly thumbSize: 20;
|
|
377
|
+
readonly thumbBorderWidth: 2;
|
|
378
|
+
};
|
|
379
|
+
readonly tooltip: {
|
|
380
|
+
readonly simple: {
|
|
381
|
+
readonly paddingX: 14;
|
|
382
|
+
readonly paddingY: 8;
|
|
383
|
+
readonly fontSize: 13;
|
|
384
|
+
readonly borderRadius: 10;
|
|
385
|
+
};
|
|
386
|
+
readonly rich: {
|
|
387
|
+
readonly paddingX: 16;
|
|
388
|
+
readonly paddingY: 10;
|
|
389
|
+
readonly maxWidth: 240;
|
|
390
|
+
readonly borderRadius: 10;
|
|
391
|
+
};
|
|
392
|
+
readonly delay: 150;
|
|
393
|
+
};
|
|
394
|
+
readonly avatar: {
|
|
395
|
+
readonly sm: {
|
|
396
|
+
readonly size: 28;
|
|
397
|
+
readonly fontSize: 11;
|
|
398
|
+
};
|
|
399
|
+
readonly md: {
|
|
400
|
+
readonly size: 36;
|
|
401
|
+
readonly fontSize: 14;
|
|
402
|
+
};
|
|
403
|
+
readonly lg: {
|
|
404
|
+
readonly size: 48;
|
|
405
|
+
readonly fontSize: 18;
|
|
406
|
+
};
|
|
407
|
+
readonly xl: {
|
|
408
|
+
readonly size: 64;
|
|
409
|
+
readonly fontSize: 24;
|
|
410
|
+
};
|
|
411
|
+
readonly statusDot: 10;
|
|
412
|
+
readonly statusBorder: 2;
|
|
413
|
+
};
|
|
414
|
+
readonly divider: {
|
|
415
|
+
readonly thickness: 1;
|
|
416
|
+
readonly thickThickness: 8;
|
|
417
|
+
readonly insetMargin: 64;
|
|
418
|
+
readonly labelSize: 12;
|
|
419
|
+
};
|
|
420
|
+
readonly progress: {
|
|
421
|
+
readonly linear: {
|
|
422
|
+
readonly height: 8;
|
|
423
|
+
readonly borderRadius: 9999;
|
|
424
|
+
};
|
|
425
|
+
readonly circular: {
|
|
426
|
+
readonly strokeWidth: 4;
|
|
427
|
+
readonly textSize: 14;
|
|
428
|
+
};
|
|
429
|
+
};
|
|
430
|
+
readonly snackbar: {
|
|
431
|
+
readonly paddingTop: 16;
|
|
432
|
+
readonly paddingRight: 18;
|
|
433
|
+
readonly paddingBottom: 16;
|
|
434
|
+
readonly paddingLeft: 22;
|
|
435
|
+
readonly borderRadius: 14;
|
|
436
|
+
readonly gap: 12;
|
|
437
|
+
readonly iconSize: 18;
|
|
438
|
+
readonly messageSize: 14;
|
|
439
|
+
readonly actionPaddingX: 14;
|
|
440
|
+
readonly actionPaddingY: 6;
|
|
441
|
+
readonly actionRadius: 8;
|
|
442
|
+
readonly actionSize: 13;
|
|
443
|
+
};
|
|
444
|
+
readonly dialog: {
|
|
445
|
+
readonly width: 380;
|
|
446
|
+
readonly borderRadius: 20;
|
|
447
|
+
readonly headerPaddingX: 28;
|
|
448
|
+
readonly headerPaddingY: 24;
|
|
449
|
+
readonly footerPaddingX: 28;
|
|
450
|
+
readonly footerPaddingY: 20;
|
|
451
|
+
readonly titleSize: 17;
|
|
452
|
+
readonly descSize: 14;
|
|
453
|
+
readonly footerGap: 14;
|
|
454
|
+
};
|
|
455
|
+
readonly animatedToggle: {
|
|
456
|
+
readonly size: 40;
|
|
457
|
+
readonly borderRadius: 10;
|
|
458
|
+
readonly iconSize: 20;
|
|
459
|
+
};
|
|
460
|
+
};
|
|
461
|
+
|
|
462
|
+
declare const typography: {
|
|
463
|
+
readonly fontFamily: {
|
|
464
|
+
readonly primary: "Pretendard";
|
|
465
|
+
readonly secondary: "Pretendard";
|
|
466
|
+
readonly display: "Pretendard";
|
|
467
|
+
};
|
|
468
|
+
readonly display: {
|
|
469
|
+
readonly lg: {
|
|
470
|
+
readonly size: 56;
|
|
471
|
+
readonly weight: 700;
|
|
472
|
+
readonly lineHeight: 1.12;
|
|
473
|
+
readonly letterSpacing: -0.03;
|
|
474
|
+
};
|
|
475
|
+
readonly md: {
|
|
476
|
+
readonly size: 48;
|
|
477
|
+
readonly weight: 700;
|
|
478
|
+
readonly lineHeight: 1.12;
|
|
479
|
+
readonly letterSpacing: -0.025;
|
|
480
|
+
};
|
|
481
|
+
readonly sm: {
|
|
482
|
+
readonly size: 40;
|
|
483
|
+
readonly weight: 600;
|
|
484
|
+
readonly lineHeight: 1.15;
|
|
485
|
+
readonly letterSpacing: -0.02;
|
|
486
|
+
};
|
|
487
|
+
};
|
|
488
|
+
readonly heading: {
|
|
489
|
+
readonly h1: {
|
|
490
|
+
readonly size: 32;
|
|
491
|
+
readonly weight: 700;
|
|
492
|
+
readonly lineHeight: 1.2;
|
|
493
|
+
readonly letterSpacing: -0.025;
|
|
494
|
+
};
|
|
495
|
+
readonly h2: {
|
|
496
|
+
readonly size: 28;
|
|
497
|
+
readonly weight: 600;
|
|
498
|
+
readonly lineHeight: 1.22;
|
|
499
|
+
readonly letterSpacing: -0.02;
|
|
500
|
+
};
|
|
501
|
+
readonly h3: {
|
|
502
|
+
readonly size: 24;
|
|
503
|
+
readonly weight: 600;
|
|
504
|
+
readonly lineHeight: 1.25;
|
|
505
|
+
readonly letterSpacing: -0.015;
|
|
506
|
+
};
|
|
507
|
+
readonly h4: {
|
|
508
|
+
readonly size: 20;
|
|
509
|
+
readonly weight: 500;
|
|
510
|
+
readonly lineHeight: 1.3;
|
|
511
|
+
readonly letterSpacing: -0.01;
|
|
512
|
+
};
|
|
513
|
+
readonly h5: {
|
|
514
|
+
readonly size: 16;
|
|
515
|
+
readonly weight: 500;
|
|
516
|
+
readonly lineHeight: 1.35;
|
|
517
|
+
readonly letterSpacing: -0.005;
|
|
518
|
+
};
|
|
519
|
+
readonly h6: {
|
|
520
|
+
readonly size: 14;
|
|
521
|
+
readonly weight: 500;
|
|
522
|
+
readonly lineHeight: 1.4;
|
|
523
|
+
readonly letterSpacing: 0;
|
|
524
|
+
};
|
|
525
|
+
};
|
|
526
|
+
readonly body: {
|
|
527
|
+
readonly lg: {
|
|
528
|
+
readonly size: 17;
|
|
529
|
+
readonly weight: 400;
|
|
530
|
+
readonly lineHeight: 1.65;
|
|
531
|
+
readonly letterSpacing: -0.01;
|
|
532
|
+
};
|
|
533
|
+
readonly md: {
|
|
534
|
+
readonly size: 15;
|
|
535
|
+
readonly weight: 400;
|
|
536
|
+
readonly lineHeight: 1.6;
|
|
537
|
+
readonly letterSpacing: -0.005;
|
|
538
|
+
};
|
|
539
|
+
readonly sm: {
|
|
540
|
+
readonly size: 13;
|
|
541
|
+
readonly weight: 400;
|
|
542
|
+
readonly lineHeight: 1.55;
|
|
543
|
+
readonly letterSpacing: 0;
|
|
544
|
+
};
|
|
545
|
+
};
|
|
546
|
+
readonly caption: {
|
|
547
|
+
readonly size: 11;
|
|
548
|
+
readonly weight: 400;
|
|
549
|
+
readonly lineHeight: 1.5;
|
|
550
|
+
readonly letterSpacing: 0.01;
|
|
551
|
+
};
|
|
552
|
+
readonly fontWeight: {
|
|
553
|
+
readonly light: "300";
|
|
554
|
+
readonly regular: "400";
|
|
555
|
+
readonly medium: "500";
|
|
556
|
+
readonly semibold: "600";
|
|
557
|
+
readonly bold: "700";
|
|
558
|
+
};
|
|
559
|
+
};
|
|
560
|
+
|
|
561
|
+
declare const spacing: {
|
|
562
|
+
readonly '2xs': 2;
|
|
563
|
+
readonly xs: 4;
|
|
564
|
+
readonly sm: 8;
|
|
565
|
+
readonly m: 16;
|
|
566
|
+
readonly lg: 24;
|
|
567
|
+
readonly xl: 40;
|
|
568
|
+
readonly '2xl': 56;
|
|
569
|
+
readonly '3xl': 80;
|
|
570
|
+
};
|
|
571
|
+
declare const radius: {
|
|
572
|
+
readonly none: 0;
|
|
573
|
+
readonly xs: 4;
|
|
574
|
+
readonly sm: 6;
|
|
575
|
+
readonly m: 10;
|
|
576
|
+
readonly lg: 14;
|
|
577
|
+
readonly xl: 20;
|
|
578
|
+
readonly '2xl': 24;
|
|
579
|
+
readonly pill: 9999;
|
|
580
|
+
};
|
|
581
|
+
declare const breakpoints: {
|
|
582
|
+
readonly sm: 640;
|
|
583
|
+
readonly md: 768;
|
|
584
|
+
readonly lg: 1024;
|
|
585
|
+
readonly xl: 1280;
|
|
586
|
+
readonly '2xl': 1536;
|
|
587
|
+
};
|
|
588
|
+
declare const grid: {
|
|
589
|
+
readonly columns: 12;
|
|
590
|
+
readonly gutter: 20;
|
|
591
|
+
readonly margin: {
|
|
592
|
+
readonly mobile: 20;
|
|
593
|
+
readonly tablet: 32;
|
|
594
|
+
readonly desktop: 40;
|
|
595
|
+
};
|
|
596
|
+
};
|
|
597
|
+
declare const containers: {
|
|
598
|
+
readonly sm: 640;
|
|
599
|
+
readonly md: 768;
|
|
600
|
+
readonly lg: 1024;
|
|
601
|
+
readonly xl: 1280;
|
|
602
|
+
};
|
|
603
|
+
|
|
604
|
+
declare const elevation: {
|
|
605
|
+
readonly light: {
|
|
606
|
+
readonly sm: "0 1px 2px rgba(94,94,94,0.04), 0 1px 3px rgba(94,94,94,0.02)";
|
|
607
|
+
readonly m: "0 2px 4px rgba(94,94,94,0.04), 0 8px 16px rgba(94,94,94,0.04)";
|
|
608
|
+
readonly lg: "0 4px 8px rgba(94,94,94,0.05), 0 16px 32px rgba(94,94,94,0.06)";
|
|
609
|
+
readonly xl: "0 8px 16px rgba(94,94,94,0.06), 0 24px 48px rgba(94,94,94,0.08)";
|
|
610
|
+
readonly glass: "0 4px 24px rgba(94,94,94,0.05), 0 1px 2px rgba(94,94,94,0.02)";
|
|
611
|
+
readonly glassLg: "0 8px 32px rgba(94,94,94,0.08), 0 2px 4px rgba(94,94,94,0.03)";
|
|
612
|
+
};
|
|
613
|
+
readonly dark: {
|
|
614
|
+
readonly sm: "0 1px 2px rgba(0,0,0,0.20), 0 1px 3px rgba(0,0,0,0.14)";
|
|
615
|
+
readonly m: "0 1px 4px rgba(0,0,0,0.20), 0 4px 12px rgba(0,0,0,0.16)";
|
|
616
|
+
readonly lg: "0 2px 8px rgba(0,0,0,0.20), 0 8px 24px rgba(0,0,0,0.18)";
|
|
617
|
+
readonly xl: "0 4px 12px rgba(0,0,0,0.22), 0 12px 32px rgba(0,0,0,0.20)";
|
|
618
|
+
readonly 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)";
|
|
619
|
+
readonly 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)";
|
|
620
|
+
};
|
|
621
|
+
};
|
|
622
|
+
/** @deprecated Use elevation.light instead */
|
|
623
|
+
declare const elevationLight: {
|
|
624
|
+
readonly sm: "0 1px 2px rgba(94,94,94,0.04), 0 1px 3px rgba(94,94,94,0.02)";
|
|
625
|
+
readonly m: "0 2px 4px rgba(94,94,94,0.04), 0 8px 16px rgba(94,94,94,0.04)";
|
|
626
|
+
readonly lg: "0 4px 8px rgba(94,94,94,0.05), 0 16px 32px rgba(94,94,94,0.06)";
|
|
627
|
+
readonly xl: "0 8px 16px rgba(94,94,94,0.06), 0 24px 48px rgba(94,94,94,0.08)";
|
|
628
|
+
readonly glass: "0 4px 24px rgba(94,94,94,0.05), 0 1px 2px rgba(94,94,94,0.02)";
|
|
629
|
+
readonly glassLg: "0 8px 32px rgba(94,94,94,0.08), 0 2px 4px rgba(94,94,94,0.03)";
|
|
630
|
+
};
|
|
631
|
+
declare const zIndex: {
|
|
632
|
+
readonly hide: -1;
|
|
633
|
+
readonly base: 0;
|
|
634
|
+
readonly dropdown: 1000;
|
|
635
|
+
readonly sticky: 1100;
|
|
636
|
+
readonly overlay: 1200;
|
|
637
|
+
readonly modal: 1300;
|
|
638
|
+
readonly popover: 1400;
|
|
639
|
+
readonly tooltip: 1500;
|
|
640
|
+
readonly toast: 1600;
|
|
641
|
+
};
|
|
642
|
+
|
|
643
|
+
declare const motion: {
|
|
644
|
+
readonly duration: {
|
|
645
|
+
readonly instant: 80;
|
|
646
|
+
readonly fast: 150;
|
|
647
|
+
readonly normal: 220;
|
|
648
|
+
readonly slow: 320;
|
|
649
|
+
readonly complex: 450;
|
|
650
|
+
};
|
|
651
|
+
readonly easing: {
|
|
652
|
+
/** Dia's signature curve — slight overshoot with smooth natural deceleration. */
|
|
653
|
+
readonly standard: "cubic-bezier(0.22, 1, 0.36, 1)";
|
|
654
|
+
/** Exit easing — fast acceleration, abrupt departure. */
|
|
655
|
+
readonly easeIn: "cubic-bezier(0.55, 0, 1, 0.45)";
|
|
656
|
+
/** Entrance easing — gentle deceleration without overshoot. */
|
|
657
|
+
readonly easeOut: "cubic-bezier(0, 0.55, 0.45, 1)";
|
|
658
|
+
/** Symmetric ease — smooth in both directions. */
|
|
659
|
+
readonly easeInOut: "cubic-bezier(0.65, 0, 0.35, 1)";
|
|
660
|
+
/** Playful overshoot — for toggles, switches, confirmatory feedback. */
|
|
661
|
+
readonly bounce: "cubic-bezier(0.34, 1.56, 0.64, 1)";
|
|
662
|
+
/** Stronger spring feel — deliberate physical presence. */
|
|
663
|
+
readonly spring: "cubic-bezier(0.22, 1.2, 0.36, 1)";
|
|
664
|
+
/** Subtle rubber-band — elastic resistance with quick snap back. */
|
|
665
|
+
readonly elastic: "cubic-bezier(0.68, -0.2, 0.265, 1.2)";
|
|
666
|
+
};
|
|
667
|
+
/** Framer Motion spring presets calibrated for Dia-style organic feel. */
|
|
668
|
+
readonly spring: {
|
|
669
|
+
/** Quick interactive feedback — subtle and responsive. */
|
|
670
|
+
readonly snappy: {
|
|
671
|
+
readonly type: "spring";
|
|
672
|
+
readonly stiffness: 260;
|
|
673
|
+
readonly damping: 28;
|
|
674
|
+
};
|
|
675
|
+
/** Smooth state changes — gentle spring resolution. */
|
|
676
|
+
readonly gentle: {
|
|
677
|
+
readonly type: "spring";
|
|
678
|
+
readonly stiffness: 180;
|
|
679
|
+
readonly damping: 26;
|
|
680
|
+
};
|
|
681
|
+
/** Toggle/switch feel — restrained with minimal bounce. */
|
|
682
|
+
readonly bouncy: {
|
|
683
|
+
readonly type: "spring";
|
|
684
|
+
readonly stiffness: 260;
|
|
685
|
+
readonly damping: 24;
|
|
686
|
+
};
|
|
687
|
+
/** Large layout shifts — deliberate mass with controlled deceleration. */
|
|
688
|
+
readonly slow: {
|
|
689
|
+
readonly type: "spring";
|
|
690
|
+
readonly stiffness: 140;
|
|
691
|
+
readonly damping: 24;
|
|
692
|
+
};
|
|
693
|
+
/** Press/release with life — elastic resistance, mass gives it weight. */
|
|
694
|
+
readonly elastic: {
|
|
695
|
+
readonly type: "spring";
|
|
696
|
+
readonly stiffness: 220;
|
|
697
|
+
readonly damping: 22;
|
|
698
|
+
readonly mass: 0.8;
|
|
699
|
+
};
|
|
700
|
+
/** Elements appearing — spring resolves cleanly with organic arrival. */
|
|
701
|
+
readonly entrance: {
|
|
702
|
+
readonly type: "spring";
|
|
703
|
+
readonly stiffness: 180;
|
|
704
|
+
readonly damping: 24;
|
|
705
|
+
readonly mass: 0.9;
|
|
706
|
+
};
|
|
707
|
+
};
|
|
708
|
+
/** Mass-differentiated spring configs for Dia Browser-like physics interactions. */
|
|
709
|
+
readonly diaSpring: {
|
|
710
|
+
readonly default: {
|
|
711
|
+
readonly type: "spring";
|
|
712
|
+
readonly stiffness: 260;
|
|
713
|
+
readonly damping: 34;
|
|
714
|
+
readonly mass: 1;
|
|
715
|
+
};
|
|
716
|
+
readonly light: {
|
|
717
|
+
readonly type: "spring";
|
|
718
|
+
readonly stiffness: 260;
|
|
719
|
+
readonly damping: 34;
|
|
720
|
+
readonly mass: 0.5;
|
|
721
|
+
};
|
|
722
|
+
readonly heavy: {
|
|
723
|
+
readonly type: "spring";
|
|
724
|
+
readonly stiffness: 220;
|
|
725
|
+
readonly damping: 32;
|
|
726
|
+
readonly mass: 1.5;
|
|
727
|
+
};
|
|
728
|
+
readonly magnetic: {
|
|
729
|
+
readonly type: "spring";
|
|
730
|
+
readonly stiffness: 340;
|
|
731
|
+
readonly damping: 38;
|
|
732
|
+
readonly mass: 0.8;
|
|
733
|
+
};
|
|
734
|
+
readonly entrance: {
|
|
735
|
+
readonly type: "spring";
|
|
736
|
+
readonly stiffness: 180;
|
|
737
|
+
readonly damping: 28;
|
|
738
|
+
readonly mass: 1.2;
|
|
739
|
+
};
|
|
740
|
+
};
|
|
741
|
+
/** Standard animation keyframe presets for reuse across components. */
|
|
742
|
+
readonly keyframes: {
|
|
743
|
+
readonly fadeIn: {
|
|
744
|
+
readonly from: {
|
|
745
|
+
readonly opacity: "0";
|
|
746
|
+
};
|
|
747
|
+
readonly to: {
|
|
748
|
+
readonly opacity: "1";
|
|
749
|
+
};
|
|
750
|
+
};
|
|
751
|
+
readonly fadeOut: {
|
|
752
|
+
readonly from: {
|
|
753
|
+
readonly opacity: "1";
|
|
754
|
+
};
|
|
755
|
+
readonly to: {
|
|
756
|
+
readonly opacity: "0";
|
|
757
|
+
};
|
|
758
|
+
};
|
|
759
|
+
/** Blur entrance — element fades in from blurry with subtle upward spring motion. */
|
|
760
|
+
readonly blurFadeIn: {
|
|
761
|
+
readonly from: {
|
|
762
|
+
readonly opacity: "0";
|
|
763
|
+
readonly filter: "blur(4px)";
|
|
764
|
+
readonly transform: "translateY(4px)";
|
|
765
|
+
};
|
|
766
|
+
readonly to: {
|
|
767
|
+
readonly opacity: "1";
|
|
768
|
+
readonly filter: "blur(0px)";
|
|
769
|
+
readonly transform: "translateY(0)";
|
|
770
|
+
};
|
|
771
|
+
};
|
|
772
|
+
/** Blur scale entrance — deblurs while gently scaling up from slight compression. */
|
|
773
|
+
readonly blurScaleIn: {
|
|
774
|
+
readonly from: {
|
|
775
|
+
readonly opacity: "0";
|
|
776
|
+
readonly filter: "blur(3px)";
|
|
777
|
+
readonly transform: "scale(0.98)";
|
|
778
|
+
};
|
|
779
|
+
readonly to: {
|
|
780
|
+
readonly opacity: "1";
|
|
781
|
+
readonly filter: "blur(0px)";
|
|
782
|
+
readonly transform: "scale(1)";
|
|
783
|
+
};
|
|
784
|
+
};
|
|
785
|
+
/** Slide entrance from below — element springs up from offset position. */
|
|
786
|
+
readonly slideInUp: {
|
|
787
|
+
readonly from: {
|
|
788
|
+
readonly opacity: "0";
|
|
789
|
+
readonly transform: "translateY(5px)";
|
|
790
|
+
};
|
|
791
|
+
readonly to: {
|
|
792
|
+
readonly opacity: "1";
|
|
793
|
+
readonly transform: "translateY(0)";
|
|
794
|
+
};
|
|
795
|
+
};
|
|
796
|
+
/** Slide entrance from above — element springs down from offset position. */
|
|
797
|
+
readonly slideInDown: {
|
|
798
|
+
readonly from: {
|
|
799
|
+
readonly opacity: "0";
|
|
800
|
+
readonly transform: "translateY(-5px)";
|
|
801
|
+
};
|
|
802
|
+
readonly to: {
|
|
803
|
+
readonly opacity: "1";
|
|
804
|
+
readonly transform: "translateY(0)";
|
|
805
|
+
};
|
|
806
|
+
};
|
|
807
|
+
/** Slide entrance from left — element springs in from offset. */
|
|
808
|
+
readonly slideInLeft: {
|
|
809
|
+
readonly from: {
|
|
810
|
+
readonly opacity: "0";
|
|
811
|
+
readonly transform: "translateX(-5px)";
|
|
812
|
+
};
|
|
813
|
+
readonly to: {
|
|
814
|
+
readonly opacity: "1";
|
|
815
|
+
readonly transform: "translateX(0)";
|
|
816
|
+
};
|
|
817
|
+
};
|
|
818
|
+
/** Slide entrance from right — element springs in from offset. */
|
|
819
|
+
readonly slideInRight: {
|
|
820
|
+
readonly from: {
|
|
821
|
+
readonly opacity: "0";
|
|
822
|
+
readonly transform: "translateX(5px)";
|
|
823
|
+
};
|
|
824
|
+
readonly to: {
|
|
825
|
+
readonly opacity: "1";
|
|
826
|
+
readonly transform: "translateX(0)";
|
|
827
|
+
};
|
|
828
|
+
};
|
|
829
|
+
/** Scale entrance — element inflates from slight compression. */
|
|
830
|
+
readonly scaleIn: {
|
|
831
|
+
readonly from: {
|
|
832
|
+
readonly opacity: "0";
|
|
833
|
+
readonly transform: "scale(0.98)";
|
|
834
|
+
};
|
|
835
|
+
readonly to: {
|
|
836
|
+
readonly opacity: "1";
|
|
837
|
+
readonly transform: "scale(1)";
|
|
838
|
+
};
|
|
839
|
+
};
|
|
840
|
+
readonly scaleOut: {
|
|
841
|
+
readonly from: {
|
|
842
|
+
readonly opacity: "1";
|
|
843
|
+
readonly transform: "scale(1)";
|
|
844
|
+
};
|
|
845
|
+
readonly to: {
|
|
846
|
+
readonly opacity: "0";
|
|
847
|
+
readonly transform: "scale(0.98)";
|
|
848
|
+
};
|
|
849
|
+
};
|
|
850
|
+
/** Zoom entrance — element arrives from meaningful distance, not just nearby. */
|
|
851
|
+
readonly zoomIn: {
|
|
852
|
+
readonly from: {
|
|
853
|
+
readonly opacity: "0";
|
|
854
|
+
readonly transform: "scale(0.92)";
|
|
855
|
+
};
|
|
856
|
+
readonly to: {
|
|
857
|
+
readonly opacity: "1";
|
|
858
|
+
readonly transform: "scale(1)";
|
|
859
|
+
};
|
|
860
|
+
};
|
|
861
|
+
/** Press feedback — subtle scale to confirm tap/click with physical weight. */
|
|
862
|
+
readonly pressDown: {
|
|
863
|
+
readonly from: {
|
|
864
|
+
readonly transform: "scale(1)";
|
|
865
|
+
};
|
|
866
|
+
readonly to: {
|
|
867
|
+
readonly transform: "scale(0.98)";
|
|
868
|
+
};
|
|
869
|
+
};
|
|
870
|
+
/** Press keyframes — clean squish held at destination. */
|
|
871
|
+
readonly elasticPress: {
|
|
872
|
+
readonly '0%': {
|
|
873
|
+
readonly transform: "scale(1)";
|
|
874
|
+
};
|
|
875
|
+
readonly '50%': {
|
|
876
|
+
readonly transform: "scale(0.98)";
|
|
877
|
+
};
|
|
878
|
+
readonly '100%': {
|
|
879
|
+
readonly transform: "scale(0.98)";
|
|
880
|
+
};
|
|
881
|
+
};
|
|
882
|
+
/** Release keyframes — spring overshoots slightly then resolves to rest. */
|
|
883
|
+
readonly elasticRelease: {
|
|
884
|
+
readonly '0%': {
|
|
885
|
+
readonly transform: "scale(0.98)";
|
|
886
|
+
};
|
|
887
|
+
readonly '50%': {
|
|
888
|
+
readonly transform: "scale(1.005)";
|
|
889
|
+
};
|
|
890
|
+
readonly '100%': {
|
|
891
|
+
readonly transform: "scale(1)";
|
|
892
|
+
};
|
|
893
|
+
};
|
|
894
|
+
/** Lift — subtle elevation shift on hover, element has mass. */
|
|
895
|
+
readonly liftUp: {
|
|
896
|
+
readonly from: {
|
|
897
|
+
readonly transform: "translateY(0)";
|
|
898
|
+
};
|
|
899
|
+
readonly to: {
|
|
900
|
+
readonly transform: "translateY(-1px)";
|
|
901
|
+
};
|
|
902
|
+
};
|
|
903
|
+
/** Glow pulse — ambient glow to indicate active state. */
|
|
904
|
+
readonly glowPulse: {
|
|
905
|
+
readonly '0%, 100%': {
|
|
906
|
+
readonly boxShadow: "0 0 0 0 color-mix(in srgb, var(--point) 0%, transparent)";
|
|
907
|
+
};
|
|
908
|
+
readonly '50%': {
|
|
909
|
+
readonly boxShadow: "0 0 12px 2px color-mix(in srgb, var(--point) 20%, transparent)";
|
|
910
|
+
};
|
|
911
|
+
};
|
|
912
|
+
readonly shimmer: {
|
|
913
|
+
readonly '0%': {
|
|
914
|
+
readonly backgroundPosition: "-200% 0";
|
|
915
|
+
};
|
|
916
|
+
readonly '100%': {
|
|
917
|
+
readonly backgroundPosition: "200% 0";
|
|
918
|
+
};
|
|
919
|
+
};
|
|
920
|
+
readonly gradientShimmer: {
|
|
921
|
+
readonly '0%': {
|
|
922
|
+
readonly backgroundPosition: "0% 50%";
|
|
923
|
+
};
|
|
924
|
+
readonly '50%': {
|
|
925
|
+
readonly backgroundPosition: "100% 50%";
|
|
926
|
+
};
|
|
927
|
+
readonly '100%': {
|
|
928
|
+
readonly backgroundPosition: "0% 50%";
|
|
929
|
+
};
|
|
930
|
+
};
|
|
931
|
+
/** Gradient glow — soft glow for decorative emphasis. */
|
|
932
|
+
readonly gradientGlow: {
|
|
933
|
+
readonly '0%, 100%': {
|
|
934
|
+
readonly boxShadow: "0 0 0 0 color-mix(in srgb, var(--point) 0%, transparent)";
|
|
935
|
+
};
|
|
936
|
+
readonly '50%': {
|
|
937
|
+
readonly boxShadow: "0 0 16px 3px color-mix(in srgb, var(--point) 15%, transparent)";
|
|
938
|
+
};
|
|
939
|
+
};
|
|
940
|
+
/** Spotlight pulse — radial glow that breathes gently. */
|
|
941
|
+
readonly spotlightPulse: {
|
|
942
|
+
readonly '0%, 100%': {
|
|
943
|
+
readonly opacity: "0";
|
|
944
|
+
};
|
|
945
|
+
readonly '50%': {
|
|
946
|
+
readonly opacity: "1";
|
|
947
|
+
};
|
|
948
|
+
};
|
|
949
|
+
readonly spin: {
|
|
950
|
+
readonly from: {
|
|
951
|
+
readonly transform: "rotate(0deg)";
|
|
952
|
+
};
|
|
953
|
+
readonly to: {
|
|
954
|
+
readonly transform: "rotate(360deg)";
|
|
955
|
+
};
|
|
956
|
+
};
|
|
957
|
+
readonly pulse: {
|
|
958
|
+
readonly '0%, 100%': {
|
|
959
|
+
readonly opacity: "1";
|
|
960
|
+
};
|
|
961
|
+
readonly '50%': {
|
|
962
|
+
readonly opacity: "0.5";
|
|
963
|
+
};
|
|
964
|
+
};
|
|
965
|
+
readonly bounce: {
|
|
966
|
+
readonly '0%, 100%': {
|
|
967
|
+
readonly transform: "translateY(0)";
|
|
968
|
+
};
|
|
969
|
+
readonly '50%': {
|
|
970
|
+
readonly transform: "translateY(-2px)";
|
|
971
|
+
};
|
|
972
|
+
};
|
|
973
|
+
/** Float — gentle hovering motion with spring-like rhythm. */
|
|
974
|
+
readonly float: {
|
|
975
|
+
readonly '0%, 100%': {
|
|
976
|
+
readonly transform: "translateY(0)";
|
|
977
|
+
};
|
|
978
|
+
readonly '50%': {
|
|
979
|
+
readonly transform: "translateY(-2px)";
|
|
980
|
+
};
|
|
981
|
+
};
|
|
982
|
+
};
|
|
983
|
+
/** Glow animation configuration for border glow effects. */
|
|
984
|
+
readonly glow: {
|
|
985
|
+
/** Rotation speed in seconds for the border glow sweep. */
|
|
986
|
+
readonly rotationSpeed: {
|
|
987
|
+
readonly idle: 3;
|
|
988
|
+
readonly focused: 1.5;
|
|
989
|
+
};
|
|
990
|
+
/** Blur radius in px applied to the glow trail. */
|
|
991
|
+
readonly blur: {
|
|
992
|
+
readonly idle: 8;
|
|
993
|
+
readonly focused: 16;
|
|
994
|
+
};
|
|
995
|
+
/** Opacity of the glow sweep. */
|
|
996
|
+
readonly opacity: {
|
|
997
|
+
readonly idle: 0.3;
|
|
998
|
+
readonly focused: 0.6;
|
|
999
|
+
};
|
|
1000
|
+
/** Conic gradient color stop percentages. */
|
|
1001
|
+
readonly spread: {
|
|
1002
|
+
readonly transparent: 25;
|
|
1003
|
+
readonly start: 40;
|
|
1004
|
+
readonly peak: 50;
|
|
1005
|
+
readonly end: 60;
|
|
1006
|
+
readonly fadeOut: 75;
|
|
1007
|
+
};
|
|
1008
|
+
};
|
|
1009
|
+
/** Layout morphing spring config — for FLIP transitions between components. */
|
|
1010
|
+
readonly morph: {
|
|
1011
|
+
/** Spring config for morph transitions — references diaSpring.default. */
|
|
1012
|
+
readonly spring: {
|
|
1013
|
+
readonly type: "spring";
|
|
1014
|
+
readonly stiffness: 260;
|
|
1015
|
+
readonly damping: 34;
|
|
1016
|
+
readonly mass: 1;
|
|
1017
|
+
};
|
|
1018
|
+
/** Faster variant for small elements. */
|
|
1019
|
+
readonly springFast: {
|
|
1020
|
+
readonly type: "spring";
|
|
1021
|
+
readonly stiffness: 400;
|
|
1022
|
+
readonly damping: 35;
|
|
1023
|
+
readonly mass: 0.8;
|
|
1024
|
+
};
|
|
1025
|
+
};
|
|
1026
|
+
};
|
|
1027
|
+
/** Standalone export of Dia spring presets for direct consumption in packages/web. */
|
|
1028
|
+
declare const diaSpring: {
|
|
1029
|
+
readonly default: {
|
|
1030
|
+
readonly type: "spring";
|
|
1031
|
+
readonly stiffness: 260;
|
|
1032
|
+
readonly damping: 34;
|
|
1033
|
+
readonly mass: 1;
|
|
1034
|
+
};
|
|
1035
|
+
readonly light: {
|
|
1036
|
+
readonly type: "spring";
|
|
1037
|
+
readonly stiffness: 260;
|
|
1038
|
+
readonly damping: 34;
|
|
1039
|
+
readonly mass: 0.5;
|
|
1040
|
+
};
|
|
1041
|
+
readonly heavy: {
|
|
1042
|
+
readonly type: "spring";
|
|
1043
|
+
readonly stiffness: 220;
|
|
1044
|
+
readonly damping: 32;
|
|
1045
|
+
readonly mass: 1.5;
|
|
1046
|
+
};
|
|
1047
|
+
readonly magnetic: {
|
|
1048
|
+
readonly type: "spring";
|
|
1049
|
+
readonly stiffness: 340;
|
|
1050
|
+
readonly damping: 38;
|
|
1051
|
+
readonly mass: 0.8;
|
|
1052
|
+
};
|
|
1053
|
+
readonly entrance: {
|
|
1054
|
+
readonly type: "spring";
|
|
1055
|
+
readonly stiffness: 180;
|
|
1056
|
+
readonly damping: 28;
|
|
1057
|
+
readonly mass: 1.2;
|
|
1058
|
+
};
|
|
1059
|
+
};
|
|
1060
|
+
|
|
1061
|
+
declare const chart: {
|
|
1062
|
+
readonly light: {
|
|
1063
|
+
readonly colors: ["#1E232D", "#323944", "#4A5361", "#71717A", "#A1A1AA", "#D4D4D8", "#0F172A", "#E4E4E7"];
|
|
1064
|
+
readonly grid: "rgba(30, 35, 45, 0.04)";
|
|
1065
|
+
readonly axis: "rgba(30, 35, 45, 0.08)";
|
|
1066
|
+
readonly label: "#71717A";
|
|
1067
|
+
readonly tooltipBg: "#FFFFFF";
|
|
1068
|
+
};
|
|
1069
|
+
readonly dark: {
|
|
1070
|
+
readonly colors: ["#B8C4D9", "#D1DBE8", "#E6ECEF", "#A1A1AA", "#71717A", "#808B9D", "#FFFFFF", "#52525B"];
|
|
1071
|
+
readonly grid: "rgba(255, 255, 255, 0.04)";
|
|
1072
|
+
readonly axis: "rgba(255, 255, 255, 0.06)";
|
|
1073
|
+
readonly label: "#A1A1AA";
|
|
1074
|
+
readonly tooltipBg: "#18181A";
|
|
1075
|
+
};
|
|
1076
|
+
readonly lineWidth: 1.5;
|
|
1077
|
+
readonly dotSize: 2.5;
|
|
1078
|
+
readonly barRadius: 4;
|
|
1079
|
+
readonly areaOpacity: 0.08;
|
|
1080
|
+
};
|
|
1081
|
+
|
|
1082
|
+
/**
|
|
1083
|
+
* CSS unit conversion utilities for token → CSS variable generation.
|
|
1084
|
+
*/
|
|
1085
|
+
/** Converts a pixel number to a rem string (base 16px). */
|
|
1086
|
+
declare function rem(v: number): string;
|
|
1087
|
+
/** Converts a number to a px string. */
|
|
1088
|
+
declare function px(v: number): string;
|
|
1089
|
+
/** Converts a number to a milliseconds string. */
|
|
1090
|
+
declare function ms(v: number): string;
|
|
1091
|
+
/** Returns the number as a unitless CSS string. */
|
|
1092
|
+
declare function unitless(v: number): string;
|
|
1093
|
+
|
|
1094
|
+
export { breakpoints, chart, component, containers, diaSpring, elevation, elevationLight, grid, motion, ms, primitiveColors, px, radius, rem, semanticTokens, spacing, typography, unitless, zIndex };
|