@orange-halo/tokens 2.1.0 → 2.2.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/contrast-pairs.json +187 -31
- package/contrast.js +11 -2
- package/dist/brands/hood-dark.json +45 -41
- package/dist/brands/hood.css +29 -28
- package/dist/brands/hood.json +45 -41
- package/dist/brands/orange-halo-dark.json +35 -31
- package/dist/brands/orange-halo.css +25 -24
- package/dist/brands/orange-halo.json +35 -31
- package/dist/themes/dark.json +35 -31
- package/dist/tokens.css +25 -24
- package/dist/tokens.js +35 -34
- package/dist/tokens.json +35 -31
- package/package.json +2 -4
- package/tokens/brands/hood/brand.json +3 -1
- package/tokens/brands/hood/light.tokens.json +4 -4
- package/tokens/brands/hood/palette.tokens.json +73 -16
- package/tokens/brands/orange-halo/brand.json +3 -1
- package/tokens/brands/orange-halo/dark.tokens.json +49 -10
- package/tokens/brands/orange-halo/light.tokens.json +41 -11
- package/tokens/brands/orange-halo/palette.tokens.json +25 -37
- package/tokens/core/component.tokens.json +198 -48
- package/tokens/core/scales.tokens.json +1 -1
package/dist/tokens.json
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$description": "Component Design Tokens — Orange Halo Visual DNA applied. Each component has personality knobs.",
|
|
3
|
+
"grid": {
|
|
4
|
+
"$description": "The brand's layout grid. Spacing is multiples of half a unit; type sizes and line heights sit on it (see style-dictionary.config.js)",
|
|
5
|
+
"unit": "8px"
|
|
6
|
+
},
|
|
3
7
|
"color": {
|
|
4
8
|
"$description": "Warm palette with nostalgic character. Neutrals are always warm; blue is the deliberate accent.",
|
|
5
9
|
"orange": {
|
|
@@ -194,16 +198,16 @@
|
|
|
194
198
|
"mono": "'JetBrains Mono', 'Fira Code', ui-monospace, monospace"
|
|
195
199
|
},
|
|
196
200
|
"size": {
|
|
197
|
-
"$description": "
|
|
201
|
+
"$description": "Type scale on the brand's grid (grid.unit): every size is a multiple of half a unit. Strict: no size between xs and base",
|
|
198
202
|
"xs": "0.75rem",
|
|
199
|
-
"sm": "0.
|
|
203
|
+
"sm": "0.75rem",
|
|
200
204
|
"base": "1rem",
|
|
201
|
-
"lg": "1.
|
|
202
|
-
"xl": "1.
|
|
203
|
-
"2xl": "1.
|
|
205
|
+
"lg": "1.25rem",
|
|
206
|
+
"xl": "1.5rem",
|
|
207
|
+
"2xl": "1.75rem",
|
|
204
208
|
"3xl": "2rem",
|
|
205
|
-
"4xl": "2.
|
|
206
|
-
"5xl": "
|
|
209
|
+
"4xl": "2.5rem",
|
|
210
|
+
"5xl": "3rem"
|
|
207
211
|
},
|
|
208
212
|
"weight": {
|
|
209
213
|
"$description": "Font weights for hierarchy",
|
|
@@ -368,7 +372,7 @@
|
|
|
368
372
|
"12": "3rem",
|
|
369
373
|
"16": "4rem",
|
|
370
374
|
"20": "5rem",
|
|
371
|
-
"$description": "Generous spacing — breathing room, not dense",
|
|
375
|
+
"$description": "Generous spacing — breathing room, not dense. Multiples of half the brand's grid.unit (spacing.1 = half a unit, spacing.2 = one unit), computed per brand at build time by style-dictionary.config.js; the values written here are what an 8px grid gives. The x-5 steps fall between half-units: avoid them in new work",
|
|
372
376
|
"px": "1px",
|
|
373
377
|
"0-5": "0.125rem",
|
|
374
378
|
"1-5": "0.375rem",
|
|
@@ -423,9 +427,9 @@
|
|
|
423
427
|
"heading": {
|
|
424
428
|
"fontFamily": "'Bricolage Grotesque', 'General Sans', sans-serif",
|
|
425
429
|
"h1": {
|
|
426
|
-
"fontSize": "2.
|
|
430
|
+
"fontSize": "2.5rem",
|
|
427
431
|
"fontWeight": "700",
|
|
428
|
-
"lineHeight": 1.
|
|
432
|
+
"lineHeight": 1.2,
|
|
429
433
|
"letterSpacing": "-0.02em"
|
|
430
434
|
},
|
|
431
435
|
"h2": {
|
|
@@ -435,21 +439,21 @@
|
|
|
435
439
|
"letterSpacing": "-0.01em"
|
|
436
440
|
},
|
|
437
441
|
"h3": {
|
|
438
|
-
"fontSize": "1.
|
|
442
|
+
"fontSize": "1.75rem",
|
|
439
443
|
"fontWeight": "600",
|
|
440
|
-
"lineHeight": 1.
|
|
444
|
+
"lineHeight": 1.4286,
|
|
441
445
|
"letterSpacing": "-0.01em"
|
|
442
446
|
},
|
|
443
447
|
"h4": {
|
|
444
|
-
"fontSize": "1.
|
|
448
|
+
"fontSize": "1.5rem",
|
|
445
449
|
"fontWeight": "600",
|
|
446
|
-
"lineHeight": 1.
|
|
450
|
+
"lineHeight": 1.3333,
|
|
447
451
|
"letterSpacing": "0"
|
|
448
452
|
},
|
|
449
453
|
"h5": {
|
|
450
|
-
"fontSize": "1.
|
|
454
|
+
"fontSize": "1.25rem",
|
|
451
455
|
"fontWeight": "500",
|
|
452
|
-
"lineHeight": 1.
|
|
456
|
+
"lineHeight": 1.6
|
|
453
457
|
},
|
|
454
458
|
"h6": {
|
|
455
459
|
"fontSize": "1rem",
|
|
@@ -461,14 +465,14 @@
|
|
|
461
465
|
"fontFamily": "'Bricolage Grotesque', 'General Sans', -apple-system, BlinkMacSystemFont, sans-serif",
|
|
462
466
|
"xl": {
|
|
463
467
|
"$description": "Lead paragraphs and hero subtitles",
|
|
464
|
-
"fontSize": "1.
|
|
468
|
+
"fontSize": "1.5rem",
|
|
465
469
|
"fontWeight": "400",
|
|
466
|
-
"lineHeight": 1.
|
|
470
|
+
"lineHeight": 1.6667
|
|
467
471
|
},
|
|
468
472
|
"lg": {
|
|
469
|
-
"fontSize": "1.
|
|
473
|
+
"fontSize": "1.25rem",
|
|
470
474
|
"fontWeight": "400",
|
|
471
|
-
"lineHeight": 1.
|
|
475
|
+
"lineHeight": 1.6
|
|
472
476
|
},
|
|
473
477
|
"base": {
|
|
474
478
|
"fontSize": "1rem",
|
|
@@ -476,22 +480,22 @@
|
|
|
476
480
|
"lineHeight": 1.5
|
|
477
481
|
},
|
|
478
482
|
"sm": {
|
|
479
|
-
"fontSize": "0.
|
|
483
|
+
"fontSize": "0.75rem",
|
|
480
484
|
"fontWeight": "400",
|
|
481
|
-
"lineHeight": 1.
|
|
485
|
+
"lineHeight": 1.6667,
|
|
482
486
|
"letterSpacing": "0.01em"
|
|
483
487
|
},
|
|
484
488
|
"xs": {
|
|
485
489
|
"fontSize": "0.75rem",
|
|
486
490
|
"fontWeight": "400",
|
|
487
|
-
"lineHeight": 1.
|
|
491
|
+
"lineHeight": 1.6667,
|
|
488
492
|
"letterSpacing": "0.01em"
|
|
489
493
|
}
|
|
490
494
|
},
|
|
491
495
|
"label": {
|
|
492
496
|
"fontFamily": "'Bricolage Grotesque', 'General Sans', -apple-system, BlinkMacSystemFont, sans-serif",
|
|
493
497
|
"base": {
|
|
494
|
-
"fontSize": "
|
|
498
|
+
"fontSize": "1rem",
|
|
495
499
|
"fontWeight": "500",
|
|
496
500
|
"lineHeight": 1.5,
|
|
497
501
|
"letterSpacing": "0.01em"
|
|
@@ -499,7 +503,7 @@
|
|
|
499
503
|
"sm": {
|
|
500
504
|
"fontSize": "0.75rem",
|
|
501
505
|
"fontWeight": "500",
|
|
502
|
-
"lineHeight": 1.
|
|
506
|
+
"lineHeight": 1.6667,
|
|
503
507
|
"letterSpacing": "0.01em"
|
|
504
508
|
}
|
|
505
509
|
},
|
|
@@ -517,8 +521,8 @@
|
|
|
517
521
|
"letterSpacing": "0.01em",
|
|
518
522
|
"fontSize": {
|
|
519
523
|
"sm": "1rem",
|
|
520
|
-
"md": "1.
|
|
521
|
-
"lg": "1.
|
|
524
|
+
"md": "1.25rem",
|
|
525
|
+
"lg": "1.5rem"
|
|
522
526
|
}
|
|
523
527
|
},
|
|
524
528
|
"emphasis": {
|
|
@@ -527,7 +531,7 @@
|
|
|
527
531
|
},
|
|
528
532
|
"code": {
|
|
529
533
|
"fontFamily": "'JetBrains Mono', 'Fira Code', ui-monospace, monospace",
|
|
530
|
-
"fontSize": "
|
|
534
|
+
"fontSize": "1rem",
|
|
531
535
|
"lineHeight": 1.5
|
|
532
536
|
}
|
|
533
537
|
},
|
|
@@ -632,14 +636,14 @@
|
|
|
632
636
|
"gap": "0.5rem"
|
|
633
637
|
},
|
|
634
638
|
"md": {
|
|
635
|
-
"fontSize": "1.
|
|
639
|
+
"fontSize": "1.25rem",
|
|
636
640
|
"paddingX": "1.5rem",
|
|
637
641
|
"paddingY": "0.75rem",
|
|
638
642
|
"minHeight": "48px",
|
|
639
643
|
"gap": "0.5rem"
|
|
640
644
|
},
|
|
641
645
|
"lg": {
|
|
642
|
-
"fontSize": "1.
|
|
646
|
+
"fontSize": "1.5rem",
|
|
643
647
|
"paddingX": "2rem",
|
|
644
648
|
"paddingY": "1rem",
|
|
645
649
|
"minHeight": "56px",
|
|
@@ -685,7 +689,7 @@
|
|
|
685
689
|
"$description": "Input — chunky border, inset shadow, tactile feel",
|
|
686
690
|
"base": {
|
|
687
691
|
"fontFamily": "'Bricolage Grotesque', 'General Sans', -apple-system, BlinkMacSystemFont, sans-serif",
|
|
688
|
-
"fontSize": "1.
|
|
692
|
+
"fontSize": "1.25rem",
|
|
689
693
|
"lineHeight": 1.5,
|
|
690
694
|
"borderRadius": "10px",
|
|
691
695
|
"borderWidth": "2.5px",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orange-halo/tokens",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "Design tokens for Orange Halo Design System (W3C Design Token Format)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/tokens.js",
|
|
@@ -38,8 +38,6 @@
|
|
|
38
38
|
"scripts": {
|
|
39
39
|
"build": "node style-dictionary.config.js",
|
|
40
40
|
"dev": "node --watch style-dictionary.config.js",
|
|
41
|
-
"clean": "rm -rf dist"
|
|
42
|
-
"lint": "eslint tokens/",
|
|
43
|
-
"lint:fix": "eslint tokens/ --fix"
|
|
41
|
+
"clean": "rm -rf dist"
|
|
44
42
|
}
|
|
45
43
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$description": "About the brand, for tools that show it (Storybook's Brand control): its name, and the stylesheets that load its fonts. Hood is dark by default: sites set data-theme=\"dark\".",
|
|
3
3
|
"name": "Hood",
|
|
4
|
-
"fonts": [
|
|
4
|
+
"fonts": [
|
|
5
|
+
"https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap"
|
|
6
|
+
]
|
|
5
7
|
}
|
|
@@ -403,7 +403,7 @@
|
|
|
403
403
|
"sm": {
|
|
404
404
|
"fontSize": {
|
|
405
405
|
"$type": "dimension",
|
|
406
|
-
"$value": "{font.size.
|
|
406
|
+
"$value": "{font.size.xs}"
|
|
407
407
|
},
|
|
408
408
|
"fontWeight": {
|
|
409
409
|
"$type": "fontWeight",
|
|
@@ -445,7 +445,7 @@
|
|
|
445
445
|
"base": {
|
|
446
446
|
"fontSize": {
|
|
447
447
|
"$type": "dimension",
|
|
448
|
-
"$value": "{font.size.
|
|
448
|
+
"$value": "{font.size.base}"
|
|
449
449
|
},
|
|
450
450
|
"fontWeight": {
|
|
451
451
|
"$type": "fontWeight",
|
|
@@ -486,7 +486,7 @@
|
|
|
486
486
|
},
|
|
487
487
|
"fontSize": {
|
|
488
488
|
"$type": "dimension",
|
|
489
|
-
"$value": "{font.size.
|
|
489
|
+
"$value": "{font.size.xs}"
|
|
490
490
|
},
|
|
491
491
|
"fontWeight": {
|
|
492
492
|
"$type": "fontWeight",
|
|
@@ -538,7 +538,7 @@
|
|
|
538
538
|
},
|
|
539
539
|
"fontSize": {
|
|
540
540
|
"$type": "dimension",
|
|
541
|
-
"$value": "{font.size.
|
|
541
|
+
"$value": "{font.size.base}"
|
|
542
542
|
},
|
|
543
543
|
"lineHeight": {
|
|
544
544
|
"$type": "number",
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$description": "Hood brand palette (tier 1): Fraser Hood's personal site. Greyscale and type-led, after fraser-hood.co.uk/gig-history: flat, no shadows, small corners, one quiet blue for links that need a colour and for info.",
|
|
3
|
+
"grid": {
|
|
4
|
+
"$description": "The brand's layout grid. Spacing is multiples of half a unit; type sizes and line heights sit on it (see style-dictionary.config.js)",
|
|
5
|
+
"unit": {
|
|
6
|
+
"$type": "dimension",
|
|
7
|
+
"$value": "8px",
|
|
8
|
+
"$description": "8px grid with 4px half-steps"
|
|
9
|
+
}
|
|
10
|
+
},
|
|
3
11
|
"color": {
|
|
4
12
|
"grey": {
|
|
5
13
|
"$description": "Neutral greys. 850, 800, 750 and 100 are the gig-history site's page, surface, line and text colours; 500 is its muted grey, a touch lighter",
|
|
@@ -8,7 +16,11 @@
|
|
|
8
16
|
"200": { "$type": "color", "$value": "#DEDEDE" },
|
|
9
17
|
"300": { "$type": "color", "$value": "#C4C4C4" },
|
|
10
18
|
"400": { "$type": "color", "$value": "#A8A8A8" },
|
|
11
|
-
"500": {
|
|
19
|
+
"500": {
|
|
20
|
+
"$type": "color",
|
|
21
|
+
"$value": "#929292",
|
|
22
|
+
"$description": "The site's muted grey (#8F8F8F) lifted just enough for 4.5:1 on surface.raised"
|
|
23
|
+
},
|
|
12
24
|
"600": { "$type": "color", "$value": "#6B6B6B" },
|
|
13
25
|
"650": { "$type": "color", "$value": "#575757" },
|
|
14
26
|
"700": { "$type": "color", "$value": "#454545" },
|
|
@@ -56,21 +68,58 @@
|
|
|
56
68
|
"font": {
|
|
57
69
|
"family": {
|
|
58
70
|
"$description": "Plus Jakarta Sans for everything, as on the site",
|
|
59
|
-
"sans": {
|
|
60
|
-
|
|
61
|
-
|
|
71
|
+
"sans": {
|
|
72
|
+
"$type": "fontFamily",
|
|
73
|
+
"$value": "'Plus Jakarta Sans', Arial, Helvetica, sans-serif"
|
|
74
|
+
},
|
|
75
|
+
"display": {
|
|
76
|
+
"$type": "fontFamily",
|
|
77
|
+
"$value": "'Plus Jakarta Sans', Arial, Helvetica, sans-serif"
|
|
78
|
+
},
|
|
79
|
+
"mono": {
|
|
80
|
+
"$type": "fontFamily",
|
|
81
|
+
"$value": "ui-monospace, SFMono-Regular, Menlo, Consolas, monospace"
|
|
82
|
+
}
|
|
62
83
|
},
|
|
63
84
|
"size": {
|
|
64
|
-
"$description": "
|
|
65
|
-
"xs": {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
"
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
85
|
+
"$description": "Type scale on the brand's grid (grid.unit): every size is a multiple of half a unit. Strict: no size between xs and base",
|
|
86
|
+
"xs": {
|
|
87
|
+
"$type": "dimension",
|
|
88
|
+
"$value": "0.75rem",
|
|
89
|
+
"$description": "12px"
|
|
90
|
+
},
|
|
91
|
+
"sm": {
|
|
92
|
+
"$type": "dimension",
|
|
93
|
+
"$value": "{font.size.xs}",
|
|
94
|
+
"$description": "Kept so existing references don't break. On the grid, small text is xs; use xs or a tier 2 role"
|
|
95
|
+
},
|
|
96
|
+
"base": {
|
|
97
|
+
"$type": "dimension",
|
|
98
|
+
"$value": "1rem",
|
|
99
|
+
"$description": "16px"
|
|
100
|
+
},
|
|
101
|
+
"lg": {
|
|
102
|
+
"$type": "dimension",
|
|
103
|
+
"$value": "1.25rem",
|
|
104
|
+
"$description": "20px"
|
|
105
|
+
},
|
|
106
|
+
"xl": {
|
|
107
|
+
"$type": "dimension",
|
|
108
|
+
"$value": "1.5rem",
|
|
109
|
+
"$description": "24px"
|
|
110
|
+
},
|
|
111
|
+
"2xl": { "$type": "dimension", "$value": "2rem", "$description": "32px" },
|
|
112
|
+
"3xl": {
|
|
113
|
+
"$type": "dimension",
|
|
114
|
+
"$value": "2.5rem",
|
|
115
|
+
"$description": "40px"
|
|
116
|
+
},
|
|
117
|
+
"4xl": {
|
|
118
|
+
"$type": "dimension",
|
|
119
|
+
"$value": "3.5rem",
|
|
120
|
+
"$description": "56px"
|
|
121
|
+
},
|
|
122
|
+
"5xl": { "$type": "dimension", "$value": "4rem", "$description": "64px" }
|
|
74
123
|
},
|
|
75
124
|
"weight": {
|
|
76
125
|
"normal": { "$type": "fontWeight", "$value": "400" },
|
|
@@ -91,7 +140,11 @@
|
|
|
91
140
|
"tight": { "$type": "dimension", "$value": "-0.01em" },
|
|
92
141
|
"normal": { "$type": "dimension", "$value": "0" },
|
|
93
142
|
"wide": { "$type": "dimension", "$value": "0.02em" },
|
|
94
|
-
"widest": {
|
|
143
|
+
"widest": {
|
|
144
|
+
"$type": "dimension",
|
|
145
|
+
"$value": "0.08em",
|
|
146
|
+
"$description": "Small uppercase labels, as on the site"
|
|
147
|
+
}
|
|
95
148
|
}
|
|
96
149
|
},
|
|
97
150
|
"radius": {
|
|
@@ -111,7 +164,11 @@
|
|
|
111
164
|
"shadow": {
|
|
112
165
|
"$description": "Flat: no shadows, except under dialogs",
|
|
113
166
|
"none": { "$type": "shadow", "$value": "none" },
|
|
114
|
-
"overlay": {
|
|
167
|
+
"overlay": {
|
|
168
|
+
"$type": "shadow",
|
|
169
|
+
"$value": "0 12px 32px rgba(0, 0, 0, 0.35)",
|
|
170
|
+
"$description": "Modals and drawers only, to lift them off the backdrop"
|
|
171
|
+
}
|
|
115
172
|
},
|
|
116
173
|
"motion": {
|
|
117
174
|
"duration": {
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$description": "About the brand, for tools that show it (Storybook's Brand control): its name, and the stylesheets that load its fonts.",
|
|
3
3
|
"name": "Orange Halo",
|
|
4
|
-
"fonts": [
|
|
4
|
+
"fonts": [
|
|
5
|
+
"https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap"
|
|
6
|
+
]
|
|
5
7
|
}
|
|
@@ -35,12 +35,20 @@
|
|
|
35
35
|
"raised": { "$type": "color", "$value": "{color.warm.walnut}" },
|
|
36
36
|
"sunlit": { "$type": "color", "$value": "{color.warm.chestnut}" },
|
|
37
37
|
"inset": { "$type": "color", "$value": "{color.warm.espresso}" },
|
|
38
|
-
"highlight": {
|
|
38
|
+
"highlight": {
|
|
39
|
+
"$type": "color",
|
|
40
|
+
"$value": "{color.warm.hickory}",
|
|
41
|
+
"$description": "Lighter than raised; text.primary stays readable on it"
|
|
42
|
+
},
|
|
39
43
|
"overlay": { "$type": "color", "$value": "rgba(15, 12, 10, 0.7)" },
|
|
40
44
|
"disabled": { "$type": "color", "$value": "{color.warm.mocha}" },
|
|
41
45
|
"hover": { "$type": "color", "$value": "{color.warm.hickory}" },
|
|
42
46
|
"activePressed": { "$type": "color", "$value": "{color.warm.mocha}" },
|
|
43
|
-
"featuredStart": {
|
|
47
|
+
"featuredStart": {
|
|
48
|
+
"$type": "color",
|
|
49
|
+
"$value": "{color.warm.dawn}",
|
|
50
|
+
"$description": "Same as light for now: the dark theme hasn't been designed"
|
|
51
|
+
},
|
|
44
52
|
"featuredMid": { "$type": "color", "$value": "{color.warm.shell}" },
|
|
45
53
|
"featuredEnd": { "$type": "color", "$value": "{color.warm.biscuit}" },
|
|
46
54
|
"sheen": { "$type": "color", "$value": "rgba(255, 255, 255, 0.5)" },
|
|
@@ -48,13 +56,21 @@
|
|
|
48
56
|
},
|
|
49
57
|
"border": {
|
|
50
58
|
"default": { "$type": "color", "$value": "{color.warm.taupe}" },
|
|
51
|
-
"subtle": {
|
|
59
|
+
"subtle": {
|
|
60
|
+
"$type": "color",
|
|
61
|
+
"$value": "{color.warm.driftwood}",
|
|
62
|
+
"$description": "Decorative dividers only — below 3:1"
|
|
63
|
+
},
|
|
52
64
|
"emphasis": { "$type": "color", "$value": "{color.warm.stone}" },
|
|
53
65
|
"strong": { "$type": "color", "$value": "{color.warm.stone}" },
|
|
54
66
|
"hover": { "$type": "color", "$value": "{color.warm.dune}" },
|
|
55
67
|
"disabled": { "$type": "color", "$value": "{color.warm.hickory}" },
|
|
56
68
|
"brand": { "$type": "color", "$value": "rgba(232, 168, 56, 0.3)" },
|
|
57
|
-
"brandHover": {
|
|
69
|
+
"brandHover": {
|
|
70
|
+
"$type": "color",
|
|
71
|
+
"$value": "rgba(197, 67, 0, 0.35)",
|
|
72
|
+
"$description": "Same as light for now: the dark theme hasn't been designed"
|
|
73
|
+
},
|
|
58
74
|
"divider": { "$type": "color", "$value": "rgba(226, 213, 200, 0.6)" }
|
|
59
75
|
},
|
|
60
76
|
"text": {
|
|
@@ -80,20 +96,43 @@
|
|
|
80
96
|
"secondary": { "$type": "color", "$value": "{color.warm.espresso}" },
|
|
81
97
|
"accent": { "$type": "color", "$value": "{color.blue.800}" },
|
|
82
98
|
"error": { "$type": "color", "$value": "{color.red.900}" },
|
|
83
|
-
"neutral": {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
99
|
+
"neutral": {
|
|
100
|
+
"$type": "color",
|
|
101
|
+
"$value": "{shadow.chunky.driftwood}",
|
|
102
|
+
"$description": "As in light, which is what dark showed before these were tokens. Faint on cocoa: review with the dark design"
|
|
103
|
+
},
|
|
104
|
+
"neutralHover": {
|
|
105
|
+
"$type": "color",
|
|
106
|
+
"$value": "{shadow.chunky.driftwoodHover}",
|
|
107
|
+
"$description": "As in light; review with the dark design"
|
|
108
|
+
},
|
|
109
|
+
"overlay": {
|
|
110
|
+
"$type": "color",
|
|
111
|
+
"$value": "{shadow.chunky.driftwoodDeep}",
|
|
112
|
+
"$description": "As in light; review with the dark design"
|
|
113
|
+
},
|
|
114
|
+
"field": {
|
|
115
|
+
"$type": "color",
|
|
116
|
+
"$value": "{shadow.chunky.walnut}",
|
|
117
|
+
"$description": "As in light; review with the dark design"
|
|
118
|
+
}
|
|
87
119
|
},
|
|
88
120
|
"elevation": {
|
|
89
121
|
"$description": "Black-based shadows — warm-brown shadows vanish on cocoa",
|
|
90
122
|
"soft": { "$type": "shadow", "$value": "0 2px 8px rgba(0, 0, 0, 0.25)" },
|
|
91
123
|
"medium": { "$type": "shadow", "$value": "0 4px 16px rgba(0, 0, 0, 0.3)" },
|
|
92
124
|
"strong": { "$type": "shadow", "$value": "0 8px 24px rgba(0, 0, 0, 0.4)" },
|
|
93
|
-
"inset": {
|
|
125
|
+
"inset": {
|
|
126
|
+
"$type": "shadow",
|
|
127
|
+
"$value": "inset 0 1px 3px rgba(0, 0, 0, 0.3)"
|
|
128
|
+
}
|
|
94
129
|
},
|
|
95
130
|
"focus": {
|
|
96
|
-
"ringColor": {
|
|
131
|
+
"ringColor": {
|
|
132
|
+
"$type": "color",
|
|
133
|
+
"$value": "{color.honey.400}",
|
|
134
|
+
"$description": "Opaque, as in light"
|
|
135
|
+
},
|
|
97
136
|
"glowColor": { "$type": "color", "$value": "rgba(232, 168, 56, 0.2)" }
|
|
98
137
|
}
|
|
99
138
|
}
|
|
@@ -456,7 +456,7 @@
|
|
|
456
456
|
"sm": {
|
|
457
457
|
"fontSize": {
|
|
458
458
|
"$type": "dimension",
|
|
459
|
-
"$value": "{font.size.
|
|
459
|
+
"$value": "{font.size.xs}"
|
|
460
460
|
},
|
|
461
461
|
"fontWeight": {
|
|
462
462
|
"$type": "fontWeight",
|
|
@@ -498,7 +498,7 @@
|
|
|
498
498
|
"base": {
|
|
499
499
|
"fontSize": {
|
|
500
500
|
"$type": "dimension",
|
|
501
|
-
"$value": "{font.size.
|
|
501
|
+
"$value": "{font.size.base}"
|
|
502
502
|
},
|
|
503
503
|
"fontWeight": {
|
|
504
504
|
"$type": "fontWeight",
|
|
@@ -599,7 +599,7 @@
|
|
|
599
599
|
},
|
|
600
600
|
"fontSize": {
|
|
601
601
|
"$type": "dimension",
|
|
602
|
-
"$value": "{font.size.
|
|
602
|
+
"$value": "{font.size.base}"
|
|
603
603
|
},
|
|
604
604
|
"lineHeight": {
|
|
605
605
|
"$type": "number",
|
|
@@ -741,12 +741,26 @@
|
|
|
741
741
|
"$description": "Card surfaces, by state. Featured is the sunlit card",
|
|
742
742
|
"flat": { "$type": "shadow", "$value": "{shadow.layered.flat}" },
|
|
743
743
|
"raised": { "$type": "shadow", "$value": "{shadow.layered.raised}" },
|
|
744
|
-
"lifted": {
|
|
744
|
+
"lifted": {
|
|
745
|
+
"$type": "shadow",
|
|
746
|
+
"$value": "{shadow.layered.lifted}",
|
|
747
|
+
"$description": "Hovered"
|
|
748
|
+
},
|
|
745
749
|
"pressed": { "$type": "shadow", "$value": "{shadow.layered.pressed}" },
|
|
746
|
-
"focused": {
|
|
750
|
+
"focused": {
|
|
751
|
+
"$type": "shadow",
|
|
752
|
+
"$value": "{shadow.layered.focused}",
|
|
753
|
+
"$description": "Sits under the focus glow"
|
|
754
|
+
},
|
|
747
755
|
"featured": { "$type": "shadow", "$value": "{shadow.layered.sunlit}" },
|
|
748
|
-
"featuredLifted": {
|
|
749
|
-
|
|
756
|
+
"featuredLifted": {
|
|
757
|
+
"$type": "shadow",
|
|
758
|
+
"$value": "{shadow.layered.sunlitLifted}"
|
|
759
|
+
},
|
|
760
|
+
"featuredFocused": {
|
|
761
|
+
"$type": "shadow",
|
|
762
|
+
"$value": "{shadow.layered.sunlitFocused}"
|
|
763
|
+
}
|
|
750
764
|
},
|
|
751
765
|
"offset": {
|
|
752
766
|
"$description": "How far solid offset shadows sit from the element, from pressed (xs) to dialogs (2xl). The colour comes from shadow.*. A flat brand sets every step to 0",
|
|
@@ -767,14 +781,30 @@
|
|
|
767
781
|
},
|
|
768
782
|
"stroke": {
|
|
769
783
|
"$description": "Border widths by role",
|
|
770
|
-
"control": {
|
|
771
|
-
|
|
772
|
-
|
|
784
|
+
"control": {
|
|
785
|
+
"$type": "dimension",
|
|
786
|
+
"$value": "{border.width.chunky}",
|
|
787
|
+
"$description": "Controls and framed containers: buttons, fields, checkboxes, alerts, dialogs"
|
|
788
|
+
},
|
|
789
|
+
"surface": {
|
|
790
|
+
"$type": "dimension",
|
|
791
|
+
"$value": "{border.width.1}",
|
|
792
|
+
"$description": "Card edges"
|
|
793
|
+
},
|
|
794
|
+
"divider": {
|
|
795
|
+
"$type": "dimension",
|
|
796
|
+
"$value": "{border.width.1}",
|
|
797
|
+
"$description": "Lines between sections"
|
|
798
|
+
}
|
|
773
799
|
},
|
|
774
800
|
"decoration": {
|
|
775
801
|
"$description": "Link underlines. Orange Halo's are dashed: a dash, then a gap, repeating every period. A solid underline sets dash and period to the same value",
|
|
776
802
|
"underlineThickness": { "$type": "dimension", "$value": "2px" },
|
|
777
|
-
"underlineFocusThickness": {
|
|
803
|
+
"underlineFocusThickness": {
|
|
804
|
+
"$type": "dimension",
|
|
805
|
+
"$value": "3px",
|
|
806
|
+
"$description": "The solid underline that shows keyboard focus on inline links"
|
|
807
|
+
},
|
|
778
808
|
"underlineDash": { "$type": "dimension", "$value": "4px" },
|
|
779
809
|
"underlinePeriod": { "$type": "dimension", "$value": "8px" }
|
|
780
810
|
},
|