@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
package/dist/tokens/index.d.ts
CHANGED
|
@@ -1,450 +1,61 @@
|
|
|
1
|
+
export { C as ColorName, R as ReferenceTokens, S as SystemTokens, f as breakpoints, c as colors, i as iconSizes, l as layout, m as motion, o as overlays, r as radii, a as reference, s as shadows, b as spacing, d as surfaces, e as systemTokens, t as typography, z as zIndex } from '../system-BDU18fVg.js';
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
|
-
*
|
|
4
|
+
* The seed a host supplies per tenant.
|
|
3
5
|
*
|
|
4
|
-
*
|
|
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(10, 10, 10, 0.03)";
|
|
73
|
-
readonly card: "0 12px 28px -16px rgba(10, 10, 10, 0.18), 0 1px 2px rgba(10, 10, 10, 0.04)";
|
|
74
|
-
readonly pop: "0 30px 80px -30px rgba(10, 10, 10, 0.18), 0 8px 24px -8px rgba(10, 10, 10, 0.06)";
|
|
75
|
-
readonly focusRing: "0 0 0 2px rgba(108, 66, 248, 0.18)";
|
|
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).
|
|
6
|
+
* @experimental Gated by decision D7.
|
|
89
7
|
*/
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
8
|
+
interface BrandThemeSeed {
|
|
9
|
+
/**
|
|
10
|
+
* The brand fill, as `#rgb` or `#rrggbb`. Drives the `action.brand` family,
|
|
11
|
+
* the focus ring and the brand gradient.
|
|
12
|
+
*/
|
|
13
|
+
brand: string;
|
|
14
|
+
/**
|
|
15
|
+
* An optional second hue for the `action.accent` family, as `#rgb` or
|
|
16
|
+
* `#rrggbb`. `undefined` or `null` means "the same as `brand`", which is what
|
|
17
|
+
* the built-in `[data-ds-brand]` scopes do.
|
|
18
|
+
*/
|
|
19
|
+
accent?: string | null;
|
|
20
|
+
}
|
|
21
|
+
/** Every custom property `createBrandTheme()` sets, in output order. */
|
|
22
|
+
declare const BRAND_THEME_PROPERTIES: readonly ["--ds-color-action-brand-bg", "--ds-color-action-brand-bg-hover", "--ds-color-action-brand-bg-active", "--ds-color-action-brand-bg-disabled", "--ds-color-action-brand-subtle-bg", "--ds-color-action-brand-subtle-bg-hover", "--ds-color-action-brand-subtle-bg-active", "--ds-color-action-brand-border", "--ds-color-action-brand-ring", "--ds-color-action-brand-fg", "--ds-color-action-accent-bg", "--ds-color-action-accent-bg-strong", "--ds-color-action-accent-bg-hover", "--ds-color-action-accent-bg-active", "--ds-color-action-accent-subtle-bg", "--ds-color-action-accent-ring", "--ds-color-action-accent-fg", "--ds-color-border-focus", "--ds-focus-ring-color", "--ds-focus-ring-border", "--ds-gradient-brand", "--ds-compat-color-brand-soft", "--ds-compat-color-brand-soft-foreground"];
|
|
23
|
+
/** One of the custom properties `createBrandTheme()` sets. */
|
|
24
|
+
type BrandThemeProperty = (typeof BRAND_THEME_PROPERTIES)[number];
|
|
106
25
|
/**
|
|
107
|
-
*
|
|
108
|
-
*
|
|
26
|
+
* The style object `createBrandTheme()` returns: every property of
|
|
27
|
+
* {@link BRAND_THEME_PROPERTIES} with a CSS value.
|
|
28
|
+
*
|
|
29
|
+
* React types `style` as `CSSProperties`, which has no index signature for
|
|
30
|
+
* custom properties, so spread it or cast it at the call site:
|
|
31
|
+
* `style={{ ...createBrandTheme(seed) }}`.
|
|
32
|
+
*
|
|
33
|
+
* @experimental Gated by decision D7.
|
|
109
34
|
*/
|
|
110
|
-
|
|
111
|
-
readonly
|
|
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
|
-
declare const reference: {
|
|
131
|
-
readonly colors: {
|
|
132
|
-
readonly bg: "#ffffff";
|
|
133
|
-
readonly bg2: "#f1f3f8";
|
|
134
|
-
readonly bg3: "#e7eaf1";
|
|
135
|
-
readonly surface: "#ffffff";
|
|
136
|
-
readonly surface2: "#f7f8fc";
|
|
137
|
-
readonly fg: "#0a0a0a";
|
|
138
|
-
readonly fg2: "#38383b";
|
|
139
|
-
readonly fg3: "#5f5f64";
|
|
140
|
-
readonly fg4: "#6b6b70";
|
|
141
|
-
readonly fg5: "#9a9aa0";
|
|
142
|
-
readonly rule: "#e4e7ef";
|
|
143
|
-
readonly ruleSoft: "#eef0f5";
|
|
144
|
-
readonly ruleStrong: "#d3d8e3";
|
|
145
|
-
readonly accent: "#6c42f8";
|
|
146
|
-
readonly accent2: "#5127e8";
|
|
147
|
-
readonly accentTint: "#efeaff";
|
|
148
|
-
readonly accentHover: "#5e35f2";
|
|
149
|
-
readonly accentActive: "#5127e8";
|
|
150
|
-
readonly proBg: "#f4f1ff";
|
|
151
|
-
readonly proBgHover: "#eee9ff";
|
|
152
|
-
readonly proBgActive: "#e4ddff";
|
|
153
|
-
readonly proFg: "#6c42f8";
|
|
154
|
-
readonly proHover: "#5e35f2";
|
|
155
|
-
readonly proActive: "#5127e8";
|
|
156
|
-
readonly proDisabled: "#b7a7f3";
|
|
157
|
-
readonly proLine: "#7b5bd8";
|
|
158
|
-
readonly fgDisabled: "#a7a7ac";
|
|
159
|
-
readonly bgDisabled: "#f3f3f1";
|
|
160
|
-
readonly successFg: "#1f7a3d";
|
|
161
|
-
readonly successBg: "#eaf6ee";
|
|
162
|
-
readonly successLine: "#c5e5cf";
|
|
163
|
-
readonly warningFg: "#8a4606";
|
|
164
|
-
readonly warningBg: "#fff3e5";
|
|
165
|
-
readonly warningLine: "#f5d5a8";
|
|
166
|
-
readonly dangerFg: "#c43838";
|
|
167
|
-
readonly dangerBg: "#fbeaea";
|
|
168
|
-
readonly dangerLine: "#ecc5c5";
|
|
169
|
-
readonly fgOnAccent: "#ffffff";
|
|
170
|
-
readonly fgOnPro: "#ffffff";
|
|
171
|
-
};
|
|
172
|
-
readonly typography: {
|
|
173
|
-
readonly family: {
|
|
174
|
-
readonly display: "\"Plus Jakarta Sans\", -apple-system, system-ui, sans-serif";
|
|
175
|
-
readonly body: "\"Plus Jakarta Sans\", -apple-system, system-ui, sans-serif";
|
|
176
|
-
readonly mono: "\"Plus Jakarta Sans\", -apple-system, system-ui, sans-serif";
|
|
177
|
-
};
|
|
178
|
-
readonly weight: {
|
|
179
|
-
readonly regular: 400;
|
|
180
|
-
readonly medium: 500;
|
|
181
|
-
readonly semibold: 600;
|
|
182
|
-
readonly bold: 700;
|
|
183
|
-
};
|
|
184
|
-
readonly ease: "cubic-bezier(0.2, 0.8, 0.2, 1)";
|
|
185
|
-
};
|
|
186
|
-
readonly radii: {
|
|
187
|
-
readonly btn: "7px";
|
|
188
|
-
readonly input: "7px";
|
|
189
|
-
readonly pill: "5px";
|
|
190
|
-
readonly card: "12px";
|
|
191
|
-
readonly icon: "4px";
|
|
192
|
-
readonly full: "9999px";
|
|
193
|
-
};
|
|
194
|
-
readonly shadows: {
|
|
195
|
-
readonly quiet: "0 1px 2px rgba(10, 10, 10, 0.03)";
|
|
196
|
-
readonly card: "0 12px 28px -16px rgba(10, 10, 10, 0.18), 0 1px 2px rgba(10, 10, 10, 0.04)";
|
|
197
|
-
readonly pop: "0 30px 80px -30px rgba(10, 10, 10, 0.18), 0 8px 24px -8px rgba(10, 10, 10, 0.06)";
|
|
198
|
-
readonly focusRing: "0 0 0 2px rgba(108, 66, 248, 0.18)";
|
|
199
|
-
};
|
|
200
|
-
readonly overlays: {
|
|
201
|
-
readonly hover: "rgba(10, 10, 10, 0.03)";
|
|
202
|
-
readonly active: "rgba(10, 10, 10, 0.05)";
|
|
203
|
-
};
|
|
204
|
-
readonly layout: {
|
|
205
|
-
readonly shellSidebarWidth: "200px";
|
|
206
|
-
readonly shellHeaderHeight: "56px";
|
|
207
|
-
readonly contentPad: "32px";
|
|
208
|
-
};
|
|
209
|
-
readonly motion: {
|
|
210
|
-
readonly ease: {
|
|
211
|
-
readonly outQuart: "cubic-bezier(0.2, 0.8, 0.2, 1)";
|
|
212
|
-
readonly out: "cubic-bezier(0.16, 1, 0.3, 1)";
|
|
213
|
-
readonly in: "cubic-bezier(0.7, 0, 0.84, 0)";
|
|
214
|
-
readonly inOut: "cubic-bezier(0.65, 0, 0.35, 1)";
|
|
215
|
-
};
|
|
216
|
-
readonly duration: {
|
|
217
|
-
readonly instant: "100ms";
|
|
218
|
-
readonly fast: "150ms";
|
|
219
|
-
readonly normal: "250ms";
|
|
220
|
-
readonly slow: "400ms";
|
|
221
|
-
};
|
|
222
|
-
};
|
|
223
|
-
readonly spacing: {
|
|
224
|
-
readonly unit: "4px";
|
|
225
|
-
readonly 4: "4px";
|
|
226
|
-
readonly 8: "8px";
|
|
227
|
-
readonly 12: "12px";
|
|
228
|
-
readonly 16: "16px";
|
|
229
|
-
readonly 20: "20px";
|
|
230
|
-
readonly 24: "24px";
|
|
231
|
-
readonly 28: "28px";
|
|
232
|
-
readonly 32: "32px";
|
|
233
|
-
readonly 36: "36px";
|
|
234
|
-
readonly 40: "40px";
|
|
235
|
-
readonly 64: "64px";
|
|
236
|
-
readonly 80: "80px";
|
|
237
|
-
readonly 180: "180px";
|
|
238
|
-
};
|
|
239
|
-
readonly surfaces: {
|
|
240
|
-
readonly bg: "#ffffff";
|
|
241
|
-
readonly bg2: "#f1f3f8";
|
|
242
|
-
readonly surface: "#ffffff";
|
|
243
|
-
readonly surface2: "#f7f8fc";
|
|
244
|
-
};
|
|
35
|
+
type BrandTheme = {
|
|
36
|
+
readonly [P in BrandThemeProperty]: string;
|
|
245
37
|
};
|
|
246
|
-
type ReferenceTokens = typeof reference;
|
|
247
|
-
type ColorName = keyof typeof colors;
|
|
248
|
-
|
|
249
38
|
/**
|
|
250
|
-
*
|
|
39
|
+
* Turn a tenant's colours into the design system's brand and accent tokens.
|
|
40
|
+
*
|
|
41
|
+
* ```tsx
|
|
42
|
+
* const theme = createBrandTheme({ brand: firm.primaryColor, accent: firm.accentColor });
|
|
43
|
+
* return <div style={{ ...theme }}>{children}</div>;
|
|
44
|
+
* ```
|
|
251
45
|
*
|
|
252
|
-
*
|
|
253
|
-
*
|
|
254
|
-
*
|
|
255
|
-
*
|
|
46
|
+
* Apply it to the element that scopes the brand — `<body>` for a whole-tenant
|
|
47
|
+
* theme, a wrapper for a preview. The properties are the same ones a built-in
|
|
48
|
+
* `[data-ds-brand]` scope declares, so anything reading them (every design
|
|
49
|
+
* system component, and any application CSS reading `--ds-*`) follows.
|
|
256
50
|
*
|
|
257
|
-
*
|
|
51
|
+
* @param seed - `brand`, and optionally `accent` (decision D7).
|
|
52
|
+
* @returns A frozen object of custom property names to CSS values.
|
|
53
|
+
* @throws TypeError when the seed is not an object, carries an unknown key, or
|
|
54
|
+
* a colour is missing or not `#rgb`/`#rrggbb`.
|
|
55
|
+
*
|
|
56
|
+
* @experimental Gated by decision D7. The property set may grow, and the seed
|
|
57
|
+
* shape may change, until D7 is resolved.
|
|
258
58
|
*/
|
|
259
|
-
declare
|
|
260
|
-
readonly color: {
|
|
261
|
-
readonly bg: "var(--color-bg)";
|
|
262
|
-
readonly bg2: "var(--color-bg-2)";
|
|
263
|
-
readonly bg3: "var(--color-bg-3)";
|
|
264
|
-
readonly surface: "var(--color-surface)";
|
|
265
|
-
readonly surface2: "var(--color-surface-2)";
|
|
266
|
-
readonly fg: "var(--color-fg)";
|
|
267
|
-
readonly fg2: "var(--color-fg-2)";
|
|
268
|
-
readonly fg3: "var(--color-fg-3)";
|
|
269
|
-
readonly fg4: "var(--color-fg-4)";
|
|
270
|
-
readonly fg5: "var(--color-fg-5)";
|
|
271
|
-
readonly rule: "var(--color-rule)";
|
|
272
|
-
readonly ruleSoft: "var(--color-rule-soft)";
|
|
273
|
-
readonly ruleStrong: "var(--color-rule-strong)";
|
|
274
|
-
readonly accent: "var(--color-accent)";
|
|
275
|
-
readonly accent2: "var(--color-accent-2)";
|
|
276
|
-
readonly accentTint: "var(--color-accent-tint)";
|
|
277
|
-
readonly accentHover: "var(--color-accent-hover)";
|
|
278
|
-
readonly accentActive: "var(--color-accent-active)";
|
|
279
|
-
readonly accentRing: "var(--color-accent-ring)";
|
|
280
|
-
readonly suiteAction: "var(--color-suite-action)";
|
|
281
|
-
readonly suiteActionHover: "var(--color-suite-action-hover)";
|
|
282
|
-
readonly suiteActionActive: "var(--color-suite-action-active)";
|
|
283
|
-
readonly fgOnSuiteAction: "var(--color-fg-on-suite-action)";
|
|
284
|
-
readonly brand: "var(--color-brand)";
|
|
285
|
-
readonly brandHover: "var(--color-brand-hover)";
|
|
286
|
-
readonly brandActive: "var(--color-brand-active)";
|
|
287
|
-
readonly brandDisabled: "var(--color-brand-disabled)";
|
|
288
|
-
readonly brandBg: "var(--color-brand-bg)";
|
|
289
|
-
readonly brandBgHover: "var(--color-brand-bg-hover)";
|
|
290
|
-
readonly brandBgActive: "var(--color-brand-bg-active)";
|
|
291
|
-
readonly brandLine: "var(--color-brand-line)";
|
|
292
|
-
readonly brandRing: "var(--color-brand-ring)";
|
|
293
|
-
readonly fgOnBrand: "var(--color-fg-on-brand)";
|
|
294
|
-
readonly proBg: "var(--color-pro-bg)";
|
|
295
|
-
readonly proBgHover: "var(--color-pro-bg-hover)";
|
|
296
|
-
readonly proBgActive: "var(--color-pro-bg-active)";
|
|
297
|
-
readonly proFg: "var(--color-pro-fg)";
|
|
298
|
-
readonly proHover: "var(--color-pro-hover)";
|
|
299
|
-
readonly proActive: "var(--color-pro-active)";
|
|
300
|
-
readonly proDisabled: "var(--color-pro-disabled)";
|
|
301
|
-
readonly proLine: "var(--color-pro-line)";
|
|
302
|
-
readonly proRing: "var(--color-pro-ring)";
|
|
303
|
-
readonly auditFg: "var(--color-audit-fg)";
|
|
304
|
-
readonly auditHover: "var(--color-audit-hover)";
|
|
305
|
-
readonly auditActive: "var(--color-audit-active)";
|
|
306
|
-
readonly auditDisabled: "var(--color-audit-disabled)";
|
|
307
|
-
readonly auditBg: "var(--color-audit-bg)";
|
|
308
|
-
readonly auditBgHover: "var(--color-audit-bg-hover)";
|
|
309
|
-
readonly auditBgActive: "var(--color-audit-bg-active)";
|
|
310
|
-
readonly auditLine: "var(--color-audit-line)";
|
|
311
|
-
readonly auditRing: "var(--color-audit-ring)";
|
|
312
|
-
readonly booksFg: "var(--color-books-fg)";
|
|
313
|
-
readonly booksHover: "var(--color-books-hover)";
|
|
314
|
-
readonly booksActive: "var(--color-books-active)";
|
|
315
|
-
readonly booksDisabled: "var(--color-books-disabled)";
|
|
316
|
-
readonly booksBg: "var(--color-books-bg)";
|
|
317
|
-
readonly booksBgHover: "var(--color-books-bg-hover)";
|
|
318
|
-
readonly booksBgActive: "var(--color-books-bg-active)";
|
|
319
|
-
readonly booksLine: "var(--color-books-line)";
|
|
320
|
-
readonly booksRing: "var(--color-books-ring)";
|
|
321
|
-
readonly taxFg: "var(--color-tax-fg)";
|
|
322
|
-
readonly taxHover: "var(--color-tax-hover)";
|
|
323
|
-
readonly taxActive: "var(--color-tax-active)";
|
|
324
|
-
readonly taxDisabled: "var(--color-tax-disabled)";
|
|
325
|
-
readonly taxBg: "var(--color-tax-bg)";
|
|
326
|
-
readonly taxBgHover: "var(--color-tax-bg-hover)";
|
|
327
|
-
readonly taxBgActive: "var(--color-tax-bg-active)";
|
|
328
|
-
readonly taxLine: "var(--color-tax-line)";
|
|
329
|
-
readonly taxRing: "var(--color-tax-ring)";
|
|
330
|
-
readonly fgOnAccent: "var(--color-fg-on-accent)";
|
|
331
|
-
readonly fgOnPro: "var(--color-fg-on-pro)";
|
|
332
|
-
readonly fgOnAudit: "var(--color-fg-on-audit)";
|
|
333
|
-
readonly fgOnBooks: "var(--color-fg-on-books)";
|
|
334
|
-
readonly fgOnTax: "var(--color-fg-on-tax)";
|
|
335
|
-
readonly fgDisabled: "var(--color-fg-disabled)";
|
|
336
|
-
readonly bgDisabled: "var(--color-bg-disabled)";
|
|
337
|
-
readonly overlayHover: "var(--color-overlay-hover)";
|
|
338
|
-
readonly overlayActive: "var(--color-overlay-active)";
|
|
339
|
-
readonly successFg: "var(--color-success-fg)";
|
|
340
|
-
readonly successBg: "var(--color-success-bg)";
|
|
341
|
-
readonly successLine: "var(--color-success-line)";
|
|
342
|
-
readonly warningFg: "var(--color-warning-fg)";
|
|
343
|
-
readonly warningBg: "var(--color-warning-bg)";
|
|
344
|
-
readonly warningLine: "var(--color-warning-line)";
|
|
345
|
-
readonly dangerFg: "var(--color-danger-fg)";
|
|
346
|
-
readonly dangerBg: "var(--color-danger-bg)";
|
|
347
|
-
readonly dangerLine: "var(--color-danger-line)";
|
|
348
|
-
readonly chart1: "var(--color-chart-1)";
|
|
349
|
-
readonly chart2: "var(--color-chart-2)";
|
|
350
|
-
readonly chart3: "var(--color-chart-3)";
|
|
351
|
-
readonly chart4: "var(--color-chart-4)";
|
|
352
|
-
readonly chartLine: "var(--color-chart-line)";
|
|
353
|
-
readonly chartAreaFrom: "var(--color-chart-area-from)";
|
|
354
|
-
readonly chartAreaTo: "var(--color-chart-area-to)";
|
|
355
|
-
readonly serviceTax: "var(--color-service-tax)";
|
|
356
|
-
readonly serviceTaxBg: "var(--color-service-tax-bg)";
|
|
357
|
-
readonly serviceAudit: "var(--color-service-audit)";
|
|
358
|
-
readonly serviceAuditBg: "var(--color-service-audit-bg)";
|
|
359
|
-
readonly serviceAccounting: "var(--color-service-accounting)";
|
|
360
|
-
readonly serviceAccountingBg: "var(--color-service-accounting-bg)";
|
|
361
|
-
};
|
|
362
|
-
/** Ordered chart series ramp — index a series by position, cycle with `% 4`. */
|
|
363
|
-
readonly chart: readonly ["var(--color-chart-1)", "var(--color-chart-2)", "var(--color-chart-3)", "var(--color-chart-4)"];
|
|
364
|
-
readonly gradient: {
|
|
365
|
-
readonly brand: "var(--gradient-brand)";
|
|
366
|
-
readonly pro: "var(--gradient-pro)";
|
|
367
|
-
readonly audit: "var(--gradient-audit)";
|
|
368
|
-
readonly books: "var(--gradient-books)";
|
|
369
|
-
readonly tax: "var(--gradient-tax)";
|
|
370
|
-
};
|
|
371
|
-
readonly shadow: {
|
|
372
|
-
readonly quiet: "var(--shadow-quiet)";
|
|
373
|
-
readonly card: "var(--shadow-card)";
|
|
374
|
-
readonly pop: "var(--shadow-pop)";
|
|
375
|
-
readonly focusRing: "var(--shadow-focus-ring)";
|
|
376
|
-
readonly xs: "var(--shadow-xs)";
|
|
377
|
-
readonly sm: "var(--shadow-sm)";
|
|
378
|
-
readonly md: "var(--shadow-md)";
|
|
379
|
-
readonly lg: "var(--shadow-lg)";
|
|
380
|
-
readonly xl: "var(--shadow-xl)";
|
|
381
|
-
readonly "2xl": "var(--shadow-2xl)";
|
|
382
|
-
};
|
|
383
|
-
readonly radius: {
|
|
384
|
-
readonly btn: "var(--radius-btn)";
|
|
385
|
-
readonly input: "var(--radius-input)";
|
|
386
|
-
readonly pill: "var(--radius-pill)";
|
|
387
|
-
readonly card: "var(--radius-card)";
|
|
388
|
-
readonly icon: "var(--radius-icon)";
|
|
389
|
-
readonly full: "var(--radius-full)";
|
|
390
|
-
};
|
|
391
|
-
readonly type: {
|
|
392
|
-
readonly family: {
|
|
393
|
-
readonly display: "var(--font-display)";
|
|
394
|
-
readonly body: "var(--font-body)";
|
|
395
|
-
readonly mono: "var(--font-mono)";
|
|
396
|
-
};
|
|
397
|
-
readonly weight: {
|
|
398
|
-
readonly regular: "var(--font-weight-regular)";
|
|
399
|
-
readonly medium: "var(--font-weight-medium)";
|
|
400
|
-
readonly semibold: "var(--font-weight-semibold)";
|
|
401
|
-
readonly bold: "var(--font-weight-bold)";
|
|
402
|
-
};
|
|
403
|
-
};
|
|
404
|
-
readonly motion: {
|
|
405
|
-
readonly ease: {
|
|
406
|
-
readonly outQuart: "var(--ease-out-quart)";
|
|
407
|
-
readonly out: "var(--ease-out)";
|
|
408
|
-
readonly in: "var(--ease-in)";
|
|
409
|
-
readonly inOut: "var(--ease-in-out)";
|
|
410
|
-
};
|
|
411
|
-
readonly duration: {
|
|
412
|
-
readonly instant: "var(--duration-instant)";
|
|
413
|
-
readonly fast: "var(--duration-fast)";
|
|
414
|
-
readonly normal: "var(--duration-normal)";
|
|
415
|
-
readonly slow: "var(--duration-slow)";
|
|
416
|
-
};
|
|
417
|
-
readonly semantic: {
|
|
418
|
-
readonly duration: {
|
|
419
|
-
readonly press: "var(--motion-duration-press)";
|
|
420
|
-
readonly feedback: "var(--motion-duration-feedback)";
|
|
421
|
-
readonly overlay: "var(--motion-duration-overlay)";
|
|
422
|
-
readonly spatial: "var(--motion-duration-spatial)";
|
|
423
|
-
readonly deliberate: "var(--motion-duration-deliberate)";
|
|
424
|
-
};
|
|
425
|
-
readonly ease: {
|
|
426
|
-
readonly enter: "var(--motion-ease-enter)";
|
|
427
|
-
readonly exit: "var(--motion-ease-exit)";
|
|
428
|
-
readonly move: "var(--motion-ease-move)";
|
|
429
|
-
};
|
|
430
|
-
};
|
|
431
|
-
};
|
|
432
|
-
readonly layout: {
|
|
433
|
-
readonly shellSidebarWidth: "var(--shell-sidebar-w)";
|
|
434
|
-
readonly shellSidebarRailWidth: "var(--shell-sidebar-w-rail)";
|
|
435
|
-
readonly shellHeaderHeight: "var(--shell-header-h)";
|
|
436
|
-
readonly contentPad: "var(--content-pad)";
|
|
437
|
-
};
|
|
438
|
-
readonly z: {
|
|
439
|
-
readonly base: "var(--z-base)";
|
|
440
|
-
readonly dropdown: "var(--z-dropdown)";
|
|
441
|
-
readonly sticky: "var(--z-sticky)";
|
|
442
|
-
readonly overlay: "var(--z-overlay)";
|
|
443
|
-
readonly modal: "var(--z-modal)";
|
|
444
|
-
readonly toast: "var(--z-toast)";
|
|
445
|
-
readonly tooltip: "var(--z-tooltip)";
|
|
446
|
-
};
|
|
447
|
-
};
|
|
448
|
-
type SystemTokens = typeof systemTokens;
|
|
59
|
+
declare function createBrandTheme(seed: BrandThemeSeed): BrandTheme;
|
|
449
60
|
|
|
450
|
-
export {
|
|
61
|
+
export { BRAND_THEME_PROPERTIES, type BrandTheme, type BrandThemeProperty, type BrandThemeSeed, createBrandTheme };
|