@kolamui/tokens 0.0.0-canary-32a322e
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 +35 -0
- package/dist/index.d.ts +191 -0
- package/dist/index.js +2433 -0
- package/dist/tokens.css +611 -0
- package/dist/tokens.json +2256 -0
- package/package.json +52 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,2433 @@
|
|
|
1
|
+
// src/tokens.json
|
|
2
|
+
var tokens_default = {
|
|
3
|
+
name: "Kolam",
|
|
4
|
+
version: 2,
|
|
5
|
+
color: {
|
|
6
|
+
"note": "Ratios in usage notes are computed from the values (WCAG 2.x, rounded down to one decimal) by the build; CI fails if a note disagrees with the computed ratio.",
|
|
7
|
+
"tokens": [
|
|
8
|
+
{
|
|
9
|
+
"name": "background",
|
|
10
|
+
"value": {
|
|
11
|
+
"light": "#FFFFFF",
|
|
12
|
+
"dark": "#0F0F11"
|
|
13
|
+
},
|
|
14
|
+
"ref": {
|
|
15
|
+
"light": "stone.0",
|
|
16
|
+
"dark": "stone.940"
|
|
17
|
+
},
|
|
18
|
+
"role": "ground",
|
|
19
|
+
"usage": "Page background. The ground everything else sits on."
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"name": "background-sunken",
|
|
23
|
+
"value": {
|
|
24
|
+
"light": "#FAFAF9",
|
|
25
|
+
"dark": "#141416",
|
|
26
|
+
"contrast": "#FFFFFF"
|
|
27
|
+
},
|
|
28
|
+
"ref": {
|
|
29
|
+
"light": "stone.25",
|
|
30
|
+
"dark": "stone.920",
|
|
31
|
+
"contrast": "stone.0"
|
|
32
|
+
},
|
|
33
|
+
"role": "ground",
|
|
34
|
+
"usage": "Sidebars, docs navigation, preview stages and table headers. One step below the page."
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "surface",
|
|
38
|
+
"value": {
|
|
39
|
+
"light": "#FFFFFF",
|
|
40
|
+
"dark": "#18181B"
|
|
41
|
+
},
|
|
42
|
+
"ref": {
|
|
43
|
+
"light": "stone.0",
|
|
44
|
+
"dark": "stone.900"
|
|
45
|
+
},
|
|
46
|
+
"role": "ground",
|
|
47
|
+
"usage": "Cards and controls. In light mode it matches the page; the border does the separating."
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"name": "surface-2",
|
|
51
|
+
"value": {
|
|
52
|
+
"light": "#FAFAF9",
|
|
53
|
+
"dark": "#1F1F23"
|
|
54
|
+
},
|
|
55
|
+
"ref": {
|
|
56
|
+
"light": "stone.25",
|
|
57
|
+
"dark": "stone.860"
|
|
58
|
+
},
|
|
59
|
+
"role": "ground",
|
|
60
|
+
"usage": "Second surface level: a panel or well inside a card, the hover of a clickable card. Dark: one lift step above surface (Studio 'Surface lift')."
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "popover",
|
|
64
|
+
"value": {
|
|
65
|
+
"light": "#FFFFFF",
|
|
66
|
+
"dark": "#1F1F23"
|
|
67
|
+
},
|
|
68
|
+
"ref": {
|
|
69
|
+
"light": "stone.0",
|
|
70
|
+
"dark": "stone.860"
|
|
71
|
+
},
|
|
72
|
+
"role": "ground",
|
|
73
|
+
"usage": "Menus, popovers, dialogs, toasts: anything that floats. Always paired with shadow-overlay."
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"name": "foreground",
|
|
77
|
+
"value": {
|
|
78
|
+
"light": "#18181B",
|
|
79
|
+
"dark": "#FAFAF9",
|
|
80
|
+
"contrast": "#000000"
|
|
81
|
+
},
|
|
82
|
+
"ref": {
|
|
83
|
+
"light": "stone.900",
|
|
84
|
+
"dark": "stone.25",
|
|
85
|
+
"contrast": "stone.1000"
|
|
86
|
+
},
|
|
87
|
+
"role": "text",
|
|
88
|
+
"check": {
|
|
89
|
+
"grounds": [
|
|
90
|
+
"background",
|
|
91
|
+
"background-sunken",
|
|
92
|
+
"surface",
|
|
93
|
+
"surface-2",
|
|
94
|
+
"popover",
|
|
95
|
+
"muted",
|
|
96
|
+
"hover",
|
|
97
|
+
"nav-active"
|
|
98
|
+
],
|
|
99
|
+
"min": {
|
|
100
|
+
"light": 4.5,
|
|
101
|
+
"dark": 4.5,
|
|
102
|
+
"contrast": 7
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"usage": "Body text, headings and icons on background, background-sunken, surface, popover and muted. 17.7:1 light, 18.3:1 dark on background; 16.0:1 / 14.4:1 on muted."
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"name": "muted-foreground",
|
|
109
|
+
"value": {
|
|
110
|
+
"light": "#5F5E5A",
|
|
111
|
+
"dark": "#A8A5A0",
|
|
112
|
+
"contrast": "#3F3E3B"
|
|
113
|
+
},
|
|
114
|
+
"ref": {
|
|
115
|
+
"light": "stone.600",
|
|
116
|
+
"dark": "stone.400",
|
|
117
|
+
"contrast": "stone.710"
|
|
118
|
+
},
|
|
119
|
+
"role": "text",
|
|
120
|
+
"check": {
|
|
121
|
+
"grounds": [
|
|
122
|
+
"background",
|
|
123
|
+
"surface",
|
|
124
|
+
"muted"
|
|
125
|
+
],
|
|
126
|
+
"min": {
|
|
127
|
+
"light": 4.5,
|
|
128
|
+
"dark": 4.5,
|
|
129
|
+
"contrast": 7
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
"usage": "Secondary text: descriptions, help text, metadata, inactive tabs. On background and muted: 6.4:1 / 5.8:1 light, 7.8:1 / 6.1:1 dark."
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"name": "faint-foreground",
|
|
136
|
+
"value": {
|
|
137
|
+
"light": "#A8A5A0",
|
|
138
|
+
"dark": "#6E6C68",
|
|
139
|
+
"contrast": "#6E6C68"
|
|
140
|
+
},
|
|
141
|
+
"ref": {
|
|
142
|
+
"light": "stone.400",
|
|
143
|
+
"dark": "stone.550",
|
|
144
|
+
"contrast": "stone.550"
|
|
145
|
+
},
|
|
146
|
+
"role": "decor",
|
|
147
|
+
"usage": "Decoration only: days outside the month, disabled glyphs, dividers in text. Never for text that must be read (2.4:1 light)."
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"name": "placeholder",
|
|
151
|
+
"value": {
|
|
152
|
+
"light": "#767470",
|
|
153
|
+
"dark": "#8A8883",
|
|
154
|
+
"contrast": "#57554F"
|
|
155
|
+
},
|
|
156
|
+
"ref": {
|
|
157
|
+
"light": "stone.500",
|
|
158
|
+
"dark": "stone.450",
|
|
159
|
+
"contrast": "stone.650"
|
|
160
|
+
},
|
|
161
|
+
"role": "text",
|
|
162
|
+
"check": {
|
|
163
|
+
"grounds": ["surface"],
|
|
164
|
+
"min": {
|
|
165
|
+
"light": 4.5,
|
|
166
|
+
"dark": 4.5,
|
|
167
|
+
"contrast": 7
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
"usage": "Input placeholder text on surface. 4.6:1 light, 5.0:1 dark. Never a substitute for a label."
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"name": "border",
|
|
174
|
+
"value": {
|
|
175
|
+
"light": "#E7E5E2",
|
|
176
|
+
"dark": "#2E2E33",
|
|
177
|
+
"contrast": "#6E6C68"
|
|
178
|
+
},
|
|
179
|
+
"ref": {
|
|
180
|
+
"light": "stone.175",
|
|
181
|
+
"dark": "stone.800",
|
|
182
|
+
"contrast": "stone.550"
|
|
183
|
+
},
|
|
184
|
+
"role": "border",
|
|
185
|
+
"check": {
|
|
186
|
+
"grounds": ["surface"],
|
|
187
|
+
"min": { "contrast": 3 }
|
|
188
|
+
},
|
|
189
|
+
"usage": "Card, table and divider lines. Decorative: the content inside carries the meaning."
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"name": "input",
|
|
193
|
+
"value": {
|
|
194
|
+
"light": "#D6D3CF",
|
|
195
|
+
"dark": "#45454C",
|
|
196
|
+
"contrast": "#57554F"
|
|
197
|
+
},
|
|
198
|
+
"ref": {
|
|
199
|
+
"light": "stone.250",
|
|
200
|
+
"dark": "stone.700",
|
|
201
|
+
"contrast": "stone.650"
|
|
202
|
+
},
|
|
203
|
+
"role": "border",
|
|
204
|
+
"check": {
|
|
205
|
+
"grounds": ["surface"],
|
|
206
|
+
"min": { "contrast": 3 }
|
|
207
|
+
},
|
|
208
|
+
"usage": "Control borders: inputs, selects, outline buttons, checkbox and radio rings. 1.4:1 light, 1.8:1 dark: below 3:1, so every control keeps a visible label beside it; the high-contrast theme raises it to 7.4:1."
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"name": "input-hover",
|
|
212
|
+
"value": {
|
|
213
|
+
"light": "#A8A5A0",
|
|
214
|
+
"dark": "#6E6C68",
|
|
215
|
+
"contrast": "#18181B"
|
|
216
|
+
},
|
|
217
|
+
"ref": {
|
|
218
|
+
"light": "stone.400",
|
|
219
|
+
"dark": "stone.550",
|
|
220
|
+
"contrast": "stone.900"
|
|
221
|
+
},
|
|
222
|
+
"role": "border",
|
|
223
|
+
"usage": "Control border on hover (2.4:1 light, 3.3:1 dark)."
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"name": "primary",
|
|
227
|
+
"value": {
|
|
228
|
+
"light": "#18181B",
|
|
229
|
+
"dark": "#FAFAF9",
|
|
230
|
+
"contrast": "#000000"
|
|
231
|
+
},
|
|
232
|
+
"ref": {
|
|
233
|
+
"light": "stone.900",
|
|
234
|
+
"dark": "stone.25",
|
|
235
|
+
"contrast": "stone.1000"
|
|
236
|
+
},
|
|
237
|
+
"role": "fill",
|
|
238
|
+
"usage": "The one main action per view: primary buttons, checked checkboxes, switches on, selected days, slider range."
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
"name": "primary-hover",
|
|
242
|
+
"value": {
|
|
243
|
+
"light": "#3F3F46",
|
|
244
|
+
"dark": "#E4E4E7",
|
|
245
|
+
"contrast": "#27272A"
|
|
246
|
+
},
|
|
247
|
+
"ref": {
|
|
248
|
+
"light": "stone.720",
|
|
249
|
+
"dark": "stone.200",
|
|
250
|
+
"contrast": "stone.820"
|
|
251
|
+
},
|
|
252
|
+
"role": "fill",
|
|
253
|
+
"usage": "Primary fill on hover and press."
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"name": "primary-foreground",
|
|
257
|
+
"value": {
|
|
258
|
+
"light": "#FFFFFF",
|
|
259
|
+
"dark": "#18181B"
|
|
260
|
+
},
|
|
261
|
+
"ref": {
|
|
262
|
+
"light": "stone.0",
|
|
263
|
+
"dark": "stone.900"
|
|
264
|
+
},
|
|
265
|
+
"role": "text",
|
|
266
|
+
"check": {
|
|
267
|
+
"grounds": ["primary"],
|
|
268
|
+
"min": {
|
|
269
|
+
"light": 4.5,
|
|
270
|
+
"dark": 4.5,
|
|
271
|
+
"contrast": 7
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
"usage": "Text and icons on primary. 17.7:1 light, 16.9:1 dark."
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"name": "muted",
|
|
278
|
+
"value": {
|
|
279
|
+
"light": "#F4F4F2",
|
|
280
|
+
"dark": "#26262B",
|
|
281
|
+
"contrast": "#EDEBE7"
|
|
282
|
+
},
|
|
283
|
+
"ref": {
|
|
284
|
+
"light": "stone.50",
|
|
285
|
+
"dark": "stone.840",
|
|
286
|
+
"contrast": "stone.125"
|
|
287
|
+
},
|
|
288
|
+
"role": "fill",
|
|
289
|
+
"usage": "Quiet fills: secondary buttons, segmented-control track, code, kbd, chips, toggles that are on."
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"name": "muted-hover",
|
|
293
|
+
"value": {
|
|
294
|
+
"light": "#EAE8E4",
|
|
295
|
+
"dark": "#303036"
|
|
296
|
+
},
|
|
297
|
+
"ref": {
|
|
298
|
+
"light": "stone.150",
|
|
299
|
+
"dark": "stone.780"
|
|
300
|
+
},
|
|
301
|
+
"role": "fill",
|
|
302
|
+
"usage": "Secondary button hover; toggle on."
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
"name": "hover",
|
|
306
|
+
"value": {
|
|
307
|
+
"light": "#F4F4F2",
|
|
308
|
+
"dark": "#26262B",
|
|
309
|
+
"contrast": "#EDEBE7"
|
|
310
|
+
},
|
|
311
|
+
"ref": {
|
|
312
|
+
"light": "stone.50",
|
|
313
|
+
"dark": "stone.840",
|
|
314
|
+
"contrast": "stone.125"
|
|
315
|
+
},
|
|
316
|
+
"role": "fill",
|
|
317
|
+
"usage": "Hover and highlighted row in menus, lists, tables and ghost buttons."
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
"name": "nav-active",
|
|
321
|
+
"value": {
|
|
322
|
+
"light": "#EFEDEA",
|
|
323
|
+
"dark": "#26262B",
|
|
324
|
+
"contrast": "#E2DFDA"
|
|
325
|
+
},
|
|
326
|
+
"ref": {
|
|
327
|
+
"light": "stone.100",
|
|
328
|
+
"dark": "stone.840",
|
|
329
|
+
"contrast": "stone.225"
|
|
330
|
+
},
|
|
331
|
+
"role": "fill",
|
|
332
|
+
"usage": "The current item in a sidebar, docs navigation or tree."
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
"name": "segment",
|
|
336
|
+
"value": {
|
|
337
|
+
"light": "#FFFFFF",
|
|
338
|
+
"dark": "#3A3A40"
|
|
339
|
+
},
|
|
340
|
+
"ref": {
|
|
341
|
+
"light": "stone.0",
|
|
342
|
+
"dark": "stone.740"
|
|
343
|
+
},
|
|
344
|
+
"role": "fill",
|
|
345
|
+
"usage": "The selected option inside a segmented control or pill tabs."
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"name": "accent",
|
|
349
|
+
"value": {
|
|
350
|
+
"light": "#E0502A",
|
|
351
|
+
"dark": "#F26B47",
|
|
352
|
+
"contrast": "#B83A17"
|
|
353
|
+
},
|
|
354
|
+
"ref": {
|
|
355
|
+
"light": "vermilion.500",
|
|
356
|
+
"dark": "vermilion.400",
|
|
357
|
+
"contrast": "vermilion.700"
|
|
358
|
+
},
|
|
359
|
+
"role": "fill",
|
|
360
|
+
"usage": "Vermilion. Brand moments: the kolam line, focus rings, chart series 1, the \"New\" badge, progress highlights, active indicators. Not a fill behind small text (3.9:1 with white)."
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
"name": "accent-hover",
|
|
364
|
+
"value": {
|
|
365
|
+
"light": "#C9441F",
|
|
366
|
+
"dark": "#F4825F"
|
|
367
|
+
},
|
|
368
|
+
"ref": {
|
|
369
|
+
"light": "vermilion.600",
|
|
370
|
+
"dark": "vermilion.300"
|
|
371
|
+
},
|
|
372
|
+
"role": "fill",
|
|
373
|
+
"usage": "Accent fill on hover."
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
"name": "accent-foreground",
|
|
377
|
+
"value": {
|
|
378
|
+
"light": "#FFFFFF",
|
|
379
|
+
"dark": "#18181B"
|
|
380
|
+
},
|
|
381
|
+
"ref": {
|
|
382
|
+
"light": "stone.0",
|
|
383
|
+
"dark": "stone.900"
|
|
384
|
+
},
|
|
385
|
+
"role": "icon",
|
|
386
|
+
"check": {
|
|
387
|
+
"grounds": ["accent"],
|
|
388
|
+
"min": {
|
|
389
|
+
"light": 3,
|
|
390
|
+
"dark": 3,
|
|
391
|
+
"contrast": 3
|
|
392
|
+
}
|
|
393
|
+
},
|
|
394
|
+
"usage": "Icons on an accent fill (light 3.9:1: icons and bold text 19px+ only; dark 5.8:1)."
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
"name": "accent-text",
|
|
398
|
+
"value": {
|
|
399
|
+
"light": "#B83A17",
|
|
400
|
+
"dark": "#F4A58C",
|
|
401
|
+
"contrast": "#8F2A0F"
|
|
402
|
+
},
|
|
403
|
+
"ref": {
|
|
404
|
+
"light": "vermilion.700",
|
|
405
|
+
"dark": "vermilion.200",
|
|
406
|
+
"contrast": "vermilion.800"
|
|
407
|
+
},
|
|
408
|
+
"role": "text",
|
|
409
|
+
"check": {
|
|
410
|
+
"grounds": [
|
|
411
|
+
"background",
|
|
412
|
+
"surface",
|
|
413
|
+
"accent-subtle"
|
|
414
|
+
],
|
|
415
|
+
"min": {
|
|
416
|
+
"light": 4.5,
|
|
417
|
+
"dark": 4.5,
|
|
418
|
+
"contrast": 7
|
|
419
|
+
}
|
|
420
|
+
},
|
|
421
|
+
"usage": "Accent-coloured text and links on background, surface and accent-subtle. 5.7:1 / 5.0:1 light, 9.6:1 / 7.8:1 dark."
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
"name": "accent-subtle",
|
|
425
|
+
"value": {
|
|
426
|
+
"light": "#FDECE6",
|
|
427
|
+
"dark": "#3A1C14"
|
|
428
|
+
},
|
|
429
|
+
"ref": {
|
|
430
|
+
"light": "vermilion.50",
|
|
431
|
+
"dark": "vermilion.950"
|
|
432
|
+
},
|
|
433
|
+
"role": "fill",
|
|
434
|
+
"usage": "Tinted fills: accent badges, drop targets, highlighted text, the avatar tint."
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
"name": "ring",
|
|
438
|
+
"value": {
|
|
439
|
+
"light": "#E0502A",
|
|
440
|
+
"dark": "#F26B47",
|
|
441
|
+
"contrast": "#B83A17"
|
|
442
|
+
},
|
|
443
|
+
"ref": {
|
|
444
|
+
"light": "vermilion.500",
|
|
445
|
+
"dark": "vermilion.400",
|
|
446
|
+
"contrast": "vermilion.700"
|
|
447
|
+
},
|
|
448
|
+
"role": "focus",
|
|
449
|
+
"check": {
|
|
450
|
+
"grounds": ["background", "surface"],
|
|
451
|
+
"min": {
|
|
452
|
+
"light": 3,
|
|
453
|
+
"dark": 3,
|
|
454
|
+
"contrast": 3
|
|
455
|
+
}
|
|
456
|
+
},
|
|
457
|
+
"usage": "Keyboard focus ring on every surface. 3.9:1 on white, 3.5:1 on muted, 6.3:1 on the dark page."
|
|
458
|
+
},
|
|
459
|
+
{
|
|
460
|
+
"name": "ring-soft",
|
|
461
|
+
"value": {
|
|
462
|
+
"light": "rgba(224,80,42,0.22)",
|
|
463
|
+
"dark": "rgba(242,107,71,0.3)"
|
|
464
|
+
},
|
|
465
|
+
"role": "decor",
|
|
466
|
+
"usage": "The soft halo around a focused text field, outside its ring-coloured border."
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
"name": "danger",
|
|
470
|
+
"value": {
|
|
471
|
+
"light": "#B42318",
|
|
472
|
+
"dark": "#F87171",
|
|
473
|
+
"contrast": "#8F1D13"
|
|
474
|
+
},
|
|
475
|
+
"ref": {
|
|
476
|
+
"light": "red.700",
|
|
477
|
+
"dark": "red.300",
|
|
478
|
+
"contrast": "red.800"
|
|
479
|
+
},
|
|
480
|
+
"role": "icon",
|
|
481
|
+
"check": {
|
|
482
|
+
"grounds": ["background"],
|
|
483
|
+
"min": {
|
|
484
|
+
"light": 3,
|
|
485
|
+
"dark": 3,
|
|
486
|
+
"contrast": 3
|
|
487
|
+
}
|
|
488
|
+
},
|
|
489
|
+
"usage": "Destructive buttons, invalid field borders, error icons."
|
|
490
|
+
},
|
|
491
|
+
{
|
|
492
|
+
"name": "danger-hover",
|
|
493
|
+
"value": {
|
|
494
|
+
"light": "#962015",
|
|
495
|
+
"dark": "#FCA5A5",
|
|
496
|
+
"contrast": "#741810"
|
|
497
|
+
},
|
|
498
|
+
"ref": {
|
|
499
|
+
"light": "red.750",
|
|
500
|
+
"dark": "red.200",
|
|
501
|
+
"contrast": "red.900"
|
|
502
|
+
},
|
|
503
|
+
"role": "fill",
|
|
504
|
+
"usage": "Destructive button hover."
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
"name": "danger-foreground",
|
|
508
|
+
"value": {
|
|
509
|
+
"light": "#FFFFFF",
|
|
510
|
+
"dark": "#18181B"
|
|
511
|
+
},
|
|
512
|
+
"ref": {
|
|
513
|
+
"light": "stone.0",
|
|
514
|
+
"dark": "stone.900"
|
|
515
|
+
},
|
|
516
|
+
"role": "text",
|
|
517
|
+
"check": {
|
|
518
|
+
"grounds": ["danger"],
|
|
519
|
+
"min": {
|
|
520
|
+
"light": 4.5,
|
|
521
|
+
"dark": 4.5,
|
|
522
|
+
"contrast": 7
|
|
523
|
+
}
|
|
524
|
+
},
|
|
525
|
+
"usage": "Text on danger. 6.5:1 light, 6.4:1 dark."
|
|
526
|
+
},
|
|
527
|
+
{
|
|
528
|
+
"name": "danger-text",
|
|
529
|
+
"value": {
|
|
530
|
+
"light": "#B42318",
|
|
531
|
+
"dark": "#F87171",
|
|
532
|
+
"contrast": "#8F1D13"
|
|
533
|
+
},
|
|
534
|
+
"ref": {
|
|
535
|
+
"light": "red.700",
|
|
536
|
+
"dark": "red.300",
|
|
537
|
+
"contrast": "red.800"
|
|
538
|
+
},
|
|
539
|
+
"role": "text",
|
|
540
|
+
"check": {
|
|
541
|
+
"grounds": [
|
|
542
|
+
"background",
|
|
543
|
+
"surface",
|
|
544
|
+
"danger-subtle"
|
|
545
|
+
],
|
|
546
|
+
"min": {
|
|
547
|
+
"light": 4.5,
|
|
548
|
+
"dark": 4.5,
|
|
549
|
+
"contrast": 7
|
|
550
|
+
}
|
|
551
|
+
},
|
|
552
|
+
"usage": "Error messages and destructive menu items on background, surface and danger-subtle. 6.5:1 / 5.5:1 light, 6.9:1 / 5.8:1 dark."
|
|
553
|
+
},
|
|
554
|
+
{
|
|
555
|
+
"name": "danger-soft",
|
|
556
|
+
"value": {
|
|
557
|
+
"light": "rgba(180,35,24,0.18)",
|
|
558
|
+
"dark": "rgba(248,113,113,0.25)"
|
|
559
|
+
},
|
|
560
|
+
"role": "decor",
|
|
561
|
+
"usage": "The halo around an invalid field."
|
|
562
|
+
},
|
|
563
|
+
{
|
|
564
|
+
"name": "danger-subtle",
|
|
565
|
+
"value": {
|
|
566
|
+
"light": "#FDE8E8",
|
|
567
|
+
"dark": "#3B1414"
|
|
568
|
+
},
|
|
569
|
+
"ref": {
|
|
570
|
+
"light": "red.50",
|
|
571
|
+
"dark": "red.950"
|
|
572
|
+
},
|
|
573
|
+
"role": "fill",
|
|
574
|
+
"usage": "Danger alerts, overdue badges, invalid chips."
|
|
575
|
+
},
|
|
576
|
+
{
|
|
577
|
+
"name": "success",
|
|
578
|
+
"value": {
|
|
579
|
+
"light": "#15803D",
|
|
580
|
+
"dark": "#4ADE80",
|
|
581
|
+
"contrast": "#0B5229"
|
|
582
|
+
},
|
|
583
|
+
"ref": {
|
|
584
|
+
"light": "green.700",
|
|
585
|
+
"dark": "green.400",
|
|
586
|
+
"contrast": "green.900"
|
|
587
|
+
},
|
|
588
|
+
"role": "icon",
|
|
589
|
+
"check": {
|
|
590
|
+
"grounds": ["background"],
|
|
591
|
+
"min": {
|
|
592
|
+
"light": 3,
|
|
593
|
+
"dark": 3,
|
|
594
|
+
"contrast": 3
|
|
595
|
+
}
|
|
596
|
+
},
|
|
597
|
+
"usage": "Success icons, meters in the good range, online status dots."
|
|
598
|
+
},
|
|
599
|
+
{
|
|
600
|
+
"name": "success-text",
|
|
601
|
+
"value": {
|
|
602
|
+
"light": "#13703A",
|
|
603
|
+
"dark": "#4ADE80",
|
|
604
|
+
"contrast": "#0B5229"
|
|
605
|
+
},
|
|
606
|
+
"ref": {
|
|
607
|
+
"light": "green.750",
|
|
608
|
+
"dark": "green.400",
|
|
609
|
+
"contrast": "green.900"
|
|
610
|
+
},
|
|
611
|
+
"role": "text",
|
|
612
|
+
"check": {
|
|
613
|
+
"grounds": ["background", "success-subtle"],
|
|
614
|
+
"min": {
|
|
615
|
+
"light": 4.5,
|
|
616
|
+
"dark": 4.5,
|
|
617
|
+
"contrast": 7
|
|
618
|
+
}
|
|
619
|
+
},
|
|
620
|
+
"usage": "Success text on background and success-subtle. 6.1:1 / 5.3:1 light, 10.9:1 / 8.1:1 dark. Always with an icon or a word like \"Paid\"."
|
|
621
|
+
},
|
|
622
|
+
{
|
|
623
|
+
"name": "success-subtle",
|
|
624
|
+
"value": {
|
|
625
|
+
"light": "#E3F4EA",
|
|
626
|
+
"dark": "#13301F"
|
|
627
|
+
},
|
|
628
|
+
"ref": {
|
|
629
|
+
"light": "green.50",
|
|
630
|
+
"dark": "green.950"
|
|
631
|
+
},
|
|
632
|
+
"role": "fill",
|
|
633
|
+
"usage": "Success alerts and badges."
|
|
634
|
+
},
|
|
635
|
+
{
|
|
636
|
+
"name": "warning",
|
|
637
|
+
"value": {
|
|
638
|
+
"light": "#B45309",
|
|
639
|
+
"dark": "#FBBF24",
|
|
640
|
+
"contrast": "#7A3A06"
|
|
641
|
+
},
|
|
642
|
+
"ref": {
|
|
643
|
+
"light": "amber.700",
|
|
644
|
+
"dark": "amber.400",
|
|
645
|
+
"contrast": "amber.900"
|
|
646
|
+
},
|
|
647
|
+
"role": "icon",
|
|
648
|
+
"check": {
|
|
649
|
+
"grounds": ["background"],
|
|
650
|
+
"min": {
|
|
651
|
+
"light": 3,
|
|
652
|
+
"dark": 3,
|
|
653
|
+
"contrast": 3
|
|
654
|
+
}
|
|
655
|
+
},
|
|
656
|
+
"usage": "Warning icons, meters near a limit, away status."
|
|
657
|
+
},
|
|
658
|
+
{
|
|
659
|
+
"name": "warning-text",
|
|
660
|
+
"value": {
|
|
661
|
+
"light": "#B45309",
|
|
662
|
+
"dark": "#FBBF24",
|
|
663
|
+
"contrast": "#7A3A06"
|
|
664
|
+
},
|
|
665
|
+
"ref": {
|
|
666
|
+
"light": "amber.700",
|
|
667
|
+
"dark": "amber.400",
|
|
668
|
+
"contrast": "amber.900"
|
|
669
|
+
},
|
|
670
|
+
"role": "text",
|
|
671
|
+
"check": {
|
|
672
|
+
"grounds": ["background", "warning-subtle"],
|
|
673
|
+
"min": {
|
|
674
|
+
"light": 4.5,
|
|
675
|
+
"dark": 4.5,
|
|
676
|
+
"contrast": 7
|
|
677
|
+
}
|
|
678
|
+
},
|
|
679
|
+
"usage": "Warning text on background and warning-subtle. 5.0:1 / 4.5:1 light, 11.4:1 / 8.2:1 dark."
|
|
680
|
+
},
|
|
681
|
+
{
|
|
682
|
+
"name": "warning-subtle",
|
|
683
|
+
"value": {
|
|
684
|
+
"light": "#FEF3E2",
|
|
685
|
+
"dark": "#3A2A0E"
|
|
686
|
+
},
|
|
687
|
+
"ref": {
|
|
688
|
+
"light": "amber.50",
|
|
689
|
+
"dark": "amber.950"
|
|
690
|
+
},
|
|
691
|
+
"role": "fill",
|
|
692
|
+
"usage": "Warning alerts and badges."
|
|
693
|
+
},
|
|
694
|
+
{
|
|
695
|
+
"name": "info-text",
|
|
696
|
+
"value": {
|
|
697
|
+
"light": "#245A91",
|
|
698
|
+
"dark": "#9CC3EA",
|
|
699
|
+
"contrast": "#163C63"
|
|
700
|
+
},
|
|
701
|
+
"ref": {
|
|
702
|
+
"light": "blue.700",
|
|
703
|
+
"dark": "blue.200",
|
|
704
|
+
"contrast": "blue.900"
|
|
705
|
+
},
|
|
706
|
+
"role": "text",
|
|
707
|
+
"check": {
|
|
708
|
+
"grounds": ["info-subtle"],
|
|
709
|
+
"min": {
|
|
710
|
+
"light": 4.5,
|
|
711
|
+
"dark": 4.5,
|
|
712
|
+
"contrast": 7
|
|
713
|
+
}
|
|
714
|
+
},
|
|
715
|
+
"usage": "Informational alert titles and icons on info-subtle. 6.1:1 light, 7.9:1 dark."
|
|
716
|
+
},
|
|
717
|
+
{
|
|
718
|
+
"name": "info-subtle",
|
|
719
|
+
"value": {
|
|
720
|
+
"light": "#E6EFF8",
|
|
721
|
+
"dark": "#1B2A3A"
|
|
722
|
+
},
|
|
723
|
+
"ref": {
|
|
724
|
+
"light": "blue.50",
|
|
725
|
+
"dark": "blue.950"
|
|
726
|
+
},
|
|
727
|
+
"role": "fill",
|
|
728
|
+
"usage": "Informational alerts."
|
|
729
|
+
},
|
|
730
|
+
{
|
|
731
|
+
"name": "track",
|
|
732
|
+
"value": {
|
|
733
|
+
"light": "#E7E5E2",
|
|
734
|
+
"dark": "#34343A",
|
|
735
|
+
"contrast": "#8A8883"
|
|
736
|
+
},
|
|
737
|
+
"ref": {
|
|
738
|
+
"light": "stone.175",
|
|
739
|
+
"dark": "stone.760",
|
|
740
|
+
"contrast": "stone.450"
|
|
741
|
+
},
|
|
742
|
+
"role": "fill",
|
|
743
|
+
"usage": "Empty part of progress bars, sliders and meters."
|
|
744
|
+
},
|
|
745
|
+
{
|
|
746
|
+
"name": "switch-off",
|
|
747
|
+
"value": {
|
|
748
|
+
"light": "#D6D3CF",
|
|
749
|
+
"dark": "#45454C",
|
|
750
|
+
"contrast": "#6E6C68"
|
|
751
|
+
},
|
|
752
|
+
"ref": {
|
|
753
|
+
"light": "stone.250",
|
|
754
|
+
"dark": "stone.700",
|
|
755
|
+
"contrast": "stone.550"
|
|
756
|
+
},
|
|
757
|
+
"role": "fill",
|
|
758
|
+
"usage": "Switch track when off. The thumb position, not colour alone, shows the state."
|
|
759
|
+
},
|
|
760
|
+
{
|
|
761
|
+
"name": "skeleton",
|
|
762
|
+
"value": {
|
|
763
|
+
"light": "#EDEBE7",
|
|
764
|
+
"dark": "#26262B"
|
|
765
|
+
},
|
|
766
|
+
"ref": {
|
|
767
|
+
"light": "stone.125",
|
|
768
|
+
"dark": "stone.840"
|
|
769
|
+
},
|
|
770
|
+
"role": "fill",
|
|
771
|
+
"usage": "Loading placeholders and the selected range between two dates."
|
|
772
|
+
},
|
|
773
|
+
{
|
|
774
|
+
"name": "range",
|
|
775
|
+
"value": {
|
|
776
|
+
"light": "#EDEBE7",
|
|
777
|
+
"dark": "#2E2E33"
|
|
778
|
+
},
|
|
779
|
+
"ref": {
|
|
780
|
+
"light": "stone.125",
|
|
781
|
+
"dark": "stone.800"
|
|
782
|
+
},
|
|
783
|
+
"role": "fill",
|
|
784
|
+
"usage": "Days inside a selected date range."
|
|
785
|
+
},
|
|
786
|
+
{
|
|
787
|
+
"name": "scrim",
|
|
788
|
+
"value": {
|
|
789
|
+
"light": "rgba(24,24,27,0.4)",
|
|
790
|
+
"dark": "rgba(0,0,0,0.6)"
|
|
791
|
+
},
|
|
792
|
+
"role": "fill",
|
|
793
|
+
"usage": "The dim layer behind modal dialogs, sheets and drawers."
|
|
794
|
+
},
|
|
795
|
+
{
|
|
796
|
+
"name": "backdrop-sample",
|
|
797
|
+
"value": {
|
|
798
|
+
"light": "#F4F4F2",
|
|
799
|
+
"dark": "#26262B"
|
|
800
|
+
},
|
|
801
|
+
"ref": {
|
|
802
|
+
"light": "stone.50",
|
|
803
|
+
"dark": "stone.840"
|
|
804
|
+
},
|
|
805
|
+
"role": "ground",
|
|
806
|
+
"usage": "Stand-in page behind overlays in previews and docs. Not for product UI."
|
|
807
|
+
},
|
|
808
|
+
{
|
|
809
|
+
"name": "inset-ground",
|
|
810
|
+
"value": {
|
|
811
|
+
"light": "#F1F0EE",
|
|
812
|
+
"dark": "#0B0B0D",
|
|
813
|
+
"contrast": "#EDEBE7"
|
|
814
|
+
},
|
|
815
|
+
"ref": {
|
|
816
|
+
"light": "stone.75",
|
|
817
|
+
"dark": "stone.960",
|
|
818
|
+
"contrast": "stone.125"
|
|
819
|
+
},
|
|
820
|
+
"role": "ground",
|
|
821
|
+
"usage": "The tinted ground of the inset layout option. Panels on it use surface with radius-3xl and no border."
|
|
822
|
+
},
|
|
823
|
+
{
|
|
824
|
+
"name": "sidebar",
|
|
825
|
+
"value": {
|
|
826
|
+
"light": "#FAFAF9",
|
|
827
|
+
"dark": "#141416",
|
|
828
|
+
"contrast": "#FFFFFF"
|
|
829
|
+
},
|
|
830
|
+
"ref": {
|
|
831
|
+
"light": "stone.25",
|
|
832
|
+
"dark": "stone.920",
|
|
833
|
+
"contrast": "stone.0"
|
|
834
|
+
},
|
|
835
|
+
"role": "ground",
|
|
836
|
+
"usage": "App sidebar background (240 px, flat)."
|
|
837
|
+
},
|
|
838
|
+
{
|
|
839
|
+
"name": "code",
|
|
840
|
+
"value": {
|
|
841
|
+
"light": "#F4F4F2",
|
|
842
|
+
"dark": "#26262B"
|
|
843
|
+
},
|
|
844
|
+
"ref": {
|
|
845
|
+
"light": "stone.50",
|
|
846
|
+
"dark": "stone.840"
|
|
847
|
+
},
|
|
848
|
+
"role": "fill",
|
|
849
|
+
"usage": "Inline code and install-command chips in running text. Code blocks, terminals and editors use the code-* group instead."
|
|
850
|
+
},
|
|
851
|
+
{
|
|
852
|
+
"name": "code-surface",
|
|
853
|
+
"value": {
|
|
854
|
+
"light": "#18181B",
|
|
855
|
+
"dark": "#18181B",
|
|
856
|
+
"contrast": "#000000"
|
|
857
|
+
},
|
|
858
|
+
"ref": {
|
|
859
|
+
"light": "stone.900",
|
|
860
|
+
"dark": "stone.900",
|
|
861
|
+
"contrast": "stone.1000"
|
|
862
|
+
},
|
|
863
|
+
"role": "ground",
|
|
864
|
+
"usage": "Code blocks, terminals and code editors. Dark in both modes."
|
|
865
|
+
},
|
|
866
|
+
{
|
|
867
|
+
"name": "code-text",
|
|
868
|
+
"value": {
|
|
869
|
+
"light": "#E7E5E2",
|
|
870
|
+
"dark": "#E7E5E2",
|
|
871
|
+
"contrast": "#FFFFFF"
|
|
872
|
+
},
|
|
873
|
+
"ref": {
|
|
874
|
+
"light": "stone.175",
|
|
875
|
+
"dark": "stone.175",
|
|
876
|
+
"contrast": "stone.0"
|
|
877
|
+
},
|
|
878
|
+
"role": "text",
|
|
879
|
+
"check": {
|
|
880
|
+
"grounds": ["code-surface"],
|
|
881
|
+
"min": {
|
|
882
|
+
"light": 4.5,
|
|
883
|
+
"dark": 4.5,
|
|
884
|
+
"contrast": 7
|
|
885
|
+
}
|
|
886
|
+
},
|
|
887
|
+
"usage": "Plain code and terminal output on code-surface."
|
|
888
|
+
},
|
|
889
|
+
{
|
|
890
|
+
"name": "code-comment",
|
|
891
|
+
"value": {
|
|
892
|
+
"light": "#8A8883",
|
|
893
|
+
"dark": "#8A8883",
|
|
894
|
+
"contrast": "#A8A5A0"
|
|
895
|
+
},
|
|
896
|
+
"ref": {
|
|
897
|
+
"light": "stone.450",
|
|
898
|
+
"dark": "stone.450",
|
|
899
|
+
"contrast": "stone.400"
|
|
900
|
+
},
|
|
901
|
+
"role": "text",
|
|
902
|
+
"check": {
|
|
903
|
+
"grounds": ["code-surface"],
|
|
904
|
+
"min": {
|
|
905
|
+
"light": 4.5,
|
|
906
|
+
"dark": 4.5,
|
|
907
|
+
"contrast": 7
|
|
908
|
+
}
|
|
909
|
+
},
|
|
910
|
+
"usage": "Comments and secondary terminal lines on code-surface."
|
|
911
|
+
},
|
|
912
|
+
{
|
|
913
|
+
"name": "code-keyword",
|
|
914
|
+
"value": {
|
|
915
|
+
"light": "#F4825F",
|
|
916
|
+
"dark": "#F4825F",
|
|
917
|
+
"contrast": "#F4A58C"
|
|
918
|
+
},
|
|
919
|
+
"ref": {
|
|
920
|
+
"light": "vermilion.300",
|
|
921
|
+
"dark": "vermilion.300",
|
|
922
|
+
"contrast": "vermilion.200"
|
|
923
|
+
},
|
|
924
|
+
"role": "text",
|
|
925
|
+
"check": {
|
|
926
|
+
"grounds": ["code-surface"],
|
|
927
|
+
"min": {
|
|
928
|
+
"light": 4.5,
|
|
929
|
+
"dark": 4.5,
|
|
930
|
+
"contrast": 7
|
|
931
|
+
}
|
|
932
|
+
},
|
|
933
|
+
"usage": "Keywords, tags and CLI commands on code-surface."
|
|
934
|
+
},
|
|
935
|
+
{
|
|
936
|
+
"name": "code-string",
|
|
937
|
+
"value": {
|
|
938
|
+
"light": "#4ADE80",
|
|
939
|
+
"dark": "#4ADE80",
|
|
940
|
+
"contrast": "#4ADE80"
|
|
941
|
+
},
|
|
942
|
+
"ref": {
|
|
943
|
+
"light": "green.400",
|
|
944
|
+
"dark": "green.400",
|
|
945
|
+
"contrast": "green.400"
|
|
946
|
+
},
|
|
947
|
+
"role": "text",
|
|
948
|
+
"check": {
|
|
949
|
+
"grounds": ["code-surface"],
|
|
950
|
+
"min": {
|
|
951
|
+
"light": 4.5,
|
|
952
|
+
"dark": 4.5,
|
|
953
|
+
"contrast": 7
|
|
954
|
+
}
|
|
955
|
+
},
|
|
956
|
+
"usage": "Strings and success lines (✔) on code-surface."
|
|
957
|
+
},
|
|
958
|
+
{
|
|
959
|
+
"name": "code-number",
|
|
960
|
+
"value": {
|
|
961
|
+
"light": "#FBBF24",
|
|
962
|
+
"dark": "#FBBF24",
|
|
963
|
+
"contrast": "#FBBF24"
|
|
964
|
+
},
|
|
965
|
+
"ref": {
|
|
966
|
+
"light": "amber.400",
|
|
967
|
+
"dark": "amber.400",
|
|
968
|
+
"contrast": "amber.400"
|
|
969
|
+
},
|
|
970
|
+
"role": "text",
|
|
971
|
+
"check": {
|
|
972
|
+
"grounds": ["code-surface"],
|
|
973
|
+
"min": {
|
|
974
|
+
"light": 4.5,
|
|
975
|
+
"dark": 4.5,
|
|
976
|
+
"contrast": 7
|
|
977
|
+
}
|
|
978
|
+
},
|
|
979
|
+
"usage": "Numbers, booleans and warning lines (!) on code-surface."
|
|
980
|
+
},
|
|
981
|
+
{
|
|
982
|
+
"name": "code-function",
|
|
983
|
+
"value": {
|
|
984
|
+
"light": "#9CC3EA",
|
|
985
|
+
"dark": "#9CC3EA",
|
|
986
|
+
"contrast": "#9CC3EA"
|
|
987
|
+
},
|
|
988
|
+
"ref": {
|
|
989
|
+
"light": "blue.200",
|
|
990
|
+
"dark": "blue.200",
|
|
991
|
+
"contrast": "blue.200"
|
|
992
|
+
},
|
|
993
|
+
"role": "text",
|
|
994
|
+
"check": {
|
|
995
|
+
"grounds": ["code-surface"],
|
|
996
|
+
"min": {
|
|
997
|
+
"light": 4.5,
|
|
998
|
+
"dark": 4.5,
|
|
999
|
+
"contrast": 7
|
|
1000
|
+
}
|
|
1001
|
+
},
|
|
1002
|
+
"usage": "Function and component names, attributes on code-surface."
|
|
1003
|
+
},
|
|
1004
|
+
{
|
|
1005
|
+
"name": "code-punctuation",
|
|
1006
|
+
"value": {
|
|
1007
|
+
"light": "#A8A5A0",
|
|
1008
|
+
"dark": "#A8A5A0",
|
|
1009
|
+
"contrast": "#E7E5E2"
|
|
1010
|
+
},
|
|
1011
|
+
"ref": {
|
|
1012
|
+
"light": "stone.400",
|
|
1013
|
+
"dark": "stone.400",
|
|
1014
|
+
"contrast": "stone.175"
|
|
1015
|
+
},
|
|
1016
|
+
"role": "text",
|
|
1017
|
+
"check": {
|
|
1018
|
+
"grounds": ["code-surface"],
|
|
1019
|
+
"min": {
|
|
1020
|
+
"light": 4.5,
|
|
1021
|
+
"dark": 4.5,
|
|
1022
|
+
"contrast": 7
|
|
1023
|
+
}
|
|
1024
|
+
},
|
|
1025
|
+
"usage": "Brackets, operators and prompts ($) on code-surface."
|
|
1026
|
+
},
|
|
1027
|
+
{
|
|
1028
|
+
"name": "code-success",
|
|
1029
|
+
"value": {
|
|
1030
|
+
"light": "#4ADE80",
|
|
1031
|
+
"dark": "#4ADE80",
|
|
1032
|
+
"contrast": "#4ADE80"
|
|
1033
|
+
},
|
|
1034
|
+
"ref": {
|
|
1035
|
+
"light": "green.400",
|
|
1036
|
+
"dark": "green.400",
|
|
1037
|
+
"contrast": "green.400"
|
|
1038
|
+
},
|
|
1039
|
+
"role": "text",
|
|
1040
|
+
"check": {
|
|
1041
|
+
"grounds": ["code-surface"],
|
|
1042
|
+
"min": {
|
|
1043
|
+
"light": 4.5,
|
|
1044
|
+
"dark": 4.5,
|
|
1045
|
+
"contrast": 7
|
|
1046
|
+
}
|
|
1047
|
+
},
|
|
1048
|
+
"usage": "Terminal success and added lines (✔, +) on code-surface."
|
|
1049
|
+
},
|
|
1050
|
+
{
|
|
1051
|
+
"name": "code-warning",
|
|
1052
|
+
"value": {
|
|
1053
|
+
"light": "#FBBF24",
|
|
1054
|
+
"dark": "#FBBF24",
|
|
1055
|
+
"contrast": "#FBBF24"
|
|
1056
|
+
},
|
|
1057
|
+
"ref": {
|
|
1058
|
+
"light": "amber.400",
|
|
1059
|
+
"dark": "amber.400",
|
|
1060
|
+
"contrast": "amber.400"
|
|
1061
|
+
},
|
|
1062
|
+
"role": "text",
|
|
1063
|
+
"check": {
|
|
1064
|
+
"grounds": ["code-surface"],
|
|
1065
|
+
"min": {
|
|
1066
|
+
"light": 4.5,
|
|
1067
|
+
"dark": 4.5,
|
|
1068
|
+
"contrast": 7
|
|
1069
|
+
}
|
|
1070
|
+
},
|
|
1071
|
+
"usage": "Terminal warning and changed lines (!) on code-surface."
|
|
1072
|
+
},
|
|
1073
|
+
{
|
|
1074
|
+
"name": "code-danger",
|
|
1075
|
+
"value": {
|
|
1076
|
+
"light": "#F87171",
|
|
1077
|
+
"dark": "#F87171",
|
|
1078
|
+
"contrast": "#F87171"
|
|
1079
|
+
},
|
|
1080
|
+
"ref": {
|
|
1081
|
+
"light": "red.300",
|
|
1082
|
+
"dark": "red.300",
|
|
1083
|
+
"contrast": "red.300"
|
|
1084
|
+
},
|
|
1085
|
+
"role": "text",
|
|
1086
|
+
"check": {
|
|
1087
|
+
"grounds": ["code-surface"],
|
|
1088
|
+
"min": {
|
|
1089
|
+
"light": 4.5,
|
|
1090
|
+
"dark": 4.5,
|
|
1091
|
+
"contrast": 7
|
|
1092
|
+
}
|
|
1093
|
+
},
|
|
1094
|
+
"usage": "Terminal errors (✖) on code-surface, the same in every mode; a code-editor error row is this colour at 20% over code-surface."
|
|
1095
|
+
},
|
|
1096
|
+
{
|
|
1097
|
+
"name": "media-ground",
|
|
1098
|
+
"value": {
|
|
1099
|
+
"light": "#0A0A0B",
|
|
1100
|
+
"dark": "#0A0A0B"
|
|
1101
|
+
},
|
|
1102
|
+
"ref": {
|
|
1103
|
+
"light": "stone.980",
|
|
1104
|
+
"dark": "stone.980"
|
|
1105
|
+
},
|
|
1106
|
+
"role": "ground",
|
|
1107
|
+
"usage": "Ground behind photos and video: lightbox (at 92%), cropper backdrop (at 60%), video control gradient. The same in every mode and theme."
|
|
1108
|
+
},
|
|
1109
|
+
{
|
|
1110
|
+
"name": "media-foreground",
|
|
1111
|
+
"value": {
|
|
1112
|
+
"light": "#FFFFFF",
|
|
1113
|
+
"dark": "#FFFFFF"
|
|
1114
|
+
},
|
|
1115
|
+
"ref": {
|
|
1116
|
+
"light": "stone.0",
|
|
1117
|
+
"dark": "stone.0"
|
|
1118
|
+
},
|
|
1119
|
+
"role": "text",
|
|
1120
|
+
"check": {
|
|
1121
|
+
"grounds": ["media-ground"],
|
|
1122
|
+
"min": {
|
|
1123
|
+
"light": 4.5,
|
|
1124
|
+
"dark": 4.5,
|
|
1125
|
+
"contrast": 7
|
|
1126
|
+
}
|
|
1127
|
+
},
|
|
1128
|
+
"usage": "Text, icons, crop frame and the selected-thumbnail outline on media-ground. The same in every mode and theme."
|
|
1129
|
+
},
|
|
1130
|
+
{
|
|
1131
|
+
"name": "avatar-1",
|
|
1132
|
+
"value": {
|
|
1133
|
+
"light": "#FDECE6",
|
|
1134
|
+
"dark": "#3A1C14"
|
|
1135
|
+
},
|
|
1136
|
+
"ref": {
|
|
1137
|
+
"light": "vermilion.50",
|
|
1138
|
+
"dark": "vermilion.950"
|
|
1139
|
+
},
|
|
1140
|
+
"role": "fill",
|
|
1141
|
+
"usage": "Initials avatar tint 1 (vermilion family). Initials use avatar-foreground."
|
|
1142
|
+
},
|
|
1143
|
+
{
|
|
1144
|
+
"name": "avatar-2",
|
|
1145
|
+
"value": {
|
|
1146
|
+
"light": "#E6EFF8",
|
|
1147
|
+
"dark": "#1B2A3A"
|
|
1148
|
+
},
|
|
1149
|
+
"ref": {
|
|
1150
|
+
"light": "blue.50",
|
|
1151
|
+
"dark": "blue.950"
|
|
1152
|
+
},
|
|
1153
|
+
"role": "fill",
|
|
1154
|
+
"usage": "Initials avatar tint 2 (blue family)."
|
|
1155
|
+
},
|
|
1156
|
+
{
|
|
1157
|
+
"name": "avatar-3",
|
|
1158
|
+
"value": {
|
|
1159
|
+
"light": "#E3F4EA",
|
|
1160
|
+
"dark": "#13301F"
|
|
1161
|
+
},
|
|
1162
|
+
"ref": {
|
|
1163
|
+
"light": "green.50",
|
|
1164
|
+
"dark": "green.950"
|
|
1165
|
+
},
|
|
1166
|
+
"role": "fill",
|
|
1167
|
+
"usage": "Initials avatar tint 3 (green family)."
|
|
1168
|
+
},
|
|
1169
|
+
{
|
|
1170
|
+
"name": "avatar-foreground",
|
|
1171
|
+
"value": {
|
|
1172
|
+
"light": "#18181B",
|
|
1173
|
+
"dark": "#FAFAF9"
|
|
1174
|
+
},
|
|
1175
|
+
"ref": {
|
|
1176
|
+
"light": "stone.900",
|
|
1177
|
+
"dark": "stone.25"
|
|
1178
|
+
},
|
|
1179
|
+
"role": "text",
|
|
1180
|
+
"check": {
|
|
1181
|
+
"grounds": [
|
|
1182
|
+
"avatar-1",
|
|
1183
|
+
"avatar-2",
|
|
1184
|
+
"avatar-3"
|
|
1185
|
+
],
|
|
1186
|
+
"min": {
|
|
1187
|
+
"light": 4.5,
|
|
1188
|
+
"dark": 4.5,
|
|
1189
|
+
"contrast": 7
|
|
1190
|
+
}
|
|
1191
|
+
},
|
|
1192
|
+
"usage": "Initials on avatar-1 to avatar-3. At least 13.6:1 in light and dark."
|
|
1193
|
+
},
|
|
1194
|
+
{
|
|
1195
|
+
"name": "chart-1",
|
|
1196
|
+
"value": {
|
|
1197
|
+
"light": "#E0502A",
|
|
1198
|
+
"dark": "#F26B47"
|
|
1199
|
+
},
|
|
1200
|
+
"ref": {
|
|
1201
|
+
"light": "vermilion.500",
|
|
1202
|
+
"dark": "vermilion.400"
|
|
1203
|
+
},
|
|
1204
|
+
"role": "data",
|
|
1205
|
+
"usage": "Chart series 1, vermilion. Fixed order: series always take slots 1 to 5 in order and keep their colour when others are filtered out."
|
|
1206
|
+
},
|
|
1207
|
+
{
|
|
1208
|
+
"name": "chart-2",
|
|
1209
|
+
"value": {
|
|
1210
|
+
"light": "#00918B",
|
|
1211
|
+
"dark": "#1FA39C"
|
|
1212
|
+
},
|
|
1213
|
+
"ref": {
|
|
1214
|
+
"light": "teal.500",
|
|
1215
|
+
"dark": "teal.400"
|
|
1216
|
+
},
|
|
1217
|
+
"role": "data",
|
|
1218
|
+
"usage": "Chart series 2, peacock teal."
|
|
1219
|
+
},
|
|
1220
|
+
{
|
|
1221
|
+
"name": "chart-3",
|
|
1222
|
+
"value": {
|
|
1223
|
+
"light": "#4F5BD5",
|
|
1224
|
+
"dark": "#7C86F0"
|
|
1225
|
+
},
|
|
1226
|
+
"ref": {
|
|
1227
|
+
"light": "indigo.500",
|
|
1228
|
+
"dark": "indigo.400"
|
|
1229
|
+
},
|
|
1230
|
+
"role": "data",
|
|
1231
|
+
"usage": "Chart series 3, indigo."
|
|
1232
|
+
},
|
|
1233
|
+
{
|
|
1234
|
+
"name": "chart-4",
|
|
1235
|
+
"value": {
|
|
1236
|
+
"light": "#E8A317",
|
|
1237
|
+
"dark": "#C48716"
|
|
1238
|
+
},
|
|
1239
|
+
"ref": {
|
|
1240
|
+
"light": "turmeric.500",
|
|
1241
|
+
"dark": "turmeric.600"
|
|
1242
|
+
},
|
|
1243
|
+
"role": "data",
|
|
1244
|
+
"usage": "Chart series 4, turmeric. Light: 2.1:1 on white, so charts using 4+ series show direct labels or a table."
|
|
1245
|
+
},
|
|
1246
|
+
{
|
|
1247
|
+
"name": "chart-5",
|
|
1248
|
+
"value": {
|
|
1249
|
+
"light": "#9C2766",
|
|
1250
|
+
"dark": "#D9579C"
|
|
1251
|
+
},
|
|
1252
|
+
"ref": {
|
|
1253
|
+
"light": "kumkum.700",
|
|
1254
|
+
"dark": "kumkum.400"
|
|
1255
|
+
},
|
|
1256
|
+
"role": "data",
|
|
1257
|
+
"usage": "Chart series 5, kumkum magenta. A 6th series folds into \"Other\" (muted-foreground)."
|
|
1258
|
+
},
|
|
1259
|
+
{
|
|
1260
|
+
"name": "chart-other",
|
|
1261
|
+
"value": {
|
|
1262
|
+
"light": "#5F5E5A",
|
|
1263
|
+
"dark": "#A8A5A0"
|
|
1264
|
+
},
|
|
1265
|
+
"ref": {
|
|
1266
|
+
"light": "stone.600",
|
|
1267
|
+
"dark": "stone.400"
|
|
1268
|
+
},
|
|
1269
|
+
"role": "data",
|
|
1270
|
+
"usage": "The \"Other\" series that a 6th and later series fold into; also \"Other\" tiles and segments. Same value as muted-foreground."
|
|
1271
|
+
}
|
|
1272
|
+
],
|
|
1273
|
+
"primitives": {
|
|
1274
|
+
"note": "Raw colours with no meaning (tier 1). CSS name: --k-<family>-<step>, e.g. --k-vermilion-500. Steps are lightness labels: lower is lighter; a family lists only the steps Kolam uses, except the accent family, which is a full 50–950 ramp. Semantic tokens point at these through `ref`; `value` is the resolved hex, kept for reading and checked against `ref` by the build.",
|
|
1275
|
+
"families": {
|
|
1276
|
+
"stone": {
|
|
1277
|
+
"0": "#FFFFFF",
|
|
1278
|
+
"25": "#FAFAF9",
|
|
1279
|
+
"50": "#F4F4F2",
|
|
1280
|
+
"75": "#F1F0EE",
|
|
1281
|
+
"100": "#EFEDEA",
|
|
1282
|
+
"125": "#EDEBE7",
|
|
1283
|
+
"150": "#EAE8E4",
|
|
1284
|
+
"175": "#E7E5E2",
|
|
1285
|
+
"200": "#E4E4E7",
|
|
1286
|
+
"225": "#E2DFDA",
|
|
1287
|
+
"250": "#D6D3CF",
|
|
1288
|
+
"400": "#A8A5A0",
|
|
1289
|
+
"450": "#8A8883",
|
|
1290
|
+
"500": "#767470",
|
|
1291
|
+
"550": "#6E6C68",
|
|
1292
|
+
"600": "#5F5E5A",
|
|
1293
|
+
"650": "#57554F",
|
|
1294
|
+
"700": "#45454C",
|
|
1295
|
+
"710": "#3F3E3B",
|
|
1296
|
+
"720": "#3F3F46",
|
|
1297
|
+
"740": "#3A3A40",
|
|
1298
|
+
"760": "#34343A",
|
|
1299
|
+
"780": "#303036",
|
|
1300
|
+
"800": "#2E2E33",
|
|
1301
|
+
"820": "#27272A",
|
|
1302
|
+
"840": "#26262B",
|
|
1303
|
+
"860": "#1F1F23",
|
|
1304
|
+
"900": "#18181B",
|
|
1305
|
+
"920": "#141416",
|
|
1306
|
+
"940": "#0F0F11",
|
|
1307
|
+
"960": "#0B0B0D",
|
|
1308
|
+
"980": "#0A0A0B",
|
|
1309
|
+
"1000": "#000000"
|
|
1310
|
+
},
|
|
1311
|
+
"vermilion": {
|
|
1312
|
+
"50": "#FDECE6",
|
|
1313
|
+
"100": "#FBD5C8",
|
|
1314
|
+
"200": "#F4A58C",
|
|
1315
|
+
"300": "#F4825F",
|
|
1316
|
+
"400": "#F26B47",
|
|
1317
|
+
"500": "#E0502A",
|
|
1318
|
+
"600": "#C9441F",
|
|
1319
|
+
"700": "#B83A17",
|
|
1320
|
+
"800": "#8F2A0F",
|
|
1321
|
+
"900": "#5E1E0C",
|
|
1322
|
+
"950": "#3A1C14"
|
|
1323
|
+
},
|
|
1324
|
+
"red": {
|
|
1325
|
+
"50": "#FDE8E8",
|
|
1326
|
+
"200": "#FCA5A5",
|
|
1327
|
+
"300": "#F87171",
|
|
1328
|
+
"700": "#B42318",
|
|
1329
|
+
"750": "#962015",
|
|
1330
|
+
"800": "#8F1D13",
|
|
1331
|
+
"900": "#741810",
|
|
1332
|
+
"950": "#3B1414"
|
|
1333
|
+
},
|
|
1334
|
+
"green": {
|
|
1335
|
+
"50": "#E3F4EA",
|
|
1336
|
+
"400": "#4ADE80",
|
|
1337
|
+
"700": "#15803D",
|
|
1338
|
+
"750": "#13703A",
|
|
1339
|
+
"900": "#0B5229",
|
|
1340
|
+
"950": "#13301F"
|
|
1341
|
+
},
|
|
1342
|
+
"amber": {
|
|
1343
|
+
"50": "#FEF3E2",
|
|
1344
|
+
"400": "#FBBF24",
|
|
1345
|
+
"700": "#B45309",
|
|
1346
|
+
"900": "#7A3A06",
|
|
1347
|
+
"950": "#3A2A0E"
|
|
1348
|
+
},
|
|
1349
|
+
"blue": {
|
|
1350
|
+
"50": "#E6EFF8",
|
|
1351
|
+
"200": "#9CC3EA",
|
|
1352
|
+
"700": "#245A91",
|
|
1353
|
+
"900": "#163C63",
|
|
1354
|
+
"950": "#1B2A3A"
|
|
1355
|
+
},
|
|
1356
|
+
"teal": {
|
|
1357
|
+
"400": "#1FA39C",
|
|
1358
|
+
"500": "#00918B"
|
|
1359
|
+
},
|
|
1360
|
+
"indigo": {
|
|
1361
|
+
"400": "#7C86F0",
|
|
1362
|
+
"500": "#4F5BD5"
|
|
1363
|
+
},
|
|
1364
|
+
"turmeric": {
|
|
1365
|
+
"500": "#E8A317",
|
|
1366
|
+
"600": "#C48716"
|
|
1367
|
+
},
|
|
1368
|
+
"kumkum": {
|
|
1369
|
+
"400": "#D9579C",
|
|
1370
|
+
"700": "#9C2766"
|
|
1371
|
+
}
|
|
1372
|
+
}
|
|
1373
|
+
},
|
|
1374
|
+
"modes": [
|
|
1375
|
+
{
|
|
1376
|
+
"id": "light",
|
|
1377
|
+
"name": "Light"
|
|
1378
|
+
},
|
|
1379
|
+
{
|
|
1380
|
+
"id": "dark",
|
|
1381
|
+
"name": "Dark"
|
|
1382
|
+
},
|
|
1383
|
+
{
|
|
1384
|
+
"id": "contrast",
|
|
1385
|
+
"name": "High contrast",
|
|
1386
|
+
"note": "Overrides on top of light. Used by the high-contrast theme and, for themes that ship a contrast set, by prefers-contrast: more in light mode only. Tokens without a contrast value keep their light value."
|
|
1387
|
+
}
|
|
1388
|
+
]
|
|
1389
|
+
},
|
|
1390
|
+
themes: {
|
|
1391
|
+
"note": "Built-in themes. Each is defined by its seed; @kolamui/color expands the seed with the rule below. The generated light/dark/contrast values are committed to packages/tokens/themes/<id>.json; the kolam theme's values are the colour tokens in this file.",
|
|
1392
|
+
"rule": [
|
|
1393
|
+
"1. Accent family: @kolamui/color builds an 11-step OKLCH ramp (50-950) from seed.accent placed at step 500; every other step keeps the OKLCH lightness of the same vermilion step and the seed's hue, with chroma scaled to stay inside sRGB.",
|
|
1394
|
+
"2. Neutral family: \"stone\" is Kolam's own neutral (primitives above). \"zinc\", \"slate\" and \"tinted\" have the same step names; each step keeps the OKLCH lightness of the stone step and takes the family hue and chroma: zinc h 286 c 0.006, slate h 257 c 0.018, tinted = the accent hue at c 0.012 for steps 0-250 and c 0.008 for steps 400-1000.",
|
|
1395
|
+
"3. Semantic tokens: every token whose kolam ref is a vermilion step uses the same step of the accent family; every token whose ref is a stone step uses the same step of the neutral family. Status (red, green, amber, blue), chart (chart-1 to chart-5, chart-other), code-* and media-* tokens keep the kolam values in every built-in theme.",
|
|
1396
|
+
"4. primary: seed.primary \"neutral\" keeps the kolam refs (stone 900 light, stone 25 dark); \"accent\" uses accent 900 light (primary-hover accent 800) and accent 100 dark (primary-hover accent 200), with primary-foreground stone 0 light and stone 900 dark.",
|
|
1397
|
+
"5. accent-foreground: whichever of stone 0 and stone 900 has the higher contrast on accent, choosing stone 0 when both reach 3:1.",
|
|
1398
|
+
"6. Contrast gate: every token with a check must pass it (check.min). A failing light or contrast value moves one accent or neutral step darker, a failing dark value one step lighter, up to 3 steps; if it still fails, the build stops and names the token, the ground and the ratio.",
|
|
1399
|
+
"7. Modes: \"light+dark\" themes get both sets; a \"dark\" theme writes its dark values as its only set and ignores data-mode; a \"light\" theme writes light values plus its contrast overrides and ignores data-mode. Only kolam and high-contrast ship a contrast set; other built-in themes ignore prefers-contrast. high-contrast is not seed-expanded (see its entry).",
|
|
1400
|
+
"8. Radius uses the radius settings table with seed.radius; fonts set --font-sans and --font-mono."
|
|
1401
|
+
],
|
|
1402
|
+
"builtIn": [
|
|
1403
|
+
{
|
|
1404
|
+
"id": "kolam",
|
|
1405
|
+
"name": "Kolam",
|
|
1406
|
+
"tier": "free",
|
|
1407
|
+
"modes": "light+dark",
|
|
1408
|
+
"seed": {
|
|
1409
|
+
"accent": "#E0502A",
|
|
1410
|
+
"neutral": "stone",
|
|
1411
|
+
"primary": "neutral",
|
|
1412
|
+
"radius": "md",
|
|
1413
|
+
"font": {
|
|
1414
|
+
"sans": "Geist",
|
|
1415
|
+
"mono": "Geist Mono"
|
|
1416
|
+
}
|
|
1417
|
+
},
|
|
1418
|
+
"description": "Warm neutrals with a vermilion accent. The default."
|
|
1419
|
+
},
|
|
1420
|
+
{
|
|
1421
|
+
"id": "neutral",
|
|
1422
|
+
"name": "Neutral",
|
|
1423
|
+
"tier": "free",
|
|
1424
|
+
"modes": "light+dark",
|
|
1425
|
+
"seed": {
|
|
1426
|
+
"accent": "#71717A",
|
|
1427
|
+
"neutral": "zinc",
|
|
1428
|
+
"primary": "neutral",
|
|
1429
|
+
"radius": "md",
|
|
1430
|
+
"font": {
|
|
1431
|
+
"sans": "Geist",
|
|
1432
|
+
"mono": "Geist Mono"
|
|
1433
|
+
}
|
|
1434
|
+
},
|
|
1435
|
+
"description": "Grey on grey. Lets your content lead."
|
|
1436
|
+
},
|
|
1437
|
+
{
|
|
1438
|
+
"id": "turmeric",
|
|
1439
|
+
"name": "Turmeric",
|
|
1440
|
+
"tier": "free",
|
|
1441
|
+
"modes": "light+dark",
|
|
1442
|
+
"seed": {
|
|
1443
|
+
"accent": "#E8A317",
|
|
1444
|
+
"neutral": "tinted",
|
|
1445
|
+
"primary": "accent",
|
|
1446
|
+
"radius": "md",
|
|
1447
|
+
"font": {
|
|
1448
|
+
"sans": "Geist",
|
|
1449
|
+
"mono": "Geist Mono"
|
|
1450
|
+
}
|
|
1451
|
+
},
|
|
1452
|
+
"description": "Golden yellow on deep brown. Friendly and bright."
|
|
1453
|
+
},
|
|
1454
|
+
{
|
|
1455
|
+
"id": "peacock",
|
|
1456
|
+
"name": "Peacock",
|
|
1457
|
+
"tier": "free",
|
|
1458
|
+
"modes": "light+dark",
|
|
1459
|
+
"seed": {
|
|
1460
|
+
"accent": "#1F8F8C",
|
|
1461
|
+
"neutral": "slate",
|
|
1462
|
+
"primary": "accent",
|
|
1463
|
+
"radius": "md",
|
|
1464
|
+
"font": {
|
|
1465
|
+
"sans": "Geist",
|
|
1466
|
+
"mono": "Geist Mono"
|
|
1467
|
+
}
|
|
1468
|
+
},
|
|
1469
|
+
"description": "Teal and blue for calm, data-heavy apps."
|
|
1470
|
+
},
|
|
1471
|
+
{
|
|
1472
|
+
"id": "indigo",
|
|
1473
|
+
"name": "Neel",
|
|
1474
|
+
"tier": "free",
|
|
1475
|
+
"modes": "light+dark",
|
|
1476
|
+
"seed": {
|
|
1477
|
+
"accent": "#4F5BD5",
|
|
1478
|
+
"neutral": "slate",
|
|
1479
|
+
"primary": "accent",
|
|
1480
|
+
"radius": "md",
|
|
1481
|
+
"font": {
|
|
1482
|
+
"sans": "Geist",
|
|
1483
|
+
"mono": "Geist Mono"
|
|
1484
|
+
}
|
|
1485
|
+
},
|
|
1486
|
+
"description": "Indigo dye blue. Crisp and trustworthy."
|
|
1487
|
+
},
|
|
1488
|
+
{
|
|
1489
|
+
"id": "high-contrast",
|
|
1490
|
+
"name": "High contrast",
|
|
1491
|
+
"tier": "free",
|
|
1492
|
+
"modes": "light",
|
|
1493
|
+
"seed": {
|
|
1494
|
+
"accent": "#B83A17",
|
|
1495
|
+
"neutral": "stone",
|
|
1496
|
+
"primary": "neutral",
|
|
1497
|
+
"radius": "md",
|
|
1498
|
+
"font": {
|
|
1499
|
+
"sans": "Geist",
|
|
1500
|
+
"mono": "Geist Mono"
|
|
1501
|
+
}
|
|
1502
|
+
},
|
|
1503
|
+
"description": "Black and white, thick focus rings, 7:1 text.",
|
|
1504
|
+
"values": "Not seed-expanded: the kolam light values with the contrast column applied; ring-width 3px; the input-border contrast exception does not apply. The seed is used only by Studio's \"Start from\"."
|
|
1505
|
+
},
|
|
1506
|
+
{
|
|
1507
|
+
"id": "mehendi",
|
|
1508
|
+
"name": "Mehendi",
|
|
1509
|
+
"tier": "pro",
|
|
1510
|
+
"modes": "light+dark",
|
|
1511
|
+
"seed": {
|
|
1512
|
+
"accent": "#6B8E23",
|
|
1513
|
+
"neutral": "tinted",
|
|
1514
|
+
"primary": "accent",
|
|
1515
|
+
"radius": "lg",
|
|
1516
|
+
"font": {
|
|
1517
|
+
"sans": "Geist",
|
|
1518
|
+
"mono": "Geist Mono"
|
|
1519
|
+
}
|
|
1520
|
+
},
|
|
1521
|
+
"description": "Olive greens with soft, rounded corners."
|
|
1522
|
+
},
|
|
1523
|
+
{
|
|
1524
|
+
"id": "lotus",
|
|
1525
|
+
"name": "Lotus",
|
|
1526
|
+
"tier": "pro",
|
|
1527
|
+
"modes": "light+dark",
|
|
1528
|
+
"seed": {
|
|
1529
|
+
"accent": "#D9468F",
|
|
1530
|
+
"neutral": "tinted",
|
|
1531
|
+
"primary": "accent",
|
|
1532
|
+
"radius": "full",
|
|
1533
|
+
"font": {
|
|
1534
|
+
"sans": "Geist",
|
|
1535
|
+
"mono": "Geist Mono"
|
|
1536
|
+
}
|
|
1537
|
+
},
|
|
1538
|
+
"description": "Soft pink and plum for consumer apps."
|
|
1539
|
+
},
|
|
1540
|
+
{
|
|
1541
|
+
"id": "midnight",
|
|
1542
|
+
"name": "Midnight",
|
|
1543
|
+
"tier": "pro",
|
|
1544
|
+
"modes": "dark",
|
|
1545
|
+
"seed": {
|
|
1546
|
+
"accent": "#F5A524",
|
|
1547
|
+
"neutral": "stone",
|
|
1548
|
+
"primary": "neutral",
|
|
1549
|
+
"radius": "md",
|
|
1550
|
+
"font": {
|
|
1551
|
+
"sans": "Geist",
|
|
1552
|
+
"mono": "Geist Mono"
|
|
1553
|
+
}
|
|
1554
|
+
},
|
|
1555
|
+
"description": "Near-black with a glowing saffron accent."
|
|
1556
|
+
}
|
|
1557
|
+
]
|
|
1558
|
+
},
|
|
1559
|
+
type: {
|
|
1560
|
+
"fonts": [],
|
|
1561
|
+
"families": {
|
|
1562
|
+
"sans": "Geist, system-ui, sans-serif",
|
|
1563
|
+
"mono": "\"Geist Mono\", ui-monospace, monospace"
|
|
1564
|
+
},
|
|
1565
|
+
"groups": [
|
|
1566
|
+
{
|
|
1567
|
+
"name": "Display",
|
|
1568
|
+
"family": "sans",
|
|
1569
|
+
"styles": [{
|
|
1570
|
+
"name": "display-xl",
|
|
1571
|
+
"fontSize": "60px",
|
|
1572
|
+
"lineHeight": 1.04,
|
|
1573
|
+
"fontWeight": 600,
|
|
1574
|
+
"letterSpacing": "-0.035em",
|
|
1575
|
+
"usage": "Marketing hero headline only. One per page.",
|
|
1576
|
+
"sample": "The UI kit you copy, theme and own."
|
|
1577
|
+
}, {
|
|
1578
|
+
"name": "display",
|
|
1579
|
+
"fontSize": "44px",
|
|
1580
|
+
"lineHeight": 1.05,
|
|
1581
|
+
"fontWeight": 600,
|
|
1582
|
+
"letterSpacing": "-0.03em",
|
|
1583
|
+
"usage": "Spec and showcase page titles; big stat values on dashboards.",
|
|
1584
|
+
"sample": "Buttons & text entry"
|
|
1585
|
+
}]
|
|
1586
|
+
},
|
|
1587
|
+
{
|
|
1588
|
+
"name": "Headings",
|
|
1589
|
+
"family": "sans",
|
|
1590
|
+
"styles": [
|
|
1591
|
+
{
|
|
1592
|
+
"name": "h1",
|
|
1593
|
+
"fontSize": "36px",
|
|
1594
|
+
"lineHeight": 1.1,
|
|
1595
|
+
"fontWeight": 600,
|
|
1596
|
+
"letterSpacing": "-0.025em",
|
|
1597
|
+
"usage": "Page title in docs, settings and app screens.",
|
|
1598
|
+
"sample": "Publish a registry"
|
|
1599
|
+
},
|
|
1600
|
+
{
|
|
1601
|
+
"name": "h2",
|
|
1602
|
+
"fontSize": "28px",
|
|
1603
|
+
"lineHeight": 1.2,
|
|
1604
|
+
"fontWeight": 600,
|
|
1605
|
+
"letterSpacing": "-0.02em",
|
|
1606
|
+
"usage": "Section titles. Marketing sections use 40px with the same tracking.",
|
|
1607
|
+
"sample": "Everything a product needs"
|
|
1608
|
+
},
|
|
1609
|
+
{
|
|
1610
|
+
"name": "h3",
|
|
1611
|
+
"fontSize": "22px",
|
|
1612
|
+
"lineHeight": 1.3,
|
|
1613
|
+
"fontWeight": 600,
|
|
1614
|
+
"letterSpacing": "-0.015em",
|
|
1615
|
+
"usage": "Card and subsection titles.",
|
|
1616
|
+
"sample": "Team plan"
|
|
1617
|
+
},
|
|
1618
|
+
{
|
|
1619
|
+
"name": "h4",
|
|
1620
|
+
"fontSize": "18px",
|
|
1621
|
+
"lineHeight": 1.4,
|
|
1622
|
+
"fontWeight": 600,
|
|
1623
|
+
"usage": "Small group titles, dialog titles at 16-18px.",
|
|
1624
|
+
"sample": "Rename project"
|
|
1625
|
+
}
|
|
1626
|
+
]
|
|
1627
|
+
},
|
|
1628
|
+
{
|
|
1629
|
+
"name": "Text",
|
|
1630
|
+
"family": "sans",
|
|
1631
|
+
"styles": [
|
|
1632
|
+
{
|
|
1633
|
+
"name": "lead",
|
|
1634
|
+
"fontSize": "17px",
|
|
1635
|
+
"lineHeight": 1.55,
|
|
1636
|
+
"fontWeight": 400,
|
|
1637
|
+
"usage": "The paragraph under a page title, in muted-foreground.",
|
|
1638
|
+
"sample": "Accessible building blocks, from a label to a Gantt chart."
|
|
1639
|
+
},
|
|
1640
|
+
{
|
|
1641
|
+
"name": "body",
|
|
1642
|
+
"fontSize": "15px",
|
|
1643
|
+
"lineHeight": 1.6,
|
|
1644
|
+
"fontWeight": 400,
|
|
1645
|
+
"usage": "Reading text: docs, descriptions, long content. Lines under 72 characters.",
|
|
1646
|
+
"sample": "Every component is a file in your project."
|
|
1647
|
+
},
|
|
1648
|
+
{
|
|
1649
|
+
"name": "ui",
|
|
1650
|
+
"fontSize": "14px",
|
|
1651
|
+
"lineHeight": "20px",
|
|
1652
|
+
"fontWeight": 400,
|
|
1653
|
+
"usage": "Default for controls, menus, tables and app text.",
|
|
1654
|
+
"sample": "Email me updates"
|
|
1655
|
+
},
|
|
1656
|
+
{
|
|
1657
|
+
"name": "ui-strong",
|
|
1658
|
+
"fontSize": "14px",
|
|
1659
|
+
"lineHeight": "20px",
|
|
1660
|
+
"fontWeight": 500,
|
|
1661
|
+
"usage": "Button labels, active tabs, item titles.",
|
|
1662
|
+
"sample": "Save changes"
|
|
1663
|
+
},
|
|
1664
|
+
{
|
|
1665
|
+
"name": "small",
|
|
1666
|
+
"fontSize": "13px",
|
|
1667
|
+
"lineHeight": 1.45,
|
|
1668
|
+
"fontWeight": 400,
|
|
1669
|
+
"usage": "Help text, metadata, secondary table cells.",
|
|
1670
|
+
"sample": "Shown on your profile and invoices."
|
|
1671
|
+
},
|
|
1672
|
+
{
|
|
1673
|
+
"name": "caption",
|
|
1674
|
+
"fontSize": "12px",
|
|
1675
|
+
"lineHeight": "16px",
|
|
1676
|
+
"fontWeight": 400,
|
|
1677
|
+
"usage": "Hints under fields, timestamps, chart axes. Never smaller for text people must read.",
|
|
1678
|
+
"sample": "Updated 2 min ago"
|
|
1679
|
+
},
|
|
1680
|
+
{
|
|
1681
|
+
"name": "overline",
|
|
1682
|
+
"fontSize": "11px",
|
|
1683
|
+
"lineHeight": "16px",
|
|
1684
|
+
"fontWeight": 600,
|
|
1685
|
+
"letterSpacing": "0.06em",
|
|
1686
|
+
"usage": "Uppercase labels above groups of facts (spec sheets, settings groups).",
|
|
1687
|
+
"sample": "KEYBOARD"
|
|
1688
|
+
}
|
|
1689
|
+
]
|
|
1690
|
+
},
|
|
1691
|
+
{
|
|
1692
|
+
"name": "Code",
|
|
1693
|
+
"family": "mono",
|
|
1694
|
+
"styles": [{
|
|
1695
|
+
"name": "code",
|
|
1696
|
+
"fontSize": "13px",
|
|
1697
|
+
"lineHeight": 1.7,
|
|
1698
|
+
"fontWeight": 400,
|
|
1699
|
+
"usage": "Code blocks and terminal output.",
|
|
1700
|
+
"sample": "npx kolamui add button"
|
|
1701
|
+
}, {
|
|
1702
|
+
"name": "code-sm",
|
|
1703
|
+
"fontSize": "12px",
|
|
1704
|
+
"lineHeight": "18px",
|
|
1705
|
+
"fontWeight": 400,
|
|
1706
|
+
"usage": "Inline code in small text, install chips, kbd.",
|
|
1707
|
+
"sample": "kolam.json"
|
|
1708
|
+
}]
|
|
1709
|
+
}
|
|
1710
|
+
]
|
|
1711
|
+
},
|
|
1712
|
+
spacing: { "tokens": [
|
|
1713
|
+
{
|
|
1714
|
+
"name": "space-0.5",
|
|
1715
|
+
"value": "2px",
|
|
1716
|
+
"usage": "Hairline gaps: between a label and its pill, badge internals."
|
|
1717
|
+
},
|
|
1718
|
+
{
|
|
1719
|
+
"name": "space-1",
|
|
1720
|
+
"value": "4px",
|
|
1721
|
+
"usage": "Icon-to-text in tight chips; gap between segmented options."
|
|
1722
|
+
},
|
|
1723
|
+
{
|
|
1724
|
+
"name": "space-1.5",
|
|
1725
|
+
"value": "6px",
|
|
1726
|
+
"usage": "Label to control; list item gaps."
|
|
1727
|
+
},
|
|
1728
|
+
{
|
|
1729
|
+
"name": "space-2",
|
|
1730
|
+
"value": "8px",
|
|
1731
|
+
"usage": "Icon-to-label in buttons; gaps between buttons."
|
|
1732
|
+
},
|
|
1733
|
+
{
|
|
1734
|
+
"name": "space-3",
|
|
1735
|
+
"value": "12px",
|
|
1736
|
+
"usage": "Gap between cards in a grid; inset-layout gutter; menu padding."
|
|
1737
|
+
},
|
|
1738
|
+
{
|
|
1739
|
+
"name": "space-4",
|
|
1740
|
+
"value": "16px",
|
|
1741
|
+
"usage": "Card padding (md); form field gaps."
|
|
1742
|
+
},
|
|
1743
|
+
{
|
|
1744
|
+
"name": "space-5",
|
|
1745
|
+
"value": "20px",
|
|
1746
|
+
"usage": "Dialog padding; card padding in sidebars."
|
|
1747
|
+
},
|
|
1748
|
+
{
|
|
1749
|
+
"name": "space-6",
|
|
1750
|
+
"value": "24px",
|
|
1751
|
+
"usage": "Page side padding on phones and tablets; card padding (lg)."
|
|
1752
|
+
},
|
|
1753
|
+
{
|
|
1754
|
+
"name": "space-8",
|
|
1755
|
+
"value": "32px",
|
|
1756
|
+
"usage": "Between sections inside a page."
|
|
1757
|
+
},
|
|
1758
|
+
{
|
|
1759
|
+
"name": "space-10",
|
|
1760
|
+
"value": "40px",
|
|
1761
|
+
"usage": "Docs page top padding."
|
|
1762
|
+
},
|
|
1763
|
+
{
|
|
1764
|
+
"name": "space-12",
|
|
1765
|
+
"value": "48px",
|
|
1766
|
+
"usage": "Page side padding on desktop."
|
|
1767
|
+
},
|
|
1768
|
+
{
|
|
1769
|
+
"name": "space-16",
|
|
1770
|
+
"value": "64px",
|
|
1771
|
+
"usage": "Bottom padding of long pages."
|
|
1772
|
+
},
|
|
1773
|
+
{
|
|
1774
|
+
"name": "space-22",
|
|
1775
|
+
"value": "88px",
|
|
1776
|
+
"usage": "Marketing section padding, top and bottom."
|
|
1777
|
+
}
|
|
1778
|
+
] },
|
|
1779
|
+
radius: {
|
|
1780
|
+
"tokens": [
|
|
1781
|
+
{
|
|
1782
|
+
"name": "radius-xs",
|
|
1783
|
+
"value": "4px",
|
|
1784
|
+
"usage": "Checkboxes, kbd, progress bars, chart bar ends."
|
|
1785
|
+
},
|
|
1786
|
+
{
|
|
1787
|
+
"name": "radius-sm",
|
|
1788
|
+
"value": "6px",
|
|
1789
|
+
"usage": "Menu items, chips, badges, small toggles, tooltips."
|
|
1790
|
+
},
|
|
1791
|
+
{
|
|
1792
|
+
"name": "radius-md",
|
|
1793
|
+
"value": "8px",
|
|
1794
|
+
"usage": "Every control: buttons, inputs, selects (alias radius-control)."
|
|
1795
|
+
},
|
|
1796
|
+
{
|
|
1797
|
+
"name": "radius-lg",
|
|
1798
|
+
"value": "10px",
|
|
1799
|
+
"usage": "Popovers, menus, segmented-control tracks, file rows."
|
|
1800
|
+
},
|
|
1801
|
+
{
|
|
1802
|
+
"name": "radius-xl",
|
|
1803
|
+
"value": "12px",
|
|
1804
|
+
"usage": "Cards, dialogs, toasts, code blocks."
|
|
1805
|
+
},
|
|
1806
|
+
{
|
|
1807
|
+
"name": "radius-2xl",
|
|
1808
|
+
"value": "16px",
|
|
1809
|
+
"usage": "Large showcase panels, phone drawers."
|
|
1810
|
+
},
|
|
1811
|
+
{
|
|
1812
|
+
"name": "radius-3xl",
|
|
1813
|
+
"value": "20px",
|
|
1814
|
+
"usage": "Inset-layout panels; chart cards in the \"number first\" style."
|
|
1815
|
+
},
|
|
1816
|
+
{
|
|
1817
|
+
"name": "radius-full",
|
|
1818
|
+
"value": "9999px",
|
|
1819
|
+
"usage": "Avatars, switches and status dots only. Fixed: the radius setting never changes it."
|
|
1820
|
+
}
|
|
1821
|
+
],
|
|
1822
|
+
"note": "The values above are the default (`radius: \"md\"`). The radius setting (kolam.json `radius`, Studio 'Corner radius') rewrites every token except radius-full, using the table in `settings`.",
|
|
1823
|
+
"settings": {
|
|
1824
|
+
"rule": "From the base md: xs = floor(md / 2), sm = max(0, md - 2), lg = md + 2, xl = md + 4, 2xl = md x 2, 3xl = md x 2.5; md = 0 sets every token to 0. \"full\" is not a number: controls, chips and badges become pills and containers use the fixed values below.",
|
|
1825
|
+
"none": {
|
|
1826
|
+
"radius-xs": "0px",
|
|
1827
|
+
"radius-sm": "0px",
|
|
1828
|
+
"radius-md": "0px",
|
|
1829
|
+
"radius-lg": "0px",
|
|
1830
|
+
"radius-xl": "0px",
|
|
1831
|
+
"radius-2xl": "0px",
|
|
1832
|
+
"radius-3xl": "0px"
|
|
1833
|
+
},
|
|
1834
|
+
"sm": {
|
|
1835
|
+
"radius-xs": "2px",
|
|
1836
|
+
"radius-sm": "2px",
|
|
1837
|
+
"radius-md": "4px",
|
|
1838
|
+
"radius-lg": "6px",
|
|
1839
|
+
"radius-xl": "8px",
|
|
1840
|
+
"radius-2xl": "8px",
|
|
1841
|
+
"radius-3xl": "10px"
|
|
1842
|
+
},
|
|
1843
|
+
"md": {
|
|
1844
|
+
"radius-xs": "4px",
|
|
1845
|
+
"radius-sm": "6px",
|
|
1846
|
+
"radius-md": "8px",
|
|
1847
|
+
"radius-lg": "10px",
|
|
1848
|
+
"radius-xl": "12px",
|
|
1849
|
+
"radius-2xl": "16px",
|
|
1850
|
+
"radius-3xl": "20px"
|
|
1851
|
+
},
|
|
1852
|
+
"lg": {
|
|
1853
|
+
"radius-xs": "6px",
|
|
1854
|
+
"radius-sm": "10px",
|
|
1855
|
+
"radius-md": "12px",
|
|
1856
|
+
"radius-lg": "14px",
|
|
1857
|
+
"radius-xl": "16px",
|
|
1858
|
+
"radius-2xl": "24px",
|
|
1859
|
+
"radius-3xl": "30px"
|
|
1860
|
+
},
|
|
1861
|
+
"full": {
|
|
1862
|
+
"radius-xs": "4px",
|
|
1863
|
+
"radius-sm": "9999px",
|
|
1864
|
+
"radius-md": "9999px",
|
|
1865
|
+
"radius-lg": "16px",
|
|
1866
|
+
"radius-xl": "20px",
|
|
1867
|
+
"radius-2xl": "24px",
|
|
1868
|
+
"radius-3xl": "28px"
|
|
1869
|
+
}
|
|
1870
|
+
}
|
|
1871
|
+
},
|
|
1872
|
+
shadow: {
|
|
1873
|
+
"note": "Flat by default: only things that float cast a shadow. Focus rings are shadows so they follow the radius. Shadow values are composed from colour tokens; the build writes them with var() references.",
|
|
1874
|
+
"tokens": [
|
|
1875
|
+
{
|
|
1876
|
+
"name": "shadow-overlay",
|
|
1877
|
+
"value": {
|
|
1878
|
+
"light": "0 8px 24px rgba(24,24,27,0.12)",
|
|
1879
|
+
"dark": "0 8px 24px rgba(0,0,0,0.5)"
|
|
1880
|
+
},
|
|
1881
|
+
"usage": "Menus, popovers, dialogs, toasts. The only real shadow in the flat style; cards never cast one."
|
|
1882
|
+
},
|
|
1883
|
+
{
|
|
1884
|
+
"name": "shadow-segment",
|
|
1885
|
+
"value": {
|
|
1886
|
+
"light": "0 1px 2px rgba(24,24,27,0.1)",
|
|
1887
|
+
"dark": "0 0 0 0 rgba(0,0,0,0)"
|
|
1888
|
+
},
|
|
1889
|
+
"usage": "Lifts the selected option in a segmented control (light only)."
|
|
1890
|
+
},
|
|
1891
|
+
{
|
|
1892
|
+
"name": "focus-ring",
|
|
1893
|
+
"value": {
|
|
1894
|
+
"light": "0 0 0 2px #FFFFFF, 0 0 0 4px #E0502A",
|
|
1895
|
+
"dark": "0 0 0 2px #0F0F11, 0 0 0 4px #F26B47",
|
|
1896
|
+
"contrast": "0 0 0 2px #FFFFFF, 0 0 0 5px #B83A17"
|
|
1897
|
+
},
|
|
1898
|
+
"usage": "Keyboard focus on buttons, tabs, cards and menu triggers: a 2px gap in the page colour, then a ring of ring-width (2px; 3px in high contrast)."
|
|
1899
|
+
},
|
|
1900
|
+
{
|
|
1901
|
+
"name": "focus-halo",
|
|
1902
|
+
"value": {
|
|
1903
|
+
"light": "inset 0 0 0 1px #E0502A, 0 0 0 3px rgba(224,80,42,0.22)",
|
|
1904
|
+
"dark": "inset 0 0 0 1px #F26B47, 0 0 0 3px rgba(242,107,71,0.3)",
|
|
1905
|
+
"contrast": "inset 0 0 0 1px #B83A17, 0 0 0 3px #B83A17"
|
|
1906
|
+
},
|
|
1907
|
+
"usage": "Keyboard and pointer focus on text fields, selects and comboboxes: the border turns ring-coloured with a soft halo; in high contrast the halo is a solid 3px ring."
|
|
1908
|
+
},
|
|
1909
|
+
{
|
|
1910
|
+
"name": "invalid-halo",
|
|
1911
|
+
"value": {
|
|
1912
|
+
"light": "inset 0 0 0 1px #B42318, 0 0 0 3px rgba(180,35,24,0.18)",
|
|
1913
|
+
"dark": "inset 0 0 0 1px #F87171, 0 0 0 3px rgba(248,113,113,0.25)"
|
|
1914
|
+
},
|
|
1915
|
+
"usage": "An invalid field after its first blur. Always with an error message below."
|
|
1916
|
+
}
|
|
1917
|
+
]
|
|
1918
|
+
},
|
|
1919
|
+
focus: { "tokens": [{
|
|
1920
|
+
"name": "ring-width",
|
|
1921
|
+
"value": {
|
|
1922
|
+
"light": "2px",
|
|
1923
|
+
"dark": "2px",
|
|
1924
|
+
"contrast": "3px"
|
|
1925
|
+
},
|
|
1926
|
+
"usage": "Width of the focus ring (Studio 'Focus ring' 1–3px). 3px in high contrast."
|
|
1927
|
+
}, {
|
|
1928
|
+
"name": "ring-offset",
|
|
1929
|
+
"value": "2px",
|
|
1930
|
+
"usage": "Gap between the control and its focus ring, in the page colour."
|
|
1931
|
+
}] },
|
|
1932
|
+
size: {
|
|
1933
|
+
"note": "Heights and fixed widths that layouts depend on.",
|
|
1934
|
+
"tokens": [
|
|
1935
|
+
{
|
|
1936
|
+
"name": "control-sm",
|
|
1937
|
+
"value": "32px",
|
|
1938
|
+
"usage": "Small controls and compact density."
|
|
1939
|
+
},
|
|
1940
|
+
{
|
|
1941
|
+
"name": "control-md",
|
|
1942
|
+
"value": "38px",
|
|
1943
|
+
"usage": "Default height of buttons, inputs and selects."
|
|
1944
|
+
},
|
|
1945
|
+
{
|
|
1946
|
+
"name": "control-lg",
|
|
1947
|
+
"value": "44px",
|
|
1948
|
+
"usage": "Large controls; the minimum touch target on touch screens."
|
|
1949
|
+
},
|
|
1950
|
+
{
|
|
1951
|
+
"name": "chip",
|
|
1952
|
+
"value": "28px",
|
|
1953
|
+
"usage": "Chips, small segmented options, suggestion pills."
|
|
1954
|
+
},
|
|
1955
|
+
{
|
|
1956
|
+
"name": "icon-sm",
|
|
1957
|
+
"value": "14px",
|
|
1958
|
+
"usage": "Icons inside small controls."
|
|
1959
|
+
},
|
|
1960
|
+
{
|
|
1961
|
+
"name": "icon-md",
|
|
1962
|
+
"value": "16px",
|
|
1963
|
+
"usage": "Default icon size in controls and menus."
|
|
1964
|
+
},
|
|
1965
|
+
{
|
|
1966
|
+
"name": "icon-lg",
|
|
1967
|
+
"value": "20px",
|
|
1968
|
+
"usage": "Icons in empty states and feature lists."
|
|
1969
|
+
},
|
|
1970
|
+
{
|
|
1971
|
+
"name": "sidebar-width",
|
|
1972
|
+
"value": "240px",
|
|
1973
|
+
"usage": "Expanded app sidebar."
|
|
1974
|
+
},
|
|
1975
|
+
{
|
|
1976
|
+
"name": "sidebar-collapsed",
|
|
1977
|
+
"value": "56px",
|
|
1978
|
+
"usage": "Sidebar collapsed to icons."
|
|
1979
|
+
},
|
|
1980
|
+
{
|
|
1981
|
+
"name": "docs-nav-width",
|
|
1982
|
+
"value": "248px",
|
|
1983
|
+
"usage": "Docs side navigation."
|
|
1984
|
+
},
|
|
1985
|
+
{
|
|
1986
|
+
"name": "container",
|
|
1987
|
+
"value": "1240px",
|
|
1988
|
+
"usage": "Max content width on marketing and docs pages."
|
|
1989
|
+
},
|
|
1990
|
+
{
|
|
1991
|
+
"name": "prose",
|
|
1992
|
+
"value": "72ch",
|
|
1993
|
+
"usage": "Max line length for reading text (docs, descriptions)."
|
|
1994
|
+
},
|
|
1995
|
+
{
|
|
1996
|
+
"name": "size-prose",
|
|
1997
|
+
"value": "720px",
|
|
1998
|
+
"usage": "Max width of the rich-text editor column and other editable prose areas."
|
|
1999
|
+
}
|
|
2000
|
+
]
|
|
2001
|
+
},
|
|
2002
|
+
density: {
|
|
2003
|
+
"note": "Set with data-density on any element (nearest ancestor wins) or kolam.json density (the project default, written on :root by kolam init). Density sets the default control height (size=\"md\") and the paddings below; explicit size=\"sm\" and size=\"lg\" stay 32 and 44 px. On touch screens (pointer: coarse) hit areas never go below 44 px.",
|
|
2004
|
+
"default": "default",
|
|
2005
|
+
"modes": {
|
|
2006
|
+
"compact": {
|
|
2007
|
+
"control-h": "32px",
|
|
2008
|
+
"card-padding": "12px",
|
|
2009
|
+
"table-row": "32px"
|
|
2010
|
+
},
|
|
2011
|
+
"default": {
|
|
2012
|
+
"control-h": "38px",
|
|
2013
|
+
"card-padding": "16px",
|
|
2014
|
+
"table-row": "40px"
|
|
2015
|
+
},
|
|
2016
|
+
"comfortable": {
|
|
2017
|
+
"control-h": "44px",
|
|
2018
|
+
"card-padding": "24px",
|
|
2019
|
+
"table-row": "48px"
|
|
2020
|
+
}
|
|
2021
|
+
},
|
|
2022
|
+
"touchMin": "44px"
|
|
2023
|
+
},
|
|
2024
|
+
layout: { "tokens": [{
|
|
2025
|
+
"name": "layout-style",
|
|
2026
|
+
"value": "flat",
|
|
2027
|
+
"options": ["flat", "inset"],
|
|
2028
|
+
"usage": "Informational: the project's layout style (kolam.json style). Components switch with the Tailwind variant inset:, which kolam init defines for the chosen style; a page shell switches with data-layout-style on its root."
|
|
2029
|
+
}, {
|
|
2030
|
+
"name": "inset-gutter",
|
|
2031
|
+
"value": "12px",
|
|
2032
|
+
"usage": "Gap between panels in the inset style (space-3)."
|
|
2033
|
+
}] },
|
|
2034
|
+
motion: {
|
|
2035
|
+
"note": "Components and presets use only these values. Reduced motion: movement becomes a fade at duration-fast, loops stop, spinners turn at one third speed.",
|
|
2036
|
+
"duration": [
|
|
2037
|
+
{
|
|
2038
|
+
"name": "duration-instant",
|
|
2039
|
+
"value": "0ms",
|
|
2040
|
+
"usage": "Reduced-motion replacement for movement."
|
|
2041
|
+
},
|
|
2042
|
+
{
|
|
2043
|
+
"name": "duration-fast",
|
|
2044
|
+
"value": "120ms",
|
|
2045
|
+
"usage": "Hover, press, toggles, checkboxes, focus rings; the reduced-motion fade."
|
|
2046
|
+
},
|
|
2047
|
+
{
|
|
2048
|
+
"name": "duration-base",
|
|
2049
|
+
"value": "200ms",
|
|
2050
|
+
"usage": "Popovers, menus, tooltips, tabs indicator, accordion height, fade, fade-up, scale-in, collapse."
|
|
2051
|
+
},
|
|
2052
|
+
{
|
|
2053
|
+
"name": "duration-slow",
|
|
2054
|
+
"value": "320ms",
|
|
2055
|
+
"usage": "Dialogs, sheets, drawers, slide-in-right, blur-in, shake, progress fills."
|
|
2056
|
+
},
|
|
2057
|
+
{
|
|
2058
|
+
"name": "duration-slower",
|
|
2059
|
+
"value": "480ms",
|
|
2060
|
+
"usage": "flip; KolamCheck trace; the shortest trace."
|
|
2061
|
+
},
|
|
2062
|
+
{
|
|
2063
|
+
"name": "duration-tick",
|
|
2064
|
+
"value": "600ms",
|
|
2065
|
+
"usage": "Number tickers (stat cards, number-ticker)."
|
|
2066
|
+
},
|
|
2067
|
+
{
|
|
2068
|
+
"name": "duration-page",
|
|
2069
|
+
"value": "640ms",
|
|
2070
|
+
"usage": "The kolam-wipe page transition."
|
|
2071
|
+
},
|
|
2072
|
+
{
|
|
2073
|
+
"name": "duration-trace",
|
|
2074
|
+
"value": "1200ms",
|
|
2075
|
+
"usage": "The kolam line drawing in the logo, hero and KolamPattern. Once per page."
|
|
2076
|
+
},
|
|
2077
|
+
{
|
|
2078
|
+
"name": "duration-loop",
|
|
2079
|
+
"value": "1600ms",
|
|
2080
|
+
"usage": "One cycle of a loop: shimmer (Skeleton), pulse-ring."
|
|
2081
|
+
}
|
|
2082
|
+
],
|
|
2083
|
+
"easing": [
|
|
2084
|
+
{
|
|
2085
|
+
"name": "ease-standard",
|
|
2086
|
+
"value": "cubic-bezier(.2, 0, 0, 1)",
|
|
2087
|
+
"usage": "Anything that moves and stays on screen."
|
|
2088
|
+
},
|
|
2089
|
+
{
|
|
2090
|
+
"name": "ease-enter",
|
|
2091
|
+
"value": "cubic-bezier(0, 0, .2, 1)",
|
|
2092
|
+
"usage": "Things appearing: decelerate in."
|
|
2093
|
+
},
|
|
2094
|
+
{
|
|
2095
|
+
"name": "ease-exit",
|
|
2096
|
+
"value": "cubic-bezier(.4, 0, 1, 1)",
|
|
2097
|
+
"usage": "Things leaving: accelerate out, 25% faster than they came in."
|
|
2098
|
+
},
|
|
2099
|
+
{
|
|
2100
|
+
"name": "ease-in-out",
|
|
2101
|
+
"value": "cubic-bezier(.4, 0, .2, 1)",
|
|
2102
|
+
"usage": "trace: line drawing."
|
|
2103
|
+
}
|
|
2104
|
+
],
|
|
2105
|
+
"spring": [
|
|
2106
|
+
{
|
|
2107
|
+
"name": "spring-snappy",
|
|
2108
|
+
"value": {
|
|
2109
|
+
"stiffness": 500,
|
|
2110
|
+
"damping": 32
|
|
2111
|
+
},
|
|
2112
|
+
"usage": "Drag-and-drop settling, sortable items, the segmented-control highlight."
|
|
2113
|
+
},
|
|
2114
|
+
{
|
|
2115
|
+
"name": "spring-gentle",
|
|
2116
|
+
"value": {
|
|
2117
|
+
"stiffness": 260,
|
|
2118
|
+
"damping": 30
|
|
2119
|
+
},
|
|
2120
|
+
"usage": "Layout changes such as cards reflowing after a filter."
|
|
2121
|
+
},
|
|
2122
|
+
{
|
|
2123
|
+
"name": "spring-bouncy",
|
|
2124
|
+
"value": {
|
|
2125
|
+
"stiffness": 400,
|
|
2126
|
+
"damping": 18
|
|
2127
|
+
},
|
|
2128
|
+
"usage": "pop: a small overshoot."
|
|
2129
|
+
}
|
|
2130
|
+
],
|
|
2131
|
+
"stagger": [{
|
|
2132
|
+
"name": "stagger",
|
|
2133
|
+
"value": "40ms",
|
|
2134
|
+
"usage": "Delay between list items (stagger-list, MotionList stagger=\"fast\")."
|
|
2135
|
+
}, {
|
|
2136
|
+
"name": "stagger-max",
|
|
2137
|
+
"value": 8,
|
|
2138
|
+
"usage": "Items after the 8th appear with the 8th."
|
|
2139
|
+
}]
|
|
2140
|
+
},
|
|
2141
|
+
chart: { "tokens": [{
|
|
2142
|
+
"name": "chart-fill-style",
|
|
2143
|
+
"value": "gradient",
|
|
2144
|
+
"options": ["gradient", "solid"],
|
|
2145
|
+
"usage": "gradient: areas fade from 28% to 0, bars go from solid to a 15% tint. solid: areas a flat 20% tint, bars solid."
|
|
2146
|
+
}] },
|
|
2147
|
+
zIndex: { "tokens": [
|
|
2148
|
+
{
|
|
2149
|
+
"name": "z-sticky",
|
|
2150
|
+
"value": "20",
|
|
2151
|
+
"usage": "Sticky headers and table headers."
|
|
2152
|
+
},
|
|
2153
|
+
{
|
|
2154
|
+
"name": "z-dropdown",
|
|
2155
|
+
"value": "50",
|
|
2156
|
+
"usage": "Menus and popovers."
|
|
2157
|
+
},
|
|
2158
|
+
{
|
|
2159
|
+
"name": "z-overlay",
|
|
2160
|
+
"value": "100",
|
|
2161
|
+
"usage": "Scrim behind modals."
|
|
2162
|
+
},
|
|
2163
|
+
{
|
|
2164
|
+
"name": "z-modal",
|
|
2165
|
+
"value": "110",
|
|
2166
|
+
"usage": "Dialogs, sheets, drawers."
|
|
2167
|
+
},
|
|
2168
|
+
{
|
|
2169
|
+
"name": "z-toast",
|
|
2170
|
+
"value": "130",
|
|
2171
|
+
"usage": "Toast region."
|
|
2172
|
+
},
|
|
2173
|
+
{
|
|
2174
|
+
"name": "z-tooltip",
|
|
2175
|
+
"value": "140",
|
|
2176
|
+
"usage": "Tooltips, above everything."
|
|
2177
|
+
}
|
|
2178
|
+
] },
|
|
2179
|
+
opacity: { "tokens": [
|
|
2180
|
+
{
|
|
2181
|
+
"name": "opacity-disabled",
|
|
2182
|
+
"value": "0.5",
|
|
2183
|
+
"usage": "Disabled controls. Never the only sign of state."
|
|
2184
|
+
},
|
|
2185
|
+
{
|
|
2186
|
+
"name": "opacity-placeholder-bar",
|
|
2187
|
+
"value": "0.32",
|
|
2188
|
+
"usage": "Non-highlighted bars when one bar is hovered in a chart."
|
|
2189
|
+
},
|
|
2190
|
+
{
|
|
2191
|
+
"name": "media-dim",
|
|
2192
|
+
"value": {
|
|
2193
|
+
"light": "0",
|
|
2194
|
+
"dark": "0.1"
|
|
2195
|
+
},
|
|
2196
|
+
"usage": "How much photos and illustrations are dimmed in dark mode: filter: brightness(calc(1 - var(--media-dim))). Studio 'Dim photos and illustrations by 10%'."
|
|
2197
|
+
}
|
|
2198
|
+
] },
|
|
2199
|
+
aliases: {
|
|
2200
|
+
"note": "Component-tier names used on spec sheets and in component READMEs. Each is a var() of the canonical token and is defined by @kolamui/tokens; new code should use the canonical name.",
|
|
2201
|
+
"tokens": [
|
|
2202
|
+
{
|
|
2203
|
+
"name": "radius-control",
|
|
2204
|
+
"to": "radius-md"
|
|
2205
|
+
},
|
|
2206
|
+
{
|
|
2207
|
+
"name": "radius-overlay",
|
|
2208
|
+
"to": "radius-lg"
|
|
2209
|
+
},
|
|
2210
|
+
{
|
|
2211
|
+
"name": "radius-card",
|
|
2212
|
+
"to": "radius-xl"
|
|
2213
|
+
},
|
|
2214
|
+
{
|
|
2215
|
+
"name": "radius-badge",
|
|
2216
|
+
"to": "radius-sm"
|
|
2217
|
+
},
|
|
2218
|
+
{
|
|
2219
|
+
"name": "radius-chip",
|
|
2220
|
+
"to": "radius-sm"
|
|
2221
|
+
},
|
|
2222
|
+
{
|
|
2223
|
+
"name": "control-h-sm",
|
|
2224
|
+
"to": "control-sm"
|
|
2225
|
+
},
|
|
2226
|
+
{
|
|
2227
|
+
"name": "control-h-md",
|
|
2228
|
+
"to": "control-h"
|
|
2229
|
+
},
|
|
2230
|
+
{
|
|
2231
|
+
"name": "control-h-lg",
|
|
2232
|
+
"to": "control-lg"
|
|
2233
|
+
},
|
|
2234
|
+
{
|
|
2235
|
+
"name": "shadow-pop",
|
|
2236
|
+
"to": "shadow-overlay"
|
|
2237
|
+
}
|
|
2238
|
+
]
|
|
2239
|
+
}
|
|
2240
|
+
};
|
|
2241
|
+
// src/generate.ts
|
|
2242
|
+
/** Theme id of the light-only high-contrast theme: the kolam light values with the contrast set applied. */
|
|
2243
|
+
const HIGH_CONTRAST_THEME = "high-contrast";
|
|
2244
|
+
const INDENT = " ";
|
|
2245
|
+
const SPRING_COMMENT = "/* stiffness damping, read by @kolamui/motion */";
|
|
2246
|
+
/** A CSS custom property name. Dots (as in `space-1.5`) are escaped. */
|
|
2247
|
+
function cssVar(name) {
|
|
2248
|
+
return `--${name.replaceAll(".", "\\.")}`;
|
|
2249
|
+
}
|
|
2250
|
+
/** `stone.900` -> `var(--k-stone-900)` */
|
|
2251
|
+
function primitiveVar(ref) {
|
|
2252
|
+
return `var(--k-${ref.replace(".", "-")})`;
|
|
2253
|
+
}
|
|
2254
|
+
function decl(name, value) {
|
|
2255
|
+
return `${cssVar(name)}: ${value};`;
|
|
2256
|
+
}
|
|
2257
|
+
function block(selector, declarations, depth = 0) {
|
|
2258
|
+
const pad = INDENT.repeat(depth);
|
|
2259
|
+
return [
|
|
2260
|
+
`${pad}${selector} {`,
|
|
2261
|
+
...declarations.map((d) => `${pad}${INDENT}${d}`),
|
|
2262
|
+
`${pad}}`
|
|
2263
|
+
];
|
|
2264
|
+
}
|
|
2265
|
+
function inlineBlock(selector, declarations) {
|
|
2266
|
+
return `${selector} { ${declarations.join(" ")} }`;
|
|
2267
|
+
}
|
|
2268
|
+
function comment(text) {
|
|
2269
|
+
return `/* ${text} */`;
|
|
2270
|
+
}
|
|
2271
|
+
function isModeValues(value) {
|
|
2272
|
+
return typeof value === "object" && value !== null && "light" in value && "dark" in value;
|
|
2273
|
+
}
|
|
2274
|
+
function modeVariables(tokens) {
|
|
2275
|
+
const others = [
|
|
2276
|
+
...tokens.shadow.tokens,
|
|
2277
|
+
...tokens.focus.tokens,
|
|
2278
|
+
...tokens.opacity.tokens
|
|
2279
|
+
];
|
|
2280
|
+
const moded = [];
|
|
2281
|
+
for (const token of others) if (isModeValues(token.value)) moded.push({
|
|
2282
|
+
name: token.name,
|
|
2283
|
+
value: token.value
|
|
2284
|
+
});
|
|
2285
|
+
return [...tokens.color.tokens.map(colorVariable), ...moded];
|
|
2286
|
+
}
|
|
2287
|
+
function colorVariable(token) {
|
|
2288
|
+
return token.ref ? {
|
|
2289
|
+
name: token.name,
|
|
2290
|
+
value: token.value,
|
|
2291
|
+
ref: token.ref
|
|
2292
|
+
} : {
|
|
2293
|
+
name: token.name,
|
|
2294
|
+
value: token.value
|
|
2295
|
+
};
|
|
2296
|
+
}
|
|
2297
|
+
function hasContrast(variable) {
|
|
2298
|
+
return variable.value.contrast !== void 0 || variable.ref?.contrast !== void 0;
|
|
2299
|
+
}
|
|
2300
|
+
/** The CSS value of a token in one mode: a primitive var() when it has a ref, else the literal. */
|
|
2301
|
+
function resolve(variable, mode) {
|
|
2302
|
+
const ref = variable.ref?.[mode];
|
|
2303
|
+
if (ref !== void 0) return primitiveVar(ref);
|
|
2304
|
+
const value = variable.value[mode];
|
|
2305
|
+
if (value === void 0) throw new Error(`Token "${variable.name}" has no ${mode} value.`);
|
|
2306
|
+
return value;
|
|
2307
|
+
}
|
|
2308
|
+
function modeDeclarations(variables, mode) {
|
|
2309
|
+
return variables.map((v) => decl(v.name, resolve(v, mode)));
|
|
2310
|
+
}
|
|
2311
|
+
function primitiveDeclarations(tokens) {
|
|
2312
|
+
const out = [];
|
|
2313
|
+
for (const [family, steps] of Object.entries(tokens.color.primitives.families)) {
|
|
2314
|
+
const ordered = Object.entries(steps).sort(([a], [b]) => Number(a) - Number(b));
|
|
2315
|
+
for (const [step, hex] of ordered) out.push(decl(`k-${family}-${step}`, hex));
|
|
2316
|
+
}
|
|
2317
|
+
return out;
|
|
2318
|
+
}
|
|
2319
|
+
function staticDeclarations(list) {
|
|
2320
|
+
return list.map((t) => decl(t.name, t.value));
|
|
2321
|
+
}
|
|
2322
|
+
function springDeclaration(token) {
|
|
2323
|
+
const { stiffness, damping } = token.value;
|
|
2324
|
+
return `${decl(token.name, `${stiffness} ${damping}`)} ${SPRING_COMMENT}`;
|
|
2325
|
+
}
|
|
2326
|
+
function staggerDeclarations(list) {
|
|
2327
|
+
const out = [];
|
|
2328
|
+
for (const t of list) if (typeof t.value === "string") out.push(decl(t.name, t.value));
|
|
2329
|
+
return out;
|
|
2330
|
+
}
|
|
2331
|
+
function modedStaticDeclarations(list) {
|
|
2332
|
+
const out = [];
|
|
2333
|
+
for (const t of list) if (typeof t.value === "string") out.push(decl(t.name, t.value));
|
|
2334
|
+
return out;
|
|
2335
|
+
}
|
|
2336
|
+
function kebab(key) {
|
|
2337
|
+
return key.replace(/[A-Z]/g, (c) => `-${c.toLowerCase()}`);
|
|
2338
|
+
}
|
|
2339
|
+
/** Tokens that do not change with the colour mode, written once on :root. */
|
|
2340
|
+
function rootDeclarations(tokens) {
|
|
2341
|
+
const { density, motion } = tokens;
|
|
2342
|
+
const defaultDensity = density.modes[density.default];
|
|
2343
|
+
if (!defaultDensity) throw new Error(`Density "${density.default}" is not one of the density modes.`);
|
|
2344
|
+
return [
|
|
2345
|
+
...staticDeclarations(tokens.spacing.tokens),
|
|
2346
|
+
...staticDeclarations(tokens.radius.tokens),
|
|
2347
|
+
...staticDeclarations(tokens.size.tokens),
|
|
2348
|
+
...modedStaticDeclarations(tokens.focus.tokens),
|
|
2349
|
+
decl(kebab("touchMin"), density.touchMin),
|
|
2350
|
+
...Object.entries(defaultDensity).map(([name, value]) => decl(name, value)),
|
|
2351
|
+
...staticDeclarations(tokens.layout.tokens),
|
|
2352
|
+
...staticDeclarations(tokens.chart.tokens),
|
|
2353
|
+
...staticDeclarations(motion.duration),
|
|
2354
|
+
...staticDeclarations(motion.easing),
|
|
2355
|
+
...motion.spring.map(springDeclaration),
|
|
2356
|
+
...staggerDeclarations(motion.stagger),
|
|
2357
|
+
...staticDeclarations(tokens.zIndex.tokens),
|
|
2358
|
+
...modedStaticDeclarations(tokens.opacity.tokens),
|
|
2359
|
+
...Object.entries(tokens.type.families).map(([family, stack]) => decl(`font-${family}`, stack)),
|
|
2360
|
+
...tokens.aliases.tokens.map((a) => decl(a.name, `var(${cssVar(a.to)})`))
|
|
2361
|
+
];
|
|
2362
|
+
}
|
|
2363
|
+
function densityRules(tokens) {
|
|
2364
|
+
const { density } = tokens;
|
|
2365
|
+
const entries = Object.entries(density.modes);
|
|
2366
|
+
return [...entries.filter(([id]) => id !== density.default), ...entries.filter(([id]) => id === density.default)].map(([id, values]) => inlineBlock(`[data-density="${id}"]`, Object.entries(values).map(([name, value]) => decl(name, value))));
|
|
2367
|
+
}
|
|
2368
|
+
function radiusRules(tokens) {
|
|
2369
|
+
const base = new Map(tokens.radius.tokens.map((t) => [t.name, t.value]));
|
|
2370
|
+
const out = [];
|
|
2371
|
+
for (const [id, scale] of Object.entries(tokens.radius.settings)) {
|
|
2372
|
+
if (typeof scale !== "object") continue;
|
|
2373
|
+
const entries = Object.entries(scale);
|
|
2374
|
+
if (entries.every(([name, value]) => base.get(name) === value)) continue;
|
|
2375
|
+
out.push(comment(`radius "${id}": kolam init writes these values into the project theme block; data-radius is only for previews such as the docs demo.`));
|
|
2376
|
+
out.push(inlineBlock(`[data-radius="${id}"]`, entries.map(([name, value]) => decl(name, value))));
|
|
2377
|
+
}
|
|
2378
|
+
return out;
|
|
2379
|
+
}
|
|
2380
|
+
function typeRule(style, family) {
|
|
2381
|
+
const declarations = [
|
|
2382
|
+
`font-family: var(${cssVar(`font-${family}`)});`,
|
|
2383
|
+
`font-size: ${style.fontSize};`,
|
|
2384
|
+
`line-height: ${style.lineHeight};`,
|
|
2385
|
+
`font-weight: ${style.fontWeight};`
|
|
2386
|
+
];
|
|
2387
|
+
if (style.letterSpacing !== void 0) declarations.push(`letter-spacing: ${style.letterSpacing};`);
|
|
2388
|
+
return inlineBlock(`.${style.name}`, declarations);
|
|
2389
|
+
}
|
|
2390
|
+
function typeRules(tokens) {
|
|
2391
|
+
return tokens.type.groups.flatMap((group) => group.styles.map((style) => typeRule(style, group.family)));
|
|
2392
|
+
}
|
|
2393
|
+
/**
|
|
2394
|
+
* Generates the CSS variables for a token set: primitives, light and dark modes (by attribute and
|
|
2395
|
+
* by OS colour scheme), the high-contrast theme and prefers-contrast overrides, the mode-independent
|
|
2396
|
+
* tokens, density and radius settings, and the typography classes.
|
|
2397
|
+
*/
|
|
2398
|
+
function generateCss(tokens) {
|
|
2399
|
+
const variables = modeVariables(tokens);
|
|
2400
|
+
const contrast = variables.filter(hasContrast);
|
|
2401
|
+
const withoutContrast = variables.filter((v) => !hasContrast(v));
|
|
2402
|
+
const light = modeDeclarations(variables, "light");
|
|
2403
|
+
const dark = modeDeclarations(variables, "dark");
|
|
2404
|
+
const contrastOverrides = modeDeclarations(contrast, "contrast");
|
|
2405
|
+
return `${[
|
|
2406
|
+
comment(`${tokens.name} design tokens, generated from tokens.json. data-theme selects a theme by id; data-mode is light or dark.`),
|
|
2407
|
+
...block(":root", primitiveDeclarations(tokens)),
|
|
2408
|
+
comment("Modes use :where() so that any [data-theme] block outranks them. data-mode works on any element and scopes that subtree."),
|
|
2409
|
+
...block(":where(:root, [data-mode=\"light\"])", light),
|
|
2410
|
+
...block(":where([data-mode=\"dark\"])", dark),
|
|
2411
|
+
"@media (prefers-color-scheme: dark) {",
|
|
2412
|
+
...block(":where(:root:not([data-mode=\"light\"]))", dark, 1),
|
|
2413
|
+
"}",
|
|
2414
|
+
comment("High contrast is light only: the theme block carries every value, so data-mode and the OS colour scheme never change it."),
|
|
2415
|
+
...block(`[data-theme="${HIGH_CONTRAST_THEME}"]`, [...modeDeclarations(withoutContrast, "light"), ...contrastOverrides]),
|
|
2416
|
+
comment("prefers-contrast: more applies the contrast overrides in light mode only."),
|
|
2417
|
+
"@media (prefers-contrast: more) and (prefers-color-scheme: light) {",
|
|
2418
|
+
...block(":where(:root:not([data-mode=\"dark\"]))", contrastOverrides, 1),
|
|
2419
|
+
"}",
|
|
2420
|
+
"@media (prefers-contrast: more) {",
|
|
2421
|
+
...block(":where([data-mode=\"light\"])", contrastOverrides, 1),
|
|
2422
|
+
"}",
|
|
2423
|
+
...block(":root", rootDeclarations(tokens)),
|
|
2424
|
+
...densityRules(tokens),
|
|
2425
|
+
comment(`Hit areas: components keep a ${tokens.density.touchMin} minimum hit area under @media (pointer: coarse), whatever the density.`),
|
|
2426
|
+
...radiusRules(tokens),
|
|
2427
|
+
...typeRules(tokens)
|
|
2428
|
+
].join("\n")}\n`;
|
|
2429
|
+
}
|
|
2430
|
+
// src/index.ts
|
|
2431
|
+
/** Kolam's design tokens (the kolam theme), as published in `@kolamui/tokens/tokens.json`. */
|
|
2432
|
+
const tokens = tokens_default;
|
|
2433
|
+
export { HIGH_CONTRAST_THEME, cssVar, generateCss, tokens };
|