@structyl/styled 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +136 -0
- package/dist/index.cjs +8352 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +4301 -0
- package/dist/index.d.ts +4301 -0
- package/dist/index.mjs +8202 -0
- package/dist/index.mjs.map +1 -0
- package/dist/tailwind-preset.cjs +677 -0
- package/dist/tailwind-preset.cjs.map +1 -0
- package/dist/tailwind-preset.d.cts +843 -0
- package/dist/tailwind-preset.d.ts +843 -0
- package/dist/tailwind-preset.mjs +675 -0
- package/dist/tailwind-preset.mjs.map +1 -0
- package/package.json +80 -0
|
@@ -0,0 +1,677 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
5
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
6
|
+
}) : x)(function(x) {
|
|
7
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
8
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
9
|
+
});
|
|
10
|
+
var __commonJS = (cb, mod) => function __require2() {
|
|
11
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
// ../../node_modules/.pnpm/tailwindcss-animate@1.0.7_tailwindcss@4.3.0/node_modules/tailwindcss-animate/index.js
|
|
15
|
+
var require_tailwindcss_animate = __commonJS({
|
|
16
|
+
"../../node_modules/.pnpm/tailwindcss-animate@1.0.7_tailwindcss@4.3.0/node_modules/tailwindcss-animate/index.js"(exports, module) {
|
|
17
|
+
var plugin = __require("tailwindcss/plugin");
|
|
18
|
+
function filterDefault(values) {
|
|
19
|
+
return Object.fromEntries(
|
|
20
|
+
Object.entries(values).filter(([key]) => key !== "DEFAULT")
|
|
21
|
+
);
|
|
22
|
+
}
|
|
23
|
+
module.exports = plugin(
|
|
24
|
+
({ addUtilities, matchUtilities, theme }) => {
|
|
25
|
+
addUtilities({
|
|
26
|
+
"@keyframes enter": theme("keyframes.enter"),
|
|
27
|
+
"@keyframes exit": theme("keyframes.exit"),
|
|
28
|
+
".animate-in": {
|
|
29
|
+
animationName: "enter",
|
|
30
|
+
animationDuration: theme("animationDuration.DEFAULT"),
|
|
31
|
+
"--tw-enter-opacity": "initial",
|
|
32
|
+
"--tw-enter-scale": "initial",
|
|
33
|
+
"--tw-enter-rotate": "initial",
|
|
34
|
+
"--tw-enter-translate-x": "initial",
|
|
35
|
+
"--tw-enter-translate-y": "initial"
|
|
36
|
+
},
|
|
37
|
+
".animate-out": {
|
|
38
|
+
animationName: "exit",
|
|
39
|
+
animationDuration: theme("animationDuration.DEFAULT"),
|
|
40
|
+
"--tw-exit-opacity": "initial",
|
|
41
|
+
"--tw-exit-scale": "initial",
|
|
42
|
+
"--tw-exit-rotate": "initial",
|
|
43
|
+
"--tw-exit-translate-x": "initial",
|
|
44
|
+
"--tw-exit-translate-y": "initial"
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
matchUtilities(
|
|
48
|
+
{
|
|
49
|
+
"fade-in": (value) => ({ "--tw-enter-opacity": value }),
|
|
50
|
+
"fade-out": (value) => ({ "--tw-exit-opacity": value })
|
|
51
|
+
},
|
|
52
|
+
{ values: theme("animationOpacity") }
|
|
53
|
+
);
|
|
54
|
+
matchUtilities(
|
|
55
|
+
{
|
|
56
|
+
"zoom-in": (value) => ({ "--tw-enter-scale": value }),
|
|
57
|
+
"zoom-out": (value) => ({ "--tw-exit-scale": value })
|
|
58
|
+
},
|
|
59
|
+
{ values: theme("animationScale") }
|
|
60
|
+
);
|
|
61
|
+
matchUtilities(
|
|
62
|
+
{
|
|
63
|
+
"spin-in": (value) => ({ "--tw-enter-rotate": value }),
|
|
64
|
+
"spin-out": (value) => ({ "--tw-exit-rotate": value })
|
|
65
|
+
},
|
|
66
|
+
{ values: theme("animationRotate") }
|
|
67
|
+
);
|
|
68
|
+
matchUtilities(
|
|
69
|
+
{
|
|
70
|
+
"slide-in-from-top": (value) => ({
|
|
71
|
+
"--tw-enter-translate-y": `-${value}`
|
|
72
|
+
}),
|
|
73
|
+
"slide-in-from-bottom": (value) => ({
|
|
74
|
+
"--tw-enter-translate-y": value
|
|
75
|
+
}),
|
|
76
|
+
"slide-in-from-left": (value) => ({
|
|
77
|
+
"--tw-enter-translate-x": `-${value}`
|
|
78
|
+
}),
|
|
79
|
+
"slide-in-from-right": (value) => ({
|
|
80
|
+
"--tw-enter-translate-x": value
|
|
81
|
+
}),
|
|
82
|
+
"slide-out-to-top": (value) => ({
|
|
83
|
+
"--tw-exit-translate-y": `-${value}`
|
|
84
|
+
}),
|
|
85
|
+
"slide-out-to-bottom": (value) => ({
|
|
86
|
+
"--tw-exit-translate-y": value
|
|
87
|
+
}),
|
|
88
|
+
"slide-out-to-left": (value) => ({
|
|
89
|
+
"--tw-exit-translate-x": `-${value}`
|
|
90
|
+
}),
|
|
91
|
+
"slide-out-to-right": (value) => ({
|
|
92
|
+
"--tw-exit-translate-x": value
|
|
93
|
+
})
|
|
94
|
+
},
|
|
95
|
+
{ values: theme("animationTranslate") }
|
|
96
|
+
);
|
|
97
|
+
matchUtilities(
|
|
98
|
+
{ duration: (value) => ({ animationDuration: value }) },
|
|
99
|
+
{ values: filterDefault(theme("animationDuration")) }
|
|
100
|
+
);
|
|
101
|
+
matchUtilities(
|
|
102
|
+
{ delay: (value) => ({ animationDelay: value }) },
|
|
103
|
+
{ values: theme("animationDelay") }
|
|
104
|
+
);
|
|
105
|
+
matchUtilities(
|
|
106
|
+
{ ease: (value) => ({ animationTimingFunction: value }) },
|
|
107
|
+
{ values: filterDefault(theme("animationTimingFunction")) }
|
|
108
|
+
);
|
|
109
|
+
addUtilities({
|
|
110
|
+
".running": { animationPlayState: "running" },
|
|
111
|
+
".paused": { animationPlayState: "paused" }
|
|
112
|
+
});
|
|
113
|
+
matchUtilities(
|
|
114
|
+
{ "fill-mode": (value) => ({ animationFillMode: value }) },
|
|
115
|
+
{ values: theme("animationFillMode") }
|
|
116
|
+
);
|
|
117
|
+
matchUtilities(
|
|
118
|
+
{ direction: (value) => ({ animationDirection: value }) },
|
|
119
|
+
{ values: theme("animationDirection") }
|
|
120
|
+
);
|
|
121
|
+
matchUtilities(
|
|
122
|
+
{ repeat: (value) => ({ animationIterationCount: value }) },
|
|
123
|
+
{ values: theme("animationRepeat") }
|
|
124
|
+
);
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
theme: {
|
|
128
|
+
extend: {
|
|
129
|
+
animationDelay: ({ theme }) => ({
|
|
130
|
+
...theme("transitionDelay")
|
|
131
|
+
}),
|
|
132
|
+
animationDuration: ({ theme }) => ({
|
|
133
|
+
0: "0ms",
|
|
134
|
+
...theme("transitionDuration")
|
|
135
|
+
}),
|
|
136
|
+
animationTimingFunction: ({ theme }) => ({
|
|
137
|
+
...theme("transitionTimingFunction")
|
|
138
|
+
}),
|
|
139
|
+
animationFillMode: {
|
|
140
|
+
none: "none",
|
|
141
|
+
forwards: "forwards",
|
|
142
|
+
backwards: "backwards",
|
|
143
|
+
both: "both"
|
|
144
|
+
},
|
|
145
|
+
animationDirection: {
|
|
146
|
+
normal: "normal",
|
|
147
|
+
reverse: "reverse",
|
|
148
|
+
alternate: "alternate",
|
|
149
|
+
"alternate-reverse": "alternate-reverse"
|
|
150
|
+
},
|
|
151
|
+
animationOpacity: ({ theme }) => ({
|
|
152
|
+
DEFAULT: 0,
|
|
153
|
+
...theme("opacity")
|
|
154
|
+
}),
|
|
155
|
+
animationTranslate: ({ theme }) => ({
|
|
156
|
+
DEFAULT: "100%",
|
|
157
|
+
...theme("translate")
|
|
158
|
+
}),
|
|
159
|
+
animationScale: ({ theme }) => ({
|
|
160
|
+
DEFAULT: 0,
|
|
161
|
+
...theme("scale")
|
|
162
|
+
}),
|
|
163
|
+
animationRotate: ({ theme }) => ({
|
|
164
|
+
DEFAULT: "30deg",
|
|
165
|
+
...theme("rotate")
|
|
166
|
+
}),
|
|
167
|
+
animationRepeat: {
|
|
168
|
+
0: "0",
|
|
169
|
+
1: "1",
|
|
170
|
+
infinite: "infinite"
|
|
171
|
+
},
|
|
172
|
+
keyframes: {
|
|
173
|
+
enter: {
|
|
174
|
+
from: {
|
|
175
|
+
opacity: "var(--tw-enter-opacity, 1)",
|
|
176
|
+
transform: "translate3d(var(--tw-enter-translate-x, 0), var(--tw-enter-translate-y, 0), 0) scale3d(var(--tw-enter-scale, 1), var(--tw-enter-scale, 1), var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))"
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
exit: {
|
|
180
|
+
to: {
|
|
181
|
+
opacity: "var(--tw-exit-opacity, 1)",
|
|
182
|
+
transform: "translate3d(var(--tw-exit-translate-x, 0), var(--tw-exit-translate-y, 0), 0) scale3d(var(--tw-exit-scale, 1), var(--tw-exit-scale, 1), var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))"
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
);
|
|
190
|
+
}
|
|
191
|
+
});
|
|
192
|
+
|
|
193
|
+
// src/tailwind-preset.ts
|
|
194
|
+
var animate = require_tailwindcss_animate();
|
|
195
|
+
var twPlugin = __require("tailwindcss/plugin");
|
|
196
|
+
var preset = {
|
|
197
|
+
darkMode: ["class", '[data-mode="dark"]'],
|
|
198
|
+
content: [],
|
|
199
|
+
theme: {
|
|
200
|
+
extend: {
|
|
201
|
+
colors: {
|
|
202
|
+
// ── Existing base tokens (backwards-compatible) ─────────────────────
|
|
203
|
+
bg: "hsl(var(--color-bg) / <alpha-value>)",
|
|
204
|
+
fg: "hsl(var(--color-fg) / <alpha-value>)",
|
|
205
|
+
background: "hsl(var(--color-bg) / <alpha-value>)",
|
|
206
|
+
foreground: "hsl(var(--color-fg) / <alpha-value>)",
|
|
207
|
+
card: {
|
|
208
|
+
DEFAULT: "hsl(var(--color-card) / <alpha-value>)",
|
|
209
|
+
foreground: "hsl(var(--color-card-fg) / <alpha-value>)"
|
|
210
|
+
},
|
|
211
|
+
popover: {
|
|
212
|
+
DEFAULT: "hsl(var(--color-popover) / <alpha-value>)",
|
|
213
|
+
foreground: "hsl(var(--color-popover-fg) / <alpha-value>)"
|
|
214
|
+
},
|
|
215
|
+
// ── Primary — extended with palette sub-tokens ──────────────────────
|
|
216
|
+
primary: {
|
|
217
|
+
DEFAULT: "hsl(var(--color-primary) / <alpha-value>)",
|
|
218
|
+
foreground: "hsl(var(--color-primary-fg) / <alpha-value>)",
|
|
219
|
+
hover: "hsl(var(--color-primary-hover) / <alpha-value>)",
|
|
220
|
+
active: "hsl(var(--color-primary-active) / <alpha-value>)",
|
|
221
|
+
light: "rgb(var(--color-primary-light) / <alpha-value>)",
|
|
222
|
+
dark: "rgb(var(--color-primary-dark) / <alpha-value>)",
|
|
223
|
+
contrast: "rgb(var(--color-primary-contrast) / <alpha-value>)",
|
|
224
|
+
"dark-bg": "rgb(var(--color-primary-dark-bg) / <alpha-value>)",
|
|
225
|
+
"state-contained": "var(--color-primary-state-contained)",
|
|
226
|
+
"state-outlined": "var(--color-primary-state-outlined)",
|
|
227
|
+
"state-resting": "var(--color-primary-state-resting)",
|
|
228
|
+
"shade-12": "var(--color-primary-shade-12)",
|
|
229
|
+
"shade-16": "var(--color-primary-shade-16)"
|
|
230
|
+
},
|
|
231
|
+
// ── Secondary — extended ────────────────────────────────────────────
|
|
232
|
+
secondary: {
|
|
233
|
+
DEFAULT: "hsl(var(--color-secondary) / <alpha-value>)",
|
|
234
|
+
foreground: "hsl(var(--color-secondary-fg) / <alpha-value>)",
|
|
235
|
+
light: "rgb(var(--color-secondary-light) / <alpha-value>)",
|
|
236
|
+
dark: "rgb(var(--color-secondary-dark) / <alpha-value>)",
|
|
237
|
+
contrast: "rgb(var(--color-secondary-contrast) / <alpha-value>)",
|
|
238
|
+
"dark-bg": "rgb(var(--color-secondary-dark-bg) / <alpha-value>)",
|
|
239
|
+
"state-contained": "var(--color-secondary-state-contained)",
|
|
240
|
+
"state-outlined": "var(--color-secondary-state-outlined)",
|
|
241
|
+
"state-resting": "var(--color-secondary-state-resting)",
|
|
242
|
+
"shade-12": "var(--color-secondary-shade-12)",
|
|
243
|
+
"shade-16": "var(--color-secondary-shade-16)"
|
|
244
|
+
},
|
|
245
|
+
muted: {
|
|
246
|
+
DEFAULT: "hsl(var(--color-muted) / <alpha-value>)",
|
|
247
|
+
foreground: "hsl(var(--color-muted-fg) / <alpha-value>)"
|
|
248
|
+
},
|
|
249
|
+
accent: {
|
|
250
|
+
DEFAULT: "hsl(var(--color-accent) / <alpha-value>)",
|
|
251
|
+
foreground: "hsl(var(--color-accent-fg) / <alpha-value>)"
|
|
252
|
+
},
|
|
253
|
+
// ── Destructive — extended (alias for error) ────────────────────────
|
|
254
|
+
destructive: {
|
|
255
|
+
DEFAULT: "hsl(var(--color-destructive) / <alpha-value>)",
|
|
256
|
+
foreground: "hsl(var(--color-destructive-fg) / <alpha-value>)",
|
|
257
|
+
light: "rgb(var(--color-error-light) / <alpha-value>)",
|
|
258
|
+
dark: "rgb(var(--color-error-dark) / <alpha-value>)",
|
|
259
|
+
contrast: "rgb(var(--color-error-contrast) / <alpha-value>)",
|
|
260
|
+
"shade-12": "var(--color-error-shade-12)",
|
|
261
|
+
"shade-16": "var(--color-error-shade-16)",
|
|
262
|
+
"state-contained": "var(--color-error-state-contained)",
|
|
263
|
+
"state-outlined": "var(--color-error-state-outlined)",
|
|
264
|
+
"state-resting": "var(--color-error-state-resting)",
|
|
265
|
+
"alert-bg": "var(--color-error-alert-bg)",
|
|
266
|
+
"alert-content": "var(--color-error-alert-content)"
|
|
267
|
+
},
|
|
268
|
+
// ── Error — alias for destructive, for the new color prop ───────────
|
|
269
|
+
error: {
|
|
270
|
+
DEFAULT: "hsl(var(--color-destructive) / <alpha-value>)",
|
|
271
|
+
foreground: "hsl(var(--color-destructive-fg) / <alpha-value>)",
|
|
272
|
+
light: "rgb(var(--color-error-light) / <alpha-value>)",
|
|
273
|
+
dark: "rgb(var(--color-error-dark) / <alpha-value>)",
|
|
274
|
+
contrast: "rgb(var(--color-error-contrast) / <alpha-value>)",
|
|
275
|
+
"shade-12": "var(--color-error-shade-12)",
|
|
276
|
+
"shade-16": "var(--color-error-shade-16)",
|
|
277
|
+
"state-contained": "var(--color-error-state-contained)",
|
|
278
|
+
"state-outlined": "var(--color-error-state-outlined)",
|
|
279
|
+
"state-resting": "var(--color-error-state-resting)",
|
|
280
|
+
"alert-bg": "var(--color-error-alert-bg)",
|
|
281
|
+
"alert-content": "var(--color-error-alert-content)"
|
|
282
|
+
},
|
|
283
|
+
// ── Success — extended ──────────────────────────────────────────────
|
|
284
|
+
success: {
|
|
285
|
+
DEFAULT: "hsl(var(--color-success) / <alpha-value>)",
|
|
286
|
+
foreground: "hsl(var(--color-success-fg) / <alpha-value>)",
|
|
287
|
+
light: "rgb(var(--color-success-light) / <alpha-value>)",
|
|
288
|
+
dark: "rgb(var(--color-success-dark) / <alpha-value>)",
|
|
289
|
+
contrast: "rgb(var(--color-success-contrast) / <alpha-value>)",
|
|
290
|
+
"shade-12": "var(--color-success-shade-12)",
|
|
291
|
+
"shade-16": "var(--color-success-shade-16)",
|
|
292
|
+
"state-contained": "var(--color-success-state-contained)",
|
|
293
|
+
"state-outlined": "var(--color-success-state-outlined)",
|
|
294
|
+
"state-resting": "var(--color-success-state-resting)",
|
|
295
|
+
"alert-bg": "var(--color-success-alert-bg)",
|
|
296
|
+
"alert-content": "var(--color-success-alert-content)"
|
|
297
|
+
},
|
|
298
|
+
// ── Warning — extended ──────────────────────────────────────────────
|
|
299
|
+
warning: {
|
|
300
|
+
DEFAULT: "hsl(var(--color-warning) / <alpha-value>)",
|
|
301
|
+
foreground: "hsl(var(--color-warning-fg) / <alpha-value>)",
|
|
302
|
+
light: "rgb(var(--color-warning-light) / <alpha-value>)",
|
|
303
|
+
dark: "rgb(var(--color-warning-dark) / <alpha-value>)",
|
|
304
|
+
contrast: "rgb(var(--color-warning-contrast) / <alpha-value>)",
|
|
305
|
+
"shade-12": "var(--color-warning-shade-12)",
|
|
306
|
+
"shade-16": "var(--color-warning-shade-16)",
|
|
307
|
+
"state-contained": "var(--color-warning-state-contained)",
|
|
308
|
+
"state-outlined": "var(--color-warning-state-outlined)",
|
|
309
|
+
"state-resting": "var(--color-warning-state-resting)",
|
|
310
|
+
"alert-bg": "var(--color-warning-alert-bg)",
|
|
311
|
+
"alert-content": "var(--color-warning-alert-content)"
|
|
312
|
+
},
|
|
313
|
+
// ── Info — extended ─────────────────────────────────────────────────
|
|
314
|
+
info: {
|
|
315
|
+
DEFAULT: "hsl(var(--color-info) / <alpha-value>)",
|
|
316
|
+
foreground: "hsl(var(--color-info-fg) / <alpha-value>)",
|
|
317
|
+
light: "rgb(var(--color-info-light) / <alpha-value>)",
|
|
318
|
+
dark: "rgb(var(--color-info-dark) / <alpha-value>)",
|
|
319
|
+
contrast: "rgb(var(--color-info-contrast) / <alpha-value>)",
|
|
320
|
+
"shade-12": "var(--color-info-shade-12)",
|
|
321
|
+
"shade-16": "var(--color-info-shade-16)",
|
|
322
|
+
"state-contained": "var(--color-info-state-contained)",
|
|
323
|
+
"state-outlined": "var(--color-info-state-outlined)",
|
|
324
|
+
"state-resting": "var(--color-info-state-resting)",
|
|
325
|
+
"alert-bg": "var(--color-info-alert-bg)",
|
|
326
|
+
"alert-content": "var(--color-info-alert-content)"
|
|
327
|
+
},
|
|
328
|
+
// ── Existing misc tokens ────────────────────────────────────────────
|
|
329
|
+
border: "hsl(var(--color-border) / <alpha-value>)",
|
|
330
|
+
"border-strong": "hsl(var(--color-border-strong) / <alpha-value>)",
|
|
331
|
+
input: "hsl(var(--color-input) / <alpha-value>)",
|
|
332
|
+
ring: "hsl(var(--color-ring) / <alpha-value>)",
|
|
333
|
+
overlay: "hsl(var(--color-overlay) / <alpha-value>)",
|
|
334
|
+
// ── New: text sub-tokens ────────────────────────────────────────────
|
|
335
|
+
"fg-secondary": "var(--color-text-secondary)",
|
|
336
|
+
"fg-disabled": "var(--color-text-disabled)",
|
|
337
|
+
"fg-info": "rgb(var(--color-text-info) / <alpha-value>)",
|
|
338
|
+
"fg-fill": "rgb(var(--color-text-fill) / <alpha-value>)",
|
|
339
|
+
"fg-shade-12": "var(--color-text-shade-12)",
|
|
340
|
+
"fg-shade-16": "var(--color-text-shade-16)",
|
|
341
|
+
// ── New: surface ────────────────────────────────────────────────────
|
|
342
|
+
surface: {
|
|
343
|
+
DEFAULT: "rgb(var(--color-surface) / <alpha-value>)",
|
|
344
|
+
paper: "rgb(var(--color-surface-paper) / <alpha-value>)"
|
|
345
|
+
},
|
|
346
|
+
// ── New: divider / borders ──────────────────────────────────────────
|
|
347
|
+
divider: "var(--color-divider)",
|
|
348
|
+
"outlined-border": "var(--color-outlined-border)",
|
|
349
|
+
"input-line": "var(--color-input-line)",
|
|
350
|
+
// ── New: action tokens ──────────────────────────────────────────────
|
|
351
|
+
action: {
|
|
352
|
+
active: "var(--color-action-active)",
|
|
353
|
+
hover: "var(--color-action-hover)",
|
|
354
|
+
selected: "var(--color-action-selected)",
|
|
355
|
+
disabled: "var(--color-action-disabled)",
|
|
356
|
+
"disabled-bg": "var(--color-action-disabled-bg)",
|
|
357
|
+
focus: "var(--color-action-focus)"
|
|
358
|
+
},
|
|
359
|
+
// ── New: misc tokens ────────────────────────────────────────────────
|
|
360
|
+
backdrop: "var(--color-backdrop, rgba(0, 0, 0, 0.5))",
|
|
361
|
+
"rating-active": "rgb(var(--color-rating-active, 250 176 5) / <alpha-value>)",
|
|
362
|
+
"snackbar-bg": "rgb(var(--color-snackbar-bg) / <alpha-value>)",
|
|
363
|
+
// ── New: table tokens ───────────────────────────────────────────────
|
|
364
|
+
table: {
|
|
365
|
+
"top-header": "rgb(var(--color-table-top-header) / <alpha-value>)",
|
|
366
|
+
header: "rgb(var(--color-table-header) / <alpha-value>)",
|
|
367
|
+
row: "rgb(var(--color-table-row) / <alpha-value>)",
|
|
368
|
+
"col-border": "rgb(var(--color-table-col-border) / <alpha-value>)",
|
|
369
|
+
border: "var(--color-table-border)"
|
|
370
|
+
},
|
|
371
|
+
// ── General named colors (static rgba, no CSS var) ──────────────────
|
|
372
|
+
general: {
|
|
373
|
+
"yellow-golden": "rgba(255, 215, 0, 0.6)",
|
|
374
|
+
"yellow-pale": "rgba(255, 255, 153, 0.4)",
|
|
375
|
+
"yellow-amber": "rgba(255, 191, 0, 0.7)",
|
|
376
|
+
"yellow-sunshine": "rgba(255, 239, 0, 0.5)",
|
|
377
|
+
"yellow-light": "rgba(255, 255, 0, 0.5)",
|
|
378
|
+
"yellow-warm": "rgba(255, 204, 0, 0.8)",
|
|
379
|
+
"yellow-soft": "rgba(255, 229, 153, 0.7)",
|
|
380
|
+
"red-rose": "rgba(255, 51, 51, 0.5)",
|
|
381
|
+
"red-crimson": "rgba(220, 20, 60, 0.6)",
|
|
382
|
+
"red-light-coral": "rgba(240, 128, 128, 0.5)",
|
|
383
|
+
"red-fire-brick": "rgba(178, 34, 34, 0.8)",
|
|
384
|
+
"red-bright": "rgba(255, 0, 0, 0.7)",
|
|
385
|
+
"red-soft-coral": "rgba(255, 102, 102, 0.6)",
|
|
386
|
+
"red-dark": "rgba(204, 0, 0, 0.8)",
|
|
387
|
+
"blue-turquoise": "rgba(64, 224, 208, 0.6)",
|
|
388
|
+
"blue-dodger": "rgba(30, 144, 255, 0.5)",
|
|
389
|
+
"blue-navy": "rgba(0, 0, 128, 0.8)",
|
|
390
|
+
"blue-steel": "rgba(70, 130, 180, 0.7)",
|
|
391
|
+
"blue-sky": "rgba(0, 153, 255, 0.5)",
|
|
392
|
+
"blue-light": "rgba(51, 204, 255, 0.7)",
|
|
393
|
+
"blue-deep": "rgba(0, 51, 204, 0.8)",
|
|
394
|
+
"green-lime": "rgba(50, 205, 50, 0.5)",
|
|
395
|
+
"green-pale": "rgba(152, 251, 152, 0.4)",
|
|
396
|
+
"green-forest": "rgba(34, 139, 34, 0.7)",
|
|
397
|
+
"green-olive": "rgba(128, 128, 0, 0.6)",
|
|
398
|
+
"green-fresh": "rgba(0, 204, 0, 0.6)",
|
|
399
|
+
"green-soft-mint": "rgba(102, 255, 153, 0.7)",
|
|
400
|
+
"green-dark": "rgba(0, 153, 76, 0.8)",
|
|
401
|
+
"orange-tangerine": "rgba(255, 140, 0, 0.6)",
|
|
402
|
+
"orange-apricot": "rgba(251, 206, 177, 0.5)",
|
|
403
|
+
"orange-burnt": "rgba(204, 85, 0, 0.7)",
|
|
404
|
+
"orange-carrot": "rgba(237, 145, 33, 0.6)",
|
|
405
|
+
"orange-bright": "rgba(255, 102, 0, 0.7)",
|
|
406
|
+
"orange-soft-peach": "rgba(255, 178, 102, 0.6)",
|
|
407
|
+
"orange-deep": "rgba(204, 85, 0, 0.8)"
|
|
408
|
+
},
|
|
409
|
+
// ── Material palette scales (static hex, no CSS var) ─────────────────
|
|
410
|
+
palette: {
|
|
411
|
+
yellow: { "50": "#fffde7", "100": "#fff9c4", "200": "#fff59d", "300": "#fff176", "400": "#ffee58", "500": "#ffeb3b", "600": "#fdd835", "700": "#fbc02d", "800": "#f9a825", "900": "#f57f17", A100: "#ffff8d", A200: "#ffff00", A400: "#ffea00", A700: "#ffd600" },
|
|
412
|
+
amber: { "50": "#fff8e1", "100": "#ffecb3", "200": "#ffe082", "300": "#ffd54f", "400": "#ffca28", "500": "#ffc107", "600": "#ffb300", "700": "#ffa000", "800": "#ff8f00", "900": "#ff6f00", A100: "#ffe57f", A200: "#ffd740", A400: "#ffc400", A700: "#ffab00" },
|
|
413
|
+
blue: { "50": "#e3f2fd", "100": "#bbdefb", "200": "#90caf9", "300": "#64b5f6", "400": "#42a5f5", "500": "#2196f3", "600": "#1e88e5", "700": "#1976d2", "800": "#1565c0", "900": "#0d47a1", A100: "#82b1ff", A200: "#448aff", A400: "#2979ff", A700: "#2962ff" },
|
|
414
|
+
"blue-grey": { "50": "#eceff1", "100": "#cfd8dc", "200": "#b0bec5", "300": "#90a4ae", "400": "#78909c", "500": "#607d8b", "600": "#546e7a", "700": "#455a64", "800": "#37474f", "900": "#263238", A100: "#cfd8dc", A200: "#b0bec5", A400: "#78909c", A700: "#455a64" },
|
|
415
|
+
brown: { "50": "#efebe9", "100": "#d7ccc8", "200": "#bcaaa4", "300": "#a1887f", "400": "#8d6e63", "500": "#795548", "600": "#6d4c41", "700": "#5d4037", "800": "#4e342e", "900": "#3e2723", A100: "#d7ccc8", A200: "#bcaaa4", A400: "#8d6e63", A700: "#5d4037" },
|
|
416
|
+
teal: { "50": "#e0f2f1", "100": "#b2dfdb", "200": "#80cbc4", "300": "#4db6ac", "400": "#26a69a", "500": "#009688", "600": "#00897b", "700": "#00796b", "800": "#00695c", "900": "#004d40", A100: "#a7ffeb", A200: "#64ffda", A400: "#1de9b6", A700: "#00bfa5" },
|
|
417
|
+
red: { "50": "#ffebee", "100": "#ffcdd2", "200": "#ef9a9a", "300": "#e57373", "400": "#ef5350", "500": "#f44336", "600": "#e53935", "700": "#d32f2f", "800": "#c62828", "900": "#b71c1c", A100: "#ff8a80", A200: "#ff5252", A400: "#ff1744", A700: "#d50000" },
|
|
418
|
+
purple: { "50": "#f3e5f5", "100": "#e1bee7", "200": "#ce93d8", "300": "#ba68c8", "400": "#ab47bc", "500": "#9c27b0", "600": "#8e24aa", "700": "#7b1fa2", "800": "#6a1b9a", "900": "#4a148c", A100: "#ea80fc", A200: "#e040fb", A400: "#d500f9", A700: "#aa00ff" },
|
|
419
|
+
pink: { "50": "#fce4ec", "100": "#f8bbd0", "200": "#f48fb1", "300": "#f06292", "400": "#ec407a", "500": "#e91e63", "600": "#d81b60", "700": "#c2185b", "800": "#ad1457", "900": "#880e4f", A100: "#ff80ab", A200: "#ff4081", A400: "#f50057", A700: "#c51162" },
|
|
420
|
+
orange: { "50": "#fff3e0", "100": "#ffe0b2", "200": "#ffcc80", "300": "#ffb74d", "400": "#ffa726", "500": "#ff9800", "600": "#fb8c00", "700": "#f57c00", "800": "#ef6c00", "900": "#e65100", A100: "#ffd180", A200: "#ffab40", A400: "#ff9100", A700: "#ff6d00" },
|
|
421
|
+
lime: { "50": "#f9fbe7", "100": "#f0f4c3", "200": "#e6ee9c", "300": "#dce775", "400": "#d4e157", "500": "#cddc39", "600": "#c0ca33", "700": "#afb42b", "800": "#9e9d24", "900": "#827717", A100: "#f4ff81", A200: "#eeff41", A400: "#c6ff00", A700: "#aeea00" },
|
|
422
|
+
"light-green": { "50": "#f1f8e9", "100": "#dcedc8", "200": "#c5e1a5", "300": "#aed581", "400": "#9ccc65", "500": "#8bc34a", "600": "#7cb342", "700": "#689f38", "800": "#558b2f", "900": "#33691e", A100: "#ccff90", A200: "#b2ff59", A400: "#76ff03", A700: "#64dd17" },
|
|
423
|
+
cyan: { "50": "#e0f7fa", "100": "#b2ebf2", "200": "#80deea", "300": "#4dd0e1", "400": "#26c6da", "500": "#00bcd4", "600": "#00acc1", "700": "#0097a7", "800": "#00838f", "900": "#006064", A100: "#84ffff", A200: "#18ffff", A400: "#00e5ff", A700: "#00b8d4" },
|
|
424
|
+
"deep-orange": { "50": "#fbe9e7", "100": "#ffccbc", "200": "#ffab91", "300": "#ff8a65", "400": "#ff7043", "500": "#ff5722", "600": "#f4511e", "700": "#e64a19", "800": "#d84315", "900": "#bf360c", A100: "#ff9e80", A200: "#ff6e40", A400: "#ff3d00", A700: "#dd2c00" },
|
|
425
|
+
"deep-purple": { "50": "#ede7f6", "100": "#d1c4e9", "200": "#b39ddb", "300": "#9575cd", "400": "#7e57c2", "500": "#673ab7", "600": "#5e35b1", "700": "#512da8", "800": "#4527a0", "900": "#311b92", A100: "#b388ff", A200: "#7c4dff", A400: "#651fff", A700: "#6200ea" },
|
|
426
|
+
green: { "50": "#e8f5e9", "100": "#c8e6c9", "200": "#a5d6a7", "300": "#81c784", "400": "#66bb6a", "500": "#4caf50", "600": "#43a047", "700": "#388e3c", "800": "#2e7d32", "900": "#1b5e20", A100: "#b9f6ca", A200: "#69f0ae", A400: "#00e676", A700: "#00c853" },
|
|
427
|
+
grey: { "50": "#fafafa", "100": "#f5f5f5", "200": "#eeeeee", "300": "#e0e0e0", "400": "#bdbdbd", "500": "#9e9e9e", "600": "#757575", "700": "#616161", "800": "#424242", "900": "#212121", A100: "#f5f5f5", A200: "#eeeeee", A400: "#bdbdbd", A700: "#616161" },
|
|
428
|
+
indigo: { "50": "#e8eaf6", "100": "#c5cae9", "200": "#9fa8da", "300": "#7986cb", "400": "#5c6bc0", "500": "#3f51b5", "600": "#3949ab", "700": "#303f9f", "800": "#283593", "900": "#1a237e", A100: "#8c9eff", A200: "#536dfe", A400: "#3d5afe", A700: "#304ffe" },
|
|
429
|
+
"light-blue": { "50": "#e1f5fe", "100": "#b3e5fc", "200": "#81d4fa", "300": "#4fc3f7", "400": "#29b6f6", "500": "#03a9f4", "600": "#039be5", "700": "#0288d1", "800": "#0277bd", "900": "#01579b", A100: "#80d8ff", A200: "#40c4ff", A400: "#00b0ff", A700: "#0091ea" }
|
|
430
|
+
}
|
|
431
|
+
},
|
|
432
|
+
borderRadius: {
|
|
433
|
+
"2xl": "calc(var(--radius, 0.5rem) + 8px)",
|
|
434
|
+
xl: "calc(var(--radius, 0.5rem) + 4px)",
|
|
435
|
+
lg: "var(--radius, 0.5rem)",
|
|
436
|
+
md: "calc(var(--radius, 0.5rem) - 2px)",
|
|
437
|
+
sm: "calc(var(--radius, 0.5rem) - 4px)",
|
|
438
|
+
xs: "calc(var(--radius, 0.5rem) - 6px)"
|
|
439
|
+
},
|
|
440
|
+
boxShadow: {
|
|
441
|
+
xs: "var(--shadow-xs, 0 1px 2px 0 hsl(var(--color-shadow) / 0.04))",
|
|
442
|
+
sm: "var(--shadow-sm, 0 1px 2px 0 hsl(var(--color-shadow) / 0.05), 0 1px 3px 0 hsl(var(--color-shadow) / 0.06))",
|
|
443
|
+
DEFAULT: "var(--shadow, 0 1px 2px 0 hsl(var(--color-shadow) / 0.06), 0 4px 8px -2px hsl(var(--color-shadow) / 0.08))",
|
|
444
|
+
md: "var(--shadow-md, 0 4px 8px -1px hsl(var(--color-shadow) / 0.08), 0 2px 4px -2px hsl(var(--color-shadow) / 0.08))",
|
|
445
|
+
lg: "var(--shadow-lg, 0 10px 24px -3px hsl(var(--color-shadow) / 0.12), 0 4px 8px -4px hsl(var(--color-shadow) / 0.10))",
|
|
446
|
+
xl: "var(--shadow-xl, 0 20px 32px -5px hsl(var(--color-shadow) / 0.14), 0 8px 16px -6px hsl(var(--color-shadow) / 0.12))",
|
|
447
|
+
"2xl": "var(--shadow-2xl, 0 32px 64px -12px hsl(var(--color-shadow) / 0.22))",
|
|
448
|
+
inner: "var(--shadow-inner, inset 0 2px 4px 0 hsl(var(--color-shadow) / 0.05))",
|
|
449
|
+
button: "0 0.5px 1px 0 hsl(var(--color-shadow) / 0.10), 0 1px 2px 0 hsl(var(--color-shadow) / 0.08), inset 0 1px 0 0 hsl(0 0% 100% / 0.10)",
|
|
450
|
+
"button-active": "inset 0 1px 2px 0 hsl(var(--color-shadow) / 0.12)",
|
|
451
|
+
overlay: "0 10px 38px -10px hsl(var(--color-shadow) / 0.35), 0 10px 20px -15px hsl(var(--color-shadow) / 0.20)",
|
|
452
|
+
ring: "0 0 0 2px hsl(var(--color-bg)), 0 0 0 4px hsl(var(--color-ring) / 0.45)"
|
|
453
|
+
},
|
|
454
|
+
transitionTimingFunction: {
|
|
455
|
+
"ease-out-quint": "cubic-bezier(0.22, 1, 0.36, 1)",
|
|
456
|
+
"ease-out-back": "cubic-bezier(0.34, 1.56, 0.64, 1)",
|
|
457
|
+
"ease-in-out-quad": "cubic-bezier(0.45, 0, 0.55, 1)",
|
|
458
|
+
spring: "cubic-bezier(0.16, 1, 0.3, 1)",
|
|
459
|
+
smooth: "cubic-bezier(0.4, 0, 0.2, 1)"
|
|
460
|
+
},
|
|
461
|
+
transitionDuration: {
|
|
462
|
+
instant: "50ms",
|
|
463
|
+
snappy: "120ms",
|
|
464
|
+
smooth: "180ms",
|
|
465
|
+
comfortable: "240ms",
|
|
466
|
+
relaxed: "320ms"
|
|
467
|
+
},
|
|
468
|
+
backdropBlur: {
|
|
469
|
+
xs: "2px",
|
|
470
|
+
glass: "10px"
|
|
471
|
+
},
|
|
472
|
+
fontFamily: {
|
|
473
|
+
sans: ["var(--font-sans, -apple-system)", "BlinkMacSystemFont", "ui-sans-serif", "system-ui", "Segoe UI", "Roboto", "sans-serif"],
|
|
474
|
+
mono: ["var(--font-mono, ui-monospace)", "SFMono-Regular", "Menlo", "Consolas", "monospace"]
|
|
475
|
+
},
|
|
476
|
+
keyframes: {
|
|
477
|
+
"fade-in": { from: { opacity: "0" }, to: { opacity: "1" } },
|
|
478
|
+
"fade-out": { from: { opacity: "1" }, to: { opacity: "0" } },
|
|
479
|
+
"zoom-in": { from: { opacity: "0", transform: "scale(0.96)" }, to: { opacity: "1", transform: "scale(1)" } },
|
|
480
|
+
"zoom-out": { from: { opacity: "1", transform: "scale(1)" }, to: { opacity: "0", transform: "scale(0.96)" } },
|
|
481
|
+
"slide-in-from-top": { from: { transform: "translateY(-12px)", opacity: "0" }, to: { transform: "translateY(0)", opacity: "1" } },
|
|
482
|
+
"slide-out-to-top": { from: { transform: "translateY(0)", opacity: "1" }, to: { transform: "translateY(-12px)", opacity: "0" } },
|
|
483
|
+
"slide-in-from-bottom": { from: { transform: "translateY(12px)", opacity: "0" }, to: { transform: "translateY(0)", opacity: "1" } },
|
|
484
|
+
"slide-out-to-bottom": { from: { transform: "translateY(0)", opacity: "1" }, to: { transform: "translateY(12px)", opacity: "0" } },
|
|
485
|
+
"slide-in-from-left": { from: { transform: "translateX(-12px)", opacity: "0" }, to: { transform: "translateX(0)", opacity: "1" } },
|
|
486
|
+
"slide-out-to-left": { from: { transform: "translateX(0)", opacity: "1" }, to: { transform: "translateX(-12px)", opacity: "0" } },
|
|
487
|
+
"slide-in-from-right": { from: { transform: "translateX(12px)", opacity: "0" }, to: { transform: "translateX(0)", opacity: "1" } },
|
|
488
|
+
"slide-out-to-right": { from: { transform: "translateX(0)", opacity: "1" }, to: { transform: "translateX(12px)", opacity: "0" } },
|
|
489
|
+
"sheet-in-from-top": { from: { transform: "translateY(-100%)" }, to: { transform: "translateY(0)" } },
|
|
490
|
+
"sheet-out-to-top": { from: { transform: "translateY(0)" }, to: { transform: "translateY(-100%)" } },
|
|
491
|
+
"sheet-in-from-bottom": { from: { transform: "translateY(100%)" }, to: { transform: "translateY(0)" } },
|
|
492
|
+
"sheet-out-to-bottom": { from: { transform: "translateY(0)" }, to: { transform: "translateY(100%)" } },
|
|
493
|
+
"sheet-in-from-left": { from: { transform: "translateX(-100%)" }, to: { transform: "translateX(0)" } },
|
|
494
|
+
"sheet-out-to-left": { from: { transform: "translateX(0)" }, to: { transform: "translateX(-100%)" } },
|
|
495
|
+
"sheet-in-from-right": { from: { transform: "translateX(100%)" }, to: { transform: "translateX(0)" } },
|
|
496
|
+
"sheet-out-to-right": { from: { transform: "translateX(0)" }, to: { transform: "translateX(100%)" } },
|
|
497
|
+
"collapsible-down": { from: { height: "0", opacity: "0" }, to: { height: "var(--structyl-collapsible-content-height)", opacity: "1" } },
|
|
498
|
+
"collapsible-up": { from: { height: "var(--structyl-collapsible-content-height)", opacity: "1" }, to: { height: "0", opacity: "0" } },
|
|
499
|
+
"progress-indeterminate": { "0%": { transform: "translateX(-100%)" }, "100%": { transform: "translateX(200%)" } },
|
|
500
|
+
"skeleton-pulse": { "0%, 100%": { opacity: "0.5" }, "50%": { opacity: "0.8" } },
|
|
501
|
+
"spring-press": { "0%": { transform: "scale(1)" }, "50%": { transform: "scale(0.97)" }, "100%": { transform: "scale(1)" } },
|
|
502
|
+
"toast-in": { from: { transform: "translateY(calc(100% + 1rem))", opacity: "0" }, to: { transform: "translateY(0)", opacity: "1" } },
|
|
503
|
+
"toast-out": { from: { transform: "translateX(0)", opacity: "1" }, to: { transform: "translateX(calc(100% + 1rem))", opacity: "0" } },
|
|
504
|
+
shimmer: { "0%": { transform: "translateX(-100%)" }, "100%": { transform: "translateX(100%)" } },
|
|
505
|
+
"progress-stripes": { "0%": { backgroundPosition: "1rem 0" }, "100%": { backgroundPosition: "0 0" } },
|
|
506
|
+
bars: { "0%": { transform: "scaleY(0.4)" }, "100%": { transform: "scaleY(1.0)" } }
|
|
507
|
+
},
|
|
508
|
+
animation: {
|
|
509
|
+
"fade-in": "fade-in 180ms cubic-bezier(0.22, 1, 0.36, 1)",
|
|
510
|
+
"fade-out": "fade-out 120ms cubic-bezier(0.4, 0, 1, 1)",
|
|
511
|
+
"zoom-in": "zoom-in 200ms cubic-bezier(0.16, 1, 0.3, 1)",
|
|
512
|
+
"zoom-out": "zoom-out 120ms cubic-bezier(0.4, 0, 1, 1)",
|
|
513
|
+
"collapsible-down": "collapsible-down 220ms cubic-bezier(0.22, 1, 0.36, 1)",
|
|
514
|
+
"collapsible-up": "collapsible-up 180ms cubic-bezier(0.4, 0, 0.2, 1)",
|
|
515
|
+
"progress-indeterminate": "progress-indeterminate 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite",
|
|
516
|
+
"progress-stripes": "progress-stripes 1s linear infinite",
|
|
517
|
+
"skeleton-pulse": "skeleton-pulse 1.5s ease-in-out infinite",
|
|
518
|
+
"spring-press": "spring-press 180ms cubic-bezier(0.34, 1.56, 0.64, 1)",
|
|
519
|
+
"toast-in": "toast-in 220ms cubic-bezier(0.16, 1, 0.3, 1)",
|
|
520
|
+
"toast-out": "toast-out 180ms cubic-bezier(0.4, 0, 1, 1)",
|
|
521
|
+
shimmer: "shimmer 1.5s ease-in-out infinite",
|
|
522
|
+
bars: "bars 1s ease-in-out infinite alternate"
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
},
|
|
526
|
+
plugins: [
|
|
527
|
+
animate,
|
|
528
|
+
twPlugin(({
|
|
529
|
+
addBase,
|
|
530
|
+
addUtilities
|
|
531
|
+
}) => {
|
|
532
|
+
addBase({
|
|
533
|
+
":root": {
|
|
534
|
+
// Headings
|
|
535
|
+
"--typography-h1-size": "3.5rem",
|
|
536
|
+
"--typography-h1-weight": "800",
|
|
537
|
+
"--typography-h1-line-height": "1.2",
|
|
538
|
+
"--typography-h1-letter-spacing": "-0.02em",
|
|
539
|
+
"--typography-h2-size": "2.75rem",
|
|
540
|
+
"--typography-h2-weight": "800",
|
|
541
|
+
"--typography-h2-line-height": "1.25",
|
|
542
|
+
"--typography-h2-letter-spacing": "-0.01em",
|
|
543
|
+
"--typography-h3-size": "2rem",
|
|
544
|
+
"--typography-h3-weight": "700",
|
|
545
|
+
"--typography-h3-line-height": "1.3",
|
|
546
|
+
"--typography-h4-size": "1.5rem",
|
|
547
|
+
"--typography-h4-weight": "700",
|
|
548
|
+
"--typography-h4-line-height": "1.35",
|
|
549
|
+
"--typography-h5-size": "1.25rem",
|
|
550
|
+
"--typography-h5-weight": "600",
|
|
551
|
+
"--typography-h5-line-height": "1.4",
|
|
552
|
+
"--typography-h6-size": "1rem",
|
|
553
|
+
"--typography-h6-weight": "600",
|
|
554
|
+
"--typography-h6-line-height": "1.5",
|
|
555
|
+
"--typography-h6-letter-spacing": "0.0075em",
|
|
556
|
+
// Subtitles
|
|
557
|
+
"--typography-subtitle1-size": "1rem",
|
|
558
|
+
"--typography-subtitle1-weight": "500",
|
|
559
|
+
"--typography-subtitle1-line-height": "1.75",
|
|
560
|
+
"--typography-subtitle1-letter-spacing": "0.009em",
|
|
561
|
+
"--typography-subtitle2-size": "0.875rem",
|
|
562
|
+
"--typography-subtitle2-weight": "500",
|
|
563
|
+
"--typography-subtitle2-line-height": "1.57",
|
|
564
|
+
"--typography-subtitle2-letter-spacing": "0.006em",
|
|
565
|
+
// Body
|
|
566
|
+
"--typography-body1-size": "1rem",
|
|
567
|
+
"--typography-body1-weight": "400",
|
|
568
|
+
"--typography-body1-line-height": "1.75",
|
|
569
|
+
"--typography-body2-size": "0.875rem",
|
|
570
|
+
"--typography-body2-weight": "400",
|
|
571
|
+
"--typography-body2-line-height": "1.43",
|
|
572
|
+
"--typography-body-bold-1-size": "1rem",
|
|
573
|
+
"--typography-body-bold-1-weight": "600",
|
|
574
|
+
"--typography-body-bold-1-line-height": "1.75",
|
|
575
|
+
"--typography-body-bold-2-size": "0.875rem",
|
|
576
|
+
"--typography-body-bold-2-weight": "600",
|
|
577
|
+
"--typography-body-bold-2-line-height": "1.43",
|
|
578
|
+
// Small scale
|
|
579
|
+
"--typography-caption-size": "0.75rem",
|
|
580
|
+
"--typography-caption-weight": "400",
|
|
581
|
+
"--typography-caption-line-height": "1.66",
|
|
582
|
+
"--typography-caption-letter-spacing": "0.033em",
|
|
583
|
+
"--typography-overline-size": "0.75rem",
|
|
584
|
+
"--typography-overline-weight": "400",
|
|
585
|
+
"--typography-overline-line-height": "2.66",
|
|
586
|
+
"--typography-overline-letter-spacing": "0.083em",
|
|
587
|
+
// Buttons
|
|
588
|
+
"--typography-button-lg-size": "0.9375rem",
|
|
589
|
+
"--typography-button-lg-weight": "500",
|
|
590
|
+
"--typography-button-lg-line-height": "1.73",
|
|
591
|
+
"--typography-button-lg-letter-spacing": "0.046em",
|
|
592
|
+
"--typography-button-md-size": "0.875rem",
|
|
593
|
+
"--typography-button-md-weight": "500",
|
|
594
|
+
"--typography-button-md-line-height": "1.71",
|
|
595
|
+
"--typography-button-md-letter-spacing": "0.046em",
|
|
596
|
+
"--typography-button-sm-size": "0.8125rem",
|
|
597
|
+
"--typography-button-sm-weight": "500",
|
|
598
|
+
"--typography-button-sm-line-height": "1.69",
|
|
599
|
+
"--typography-button-sm-letter-spacing": "0.046em",
|
|
600
|
+
// Form / UI chrome
|
|
601
|
+
"--typography-input-label-size": "0.75rem",
|
|
602
|
+
"--typography-input-label-weight": "400",
|
|
603
|
+
"--typography-input-label-line-height": "1.5",
|
|
604
|
+
"--typography-input-label-letter-spacing": "0.009em",
|
|
605
|
+
"--typography-helper-text-size": "0.75rem",
|
|
606
|
+
"--typography-helper-text-weight": "400",
|
|
607
|
+
"--typography-helper-text-line-height": "1.66",
|
|
608
|
+
"--typography-helper-text-letter-spacing": "0.033em",
|
|
609
|
+
"--typography-chip-size": "0.8125rem",
|
|
610
|
+
"--typography-chip-weight": "400",
|
|
611
|
+
"--typography-chip-line-height": "1.38",
|
|
612
|
+
"--typography-chip-letter-spacing": "0.016em",
|
|
613
|
+
"--typography-tooltip-size": "0.625rem",
|
|
614
|
+
"--typography-tooltip-weight": "500",
|
|
615
|
+
"--typography-tooltip-line-height": "1.4",
|
|
616
|
+
"--typography-alert-title-size": "1rem",
|
|
617
|
+
"--typography-alert-title-weight": "600",
|
|
618
|
+
"--typography-alert-title-line-height": "1.5",
|
|
619
|
+
"--typography-alert-title-letter-spacing": "0.009em",
|
|
620
|
+
"--typography-table-header-size": "0.875rem",
|
|
621
|
+
"--typography-table-header-weight": "500",
|
|
622
|
+
"--typography-table-header-line-height": "1.71",
|
|
623
|
+
"--typography-table-header-letter-spacing": "0.017em",
|
|
624
|
+
"--typography-badge-label-size": "0.75rem",
|
|
625
|
+
"--typography-badge-label-weight": "500",
|
|
626
|
+
"--typography-badge-label-line-height": "1.66",
|
|
627
|
+
"--typography-badge-label-letter-spacing": "0.014em"
|
|
628
|
+
}
|
|
629
|
+
});
|
|
630
|
+
addBase({
|
|
631
|
+
":root": {
|
|
632
|
+
"--color-primary-foreground": "var(--color-primary-fg)",
|
|
633
|
+
"--color-secondary-foreground": "var(--color-secondary-fg)",
|
|
634
|
+
"--color-destructive-foreground": "var(--color-destructive-fg)",
|
|
635
|
+
"--color-success-foreground": "var(--color-success-fg)",
|
|
636
|
+
"--color-warning-foreground": "var(--color-warning-fg)",
|
|
637
|
+
"--color-info-foreground": "var(--color-info-fg)",
|
|
638
|
+
"--color-muted-foreground": "var(--color-muted-fg)",
|
|
639
|
+
"--color-accent-foreground": "var(--color-accent-fg)",
|
|
640
|
+
"--color-card-foreground": "var(--color-card-fg)",
|
|
641
|
+
"--color-popover-foreground": "var(--color-popover-fg)"
|
|
642
|
+
}
|
|
643
|
+
});
|
|
644
|
+
addUtilities({
|
|
645
|
+
".text-variant-h1": { fontSize: "var(--typography-h1-size)", fontWeight: "var(--typography-h1-weight)", lineHeight: "var(--typography-h1-line-height)", letterSpacing: "var(--typography-h1-letter-spacing)" },
|
|
646
|
+
".text-variant-h2": { fontSize: "var(--typography-h2-size)", fontWeight: "var(--typography-h2-weight)", lineHeight: "var(--typography-h2-line-height)", letterSpacing: "var(--typography-h2-letter-spacing)" },
|
|
647
|
+
".text-variant-h3": { fontSize: "var(--typography-h3-size)", fontWeight: "var(--typography-h3-weight)", lineHeight: "var(--typography-h3-line-height)" },
|
|
648
|
+
".text-variant-h4": { fontSize: "var(--typography-h4-size)", fontWeight: "var(--typography-h4-weight)", lineHeight: "var(--typography-h4-line-height)" },
|
|
649
|
+
".text-variant-h5": { fontSize: "var(--typography-h5-size)", fontWeight: "var(--typography-h5-weight)", lineHeight: "var(--typography-h5-line-height)" },
|
|
650
|
+
".text-variant-h6": { fontSize: "var(--typography-h6-size)", fontWeight: "var(--typography-h6-weight)", lineHeight: "var(--typography-h6-line-height)", letterSpacing: "var(--typography-h6-letter-spacing)" },
|
|
651
|
+
".text-variant-subtitle1": { fontSize: "var(--typography-subtitle1-size)", fontWeight: "var(--typography-subtitle1-weight)", lineHeight: "var(--typography-subtitle1-line-height)", letterSpacing: "var(--typography-subtitle1-letter-spacing)" },
|
|
652
|
+
".text-variant-subtitle2": { fontSize: "var(--typography-subtitle2-size)", fontWeight: "var(--typography-subtitle2-weight)", lineHeight: "var(--typography-subtitle2-line-height)", letterSpacing: "var(--typography-subtitle2-letter-spacing)" },
|
|
653
|
+
".text-variant-body1": { fontSize: "var(--typography-body1-size)", fontWeight: "var(--typography-body1-weight)", lineHeight: "var(--typography-body1-line-height)" },
|
|
654
|
+
".text-variant-body2": { fontSize: "var(--typography-body2-size)", fontWeight: "var(--typography-body2-weight)", lineHeight: "var(--typography-body2-line-height)" },
|
|
655
|
+
".text-variant-body-bold-1": { fontSize: "var(--typography-body-bold-1-size)", fontWeight: "var(--typography-body-bold-1-weight)", lineHeight: "var(--typography-body-bold-1-line-height)" },
|
|
656
|
+
".text-variant-body-bold-2": { fontSize: "var(--typography-body-bold-2-size)", fontWeight: "var(--typography-body-bold-2-weight)", lineHeight: "var(--typography-body-bold-2-line-height)" },
|
|
657
|
+
".text-variant-caption": { fontSize: "var(--typography-caption-size)", fontWeight: "var(--typography-caption-weight)", lineHeight: "var(--typography-caption-line-height)", letterSpacing: "var(--typography-caption-letter-spacing)" },
|
|
658
|
+
".text-variant-overline": { fontSize: "var(--typography-overline-size)", fontWeight: "var(--typography-overline-weight)", lineHeight: "var(--typography-overline-line-height)", letterSpacing: "var(--typography-overline-letter-spacing)", textTransform: "uppercase" },
|
|
659
|
+
".text-variant-button-lg": { fontSize: "var(--typography-button-lg-size)", fontWeight: "var(--typography-button-lg-weight)", lineHeight: "var(--typography-button-lg-line-height)", letterSpacing: "var(--typography-button-lg-letter-spacing)" },
|
|
660
|
+
".text-variant-button-md": { fontSize: "var(--typography-button-md-size)", fontWeight: "var(--typography-button-md-weight)", lineHeight: "var(--typography-button-md-line-height)", letterSpacing: "var(--typography-button-md-letter-spacing)" },
|
|
661
|
+
".text-variant-button-sm": { fontSize: "var(--typography-button-sm-size)", fontWeight: "var(--typography-button-sm-weight)", lineHeight: "var(--typography-button-sm-line-height)", letterSpacing: "var(--typography-button-sm-letter-spacing)" },
|
|
662
|
+
".text-variant-input-label": { fontSize: "var(--typography-input-label-size)", fontWeight: "var(--typography-input-label-weight)", lineHeight: "var(--typography-input-label-line-height)", letterSpacing: "var(--typography-input-label-letter-spacing)" },
|
|
663
|
+
".text-variant-helper-text": { fontSize: "var(--typography-helper-text-size)", fontWeight: "var(--typography-helper-text-weight)", lineHeight: "var(--typography-helper-text-line-height)", letterSpacing: "var(--typography-helper-text-letter-spacing)" },
|
|
664
|
+
".text-variant-chip": { fontSize: "var(--typography-chip-size)", fontWeight: "var(--typography-chip-weight)", lineHeight: "var(--typography-chip-line-height)", letterSpacing: "var(--typography-chip-letter-spacing)" },
|
|
665
|
+
".text-variant-tooltip": { fontSize: "var(--typography-tooltip-size)", fontWeight: "var(--typography-tooltip-weight)", lineHeight: "var(--typography-tooltip-line-height)" },
|
|
666
|
+
".text-variant-alert-title": { fontSize: "var(--typography-alert-title-size)", fontWeight: "var(--typography-alert-title-weight)", lineHeight: "var(--typography-alert-title-line-height)", letterSpacing: "var(--typography-alert-title-letter-spacing)" },
|
|
667
|
+
".text-variant-table-header": { fontSize: "var(--typography-table-header-size)", fontWeight: "var(--typography-table-header-weight)", lineHeight: "var(--typography-table-header-line-height)", letterSpacing: "var(--typography-table-header-letter-spacing)" },
|
|
668
|
+
".text-variant-badge-label": { fontSize: "var(--typography-badge-label-size)", fontWeight: "var(--typography-badge-label-weight)", lineHeight: "var(--typography-badge-label-line-height)", letterSpacing: "var(--typography-badge-label-letter-spacing)" }
|
|
669
|
+
});
|
|
670
|
+
})
|
|
671
|
+
]
|
|
672
|
+
};
|
|
673
|
+
var tailwind_preset_default = preset;
|
|
674
|
+
|
|
675
|
+
module.exports = tailwind_preset_default;
|
|
676
|
+
//# sourceMappingURL=tailwind-preset.cjs.map
|
|
677
|
+
//# sourceMappingURL=tailwind-preset.cjs.map
|