@calcifer-design/tokens 0.2.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/custom-property-scan.d.ts +4 -0
- package/dist/generate.d.ts +14 -1
- package/dist/index.d.ts +7 -2
- package/dist/index.js +437 -47
- package/dist/theme-contrast.d.ts +26 -0
- package/dist/theme.d.ts +61 -0
- package/dist/tokens.css +150 -0
- package/dist/tokens.d.ts +311 -0
- package/package.json +2 -2
package/dist/tokens.d.ts
CHANGED
|
@@ -27,6 +27,12 @@ declare const lightColor: {
|
|
|
27
27
|
readonly accentWash: "rgba(59, 111, 224, 0.035)";
|
|
28
28
|
readonly border: "rgba(28, 25, 23, 0.08)";
|
|
29
29
|
readonly borderStrong: "rgba(28, 25, 23, 0.18)";
|
|
30
|
+
/**
|
|
31
|
+
* The boundary of a control known by its outline alone: the unchecked checkbox, the radio. Opaque
|
|
32
|
+
* so it can be measured: WCAG 1.4.11 asks 3:1, and on the four surfaces `uiContrastPairs` checks
|
|
33
|
+
* the lowest is 3.54:1 (light, surface2) and 5.35:1 (dark, surface2 and surfaceInput).
|
|
34
|
+
*/
|
|
35
|
+
readonly borderControl: "#857F79";
|
|
30
36
|
readonly borderAccent: "rgba(59, 111, 224, 0.28)";
|
|
31
37
|
readonly cardBorder: "transparent";
|
|
32
38
|
/** The scrim behind a modal dialog. Warm black at 45%, so the page reads as inert, not gone. */
|
|
@@ -42,8 +48,60 @@ declare const lightColor: {
|
|
|
42
48
|
readonly chartPhase2: "#3B6FE0";
|
|
43
49
|
readonly chartPhase3: "#8FAAEB";
|
|
44
50
|
readonly chartPhase4: "#1F8A5B";
|
|
51
|
+
readonly selected: "#3B6FE0";
|
|
52
|
+
readonly selectedText: "#FFFFFF";
|
|
53
|
+
readonly selectedSoft: "rgba(59, 111, 224, 0.14)";
|
|
54
|
+
readonly selectedSoftText: "#1C1917";
|
|
55
|
+
readonly inverse: "#1C1917";
|
|
56
|
+
readonly inverseText: "#FFFFFF";
|
|
57
|
+
readonly inverseSoft: "rgba(255, 255, 255, 0.22)";
|
|
58
|
+
readonly inverseSoftText: "#FFFFFF";
|
|
59
|
+
readonly navText: "#57534E";
|
|
60
|
+
readonly navSelected: "transparent";
|
|
61
|
+
readonly navSelectedText: "#1C1917";
|
|
62
|
+
readonly tabBar: "#FFFFFF";
|
|
63
|
+
readonly tabBarText: "#57534E";
|
|
64
|
+
readonly tabBarActive: "#3B6FE0";
|
|
65
|
+
readonly tabBarActiveText: "#FFFFFF";
|
|
66
|
+
readonly sheetHandle: "rgba(28, 25, 23, 0.18)";
|
|
67
|
+
readonly segmentedTrack: "#F4F2EE";
|
|
68
|
+
readonly segmentedBorder: "rgba(28, 25, 23, 0.18)";
|
|
69
|
+
readonly scrimSheet: "rgba(28, 25, 23, 0.45)";
|
|
70
|
+
readonly avatarRing: "#FFFFFF";
|
|
71
|
+
readonly avatarFill1: "#ECE9E3";
|
|
72
|
+
readonly avatarFill2: "#ECE9E3";
|
|
73
|
+
readonly avatarFill3: "#ECE9E3";
|
|
74
|
+
readonly avatarFill4: "#ECE9E3";
|
|
75
|
+
readonly avatarFill5: "#ECE9E3";
|
|
76
|
+
readonly avatarFill6: "#ECE9E3";
|
|
77
|
+
readonly avatarInk1: "#57534E";
|
|
78
|
+
readonly avatarInk2: "#57534E";
|
|
79
|
+
readonly avatarInk3: "#57534E";
|
|
80
|
+
readonly avatarInk4: "#57534E";
|
|
81
|
+
readonly avatarInk5: "#57534E";
|
|
82
|
+
readonly avatarInk6: "#57534E";
|
|
45
83
|
};
|
|
46
84
|
export type ColorName = keyof typeof lightColor;
|
|
85
|
+
declare const lightElevation: {
|
|
86
|
+
readonly 1: "0 2px 8px rgba(28, 25, 23, 0.05), 0 8px 24px rgba(28, 25, 23, 0.05)";
|
|
87
|
+
readonly 2: "0 6px 16px rgba(28, 25, 23, 0.07), 0 20px 48px rgba(28, 25, 23, 0.08)";
|
|
88
|
+
readonly 3: "0 16px 40px rgba(28, 25, 23, 0.10), 0 2px 6px rgba(28, 25, 23, 0.06)";
|
|
89
|
+
};
|
|
90
|
+
export type ElevationName = keyof typeof lightElevation;
|
|
91
|
+
/** The shadows components name by role. Each default is the elevation step it replaces. */
|
|
92
|
+
declare const lightShadow: {
|
|
93
|
+
readonly soft: "0 2px 8px rgba(28, 25, 23, 0.05), 0 8px 24px rgba(28, 25, 23, 0.05)";
|
|
94
|
+
readonly chip: "0 2px 8px rgba(28, 25, 23, 0.05), 0 8px 24px rgba(28, 25, 23, 0.05)";
|
|
95
|
+
readonly raised: "0 6px 16px rgba(28, 25, 23, 0.07), 0 20px 48px rgba(28, 25, 23, 0.08)";
|
|
96
|
+
readonly dialog: "0 16px 40px rgba(28, 25, 23, 0.10), 0 2px 6px rgba(28, 25, 23, 0.06)";
|
|
97
|
+
readonly drawer: "0 16px 40px rgba(28, 25, 23, 0.10), 0 2px 6px rgba(28, 25, 23, 0.06)";
|
|
98
|
+
readonly sheet: "0 16px 40px rgba(28, 25, 23, 0.10), 0 2px 6px rgba(28, 25, 23, 0.06)";
|
|
99
|
+
readonly tabBar: "0 6px 16px rgba(28, 25, 23, 0.07), 0 20px 48px rgba(28, 25, 23, 0.08)";
|
|
100
|
+
readonly action: "none";
|
|
101
|
+
readonly actionInverse: "none";
|
|
102
|
+
readonly segmented: "none";
|
|
103
|
+
};
|
|
104
|
+
export type ShadowName = keyof typeof lightShadow;
|
|
47
105
|
export declare const themes: {
|
|
48
106
|
readonly light: {
|
|
49
107
|
readonly color: {
|
|
@@ -66,6 +124,12 @@ export declare const themes: {
|
|
|
66
124
|
readonly accentWash: "rgba(59, 111, 224, 0.035)";
|
|
67
125
|
readonly border: "rgba(28, 25, 23, 0.08)";
|
|
68
126
|
readonly borderStrong: "rgba(28, 25, 23, 0.18)";
|
|
127
|
+
/**
|
|
128
|
+
* The boundary of a control known by its outline alone: the unchecked checkbox, the radio. Opaque
|
|
129
|
+
* so it can be measured: WCAG 1.4.11 asks 3:1, and on the four surfaces `uiContrastPairs` checks
|
|
130
|
+
* the lowest is 3.54:1 (light, surface2) and 5.35:1 (dark, surface2 and surfaceInput).
|
|
131
|
+
*/
|
|
132
|
+
readonly borderControl: "#857F79";
|
|
69
133
|
readonly borderAccent: "rgba(59, 111, 224, 0.28)";
|
|
70
134
|
readonly cardBorder: "transparent";
|
|
71
135
|
/** The scrim behind a modal dialog. Warm black at 45%, so the page reads as inert, not gone. */
|
|
@@ -81,12 +145,56 @@ export declare const themes: {
|
|
|
81
145
|
readonly chartPhase2: "#3B6FE0";
|
|
82
146
|
readonly chartPhase3: "#8FAAEB";
|
|
83
147
|
readonly chartPhase4: "#1F8A5B";
|
|
148
|
+
readonly selected: "#3B6FE0";
|
|
149
|
+
readonly selectedText: "#FFFFFF";
|
|
150
|
+
readonly selectedSoft: "rgba(59, 111, 224, 0.14)";
|
|
151
|
+
readonly selectedSoftText: "#1C1917";
|
|
152
|
+
readonly inverse: "#1C1917";
|
|
153
|
+
readonly inverseText: "#FFFFFF";
|
|
154
|
+
readonly inverseSoft: "rgba(255, 255, 255, 0.22)";
|
|
155
|
+
readonly inverseSoftText: "#FFFFFF";
|
|
156
|
+
readonly navText: "#57534E";
|
|
157
|
+
readonly navSelected: "transparent";
|
|
158
|
+
readonly navSelectedText: "#1C1917";
|
|
159
|
+
readonly tabBar: "#FFFFFF";
|
|
160
|
+
readonly tabBarText: "#57534E";
|
|
161
|
+
readonly tabBarActive: "#3B6FE0";
|
|
162
|
+
readonly tabBarActiveText: "#FFFFFF";
|
|
163
|
+
readonly sheetHandle: "rgba(28, 25, 23, 0.18)";
|
|
164
|
+
readonly segmentedTrack: "#F4F2EE";
|
|
165
|
+
readonly segmentedBorder: "rgba(28, 25, 23, 0.18)";
|
|
166
|
+
readonly scrimSheet: "rgba(28, 25, 23, 0.45)";
|
|
167
|
+
readonly avatarRing: "#FFFFFF";
|
|
168
|
+
readonly avatarFill1: "#ECE9E3";
|
|
169
|
+
readonly avatarFill2: "#ECE9E3";
|
|
170
|
+
readonly avatarFill3: "#ECE9E3";
|
|
171
|
+
readonly avatarFill4: "#ECE9E3";
|
|
172
|
+
readonly avatarFill5: "#ECE9E3";
|
|
173
|
+
readonly avatarFill6: "#ECE9E3";
|
|
174
|
+
readonly avatarInk1: "#57534E";
|
|
175
|
+
readonly avatarInk2: "#57534E";
|
|
176
|
+
readonly avatarInk3: "#57534E";
|
|
177
|
+
readonly avatarInk4: "#57534E";
|
|
178
|
+
readonly avatarInk5: "#57534E";
|
|
179
|
+
readonly avatarInk6: "#57534E";
|
|
84
180
|
};
|
|
85
181
|
readonly elevation: {
|
|
86
182
|
readonly 1: "0 2px 8px rgba(28, 25, 23, 0.05), 0 8px 24px rgba(28, 25, 23, 0.05)";
|
|
87
183
|
readonly 2: "0 6px 16px rgba(28, 25, 23, 0.07), 0 20px 48px rgba(28, 25, 23, 0.08)";
|
|
88
184
|
readonly 3: "0 16px 40px rgba(28, 25, 23, 0.10), 0 2px 6px rgba(28, 25, 23, 0.06)";
|
|
89
185
|
};
|
|
186
|
+
readonly shadow: {
|
|
187
|
+
readonly soft: "0 2px 8px rgba(28, 25, 23, 0.05), 0 8px 24px rgba(28, 25, 23, 0.05)";
|
|
188
|
+
readonly chip: "0 2px 8px rgba(28, 25, 23, 0.05), 0 8px 24px rgba(28, 25, 23, 0.05)";
|
|
189
|
+
readonly raised: "0 6px 16px rgba(28, 25, 23, 0.07), 0 20px 48px rgba(28, 25, 23, 0.08)";
|
|
190
|
+
readonly dialog: "0 16px 40px rgba(28, 25, 23, 0.10), 0 2px 6px rgba(28, 25, 23, 0.06)";
|
|
191
|
+
readonly drawer: "0 16px 40px rgba(28, 25, 23, 0.10), 0 2px 6px rgba(28, 25, 23, 0.06)";
|
|
192
|
+
readonly sheet: "0 16px 40px rgba(28, 25, 23, 0.10), 0 2px 6px rgba(28, 25, 23, 0.06)";
|
|
193
|
+
readonly tabBar: "0 6px 16px rgba(28, 25, 23, 0.07), 0 20px 48px rgba(28, 25, 23, 0.08)";
|
|
194
|
+
readonly action: "none";
|
|
195
|
+
readonly actionInverse: "none";
|
|
196
|
+
readonly segmented: "none";
|
|
197
|
+
};
|
|
90
198
|
readonly material: {
|
|
91
199
|
readonly glassBg: "rgba(251, 250, 248, 0.78)";
|
|
92
200
|
};
|
|
@@ -111,6 +219,7 @@ export declare const themes: {
|
|
|
111
219
|
readonly accentWash: "rgba(127, 164, 245, 0.05)";
|
|
112
220
|
readonly border: "rgba(255, 255, 255, 0.08)";
|
|
113
221
|
readonly borderStrong: "rgba(255, 255, 255, 0.18)";
|
|
222
|
+
readonly borderControl: "#8A909C";
|
|
114
223
|
readonly borderAccent: "rgba(127, 164, 245, 0.32)";
|
|
115
224
|
readonly cardBorder: "rgba(255, 255, 255, 0.08)";
|
|
116
225
|
/** Heavier than the light theme's: a dark surface needs more separation from a dark page. */
|
|
@@ -126,12 +235,56 @@ export declare const themes: {
|
|
|
126
235
|
readonly chartPhase2: "#7FA4F5";
|
|
127
236
|
readonly chartPhase3: "#4E6BB0";
|
|
128
237
|
readonly chartPhase4: "#4FC38A";
|
|
238
|
+
readonly selected: "#7FA4F5";
|
|
239
|
+
readonly selectedText: "#0B0D12";
|
|
240
|
+
readonly selectedSoft: "rgba(127, 164, 245, 0.18)";
|
|
241
|
+
readonly selectedSoftText: "#EDEEF2";
|
|
242
|
+
readonly inverse: "#EDEEF2";
|
|
243
|
+
readonly inverseText: "#0B0D12";
|
|
244
|
+
readonly inverseSoft: "rgba(11, 13, 18, 0.22)";
|
|
245
|
+
readonly inverseSoftText: "#0B0D12";
|
|
246
|
+
readonly navText: "#A8ADB8";
|
|
247
|
+
readonly navSelected: "transparent";
|
|
248
|
+
readonly navSelectedText: "#EDEEF2";
|
|
249
|
+
readonly tabBar: "#111420";
|
|
250
|
+
readonly tabBarText: "#A8ADB8";
|
|
251
|
+
readonly tabBarActive: "#7FA4F5";
|
|
252
|
+
readonly tabBarActiveText: "#0B0D12";
|
|
253
|
+
readonly sheetHandle: "rgba(255, 255, 255, 0.18)";
|
|
254
|
+
readonly segmentedTrack: "#171B28";
|
|
255
|
+
readonly segmentedBorder: "rgba(255, 255, 255, 0.18)";
|
|
256
|
+
readonly scrimSheet: "rgba(3, 4, 6, 0.6)";
|
|
257
|
+
readonly avatarRing: "#111420";
|
|
258
|
+
readonly avatarFill1: "#1F2434";
|
|
259
|
+
readonly avatarFill2: "#1F2434";
|
|
260
|
+
readonly avatarFill3: "#1F2434";
|
|
261
|
+
readonly avatarFill4: "#1F2434";
|
|
262
|
+
readonly avatarFill5: "#1F2434";
|
|
263
|
+
readonly avatarFill6: "#1F2434";
|
|
264
|
+
readonly avatarInk1: "#A8ADB8";
|
|
265
|
+
readonly avatarInk2: "#A8ADB8";
|
|
266
|
+
readonly avatarInk3: "#A8ADB8";
|
|
267
|
+
readonly avatarInk4: "#A8ADB8";
|
|
268
|
+
readonly avatarInk5: "#A8ADB8";
|
|
269
|
+
readonly avatarInk6: "#A8ADB8";
|
|
129
270
|
};
|
|
130
271
|
readonly elevation: {
|
|
131
272
|
readonly 1: "inset 0 1px 0 rgba(255, 255, 255, 0.06)";
|
|
132
273
|
readonly 2: "inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 1px rgba(255, 255, 255, 0.18)";
|
|
133
274
|
readonly 3: "inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 16px 40px rgba(0, 0, 0, 0.5)";
|
|
134
275
|
};
|
|
276
|
+
readonly shadow: {
|
|
277
|
+
readonly soft: "inset 0 1px 0 rgba(255, 255, 255, 0.06)";
|
|
278
|
+
readonly chip: "inset 0 1px 0 rgba(255, 255, 255, 0.06)";
|
|
279
|
+
readonly raised: "inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 1px rgba(255, 255, 255, 0.18)";
|
|
280
|
+
readonly dialog: "inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 16px 40px rgba(0, 0, 0, 0.5)";
|
|
281
|
+
readonly drawer: "inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 16px 40px rgba(0, 0, 0, 0.5)";
|
|
282
|
+
readonly sheet: "inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 16px 40px rgba(0, 0, 0, 0.5)";
|
|
283
|
+
readonly tabBar: "inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 1px rgba(255, 255, 255, 0.18)";
|
|
284
|
+
readonly action: "none";
|
|
285
|
+
readonly actionInverse: "none";
|
|
286
|
+
readonly segmented: "none";
|
|
287
|
+
};
|
|
135
288
|
readonly material: {
|
|
136
289
|
readonly glassBg: "rgba(11, 13, 18, 0.78)";
|
|
137
290
|
};
|
|
@@ -142,6 +295,23 @@ export declare const shared: {
|
|
|
142
295
|
readonly font: {
|
|
143
296
|
readonly sans: "\"Geist Variable\", \"Geist\", -apple-system, \"SF Pro Display\", \"Segoe UI\", Helvetica, Arial, sans-serif";
|
|
144
297
|
readonly mono: "\"Geist Mono Variable\", \"Geist Mono\", ui-monospace, \"SF Mono\", Menlo, Consolas, monospace";
|
|
298
|
+
readonly display: "\"Geist Variable\", \"Geist\", -apple-system, \"SF Pro Display\", \"Segoe UI\", Helvetica, Arial, sans-serif";
|
|
299
|
+
readonly body: "\"Geist Variable\", \"Geist\", -apple-system, \"SF Pro Display\", \"Segoe UI\", Helvetica, Arial, sans-serif";
|
|
300
|
+
};
|
|
301
|
+
readonly fontWeight: {
|
|
302
|
+
readonly body: "400";
|
|
303
|
+
readonly label: "500";
|
|
304
|
+
readonly button: "500";
|
|
305
|
+
readonly heading: "600";
|
|
306
|
+
readonly nav: "400";
|
|
307
|
+
readonly navSelected: "500";
|
|
308
|
+
readonly display: "600";
|
|
309
|
+
};
|
|
310
|
+
readonly fontStretch: {
|
|
311
|
+
readonly display: "normal";
|
|
312
|
+
};
|
|
313
|
+
readonly textTransform: {
|
|
314
|
+
readonly display: "none";
|
|
145
315
|
};
|
|
146
316
|
readonly text: {
|
|
147
317
|
readonly '2xs': "0.6875rem";
|
|
@@ -193,6 +363,12 @@ export declare const shared: {
|
|
|
193
363
|
readonly lg: "0.75rem";
|
|
194
364
|
readonly xl: "1rem";
|
|
195
365
|
readonly full: "999px";
|
|
366
|
+
readonly control: "0.625rem";
|
|
367
|
+
readonly option: "0.5rem";
|
|
368
|
+
readonly panel: "0.625rem";
|
|
369
|
+
readonly popup: "0.75rem";
|
|
370
|
+
readonly card: "1rem";
|
|
371
|
+
readonly dialog: "1rem";
|
|
196
372
|
};
|
|
197
373
|
/**
|
|
198
374
|
* Border widths above the hairline default: `emphasis` is the active/selected indicator
|
|
@@ -227,11 +403,23 @@ export declare const shared: {
|
|
|
227
403
|
readonly pageMax: "75rem";
|
|
228
404
|
/** Page frame max width at the wide tier: the mock's min(1800px, 90vw). */
|
|
229
405
|
readonly pageMaxWide: "min(112.5rem, 90vw)";
|
|
406
|
+
readonly drawer: "28rem";
|
|
407
|
+
readonly control: "44px";
|
|
408
|
+
readonly controlSm: "2.5rem";
|
|
409
|
+
/** The dialog close circle, 36px, the mock's (O-33). */
|
|
410
|
+
readonly close: "2.25rem";
|
|
230
411
|
};
|
|
231
412
|
readonly measure: "65ch";
|
|
232
413
|
readonly focusRingWidth: "2px";
|
|
233
414
|
readonly focusRingOffset: "2px";
|
|
234
415
|
};
|
|
416
|
+
export type SharedTokens = typeof shared;
|
|
417
|
+
export type ThemeTokens = (typeof themes)['light'];
|
|
418
|
+
export type FontName = keyof typeof shared.font;
|
|
419
|
+
export type FontWeightName = keyof typeof shared.fontWeight;
|
|
420
|
+
export type TextSizeName = keyof typeof shared.text;
|
|
421
|
+
export type RadiusName = keyof typeof shared.radius;
|
|
422
|
+
export type SizeName = keyof typeof shared.size;
|
|
235
423
|
/** Text roles on the surfaces they sit on: must meet WCAG AA 4.5:1 in every theme. */
|
|
236
424
|
export declare const textContrastPairs: ReadonlyArray<readonly [ColorName, ColorName]>;
|
|
237
425
|
/** Non-text UI roles (fills, dots, rings) on the surfaces they sit on: WCAG 1.4.11 asks 3:1. */
|
|
@@ -267,6 +455,12 @@ export declare const tokens: {
|
|
|
267
455
|
readonly accentWash: "rgba(59, 111, 224, 0.035)";
|
|
268
456
|
readonly border: "rgba(28, 25, 23, 0.08)";
|
|
269
457
|
readonly borderStrong: "rgba(28, 25, 23, 0.18)";
|
|
458
|
+
/**
|
|
459
|
+
* The boundary of a control known by its outline alone: the unchecked checkbox, the radio. Opaque
|
|
460
|
+
* so it can be measured: WCAG 1.4.11 asks 3:1, and on the four surfaces `uiContrastPairs` checks
|
|
461
|
+
* the lowest is 3.54:1 (light, surface2) and 5.35:1 (dark, surface2 and surfaceInput).
|
|
462
|
+
*/
|
|
463
|
+
readonly borderControl: "#857F79";
|
|
270
464
|
readonly borderAccent: "rgba(59, 111, 224, 0.28)";
|
|
271
465
|
readonly cardBorder: "transparent";
|
|
272
466
|
/** The scrim behind a modal dialog. Warm black at 45%, so the page reads as inert, not gone. */
|
|
@@ -282,12 +476,56 @@ export declare const tokens: {
|
|
|
282
476
|
readonly chartPhase2: "#3B6FE0";
|
|
283
477
|
readonly chartPhase3: "#8FAAEB";
|
|
284
478
|
readonly chartPhase4: "#1F8A5B";
|
|
479
|
+
readonly selected: "#3B6FE0";
|
|
480
|
+
readonly selectedText: "#FFFFFF";
|
|
481
|
+
readonly selectedSoft: "rgba(59, 111, 224, 0.14)";
|
|
482
|
+
readonly selectedSoftText: "#1C1917";
|
|
483
|
+
readonly inverse: "#1C1917";
|
|
484
|
+
readonly inverseText: "#FFFFFF";
|
|
485
|
+
readonly inverseSoft: "rgba(255, 255, 255, 0.22)";
|
|
486
|
+
readonly inverseSoftText: "#FFFFFF";
|
|
487
|
+
readonly navText: "#57534E";
|
|
488
|
+
readonly navSelected: "transparent";
|
|
489
|
+
readonly navSelectedText: "#1C1917";
|
|
490
|
+
readonly tabBar: "#FFFFFF";
|
|
491
|
+
readonly tabBarText: "#57534E";
|
|
492
|
+
readonly tabBarActive: "#3B6FE0";
|
|
493
|
+
readonly tabBarActiveText: "#FFFFFF";
|
|
494
|
+
readonly sheetHandle: "rgba(28, 25, 23, 0.18)";
|
|
495
|
+
readonly segmentedTrack: "#F4F2EE";
|
|
496
|
+
readonly segmentedBorder: "rgba(28, 25, 23, 0.18)";
|
|
497
|
+
readonly scrimSheet: "rgba(28, 25, 23, 0.45)";
|
|
498
|
+
readonly avatarRing: "#FFFFFF";
|
|
499
|
+
readonly avatarFill1: "#ECE9E3";
|
|
500
|
+
readonly avatarFill2: "#ECE9E3";
|
|
501
|
+
readonly avatarFill3: "#ECE9E3";
|
|
502
|
+
readonly avatarFill4: "#ECE9E3";
|
|
503
|
+
readonly avatarFill5: "#ECE9E3";
|
|
504
|
+
readonly avatarFill6: "#ECE9E3";
|
|
505
|
+
readonly avatarInk1: "#57534E";
|
|
506
|
+
readonly avatarInk2: "#57534E";
|
|
507
|
+
readonly avatarInk3: "#57534E";
|
|
508
|
+
readonly avatarInk4: "#57534E";
|
|
509
|
+
readonly avatarInk5: "#57534E";
|
|
510
|
+
readonly avatarInk6: "#57534E";
|
|
285
511
|
};
|
|
286
512
|
readonly elevation: {
|
|
287
513
|
readonly 1: "0 2px 8px rgba(28, 25, 23, 0.05), 0 8px 24px rgba(28, 25, 23, 0.05)";
|
|
288
514
|
readonly 2: "0 6px 16px rgba(28, 25, 23, 0.07), 0 20px 48px rgba(28, 25, 23, 0.08)";
|
|
289
515
|
readonly 3: "0 16px 40px rgba(28, 25, 23, 0.10), 0 2px 6px rgba(28, 25, 23, 0.06)";
|
|
290
516
|
};
|
|
517
|
+
readonly shadow: {
|
|
518
|
+
readonly soft: "0 2px 8px rgba(28, 25, 23, 0.05), 0 8px 24px rgba(28, 25, 23, 0.05)";
|
|
519
|
+
readonly chip: "0 2px 8px rgba(28, 25, 23, 0.05), 0 8px 24px rgba(28, 25, 23, 0.05)";
|
|
520
|
+
readonly raised: "0 6px 16px rgba(28, 25, 23, 0.07), 0 20px 48px rgba(28, 25, 23, 0.08)";
|
|
521
|
+
readonly dialog: "0 16px 40px rgba(28, 25, 23, 0.10), 0 2px 6px rgba(28, 25, 23, 0.06)";
|
|
522
|
+
readonly drawer: "0 16px 40px rgba(28, 25, 23, 0.10), 0 2px 6px rgba(28, 25, 23, 0.06)";
|
|
523
|
+
readonly sheet: "0 16px 40px rgba(28, 25, 23, 0.10), 0 2px 6px rgba(28, 25, 23, 0.06)";
|
|
524
|
+
readonly tabBar: "0 6px 16px rgba(28, 25, 23, 0.07), 0 20px 48px rgba(28, 25, 23, 0.08)";
|
|
525
|
+
readonly action: "none";
|
|
526
|
+
readonly actionInverse: "none";
|
|
527
|
+
readonly segmented: "none";
|
|
528
|
+
};
|
|
291
529
|
readonly material: {
|
|
292
530
|
readonly glassBg: "rgba(251, 250, 248, 0.78)";
|
|
293
531
|
};
|
|
@@ -312,6 +550,7 @@ export declare const tokens: {
|
|
|
312
550
|
readonly accentWash: "rgba(127, 164, 245, 0.05)";
|
|
313
551
|
readonly border: "rgba(255, 255, 255, 0.08)";
|
|
314
552
|
readonly borderStrong: "rgba(255, 255, 255, 0.18)";
|
|
553
|
+
readonly borderControl: "#8A909C";
|
|
315
554
|
readonly borderAccent: "rgba(127, 164, 245, 0.32)";
|
|
316
555
|
readonly cardBorder: "rgba(255, 255, 255, 0.08)";
|
|
317
556
|
/** Heavier than the light theme's: a dark surface needs more separation from a dark page. */
|
|
@@ -327,12 +566,56 @@ export declare const tokens: {
|
|
|
327
566
|
readonly chartPhase2: "#7FA4F5";
|
|
328
567
|
readonly chartPhase3: "#4E6BB0";
|
|
329
568
|
readonly chartPhase4: "#4FC38A";
|
|
569
|
+
readonly selected: "#7FA4F5";
|
|
570
|
+
readonly selectedText: "#0B0D12";
|
|
571
|
+
readonly selectedSoft: "rgba(127, 164, 245, 0.18)";
|
|
572
|
+
readonly selectedSoftText: "#EDEEF2";
|
|
573
|
+
readonly inverse: "#EDEEF2";
|
|
574
|
+
readonly inverseText: "#0B0D12";
|
|
575
|
+
readonly inverseSoft: "rgba(11, 13, 18, 0.22)";
|
|
576
|
+
readonly inverseSoftText: "#0B0D12";
|
|
577
|
+
readonly navText: "#A8ADB8";
|
|
578
|
+
readonly navSelected: "transparent";
|
|
579
|
+
readonly navSelectedText: "#EDEEF2";
|
|
580
|
+
readonly tabBar: "#111420";
|
|
581
|
+
readonly tabBarText: "#A8ADB8";
|
|
582
|
+
readonly tabBarActive: "#7FA4F5";
|
|
583
|
+
readonly tabBarActiveText: "#0B0D12";
|
|
584
|
+
readonly sheetHandle: "rgba(255, 255, 255, 0.18)";
|
|
585
|
+
readonly segmentedTrack: "#171B28";
|
|
586
|
+
readonly segmentedBorder: "rgba(255, 255, 255, 0.18)";
|
|
587
|
+
readonly scrimSheet: "rgba(3, 4, 6, 0.6)";
|
|
588
|
+
readonly avatarRing: "#111420";
|
|
589
|
+
readonly avatarFill1: "#1F2434";
|
|
590
|
+
readonly avatarFill2: "#1F2434";
|
|
591
|
+
readonly avatarFill3: "#1F2434";
|
|
592
|
+
readonly avatarFill4: "#1F2434";
|
|
593
|
+
readonly avatarFill5: "#1F2434";
|
|
594
|
+
readonly avatarFill6: "#1F2434";
|
|
595
|
+
readonly avatarInk1: "#A8ADB8";
|
|
596
|
+
readonly avatarInk2: "#A8ADB8";
|
|
597
|
+
readonly avatarInk3: "#A8ADB8";
|
|
598
|
+
readonly avatarInk4: "#A8ADB8";
|
|
599
|
+
readonly avatarInk5: "#A8ADB8";
|
|
600
|
+
readonly avatarInk6: "#A8ADB8";
|
|
330
601
|
};
|
|
331
602
|
readonly elevation: {
|
|
332
603
|
readonly 1: "inset 0 1px 0 rgba(255, 255, 255, 0.06)";
|
|
333
604
|
readonly 2: "inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 1px rgba(255, 255, 255, 0.18)";
|
|
334
605
|
readonly 3: "inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 16px 40px rgba(0, 0, 0, 0.5)";
|
|
335
606
|
};
|
|
607
|
+
readonly shadow: {
|
|
608
|
+
readonly soft: "inset 0 1px 0 rgba(255, 255, 255, 0.06)";
|
|
609
|
+
readonly chip: "inset 0 1px 0 rgba(255, 255, 255, 0.06)";
|
|
610
|
+
readonly raised: "inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 1px rgba(255, 255, 255, 0.18)";
|
|
611
|
+
readonly dialog: "inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 16px 40px rgba(0, 0, 0, 0.5)";
|
|
612
|
+
readonly drawer: "inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 16px 40px rgba(0, 0, 0, 0.5)";
|
|
613
|
+
readonly sheet: "inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 16px 40px rgba(0, 0, 0, 0.5)";
|
|
614
|
+
readonly tabBar: "inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 1px rgba(255, 255, 255, 0.18)";
|
|
615
|
+
readonly action: "none";
|
|
616
|
+
readonly actionInverse: "none";
|
|
617
|
+
readonly segmented: "none";
|
|
618
|
+
};
|
|
336
619
|
readonly material: {
|
|
337
620
|
readonly glassBg: "rgba(11, 13, 18, 0.78)";
|
|
338
621
|
};
|
|
@@ -342,6 +625,23 @@ export declare const tokens: {
|
|
|
342
625
|
readonly font: {
|
|
343
626
|
readonly sans: "\"Geist Variable\", \"Geist\", -apple-system, \"SF Pro Display\", \"Segoe UI\", Helvetica, Arial, sans-serif";
|
|
344
627
|
readonly mono: "\"Geist Mono Variable\", \"Geist Mono\", ui-monospace, \"SF Mono\", Menlo, Consolas, monospace";
|
|
628
|
+
readonly display: "\"Geist Variable\", \"Geist\", -apple-system, \"SF Pro Display\", \"Segoe UI\", Helvetica, Arial, sans-serif";
|
|
629
|
+
readonly body: "\"Geist Variable\", \"Geist\", -apple-system, \"SF Pro Display\", \"Segoe UI\", Helvetica, Arial, sans-serif";
|
|
630
|
+
};
|
|
631
|
+
readonly fontWeight: {
|
|
632
|
+
readonly body: "400";
|
|
633
|
+
readonly label: "500";
|
|
634
|
+
readonly button: "500";
|
|
635
|
+
readonly heading: "600";
|
|
636
|
+
readonly nav: "400";
|
|
637
|
+
readonly navSelected: "500";
|
|
638
|
+
readonly display: "600";
|
|
639
|
+
};
|
|
640
|
+
readonly fontStretch: {
|
|
641
|
+
readonly display: "normal";
|
|
642
|
+
};
|
|
643
|
+
readonly textTransform: {
|
|
644
|
+
readonly display: "none";
|
|
345
645
|
};
|
|
346
646
|
readonly text: {
|
|
347
647
|
readonly '2xs': "0.6875rem";
|
|
@@ -393,6 +693,12 @@ export declare const tokens: {
|
|
|
393
693
|
readonly lg: "0.75rem";
|
|
394
694
|
readonly xl: "1rem";
|
|
395
695
|
readonly full: "999px";
|
|
696
|
+
readonly control: "0.625rem";
|
|
697
|
+
readonly option: "0.5rem";
|
|
698
|
+
readonly panel: "0.625rem";
|
|
699
|
+
readonly popup: "0.75rem";
|
|
700
|
+
readonly card: "1rem";
|
|
701
|
+
readonly dialog: "1rem";
|
|
396
702
|
};
|
|
397
703
|
/**
|
|
398
704
|
* Border widths above the hairline default: `emphasis` is the active/selected indicator
|
|
@@ -427,6 +733,11 @@ export declare const tokens: {
|
|
|
427
733
|
readonly pageMax: "75rem";
|
|
428
734
|
/** Page frame max width at the wide tier: the mock's min(1800px, 90vw). */
|
|
429
735
|
readonly pageMaxWide: "min(112.5rem, 90vw)";
|
|
736
|
+
readonly drawer: "28rem";
|
|
737
|
+
readonly control: "44px";
|
|
738
|
+
readonly controlSm: "2.5rem";
|
|
739
|
+
/** The dialog close circle, 36px, the mock's (O-33). */
|
|
740
|
+
readonly close: "2.25rem";
|
|
430
741
|
};
|
|
431
742
|
readonly measure: "65ch";
|
|
432
743
|
readonly focusRingWidth: "2px";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@calcifer-design/tokens",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@calcifer-design/tsconfig": "0.0.0",
|
|
37
|
-
"@rslib/core": "1.0.
|
|
37
|
+
"@rslib/core": "1.0.1",
|
|
38
38
|
"fast-glob": "^3.3.3"
|
|
39
39
|
}
|
|
40
40
|
}
|