@logicplanes/kaeso-tokens 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +22 -0
- package/dist/brand/tokens.json +234 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/theme.css +235 -0
- package/dist/tokens.css +417 -0
- package/dist/tokens.d.ts +361 -0
- package/dist/tokens.js +205 -0
- package/dist/tokens.json +638 -0
- package/package.json +59 -0
package/dist/tokens.d.ts
ADDED
|
@@ -0,0 +1,361 @@
|
|
|
1
|
+
type Mode = {
|
|
2
|
+
light: string;
|
|
3
|
+
dark: string;
|
|
4
|
+
};
|
|
5
|
+
export declare const neutral: {
|
|
6
|
+
readonly "bg-panel": Mode;
|
|
7
|
+
readonly "bg-chrome": Mode;
|
|
8
|
+
readonly "bg-raised": Mode;
|
|
9
|
+
readonly "fill-1": Mode;
|
|
10
|
+
readonly "fill-2": Mode;
|
|
11
|
+
readonly "fill-3": Mode;
|
|
12
|
+
readonly "line-subtle": Mode;
|
|
13
|
+
readonly line: Mode;
|
|
14
|
+
readonly "line-strong": Mode;
|
|
15
|
+
readonly text: Mode;
|
|
16
|
+
readonly "text-secondary": Mode;
|
|
17
|
+
readonly "text-tertiary": Mode;
|
|
18
|
+
readonly "text-disabled": Mode;
|
|
19
|
+
readonly ink: Mode;
|
|
20
|
+
readonly "on-ink": Mode;
|
|
21
|
+
readonly focus: Mode;
|
|
22
|
+
readonly overlay: Mode;
|
|
23
|
+
readonly "panel-ring": Mode;
|
|
24
|
+
readonly "toast-bg": Mode;
|
|
25
|
+
readonly scan: Mode;
|
|
26
|
+
readonly "on-scan": Mode;
|
|
27
|
+
readonly "toast-fg": Mode;
|
|
28
|
+
readonly "toast-fg-secondary": Mode;
|
|
29
|
+
readonly "toast-ring": Mode;
|
|
30
|
+
readonly "toast-action": Mode;
|
|
31
|
+
readonly "toast-action-hover": Mode;
|
|
32
|
+
readonly "toast-danger": Mode;
|
|
33
|
+
readonly "item-hover": Mode;
|
|
34
|
+
readonly "item-pressed": Mode;
|
|
35
|
+
readonly "control-on-fill": Mode;
|
|
36
|
+
readonly "control-on-fill-hover": Mode;
|
|
37
|
+
readonly "bg-tooltip": Mode;
|
|
38
|
+
};
|
|
39
|
+
export declare const semantic: {
|
|
40
|
+
readonly success: {
|
|
41
|
+
readonly solid: Mode;
|
|
42
|
+
readonly text: Mode;
|
|
43
|
+
readonly tint: Mode;
|
|
44
|
+
};
|
|
45
|
+
readonly warning: {
|
|
46
|
+
readonly solid: Mode;
|
|
47
|
+
readonly text: Mode;
|
|
48
|
+
readonly tint: Mode;
|
|
49
|
+
};
|
|
50
|
+
readonly danger: {
|
|
51
|
+
readonly solid: Mode;
|
|
52
|
+
readonly text: Mode;
|
|
53
|
+
readonly tint: Mode;
|
|
54
|
+
};
|
|
55
|
+
readonly info: {
|
|
56
|
+
readonly solid: Mode;
|
|
57
|
+
readonly text: Mode;
|
|
58
|
+
readonly tint: Mode;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
export declare const dangerFill: Mode;
|
|
62
|
+
export declare const onDanger: Mode;
|
|
63
|
+
export declare const viz: readonly [{
|
|
64
|
+
readonly name: "blue";
|
|
65
|
+
readonly light: "#3b82f6";
|
|
66
|
+
readonly dark: "#60a5fa";
|
|
67
|
+
readonly thin: "#3b82f6";
|
|
68
|
+
}, {
|
|
69
|
+
readonly name: "amber";
|
|
70
|
+
readonly light: "#f59e0b";
|
|
71
|
+
readonly dark: "#fbbf24";
|
|
72
|
+
readonly thin: "#d97706";
|
|
73
|
+
}, {
|
|
74
|
+
readonly name: "emerald";
|
|
75
|
+
readonly light: "#10b981";
|
|
76
|
+
readonly dark: "#34d399";
|
|
77
|
+
readonly thin: "#059669";
|
|
78
|
+
}, {
|
|
79
|
+
readonly name: "rose";
|
|
80
|
+
readonly light: "#f43f5e";
|
|
81
|
+
readonly dark: "#fb7185";
|
|
82
|
+
readonly thin: "#f43f5e";
|
|
83
|
+
}, {
|
|
84
|
+
readonly name: "violet";
|
|
85
|
+
readonly light: "#8b5cf6";
|
|
86
|
+
readonly dark: "#a78bfa";
|
|
87
|
+
readonly thin: "#8b5cf6";
|
|
88
|
+
}, {
|
|
89
|
+
readonly name: "teal";
|
|
90
|
+
readonly light: "#14b8a6";
|
|
91
|
+
readonly dark: "#2dd4bf";
|
|
92
|
+
readonly thin: "#0d9488";
|
|
93
|
+
}, {
|
|
94
|
+
readonly name: "orange";
|
|
95
|
+
readonly light: "#f97316";
|
|
96
|
+
readonly dark: "#fb923c";
|
|
97
|
+
readonly thin: "#ea580c";
|
|
98
|
+
}, {
|
|
99
|
+
readonly name: "fuchsia";
|
|
100
|
+
readonly light: "#d946ef";
|
|
101
|
+
readonly dark: "#e879f9";
|
|
102
|
+
readonly thin: "#d946ef";
|
|
103
|
+
}];
|
|
104
|
+
export declare const tokenKindSeries: {
|
|
105
|
+
readonly input: 1;
|
|
106
|
+
readonly output: 3;
|
|
107
|
+
readonly cacheRead: 1;
|
|
108
|
+
readonly cacheWrite: 2;
|
|
109
|
+
readonly reasoning: 5;
|
|
110
|
+
};
|
|
111
|
+
export declare const tokenKindTint: Partial<Record<keyof typeof tokenKindSeries, true>>;
|
|
112
|
+
export declare const vizSoft: Mode;
|
|
113
|
+
export declare const type: {
|
|
114
|
+
readonly micro: {
|
|
115
|
+
readonly size: 11;
|
|
116
|
+
readonly lineHeight: 14;
|
|
117
|
+
readonly weight: 500;
|
|
118
|
+
readonly tracking: 0.01;
|
|
119
|
+
};
|
|
120
|
+
readonly caption: {
|
|
121
|
+
readonly size: 12;
|
|
122
|
+
readonly lineHeight: 16;
|
|
123
|
+
readonly weight: 500;
|
|
124
|
+
readonly tracking: 0;
|
|
125
|
+
};
|
|
126
|
+
readonly small: {
|
|
127
|
+
readonly size: 13;
|
|
128
|
+
readonly lineHeight: 18;
|
|
129
|
+
readonly weight: 400;
|
|
130
|
+
readonly tracking: 0;
|
|
131
|
+
};
|
|
132
|
+
readonly body: {
|
|
133
|
+
readonly size: 14;
|
|
134
|
+
readonly lineHeight: 20;
|
|
135
|
+
readonly weight: 400;
|
|
136
|
+
readonly tracking: 0;
|
|
137
|
+
};
|
|
138
|
+
readonly "body-lg": {
|
|
139
|
+
readonly size: 15;
|
|
140
|
+
readonly lineHeight: 22;
|
|
141
|
+
readonly weight: 500;
|
|
142
|
+
readonly tracking: -0.005;
|
|
143
|
+
};
|
|
144
|
+
readonly "title-sm": {
|
|
145
|
+
readonly size: 17;
|
|
146
|
+
readonly lineHeight: 24;
|
|
147
|
+
readonly weight: 600;
|
|
148
|
+
readonly tracking: -0.01;
|
|
149
|
+
};
|
|
150
|
+
readonly title: {
|
|
151
|
+
readonly size: 20;
|
|
152
|
+
readonly lineHeight: 28;
|
|
153
|
+
readonly weight: 600;
|
|
154
|
+
readonly tracking: -0.015;
|
|
155
|
+
};
|
|
156
|
+
readonly "title-lg": {
|
|
157
|
+
readonly size: 28;
|
|
158
|
+
readonly lineHeight: 34;
|
|
159
|
+
readonly weight: 600;
|
|
160
|
+
readonly tracking: -0.022;
|
|
161
|
+
};
|
|
162
|
+
readonly display: {
|
|
163
|
+
readonly size: 40;
|
|
164
|
+
readonly lineHeight: 44;
|
|
165
|
+
readonly weight: 600;
|
|
166
|
+
readonly tracking: -0.03;
|
|
167
|
+
};
|
|
168
|
+
readonly metric: {
|
|
169
|
+
readonly size: 28;
|
|
170
|
+
readonly lineHeight: 32;
|
|
171
|
+
readonly weight: 600;
|
|
172
|
+
readonly tracking: -0.02;
|
|
173
|
+
};
|
|
174
|
+
};
|
|
175
|
+
export declare const weight: {
|
|
176
|
+
readonly regular: Mode;
|
|
177
|
+
readonly medium: Mode;
|
|
178
|
+
readonly semibold: Mode;
|
|
179
|
+
};
|
|
180
|
+
export declare const font: {
|
|
181
|
+
readonly sans: "\"Inter Variable\", Inter, ui-sans-serif, system-ui, -apple-system, \"Segoe UI\", sans-serif";
|
|
182
|
+
readonly mono: "\"Geist Mono Variable\", \"Geist Mono\", ui-monospace, SFMono-Regular, Menlo, monospace";
|
|
183
|
+
readonly features: "\"cv11\", \"ss01\", \"ss03\"";
|
|
184
|
+
};
|
|
185
|
+
export declare const control: {
|
|
186
|
+
readonly xs: {
|
|
187
|
+
readonly height: 24;
|
|
188
|
+
readonly padding: 10;
|
|
189
|
+
readonly icon: 14;
|
|
190
|
+
readonly gap: 4;
|
|
191
|
+
readonly text: "caption";
|
|
192
|
+
};
|
|
193
|
+
readonly sm: {
|
|
194
|
+
readonly height: 32;
|
|
195
|
+
readonly padding: 12;
|
|
196
|
+
readonly icon: 16;
|
|
197
|
+
readonly gap: 6;
|
|
198
|
+
readonly text: "body";
|
|
199
|
+
};
|
|
200
|
+
readonly md: {
|
|
201
|
+
readonly height: 36;
|
|
202
|
+
readonly padding: 16;
|
|
203
|
+
readonly icon: 16;
|
|
204
|
+
readonly gap: 6;
|
|
205
|
+
readonly text: "body";
|
|
206
|
+
};
|
|
207
|
+
readonly lg: {
|
|
208
|
+
readonly height: 40;
|
|
209
|
+
readonly padding: 18;
|
|
210
|
+
readonly icon: 18;
|
|
211
|
+
readonly gap: 8;
|
|
212
|
+
readonly text: "body";
|
|
213
|
+
};
|
|
214
|
+
readonly xl: {
|
|
215
|
+
readonly height: 48;
|
|
216
|
+
readonly padding: 22;
|
|
217
|
+
readonly icon: 20;
|
|
218
|
+
readonly gap: 8;
|
|
219
|
+
readonly text: "body-lg";
|
|
220
|
+
};
|
|
221
|
+
};
|
|
222
|
+
export declare const row: {
|
|
223
|
+
readonly list: 44;
|
|
224
|
+
readonly table: 40;
|
|
225
|
+
readonly tableCompact: 36;
|
|
226
|
+
readonly tableComfortable: 48;
|
|
227
|
+
readonly menu: 34;
|
|
228
|
+
readonly menuCoarse: 44;
|
|
229
|
+
readonly sidebar: 32;
|
|
230
|
+
readonly option: 34;
|
|
231
|
+
readonly settings: 64;
|
|
232
|
+
readonly settingsSingle: 56;
|
|
233
|
+
readonly groupHeader: 36;
|
|
234
|
+
readonly palette: 40;
|
|
235
|
+
};
|
|
236
|
+
export declare const chrome: {
|
|
237
|
+
readonly header: 52;
|
|
238
|
+
readonly toolbar: 48;
|
|
239
|
+
readonly sidebar: 248;
|
|
240
|
+
readonly sidebarMin: 232;
|
|
241
|
+
readonly sidebarMax: 280;
|
|
242
|
+
readonly rail: 60;
|
|
243
|
+
readonly inset: 8;
|
|
244
|
+
};
|
|
245
|
+
export declare const space: readonly [2, 4, 6, 8, 12, 16, 20, 24, 32, 40, 48, 64, 80, 96];
|
|
246
|
+
export declare const lengths: readonly [0, 1, 2, 3, 4, 5, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 28, 32, 34, 36, 40, 44, 48, 52, 56, 60, 64, 72, 80, 96, 112, 120, 140, 160, 180, 200, 220, 240, 248, 260, 280, 320, 360, 400, 440, 480, 560, 640, 720, 760, 800];
|
|
247
|
+
export declare const radius: {
|
|
248
|
+
readonly pill: "9999px";
|
|
249
|
+
readonly panel: "12px";
|
|
250
|
+
readonly menu: "16px";
|
|
251
|
+
readonly item: "10px";
|
|
252
|
+
readonly popover: "16px";
|
|
253
|
+
readonly dialog: "20px";
|
|
254
|
+
readonly sheet: "16px";
|
|
255
|
+
readonly group: "14px";
|
|
256
|
+
readonly well: "14px";
|
|
257
|
+
readonly tooltip: "12px";
|
|
258
|
+
readonly palette: "20px";
|
|
259
|
+
readonly "palette-item": "12px";
|
|
260
|
+
readonly checkbox: "5px";
|
|
261
|
+
readonly org: "8px";
|
|
262
|
+
readonly kbd: "6px";
|
|
263
|
+
readonly code: "6px";
|
|
264
|
+
readonly bar: "3px";
|
|
265
|
+
readonly cell: "3px";
|
|
266
|
+
readonly avatar: "6px";
|
|
267
|
+
readonly field: "18px";
|
|
268
|
+
readonly textarea: "14px";
|
|
269
|
+
readonly "cell-lg": "14px";
|
|
270
|
+
readonly "tooltip-lg": "20px";
|
|
271
|
+
readonly frame: "24px";
|
|
272
|
+
readonly toast: "22px";
|
|
273
|
+
};
|
|
274
|
+
export declare const shadow: {
|
|
275
|
+
readonly ring: Mode;
|
|
276
|
+
readonly control: Mode;
|
|
277
|
+
readonly "control-hover": Mode;
|
|
278
|
+
readonly "control-on-fill": Mode;
|
|
279
|
+
readonly selector: Mode;
|
|
280
|
+
readonly "selector-hover": Mode;
|
|
281
|
+
readonly frame: Mode;
|
|
282
|
+
readonly xs: Mode;
|
|
283
|
+
readonly raised: Mode;
|
|
284
|
+
readonly dialog: Mode;
|
|
285
|
+
readonly panel: Mode;
|
|
286
|
+
readonly segment: Mode;
|
|
287
|
+
readonly toast: Mode;
|
|
288
|
+
readonly thumb: Mode;
|
|
289
|
+
};
|
|
290
|
+
export declare const material: {
|
|
291
|
+
readonly "primary-gradient": Mode;
|
|
292
|
+
readonly "primary-shadow": Mode;
|
|
293
|
+
readonly "danger-gradient": Mode;
|
|
294
|
+
readonly "danger-shadow": Mode;
|
|
295
|
+
readonly "hover-brightness": Mode;
|
|
296
|
+
readonly "pressed-brightness": Mode;
|
|
297
|
+
};
|
|
298
|
+
export declare const motion: {
|
|
299
|
+
readonly duration: {
|
|
300
|
+
readonly fast: 120;
|
|
301
|
+
readonly "close-overlay": 110;
|
|
302
|
+
readonly overlay: 160;
|
|
303
|
+
readonly "close-dialog": 140;
|
|
304
|
+
readonly dialog: 200;
|
|
305
|
+
readonly "close-sheet": 180;
|
|
306
|
+
readonly sheet: 240;
|
|
307
|
+
readonly "toast-in": 220;
|
|
308
|
+
readonly "toast-out": 160;
|
|
309
|
+
readonly indicator: 180;
|
|
310
|
+
readonly disclosure: 200;
|
|
311
|
+
readonly chart: 240;
|
|
312
|
+
readonly check: 140;
|
|
313
|
+
readonly radio: 160;
|
|
314
|
+
readonly copied: 1200;
|
|
315
|
+
readonly fresh: 1000;
|
|
316
|
+
};
|
|
317
|
+
readonly ease: {
|
|
318
|
+
readonly standard: "cubic-bezier(0.2, 0, 0, 1)";
|
|
319
|
+
readonly overlay: "cubic-bezier(0.16, 1, 0.3, 1)";
|
|
320
|
+
readonly exit: "cubic-bezier(0.4, 0, 1, 1)";
|
|
321
|
+
readonly pulse: "cubic-bezier(0.4, 0, 0.6, 1)";
|
|
322
|
+
};
|
|
323
|
+
readonly skeleton: {
|
|
324
|
+
readonly duration: 1600;
|
|
325
|
+
readonly low: 0.55;
|
|
326
|
+
};
|
|
327
|
+
readonly spinner: {
|
|
328
|
+
readonly turn: 2400;
|
|
329
|
+
readonly delay: 300;
|
|
330
|
+
readonly minimum: 400;
|
|
331
|
+
};
|
|
332
|
+
};
|
|
333
|
+
export declare const z: {
|
|
334
|
+
readonly sticky: 10;
|
|
335
|
+
readonly sheet: 40;
|
|
336
|
+
readonly overlay: 50;
|
|
337
|
+
readonly toast: 60;
|
|
338
|
+
readonly tooltip: 70;
|
|
339
|
+
};
|
|
340
|
+
export declare const optical: {
|
|
341
|
+
readonly "leading-icon": 2;
|
|
342
|
+
readonly "trailing-chevron": 2;
|
|
343
|
+
};
|
|
344
|
+
export declare const width: {
|
|
345
|
+
readonly prose: "68ch";
|
|
346
|
+
readonly settings: 760;
|
|
347
|
+
readonly auth: 400;
|
|
348
|
+
readonly menuMin: 220;
|
|
349
|
+
readonly menuMax: 360;
|
|
350
|
+
readonly tooltipMax: 280;
|
|
351
|
+
readonly palette: 640;
|
|
352
|
+
readonly fieldLabel: 240;
|
|
353
|
+
readonly aside: 320;
|
|
354
|
+
readonly banner: 480;
|
|
355
|
+
readonly kv: 480;
|
|
356
|
+
};
|
|
357
|
+
export declare const breakpoint: {
|
|
358
|
+
readonly sidebar: 1024;
|
|
359
|
+
};
|
|
360
|
+
export declare const brandVersion: string;
|
|
361
|
+
export {};
|
package/dist/tokens.js
ADDED
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
import brand from "./brand/tokens.json" with { type: "json" };
|
|
2
|
+
const mode = (light, dark) => ({ light, dark });
|
|
3
|
+
export const neutral = {
|
|
4
|
+
"bg-panel": mode(brand.color.light.canvas, brand.color.dark.canvas),
|
|
5
|
+
"bg-chrome": mode("#f5f5f5", brand.color.dark.surface),
|
|
6
|
+
"bg-raised": mode("#ffffff", "#111111"),
|
|
7
|
+
"fill-1": mode(brand.color.light.muted, brand.color.dark.muted),
|
|
8
|
+
"fill-2": mode("#ebebeb", "#1c1c1c"),
|
|
9
|
+
"fill-3": mode("#e0e0e0", "#262626"),
|
|
10
|
+
"line-subtle": mode("#f0f0f0", "#171717"),
|
|
11
|
+
line: mode(brand.color.light.border, brand.color.dark.border),
|
|
12
|
+
"line-strong": mode(brand.color.light.borderEmphasized, brand.color.dark.borderEmphasized),
|
|
13
|
+
text: mode(brand.color.light.text, brand.color.dark.text),
|
|
14
|
+
"text-secondary": mode(brand.color.light.textSecondary, brand.color.dark.textSecondary),
|
|
15
|
+
"text-tertiary": mode("#707070", "#858585"),
|
|
16
|
+
"text-disabled": mode(brand.color.light.textDisabled, brand.color.dark.textDisabled),
|
|
17
|
+
ink: mode(brand.color.light.ink, brand.color.dark.ink),
|
|
18
|
+
"on-ink": mode(brand.color.light.onStrong, brand.color.dark.onStrong),
|
|
19
|
+
focus: mode(brand.color.light.focus, brand.color.dark.focus),
|
|
20
|
+
overlay: mode("rgb(0 0 0 / 0.24)", "rgb(0 0 0 / 0.72)"),
|
|
21
|
+
"panel-ring": mode(brand.color.light.border, "#1a1a1a"),
|
|
22
|
+
"toast-bg": mode("#0a0a0a", "#1c1c1c"),
|
|
23
|
+
scan: mode("#ffffff", "#ffffff"),
|
|
24
|
+
"on-scan": mode("#0a0a0a", "#0a0a0a"),
|
|
25
|
+
"toast-fg": mode("#fafafa", "#fafafa"),
|
|
26
|
+
"toast-fg-secondary": mode("#a3a3a3", "#a3a3a3"),
|
|
27
|
+
"toast-ring": mode("rgb(255 255 255 / 0.06)", "rgb(255 255 255 / 0.09)"),
|
|
28
|
+
"toast-action": mode("rgb(255 255 255 / 0.12)", "rgb(255 255 255 / 0.1)"),
|
|
29
|
+
"toast-action-hover": mode("rgb(255 255 255 / 0.2)", "rgb(255 255 255 / 0.16)"),
|
|
30
|
+
"toast-danger": mode("#f87171", "#f87171"),
|
|
31
|
+
"item-hover": mode("#f5f5f5", "#222222"),
|
|
32
|
+
"item-pressed": mode("#ebebeb", "#2b2b2b"),
|
|
33
|
+
"control-on-fill": mode("#ffffff", "#222222"),
|
|
34
|
+
"control-on-fill-hover": mode("#fafafa", "#2b2b2b"),
|
|
35
|
+
"bg-tooltip": mode("#ffffff", "#1c1c1c"),
|
|
36
|
+
};
|
|
37
|
+
export const semantic = {
|
|
38
|
+
success: { solid: mode("#22c55e", "#22c55e"), text: mode("#166534", "#4ade80"), tint: mode("#f0fdf4", "color-mix(in oklab, #22c55e 20%, #000)") },
|
|
39
|
+
warning: { solid: mode("#f59e0b", "#f59e0b"), text: mode("#92400e", "#fbbf24"), tint: mode("#fffbeb", "color-mix(in oklab, #f59e0b 20%, #000)") },
|
|
40
|
+
danger: { solid: mode("#ef4444", "#ef4444"), text: mode("#b91c1c", "#f87171"), tint: mode("#fef2f2", "color-mix(in oklab, #ef4444 22%, #000)") },
|
|
41
|
+
info: { solid: mode("#3b82f6", "#3b82f6"), text: mode("#1d4ed8", "#60a5fa"), tint: mode("#eff6ff", "color-mix(in oklab, #3b82f6 22%, #000)") },
|
|
42
|
+
};
|
|
43
|
+
export const dangerFill = mode("#dc2626", "#dc2626");
|
|
44
|
+
export const onDanger = mode("#ffffff", "#ffffff");
|
|
45
|
+
export const viz = [
|
|
46
|
+
{ name: "blue", light: "#3b82f6", dark: "#60a5fa", thin: "#3b82f6" },
|
|
47
|
+
{ name: "amber", light: "#f59e0b", dark: "#fbbf24", thin: "#d97706" },
|
|
48
|
+
{ name: "emerald", light: "#10b981", dark: "#34d399", thin: "#059669" },
|
|
49
|
+
{ name: "rose", light: "#f43f5e", dark: "#fb7185", thin: "#f43f5e" },
|
|
50
|
+
{ name: "violet", light: "#8b5cf6", dark: "#a78bfa", thin: "#8b5cf6" },
|
|
51
|
+
{ name: "teal", light: "#14b8a6", dark: "#2dd4bf", thin: "#0d9488" },
|
|
52
|
+
{ name: "orange", light: "#f97316", dark: "#fb923c", thin: "#ea580c" },
|
|
53
|
+
{ name: "fuchsia", light: "#d946ef", dark: "#e879f9", thin: "#d946ef" },
|
|
54
|
+
];
|
|
55
|
+
export const tokenKindSeries = { input: 1, output: 3, cacheRead: 1, cacheWrite: 2, reasoning: 5 };
|
|
56
|
+
export const tokenKindTint = { cacheRead: true };
|
|
57
|
+
export const vizSoft = mode("#a7c7fb", "#3d72b8");
|
|
58
|
+
export const type = {
|
|
59
|
+
micro: { size: 11, lineHeight: 14, weight: 500, tracking: 0.01 },
|
|
60
|
+
caption: { size: 12, lineHeight: 16, weight: 500, tracking: 0 },
|
|
61
|
+
small: { size: 13, lineHeight: 18, weight: 400, tracking: 0 },
|
|
62
|
+
body: { size: 14, lineHeight: 20, weight: 400, tracking: 0 },
|
|
63
|
+
"body-lg": { size: 15, lineHeight: 22, weight: 500, tracking: -0.005 },
|
|
64
|
+
"title-sm": { size: 17, lineHeight: 24, weight: 600, tracking: -0.01 },
|
|
65
|
+
title: { size: 20, lineHeight: 28, weight: 600, tracking: -0.015 },
|
|
66
|
+
"title-lg": { size: 28, lineHeight: 34, weight: 600, tracking: -0.022 },
|
|
67
|
+
display: { size: 40, lineHeight: 44, weight: 600, tracking: -0.03 },
|
|
68
|
+
metric: { size: 28, lineHeight: 32, weight: 600, tracking: -0.02 },
|
|
69
|
+
};
|
|
70
|
+
export const weight = {
|
|
71
|
+
regular: mode("400", "400"),
|
|
72
|
+
medium: mode("500", "480"),
|
|
73
|
+
semibold: mode("600", "580"),
|
|
74
|
+
};
|
|
75
|
+
export const font = {
|
|
76
|
+
sans: '"Inter Variable", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif',
|
|
77
|
+
mono: '"Geist Mono Variable", "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace',
|
|
78
|
+
features: '"cv11", "ss01", "ss03"',
|
|
79
|
+
};
|
|
80
|
+
export const control = {
|
|
81
|
+
xs: { height: 24, padding: 10, icon: 14, gap: 4, text: "caption" },
|
|
82
|
+
sm: { height: 32, padding: 12, icon: 16, gap: 6, text: "body" },
|
|
83
|
+
md: { height: 36, padding: 16, icon: 16, gap: 6, text: "body" },
|
|
84
|
+
lg: { height: 40, padding: 18, icon: 18, gap: 8, text: "body" },
|
|
85
|
+
xl: { height: 48, padding: 22, icon: 20, gap: 8, text: "body-lg" },
|
|
86
|
+
};
|
|
87
|
+
export const row = {
|
|
88
|
+
list: 44,
|
|
89
|
+
table: 40,
|
|
90
|
+
tableCompact: 36,
|
|
91
|
+
tableComfortable: 48,
|
|
92
|
+
menu: 34,
|
|
93
|
+
menuCoarse: 44,
|
|
94
|
+
sidebar: 32,
|
|
95
|
+
option: 34,
|
|
96
|
+
settings: 64,
|
|
97
|
+
settingsSingle: 56,
|
|
98
|
+
groupHeader: 36,
|
|
99
|
+
palette: 40,
|
|
100
|
+
};
|
|
101
|
+
export const chrome = { header: 52, toolbar: 48, sidebar: 248, sidebarMin: 232, sidebarMax: 280, rail: 60, inset: 8 };
|
|
102
|
+
export const space = [2, 4, 6, 8, 12, 16, 20, 24, 32, 40, 48, 64, 80, 96];
|
|
103
|
+
export const lengths = [
|
|
104
|
+
0, 1, 2, 3, 4, 5, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 28, 32, 34, 36, 40, 44, 48, 52, 56, 60, 64, 72, 80, 96, 112, 120, 140, 160, 180, 200, 220, 240, 248,
|
|
105
|
+
260, 280, 320, 360, 400, 440, 480, 560, 640, 720, 760, 800,
|
|
106
|
+
];
|
|
107
|
+
export const radius = {
|
|
108
|
+
pill: "9999px",
|
|
109
|
+
panel: "12px",
|
|
110
|
+
menu: "16px",
|
|
111
|
+
item: "10px",
|
|
112
|
+
popover: "16px",
|
|
113
|
+
dialog: "20px",
|
|
114
|
+
sheet: "16px",
|
|
115
|
+
group: "14px",
|
|
116
|
+
well: "14px",
|
|
117
|
+
tooltip: "12px",
|
|
118
|
+
palette: "20px",
|
|
119
|
+
"palette-item": "12px",
|
|
120
|
+
checkbox: "5px",
|
|
121
|
+
org: "8px",
|
|
122
|
+
kbd: "6px",
|
|
123
|
+
code: "6px",
|
|
124
|
+
bar: "3px",
|
|
125
|
+
cell: "3px",
|
|
126
|
+
avatar: "6px",
|
|
127
|
+
field: "18px",
|
|
128
|
+
textarea: "14px",
|
|
129
|
+
"cell-lg": "14px",
|
|
130
|
+
"tooltip-lg": "20px",
|
|
131
|
+
frame: "24px",
|
|
132
|
+
toast: "22px",
|
|
133
|
+
};
|
|
134
|
+
export const shadow = {
|
|
135
|
+
ring: mode("inset 0 0 0 1px var(--k-line)", "inset 0 0 0 1px var(--k-line)"),
|
|
136
|
+
control: mode("inset 0 0 0 1px var(--k-line), 0 1px 2px rgb(0 0 0 / 0.05)", "inset 0 0 0 1px var(--k-line)"),
|
|
137
|
+
"control-hover": mode("inset 0 0 0 1px var(--k-line-strong), 0 1px 2px rgb(0 0 0 / 0.05)", "inset 0 0 0 1px var(--k-line-strong)"),
|
|
138
|
+
"control-on-fill": mode("inset 0 0 0 1px var(--k-line-strong)", "inset 0 0 0 1px var(--k-line-strong)"),
|
|
139
|
+
selector: mode("inset 0 0 0 1px var(--k-line-strong), 0 1px 2px rgb(0 0 0 / 0.05)", "inset 0 0 0 1px var(--k-line-strong)"),
|
|
140
|
+
"selector-hover": mode("inset 0 0 0 1px var(--k-text-disabled), 0 1px 2px rgb(0 0 0 / 0.05)", "inset 0 0 0 1px var(--k-text-disabled)"),
|
|
141
|
+
frame: mode("0 0 0 1px var(--k-line)", "0 0 0 1px var(--k-line)"),
|
|
142
|
+
xs: mode("0 0 0 1px var(--k-line), 0 1px 2px rgb(0 0 0 / 0.03)", "0 0 0 1px var(--k-line)"),
|
|
143
|
+
raised: mode("0 0 0 1px var(--k-line), 0 4px 8px -2px rgb(0 0 0 / 0.06), 0 16px 32px -8px rgb(0 0 0 / 0.14)", "0 0 0 1px #262626, 0 16px 40px rgb(0 0 0 / 0.8)"),
|
|
144
|
+
dialog: mode("0 0 0 1px var(--k-line), 0 24px 64px -16px rgb(0 0 0 / 0.24)", "0 0 0 1px #2a2a2a, 0 32px 80px rgb(0 0 0 / 0.9)"),
|
|
145
|
+
panel: mode("0 0 0 1px var(--k-panel-ring), 0 1px 2px rgb(0 0 0 / 0.03)", "0 0 0 1px var(--k-panel-ring)"),
|
|
146
|
+
segment: mode("inset 0 0 0 1px var(--k-line), 0 1px 2px rgb(0 0 0 / 0.06)", "inset 0 0 0 1px var(--k-line-strong)"),
|
|
147
|
+
toast: mode("inset 0 0 0 1px var(--k-toast-ring), 0 2px 6px rgb(0 0 0 / 0.12), 0 12px 32px -8px rgb(0 0 0 / 0.35)", "inset 0 0 0 1px var(--k-toast-ring), 0 2px 6px rgb(0 0 0 / 0.6), 0 16px 40px rgb(0 0 0 / 0.8)"),
|
|
148
|
+
thumb: mode("0 1px 2px rgb(0 0 0 / 0.16), 0 0 0 1px rgb(0 0 0 / 0.04)", "0 1px 2px rgb(0 0 0 / 0.5)"),
|
|
149
|
+
};
|
|
150
|
+
export const material = {
|
|
151
|
+
"primary-gradient": mode("linear-gradient(180deg, rgb(255 255 255 / 0.16), rgb(255 255 255 / 0) 50%)", "linear-gradient(180deg, rgb(255 255 255 / 0), rgb(0 0 0 / 0.06))"),
|
|
152
|
+
"primary-shadow": mode("inset 0 1px 0 rgb(255 255 255 / 0.14), 0 1px 2px rgb(0 0 0 / 0.24)", "inset 0 1px 0 rgb(255 255 255 / 0.5), 0 1px 2px rgb(0 0 0 / 0.5)"),
|
|
153
|
+
"danger-gradient": mode("linear-gradient(180deg, rgb(255 255 255 / 0.16), rgb(255 255 255 / 0) 50%)", "linear-gradient(180deg, rgb(255 255 255 / 0.12), rgb(255 255 255 / 0) 50%)"),
|
|
154
|
+
"danger-shadow": mode("inset 0 1px 0 rgb(255 255 255 / 0.14), 0 1px 2px rgb(0 0 0 / 0.24)", "inset 0 1px 0 rgb(255 255 255 / 0.24), 0 1px 2px rgb(0 0 0 / 0.5)"),
|
|
155
|
+
"hover-brightness": mode("1.12", "0.94"),
|
|
156
|
+
"pressed-brightness": mode("0.96", "0.9"),
|
|
157
|
+
};
|
|
158
|
+
export const motion = {
|
|
159
|
+
duration: {
|
|
160
|
+
fast: 120,
|
|
161
|
+
"close-overlay": 110,
|
|
162
|
+
overlay: 160,
|
|
163
|
+
"close-dialog": 140,
|
|
164
|
+
dialog: 200,
|
|
165
|
+
"close-sheet": 180,
|
|
166
|
+
sheet: 240,
|
|
167
|
+
"toast-in": 220,
|
|
168
|
+
"toast-out": 160,
|
|
169
|
+
indicator: 180,
|
|
170
|
+
disclosure: 200,
|
|
171
|
+
chart: 240,
|
|
172
|
+
check: 140,
|
|
173
|
+
radio: 160,
|
|
174
|
+
copied: 1200,
|
|
175
|
+
fresh: 1000,
|
|
176
|
+
},
|
|
177
|
+
ease: {
|
|
178
|
+
standard: "cubic-bezier(0.2, 0, 0, 1)",
|
|
179
|
+
overlay: "cubic-bezier(0.16, 1, 0.3, 1)",
|
|
180
|
+
exit: "cubic-bezier(0.4, 0, 1, 1)",
|
|
181
|
+
pulse: "cubic-bezier(0.4, 0, 0.6, 1)",
|
|
182
|
+
},
|
|
183
|
+
skeleton: { duration: 1600, low: 0.55 },
|
|
184
|
+
spinner: { turn: 2400, delay: 300, minimum: 400 },
|
|
185
|
+
};
|
|
186
|
+
export const z = { sticky: 10, sheet: 40, overlay: 50, toast: 60, tooltip: 70 };
|
|
187
|
+
export const optical = {
|
|
188
|
+
"leading-icon": 2,
|
|
189
|
+
"trailing-chevron": 2,
|
|
190
|
+
};
|
|
191
|
+
export const width = {
|
|
192
|
+
prose: "68ch",
|
|
193
|
+
settings: 760,
|
|
194
|
+
auth: 400,
|
|
195
|
+
menuMin: 220,
|
|
196
|
+
menuMax: 360,
|
|
197
|
+
tooltipMax: 280,
|
|
198
|
+
palette: 640,
|
|
199
|
+
fieldLabel: 240,
|
|
200
|
+
aside: 320,
|
|
201
|
+
banner: 480,
|
|
202
|
+
kv: 480,
|
|
203
|
+
};
|
|
204
|
+
export const breakpoint = { sidebar: 1024 };
|
|
205
|
+
export const brandVersion = brand.version;
|