@assure-one/design-system 1.32.0 → 1.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +44 -13
- package/codemods/README.md +60 -0
- package/codemods/lib/forms.mjs +253 -0
- package/codemods/lib/jsx.mjs +0 -0
- package/codemods/lib/registry.mjs +2 -0
- package/codemods/transforms/cm-14-hidden-mirrors.mjs +275 -0
- package/codemods/transforms/cm-20-select-sentinels.mjs +442 -0
- package/dist/css/components.css +7 -0
- package/dist/css/legacy-aliases.css +180 -4
- package/dist/css/shadcn.css +4 -4
- package/dist/css/tailwind.css +66 -3
- package/dist/css/tokens.css +205 -14
- package/dist/index.d.ts +529 -4
- package/dist/index.js +477 -51
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/system-BDU18fVg.d.ts +559 -0
- package/dist/tokens/index.d.ts +50 -439
- package/dist/tokens/index.js +513 -6
- package/dist/tokens/index.js.map +1 -1
- package/package.json +2 -1
|
@@ -0,0 +1,559 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Reference tokens — raw palette.
|
|
3
|
+
*
|
|
4
|
+
* Programmatic access for theme switching, Figma sync, design tools, etc.
|
|
5
|
+
* Components should NOT consume these directly; use system tokens (./system.ts)
|
|
6
|
+
* or the CSS variables in ./tokens.css.
|
|
7
|
+
*/
|
|
8
|
+
declare const colors: {
|
|
9
|
+
readonly bg: "#ffffff";
|
|
10
|
+
readonly bg2: "#f1f3f8";
|
|
11
|
+
readonly bg3: "#e7eaf1";
|
|
12
|
+
readonly surface: "#ffffff";
|
|
13
|
+
readonly surface2: "#f7f8fc";
|
|
14
|
+
readonly fg: "#0a0a0a";
|
|
15
|
+
readonly fg2: "#38383b";
|
|
16
|
+
readonly fg3: "#5f5f64";
|
|
17
|
+
readonly fg4: "#6b6b70";
|
|
18
|
+
readonly fg5: "#9a9aa0";
|
|
19
|
+
readonly rule: "#e4e7ef";
|
|
20
|
+
readonly ruleSoft: "#eef0f5";
|
|
21
|
+
readonly ruleStrong: "#d3d8e3";
|
|
22
|
+
readonly accent: "#6c42f8";
|
|
23
|
+
readonly accent2: "#5127e8";
|
|
24
|
+
readonly accentTint: "#efeaff";
|
|
25
|
+
readonly accentHover: "#5e35f2";
|
|
26
|
+
readonly accentActive: "#5127e8";
|
|
27
|
+
readonly proBg: "#f4f1ff";
|
|
28
|
+
readonly proBgHover: "#eee9ff";
|
|
29
|
+
readonly proBgActive: "#e4ddff";
|
|
30
|
+
readonly proFg: "#6c42f8";
|
|
31
|
+
readonly proHover: "#5e35f2";
|
|
32
|
+
readonly proActive: "#5127e8";
|
|
33
|
+
readonly proDisabled: "#b7a7f3";
|
|
34
|
+
readonly proLine: "#7b5bd8";
|
|
35
|
+
readonly fgDisabled: "#a7a7ac";
|
|
36
|
+
readonly bgDisabled: "#f3f3f1";
|
|
37
|
+
readonly successFg: "#1f7a3d";
|
|
38
|
+
readonly successBg: "#eaf6ee";
|
|
39
|
+
readonly successLine: "#c5e5cf";
|
|
40
|
+
readonly warningFg: "#8a4606";
|
|
41
|
+
readonly warningBg: "#fff3e5";
|
|
42
|
+
readonly warningLine: "#f5d5a8";
|
|
43
|
+
readonly dangerFg: "#c43838";
|
|
44
|
+
readonly dangerBg: "#fbeaea";
|
|
45
|
+
readonly dangerLine: "#ecc5c5";
|
|
46
|
+
readonly fgOnAccent: "#ffffff";
|
|
47
|
+
readonly fgOnPro: "#ffffff";
|
|
48
|
+
};
|
|
49
|
+
declare const typography: {
|
|
50
|
+
readonly family: {
|
|
51
|
+
readonly display: "\"Plus Jakarta Sans\", -apple-system, system-ui, sans-serif";
|
|
52
|
+
readonly body: "\"Plus Jakarta Sans\", -apple-system, system-ui, sans-serif";
|
|
53
|
+
readonly mono: "\"Plus Jakarta Sans\", -apple-system, system-ui, sans-serif";
|
|
54
|
+
};
|
|
55
|
+
readonly weight: {
|
|
56
|
+
readonly regular: 400;
|
|
57
|
+
readonly medium: 500;
|
|
58
|
+
readonly semibold: 600;
|
|
59
|
+
readonly bold: 700;
|
|
60
|
+
};
|
|
61
|
+
readonly ease: "cubic-bezier(0.2, 0.8, 0.2, 1)";
|
|
62
|
+
};
|
|
63
|
+
declare const radii: {
|
|
64
|
+
readonly btn: "7px";
|
|
65
|
+
readonly input: "7px";
|
|
66
|
+
readonly pill: "5px";
|
|
67
|
+
readonly card: "12px";
|
|
68
|
+
readonly icon: "4px";
|
|
69
|
+
readonly full: "9999px";
|
|
70
|
+
};
|
|
71
|
+
declare const shadows: {
|
|
72
|
+
readonly quiet: "0 1px 2px rgba(16, 20, 36, 0.05)";
|
|
73
|
+
readonly card: "0 1px 2px rgba(16, 20, 36, 0.04), 0 4px 12px -4px rgba(16, 20, 36, 0.08)";
|
|
74
|
+
readonly pop: "0 0 0 1px rgba(16, 20, 36, 0.03), 0 2px 4px -1px rgba(16, 20, 36, 0.06), 0 12px 28px -6px rgba(16, 20, 36, 0.14)";
|
|
75
|
+
readonly focusRing: "0 0 0 2px #ffffff, 0 0 0 4px #6c42f8";
|
|
76
|
+
};
|
|
77
|
+
declare const overlays: {
|
|
78
|
+
readonly hover: "rgba(10, 10, 10, 0.03)";
|
|
79
|
+
readonly active: "rgba(10, 10, 10, 0.05)";
|
|
80
|
+
};
|
|
81
|
+
declare const layout: {
|
|
82
|
+
readonly shellSidebarWidth: "200px";
|
|
83
|
+
readonly shellHeaderHeight: "56px";
|
|
84
|
+
readonly contentPad: "32px";
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
* Spacing — 4px base scale. Components mostly use arbitrary values;
|
|
88
|
+
* this scale is exposed for programmatic access (e.g. design-tool sync).
|
|
89
|
+
*/
|
|
90
|
+
declare const spacing: {
|
|
91
|
+
readonly unit: "4px";
|
|
92
|
+
readonly 4: "4px";
|
|
93
|
+
readonly 8: "8px";
|
|
94
|
+
readonly 12: "12px";
|
|
95
|
+
readonly 16: "16px";
|
|
96
|
+
readonly 20: "20px";
|
|
97
|
+
readonly 24: "24px";
|
|
98
|
+
readonly 28: "28px";
|
|
99
|
+
readonly 32: "32px";
|
|
100
|
+
readonly 36: "36px";
|
|
101
|
+
readonly 40: "40px";
|
|
102
|
+
readonly 64: "64px";
|
|
103
|
+
readonly 80: "80px";
|
|
104
|
+
readonly 180: "180px";
|
|
105
|
+
};
|
|
106
|
+
/**
|
|
107
|
+
* Surface palette — the four canonical layers. Mirrors --color-bg / -2 /
|
|
108
|
+
* --color-surface / --color-surface-2.
|
|
109
|
+
*/
|
|
110
|
+
declare const surfaces: {
|
|
111
|
+
readonly bg: "#ffffff";
|
|
112
|
+
readonly bg2: "#f1f3f8";
|
|
113
|
+
readonly surface: "#ffffff";
|
|
114
|
+
readonly surface2: "#f7f8fc";
|
|
115
|
+
};
|
|
116
|
+
declare const motion: {
|
|
117
|
+
readonly ease: {
|
|
118
|
+
readonly outQuart: "cubic-bezier(0.2, 0.8, 0.2, 1)";
|
|
119
|
+
readonly out: "cubic-bezier(0.16, 1, 0.3, 1)";
|
|
120
|
+
readonly in: "cubic-bezier(0.7, 0, 0.84, 0)";
|
|
121
|
+
readonly inOut: "cubic-bezier(0.65, 0, 0.35, 1)";
|
|
122
|
+
};
|
|
123
|
+
readonly duration: {
|
|
124
|
+
readonly instant: "100ms";
|
|
125
|
+
readonly fast: "150ms";
|
|
126
|
+
readonly normal: "250ms";
|
|
127
|
+
readonly slow: "400ms";
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
/**
|
|
131
|
+
* Icon boxes — the four sizes of target architecture §9.3. These are the boxes
|
|
132
|
+
* the library actually draws; `Icon`'s `size` prop maps onto them (W3-18).
|
|
133
|
+
*/
|
|
134
|
+
declare const iconSizes: {
|
|
135
|
+
readonly xs: "12px";
|
|
136
|
+
readonly sm: "14px";
|
|
137
|
+
readonly md: "16px";
|
|
138
|
+
readonly lg: "20px";
|
|
139
|
+
};
|
|
140
|
+
/**
|
|
141
|
+
* Global stacking layers — target architecture §21. Use them only for
|
|
142
|
+
* portalled surfaces and page chrome; anything else creates a local stacking
|
|
143
|
+
* context and uses small local integers.
|
|
144
|
+
*
|
|
145
|
+
* `popover` is the layer the CSS still spells `--z-dropdown`; the legacy name
|
|
146
|
+
* keeps working and resolves to the same value.
|
|
147
|
+
*/
|
|
148
|
+
declare const zIndex: {
|
|
149
|
+
readonly base: 0;
|
|
150
|
+
readonly sticky: 100;
|
|
151
|
+
readonly overlay: 200;
|
|
152
|
+
readonly modal: 300;
|
|
153
|
+
readonly popover: 400;
|
|
154
|
+
readonly toast: 500;
|
|
155
|
+
readonly tooltip: 600;
|
|
156
|
+
};
|
|
157
|
+
/**
|
|
158
|
+
* Breakpoints — Tailwind's defaults, restated so a media query built in JS
|
|
159
|
+
* (`useBreakpoint`, a chart's responsive config) reads the same numbers the
|
|
160
|
+
* `sm:`…`2xl:` variants do.
|
|
161
|
+
*/
|
|
162
|
+
declare const breakpoints: {
|
|
163
|
+
readonly sm: "40rem";
|
|
164
|
+
readonly md: "48rem";
|
|
165
|
+
readonly lg: "64rem";
|
|
166
|
+
readonly xl: "80rem";
|
|
167
|
+
readonly "2xl": "96rem";
|
|
168
|
+
};
|
|
169
|
+
declare const reference: {
|
|
170
|
+
readonly colors: {
|
|
171
|
+
readonly bg: "#ffffff";
|
|
172
|
+
readonly bg2: "#f1f3f8";
|
|
173
|
+
readonly bg3: "#e7eaf1";
|
|
174
|
+
readonly surface: "#ffffff";
|
|
175
|
+
readonly surface2: "#f7f8fc";
|
|
176
|
+
readonly fg: "#0a0a0a";
|
|
177
|
+
readonly fg2: "#38383b";
|
|
178
|
+
readonly fg3: "#5f5f64";
|
|
179
|
+
readonly fg4: "#6b6b70";
|
|
180
|
+
readonly fg5: "#9a9aa0";
|
|
181
|
+
readonly rule: "#e4e7ef";
|
|
182
|
+
readonly ruleSoft: "#eef0f5";
|
|
183
|
+
readonly ruleStrong: "#d3d8e3";
|
|
184
|
+
readonly accent: "#6c42f8";
|
|
185
|
+
readonly accent2: "#5127e8";
|
|
186
|
+
readonly accentTint: "#efeaff";
|
|
187
|
+
readonly accentHover: "#5e35f2";
|
|
188
|
+
readonly accentActive: "#5127e8";
|
|
189
|
+
readonly proBg: "#f4f1ff";
|
|
190
|
+
readonly proBgHover: "#eee9ff";
|
|
191
|
+
readonly proBgActive: "#e4ddff";
|
|
192
|
+
readonly proFg: "#6c42f8";
|
|
193
|
+
readonly proHover: "#5e35f2";
|
|
194
|
+
readonly proActive: "#5127e8";
|
|
195
|
+
readonly proDisabled: "#b7a7f3";
|
|
196
|
+
readonly proLine: "#7b5bd8";
|
|
197
|
+
readonly fgDisabled: "#a7a7ac";
|
|
198
|
+
readonly bgDisabled: "#f3f3f1";
|
|
199
|
+
readonly successFg: "#1f7a3d";
|
|
200
|
+
readonly successBg: "#eaf6ee";
|
|
201
|
+
readonly successLine: "#c5e5cf";
|
|
202
|
+
readonly warningFg: "#8a4606";
|
|
203
|
+
readonly warningBg: "#fff3e5";
|
|
204
|
+
readonly warningLine: "#f5d5a8";
|
|
205
|
+
readonly dangerFg: "#c43838";
|
|
206
|
+
readonly dangerBg: "#fbeaea";
|
|
207
|
+
readonly dangerLine: "#ecc5c5";
|
|
208
|
+
readonly fgOnAccent: "#ffffff";
|
|
209
|
+
readonly fgOnPro: "#ffffff";
|
|
210
|
+
};
|
|
211
|
+
readonly typography: {
|
|
212
|
+
readonly family: {
|
|
213
|
+
readonly display: "\"Plus Jakarta Sans\", -apple-system, system-ui, sans-serif";
|
|
214
|
+
readonly body: "\"Plus Jakarta Sans\", -apple-system, system-ui, sans-serif";
|
|
215
|
+
readonly mono: "\"Plus Jakarta Sans\", -apple-system, system-ui, sans-serif";
|
|
216
|
+
};
|
|
217
|
+
readonly weight: {
|
|
218
|
+
readonly regular: 400;
|
|
219
|
+
readonly medium: 500;
|
|
220
|
+
readonly semibold: 600;
|
|
221
|
+
readonly bold: 700;
|
|
222
|
+
};
|
|
223
|
+
readonly ease: "cubic-bezier(0.2, 0.8, 0.2, 1)";
|
|
224
|
+
};
|
|
225
|
+
readonly radii: {
|
|
226
|
+
readonly btn: "7px";
|
|
227
|
+
readonly input: "7px";
|
|
228
|
+
readonly pill: "5px";
|
|
229
|
+
readonly card: "12px";
|
|
230
|
+
readonly icon: "4px";
|
|
231
|
+
readonly full: "9999px";
|
|
232
|
+
};
|
|
233
|
+
readonly shadows: {
|
|
234
|
+
readonly quiet: "0 1px 2px rgba(16, 20, 36, 0.05)";
|
|
235
|
+
readonly card: "0 1px 2px rgba(16, 20, 36, 0.04), 0 4px 12px -4px rgba(16, 20, 36, 0.08)";
|
|
236
|
+
readonly pop: "0 0 0 1px rgba(16, 20, 36, 0.03), 0 2px 4px -1px rgba(16, 20, 36, 0.06), 0 12px 28px -6px rgba(16, 20, 36, 0.14)";
|
|
237
|
+
readonly focusRing: "0 0 0 2px #ffffff, 0 0 0 4px #6c42f8";
|
|
238
|
+
};
|
|
239
|
+
readonly overlays: {
|
|
240
|
+
readonly hover: "rgba(10, 10, 10, 0.03)";
|
|
241
|
+
readonly active: "rgba(10, 10, 10, 0.05)";
|
|
242
|
+
};
|
|
243
|
+
readonly layout: {
|
|
244
|
+
readonly shellSidebarWidth: "200px";
|
|
245
|
+
readonly shellHeaderHeight: "56px";
|
|
246
|
+
readonly contentPad: "32px";
|
|
247
|
+
};
|
|
248
|
+
readonly motion: {
|
|
249
|
+
readonly ease: {
|
|
250
|
+
readonly outQuart: "cubic-bezier(0.2, 0.8, 0.2, 1)";
|
|
251
|
+
readonly out: "cubic-bezier(0.16, 1, 0.3, 1)";
|
|
252
|
+
readonly in: "cubic-bezier(0.7, 0, 0.84, 0)";
|
|
253
|
+
readonly inOut: "cubic-bezier(0.65, 0, 0.35, 1)";
|
|
254
|
+
};
|
|
255
|
+
readonly duration: {
|
|
256
|
+
readonly instant: "100ms";
|
|
257
|
+
readonly fast: "150ms";
|
|
258
|
+
readonly normal: "250ms";
|
|
259
|
+
readonly slow: "400ms";
|
|
260
|
+
};
|
|
261
|
+
};
|
|
262
|
+
readonly spacing: {
|
|
263
|
+
readonly unit: "4px";
|
|
264
|
+
readonly 4: "4px";
|
|
265
|
+
readonly 8: "8px";
|
|
266
|
+
readonly 12: "12px";
|
|
267
|
+
readonly 16: "16px";
|
|
268
|
+
readonly 20: "20px";
|
|
269
|
+
readonly 24: "24px";
|
|
270
|
+
readonly 28: "28px";
|
|
271
|
+
readonly 32: "32px";
|
|
272
|
+
readonly 36: "36px";
|
|
273
|
+
readonly 40: "40px";
|
|
274
|
+
readonly 64: "64px";
|
|
275
|
+
readonly 80: "80px";
|
|
276
|
+
readonly 180: "180px";
|
|
277
|
+
};
|
|
278
|
+
readonly surfaces: {
|
|
279
|
+
readonly bg: "#ffffff";
|
|
280
|
+
readonly bg2: "#f1f3f8";
|
|
281
|
+
readonly surface: "#ffffff";
|
|
282
|
+
readonly surface2: "#f7f8fc";
|
|
283
|
+
};
|
|
284
|
+
readonly iconSizes: {
|
|
285
|
+
readonly xs: "12px";
|
|
286
|
+
readonly sm: "14px";
|
|
287
|
+
readonly md: "16px";
|
|
288
|
+
readonly lg: "20px";
|
|
289
|
+
};
|
|
290
|
+
readonly zIndex: {
|
|
291
|
+
readonly base: 0;
|
|
292
|
+
readonly sticky: 100;
|
|
293
|
+
readonly overlay: 200;
|
|
294
|
+
readonly modal: 300;
|
|
295
|
+
readonly popover: 400;
|
|
296
|
+
readonly toast: 500;
|
|
297
|
+
readonly tooltip: 600;
|
|
298
|
+
};
|
|
299
|
+
readonly breakpoints: {
|
|
300
|
+
readonly sm: "40rem";
|
|
301
|
+
readonly md: "48rem";
|
|
302
|
+
readonly lg: "64rem";
|
|
303
|
+
readonly xl: "80rem";
|
|
304
|
+
readonly "2xl": "96rem";
|
|
305
|
+
};
|
|
306
|
+
};
|
|
307
|
+
type ReferenceTokens = typeof reference;
|
|
308
|
+
type ColorName = keyof typeof colors;
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* System tokens — suite semantic mappings as CSS variable references.
|
|
312
|
+
*
|
|
313
|
+
* Use these from JS (e.g. inline styles, Storybook decorators, motion configs)
|
|
314
|
+
* when you can't use a Tailwind utility class. Component CSS should prefer the
|
|
315
|
+
* generated utilities (`bg-bg`, `text-fg-2`, `border-rule`, `bg-pro-fg`, etc.)
|
|
316
|
+
* which Tailwind 4 emits from `--color-*` tokens declared in ./tokens.css.
|
|
317
|
+
*
|
|
318
|
+
* Themes (.dark) re-map the underlying CSS variables; these references stay valid.
|
|
319
|
+
*/
|
|
320
|
+
declare const systemTokens: {
|
|
321
|
+
readonly color: {
|
|
322
|
+
readonly bg: "var(--color-bg)";
|
|
323
|
+
readonly bg2: "var(--color-bg-2)";
|
|
324
|
+
readonly bg3: "var(--color-bg-3)";
|
|
325
|
+
readonly surface: "var(--color-surface)";
|
|
326
|
+
readonly surface2: "var(--color-surface-2)";
|
|
327
|
+
readonly fg: "var(--color-fg)";
|
|
328
|
+
readonly fg2: "var(--color-fg-2)";
|
|
329
|
+
readonly fg3: "var(--color-fg-3)";
|
|
330
|
+
readonly fg4: "var(--color-fg-4)";
|
|
331
|
+
readonly fg5: "var(--color-fg-5)";
|
|
332
|
+
readonly rule: "var(--color-rule)";
|
|
333
|
+
readonly ruleSoft: "var(--color-rule-soft)";
|
|
334
|
+
readonly ruleStrong: "var(--color-rule-strong)";
|
|
335
|
+
readonly accent: "var(--color-accent)";
|
|
336
|
+
readonly accent2: "var(--color-accent-2)";
|
|
337
|
+
readonly accentTint: "var(--color-accent-tint)";
|
|
338
|
+
readonly accentHover: "var(--color-accent-hover)";
|
|
339
|
+
readonly accentActive: "var(--color-accent-active)";
|
|
340
|
+
readonly accentRing: "var(--color-accent-ring)";
|
|
341
|
+
readonly suiteAction: "var(--color-suite-action)";
|
|
342
|
+
readonly suiteActionHover: "var(--color-suite-action-hover)";
|
|
343
|
+
readonly suiteActionActive: "var(--color-suite-action-active)";
|
|
344
|
+
readonly fgOnSuiteAction: "var(--color-fg-on-suite-action)";
|
|
345
|
+
readonly brand: "var(--color-brand)";
|
|
346
|
+
readonly brandHover: "var(--color-brand-hover)";
|
|
347
|
+
readonly brandActive: "var(--color-brand-active)";
|
|
348
|
+
readonly brandDisabled: "var(--color-brand-disabled)";
|
|
349
|
+
readonly brandBg: "var(--color-brand-bg)";
|
|
350
|
+
readonly brandBgHover: "var(--color-brand-bg-hover)";
|
|
351
|
+
readonly brandBgActive: "var(--color-brand-bg-active)";
|
|
352
|
+
readonly brandLine: "var(--color-brand-line)";
|
|
353
|
+
readonly brandRing: "var(--color-brand-ring)";
|
|
354
|
+
readonly fgOnBrand: "var(--color-fg-on-brand)";
|
|
355
|
+
readonly proBg: "var(--color-pro-bg)";
|
|
356
|
+
readonly proBgHover: "var(--color-pro-bg-hover)";
|
|
357
|
+
readonly proBgActive: "var(--color-pro-bg-active)";
|
|
358
|
+
readonly proFg: "var(--color-pro-fg)";
|
|
359
|
+
readonly proHover: "var(--color-pro-hover)";
|
|
360
|
+
readonly proActive: "var(--color-pro-active)";
|
|
361
|
+
readonly proDisabled: "var(--color-pro-disabled)";
|
|
362
|
+
readonly proLine: "var(--color-pro-line)";
|
|
363
|
+
readonly proRing: "var(--color-pro-ring)";
|
|
364
|
+
readonly auditFg: "var(--color-audit-fg)";
|
|
365
|
+
readonly auditHover: "var(--color-audit-hover)";
|
|
366
|
+
readonly auditActive: "var(--color-audit-active)";
|
|
367
|
+
readonly auditDisabled: "var(--color-audit-disabled)";
|
|
368
|
+
readonly auditBg: "var(--color-audit-bg)";
|
|
369
|
+
readonly auditBgHover: "var(--color-audit-bg-hover)";
|
|
370
|
+
readonly auditBgActive: "var(--color-audit-bg-active)";
|
|
371
|
+
readonly auditLine: "var(--color-audit-line)";
|
|
372
|
+
readonly auditRing: "var(--color-audit-ring)";
|
|
373
|
+
readonly booksFg: "var(--color-books-fg)";
|
|
374
|
+
readonly booksHover: "var(--color-books-hover)";
|
|
375
|
+
readonly booksActive: "var(--color-books-active)";
|
|
376
|
+
readonly booksDisabled: "var(--color-books-disabled)";
|
|
377
|
+
readonly booksBg: "var(--color-books-bg)";
|
|
378
|
+
readonly booksBgHover: "var(--color-books-bg-hover)";
|
|
379
|
+
readonly booksBgActive: "var(--color-books-bg-active)";
|
|
380
|
+
readonly booksLine: "var(--color-books-line)";
|
|
381
|
+
readonly booksRing: "var(--color-books-ring)";
|
|
382
|
+
readonly taxFg: "var(--color-tax-fg)";
|
|
383
|
+
readonly taxHover: "var(--color-tax-hover)";
|
|
384
|
+
readonly taxActive: "var(--color-tax-active)";
|
|
385
|
+
readonly taxDisabled: "var(--color-tax-disabled)";
|
|
386
|
+
readonly taxBg: "var(--color-tax-bg)";
|
|
387
|
+
readonly taxBgHover: "var(--color-tax-bg-hover)";
|
|
388
|
+
readonly taxBgActive: "var(--color-tax-bg-active)";
|
|
389
|
+
readonly taxLine: "var(--color-tax-line)";
|
|
390
|
+
readonly taxRing: "var(--color-tax-ring)";
|
|
391
|
+
readonly fgOnAccent: "var(--color-fg-on-accent)";
|
|
392
|
+
readonly fgOnPro: "var(--color-fg-on-pro)";
|
|
393
|
+
readonly fgOnAudit: "var(--color-fg-on-audit)";
|
|
394
|
+
readonly fgOnBooks: "var(--color-fg-on-books)";
|
|
395
|
+
readonly fgOnTax: "var(--color-fg-on-tax)";
|
|
396
|
+
readonly fgDisabled: "var(--color-fg-disabled)";
|
|
397
|
+
readonly bgDisabled: "var(--color-bg-disabled)";
|
|
398
|
+
readonly overlayHover: "var(--color-overlay-hover)";
|
|
399
|
+
readonly overlayActive: "var(--color-overlay-active)";
|
|
400
|
+
readonly successFg: "var(--color-success-fg)";
|
|
401
|
+
readonly successBg: "var(--color-success-bg)";
|
|
402
|
+
readonly successLine: "var(--color-success-line)";
|
|
403
|
+
readonly warningFg: "var(--color-warning-fg)";
|
|
404
|
+
readonly warningBg: "var(--color-warning-bg)";
|
|
405
|
+
readonly warningLine: "var(--color-warning-line)";
|
|
406
|
+
readonly dangerFg: "var(--color-danger-fg)";
|
|
407
|
+
readonly dangerBg: "var(--color-danger-bg)";
|
|
408
|
+
readonly dangerLine: "var(--color-danger-line)";
|
|
409
|
+
readonly chart1: "var(--color-chart-1)";
|
|
410
|
+
readonly chart2: "var(--color-chart-2)";
|
|
411
|
+
readonly chart3: "var(--color-chart-3)";
|
|
412
|
+
readonly chart4: "var(--color-chart-4)";
|
|
413
|
+
readonly chartLine: "var(--color-chart-line)";
|
|
414
|
+
readonly chartAreaFrom: "var(--color-chart-area-from)";
|
|
415
|
+
readonly chartAreaTo: "var(--color-chart-area-to)";
|
|
416
|
+
readonly serviceTax: "var(--color-service-tax)";
|
|
417
|
+
readonly serviceTaxBg: "var(--color-service-tax-bg)";
|
|
418
|
+
readonly serviceAudit: "var(--color-service-audit)";
|
|
419
|
+
readonly serviceAuditBg: "var(--color-service-audit-bg)";
|
|
420
|
+
readonly serviceAccounting: "var(--color-service-accounting)";
|
|
421
|
+
readonly serviceAccountingBg: "var(--color-service-accounting-bg)";
|
|
422
|
+
};
|
|
423
|
+
/** Ordered chart series ramp — index a series by position, cycle with `% 4`. */
|
|
424
|
+
readonly chart: readonly ["var(--color-chart-1)", "var(--color-chart-2)", "var(--color-chart-3)", "var(--color-chart-4)"];
|
|
425
|
+
readonly gradient: {
|
|
426
|
+
readonly brand: "var(--gradient-brand)";
|
|
427
|
+
readonly pro: "var(--gradient-pro)";
|
|
428
|
+
readonly audit: "var(--gradient-audit)";
|
|
429
|
+
readonly books: "var(--gradient-books)";
|
|
430
|
+
readonly tax: "var(--gradient-tax)";
|
|
431
|
+
};
|
|
432
|
+
readonly shadow: {
|
|
433
|
+
readonly quiet: "var(--shadow-quiet)";
|
|
434
|
+
readonly card: "var(--shadow-card)";
|
|
435
|
+
readonly pop: "var(--shadow-pop)";
|
|
436
|
+
readonly focusRing: "var(--shadow-focus-ring)";
|
|
437
|
+
readonly xs: "var(--shadow-xs)";
|
|
438
|
+
readonly sm: "var(--shadow-sm)";
|
|
439
|
+
readonly md: "var(--shadow-md)";
|
|
440
|
+
readonly lg: "var(--shadow-lg)";
|
|
441
|
+
readonly xl: "var(--shadow-xl)";
|
|
442
|
+
readonly "2xl": "var(--shadow-2xl)";
|
|
443
|
+
};
|
|
444
|
+
readonly radius: {
|
|
445
|
+
readonly btn: "var(--radius-btn)";
|
|
446
|
+
readonly input: "var(--radius-input)";
|
|
447
|
+
readonly pill: "var(--radius-pill)";
|
|
448
|
+
readonly card: "var(--radius-card)";
|
|
449
|
+
readonly icon: "var(--radius-icon)";
|
|
450
|
+
readonly full: "var(--radius-full)";
|
|
451
|
+
};
|
|
452
|
+
readonly type: {
|
|
453
|
+
readonly family: {
|
|
454
|
+
readonly display: "var(--font-display)";
|
|
455
|
+
readonly body: "var(--font-body)";
|
|
456
|
+
readonly mono: "var(--font-mono)";
|
|
457
|
+
};
|
|
458
|
+
readonly weight: {
|
|
459
|
+
readonly regular: "var(--font-weight-regular)";
|
|
460
|
+
readonly medium: "var(--font-weight-medium)";
|
|
461
|
+
readonly semibold: "var(--font-weight-semibold)";
|
|
462
|
+
readonly bold: "var(--font-weight-bold)";
|
|
463
|
+
};
|
|
464
|
+
};
|
|
465
|
+
readonly motion: {
|
|
466
|
+
readonly ease: {
|
|
467
|
+
readonly outQuart: "var(--ease-out-quart)";
|
|
468
|
+
readonly out: "var(--ease-out)";
|
|
469
|
+
readonly in: "var(--ease-in)";
|
|
470
|
+
readonly inOut: "var(--ease-in-out)";
|
|
471
|
+
};
|
|
472
|
+
readonly duration: {
|
|
473
|
+
readonly instant: "var(--duration-instant)";
|
|
474
|
+
readonly fast: "var(--duration-fast)";
|
|
475
|
+
readonly normal: "var(--duration-normal)";
|
|
476
|
+
readonly slow: "var(--duration-slow)";
|
|
477
|
+
};
|
|
478
|
+
readonly semantic: {
|
|
479
|
+
readonly duration: {
|
|
480
|
+
readonly press: "var(--motion-duration-press)";
|
|
481
|
+
readonly feedback: "var(--motion-duration-feedback)";
|
|
482
|
+
readonly overlay: "var(--motion-duration-overlay)";
|
|
483
|
+
readonly spatial: "var(--motion-duration-spatial)";
|
|
484
|
+
readonly deliberate: "var(--motion-duration-deliberate)";
|
|
485
|
+
};
|
|
486
|
+
readonly ease: {
|
|
487
|
+
readonly enter: "var(--motion-ease-enter)";
|
|
488
|
+
readonly exit: "var(--motion-ease-exit)";
|
|
489
|
+
readonly move: "var(--motion-ease-move)";
|
|
490
|
+
};
|
|
491
|
+
};
|
|
492
|
+
};
|
|
493
|
+
/**
|
|
494
|
+
* Control sizing (amendment A1, W2-03). One outer height per size name, with
|
|
495
|
+
* the padding, gap, label size and glyph size derived from it.
|
|
496
|
+
*
|
|
497
|
+
* **Nothing reads these yet** and the numbers are gated on decision D5
|
|
498
|
+
* (implementation plan §3) — what each control renders *today* is in
|
|
499
|
+
* `docs/design-system/control-sizes.md`, and W2-05 is the task that unifies
|
|
500
|
+
* them. Referencing the scale here is also what keeps the custom properties
|
|
501
|
+
* in the published stylesheet, so `[data-ds-density="compact"]` has something
|
|
502
|
+
* to re-point.
|
|
503
|
+
*/
|
|
504
|
+
readonly control: {
|
|
505
|
+
readonly height: {
|
|
506
|
+
readonly xs: "var(--control-height-xs)";
|
|
507
|
+
readonly sm: "var(--control-height-sm)";
|
|
508
|
+
readonly md: "var(--control-height-md)";
|
|
509
|
+
readonly lg: "var(--control-height-lg)";
|
|
510
|
+
readonly xl: "var(--control-height-xl)";
|
|
511
|
+
};
|
|
512
|
+
readonly paddingX: {
|
|
513
|
+
readonly xs: "var(--control-padding-x-xs)";
|
|
514
|
+
readonly sm: "var(--control-padding-x-sm)";
|
|
515
|
+
readonly md: "var(--control-padding-x-md)";
|
|
516
|
+
readonly lg: "var(--control-padding-x-lg)";
|
|
517
|
+
readonly xl: "var(--control-padding-x-xl)";
|
|
518
|
+
};
|
|
519
|
+
readonly gap: {
|
|
520
|
+
readonly xs: "var(--control-gap-xs)";
|
|
521
|
+
readonly sm: "var(--control-gap-sm)";
|
|
522
|
+
readonly md: "var(--control-gap-md)";
|
|
523
|
+
readonly lg: "var(--control-gap-lg)";
|
|
524
|
+
readonly xl: "var(--control-gap-xl)";
|
|
525
|
+
};
|
|
526
|
+
readonly fontSize: {
|
|
527
|
+
readonly xs: "var(--control-font-size-xs)";
|
|
528
|
+
readonly sm: "var(--control-font-size-sm)";
|
|
529
|
+
readonly md: "var(--control-font-size-md)";
|
|
530
|
+
readonly lg: "var(--control-font-size-lg)";
|
|
531
|
+
readonly xl: "var(--control-font-size-xl)";
|
|
532
|
+
};
|
|
533
|
+
readonly icon: {
|
|
534
|
+
readonly xs: "var(--control-icon-xs)";
|
|
535
|
+
readonly sm: "var(--control-icon-sm)";
|
|
536
|
+
readonly md: "var(--control-icon-md)";
|
|
537
|
+
readonly lg: "var(--control-icon-lg)";
|
|
538
|
+
readonly xl: "var(--control-icon-xl)";
|
|
539
|
+
};
|
|
540
|
+
};
|
|
541
|
+
readonly layout: {
|
|
542
|
+
readonly shellSidebarWidth: "var(--shell-sidebar-w)";
|
|
543
|
+
readonly shellSidebarRailWidth: "var(--shell-sidebar-w-rail)";
|
|
544
|
+
readonly shellHeaderHeight: "var(--shell-header-h)";
|
|
545
|
+
readonly contentPad: "var(--content-pad)";
|
|
546
|
+
};
|
|
547
|
+
readonly z: {
|
|
548
|
+
readonly base: "var(--z-base)";
|
|
549
|
+
readonly dropdown: "var(--z-dropdown)";
|
|
550
|
+
readonly sticky: "var(--z-sticky)";
|
|
551
|
+
readonly overlay: "var(--z-overlay)";
|
|
552
|
+
readonly modal: "var(--z-modal)";
|
|
553
|
+
readonly toast: "var(--z-toast)";
|
|
554
|
+
readonly tooltip: "var(--z-tooltip)";
|
|
555
|
+
};
|
|
556
|
+
};
|
|
557
|
+
type SystemTokens = typeof systemTokens;
|
|
558
|
+
|
|
559
|
+
export { type ColorName as C, type ReferenceTokens as R, type SystemTokens as S, reference as a, spacing as b, colors as c, surfaces as d, systemTokens as e, breakpoints as f, iconSizes as i, layout as l, motion as m, overlays as o, radii as r, shadows as s, typography as t, zIndex as z };
|