@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/brands/hood.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
|
"grey": {
|
|
5
9
|
"50": "#f7f7f7",
|
|
@@ -131,16 +135,16 @@
|
|
|
131
135
|
"mono": "ui-monospace, SFMono-Regular, Menlo, Consolas, monospace"
|
|
132
136
|
},
|
|
133
137
|
"size": {
|
|
134
|
-
"$description": "
|
|
135
|
-
"xs": "0.
|
|
136
|
-
"sm": "0.
|
|
137
|
-
"base": "
|
|
138
|
-
"lg": "1.
|
|
139
|
-
"xl": "1.
|
|
140
|
-
"2xl": "
|
|
141
|
-
"3xl": "2.
|
|
138
|
+
"$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",
|
|
139
|
+
"xs": "0.75rem",
|
|
140
|
+
"sm": "0.75rem",
|
|
141
|
+
"base": "1rem",
|
|
142
|
+
"lg": "1.25rem",
|
|
143
|
+
"xl": "1.5rem",
|
|
144
|
+
"2xl": "2rem",
|
|
145
|
+
"3xl": "2.5rem",
|
|
142
146
|
"4xl": "3.5rem",
|
|
143
|
-
"5xl": "
|
|
147
|
+
"5xl": "4rem"
|
|
144
148
|
},
|
|
145
149
|
"weight": {
|
|
146
150
|
"normal": "400",
|
|
@@ -251,7 +255,7 @@
|
|
|
251
255
|
"12": "3rem",
|
|
252
256
|
"16": "4rem",
|
|
253
257
|
"20": "5rem",
|
|
254
|
-
"$description": "Generous spacing — breathing room, not dense",
|
|
258
|
+
"$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",
|
|
255
259
|
"px": "1px",
|
|
256
260
|
"0-5": "0.125rem",
|
|
257
261
|
"1-5": "0.375rem",
|
|
@@ -305,34 +309,34 @@
|
|
|
305
309
|
"h1": {
|
|
306
310
|
"fontSize": "3.5rem",
|
|
307
311
|
"fontWeight": "800",
|
|
308
|
-
"lineHeight": 1.
|
|
312
|
+
"lineHeight": 1.1429,
|
|
309
313
|
"letterSpacing": "-0.02em"
|
|
310
314
|
},
|
|
311
315
|
"h2": {
|
|
312
|
-
"fontSize": "2.
|
|
316
|
+
"fontSize": "2.5rem",
|
|
313
317
|
"fontWeight": "800",
|
|
314
|
-
"lineHeight": 1.
|
|
318
|
+
"lineHeight": 1.2,
|
|
315
319
|
"letterSpacing": "-0.01em"
|
|
316
320
|
},
|
|
317
321
|
"h3": {
|
|
318
|
-
"fontSize": "
|
|
322
|
+
"fontSize": "2rem",
|
|
319
323
|
"fontWeight": "700",
|
|
320
|
-
"lineHeight": 1.
|
|
324
|
+
"lineHeight": 1.25,
|
|
321
325
|
"letterSpacing": "-0.01em"
|
|
322
326
|
},
|
|
323
327
|
"h4": {
|
|
324
|
-
"fontSize": "1.
|
|
328
|
+
"fontSize": "1.5rem",
|
|
325
329
|
"fontWeight": "700",
|
|
326
|
-
"lineHeight": 1.
|
|
330
|
+
"lineHeight": 1.3333,
|
|
327
331
|
"letterSpacing": "0"
|
|
328
332
|
},
|
|
329
333
|
"h5": {
|
|
330
|
-
"fontSize": "1.
|
|
334
|
+
"fontSize": "1.25rem",
|
|
331
335
|
"fontWeight": "700",
|
|
332
|
-
"lineHeight": 1.
|
|
336
|
+
"lineHeight": 1.6
|
|
333
337
|
},
|
|
334
338
|
"h6": {
|
|
335
|
-
"fontSize": "
|
|
339
|
+
"fontSize": "1rem",
|
|
336
340
|
"fontWeight": "700",
|
|
337
341
|
"lineHeight": 1.5
|
|
338
342
|
}
|
|
@@ -340,51 +344,51 @@
|
|
|
340
344
|
"body": {
|
|
341
345
|
"fontFamily": "'Plus Jakarta Sans', Arial, Helvetica, sans-serif",
|
|
342
346
|
"xl": {
|
|
343
|
-
"fontSize": "1.
|
|
347
|
+
"fontSize": "1.5rem",
|
|
344
348
|
"fontWeight": "400",
|
|
345
|
-
"lineHeight": 1.
|
|
349
|
+
"lineHeight": 1.6667
|
|
346
350
|
},
|
|
347
351
|
"lg": {
|
|
348
|
-
"fontSize": "1.
|
|
352
|
+
"fontSize": "1.25rem",
|
|
349
353
|
"fontWeight": "400",
|
|
350
354
|
"lineHeight": 1.6
|
|
351
355
|
},
|
|
352
356
|
"base": {
|
|
353
|
-
"fontSize": "
|
|
357
|
+
"fontSize": "1rem",
|
|
354
358
|
"fontWeight": "400",
|
|
355
359
|
"lineHeight": 1.5
|
|
356
360
|
},
|
|
357
361
|
"sm": {
|
|
358
|
-
"fontSize": "0.
|
|
362
|
+
"fontSize": "0.75rem",
|
|
359
363
|
"fontWeight": "400",
|
|
360
|
-
"lineHeight": 1.
|
|
364
|
+
"lineHeight": 1.6667,
|
|
361
365
|
"letterSpacing": "0"
|
|
362
366
|
},
|
|
363
367
|
"xs": {
|
|
364
|
-
"fontSize": "0.
|
|
368
|
+
"fontSize": "0.75rem",
|
|
365
369
|
"fontWeight": "400",
|
|
366
|
-
"lineHeight": 1.
|
|
370
|
+
"lineHeight": 1.6667,
|
|
367
371
|
"letterSpacing": "0.02em"
|
|
368
372
|
}
|
|
369
373
|
},
|
|
370
374
|
"label": {
|
|
371
375
|
"fontFamily": "'Plus Jakarta Sans', Arial, Helvetica, sans-serif",
|
|
372
376
|
"base": {
|
|
373
|
-
"fontSize": "
|
|
377
|
+
"fontSize": "1rem",
|
|
374
378
|
"fontWeight": "600",
|
|
375
379
|
"lineHeight": 1.5,
|
|
376
380
|
"letterSpacing": "0.02em"
|
|
377
381
|
},
|
|
378
382
|
"sm": {
|
|
379
|
-
"fontSize": "0.
|
|
383
|
+
"fontSize": "0.75rem",
|
|
380
384
|
"fontWeight": "600",
|
|
381
|
-
"lineHeight": 1.
|
|
385
|
+
"lineHeight": 1.6667,
|
|
382
386
|
"letterSpacing": "0.08em"
|
|
383
387
|
}
|
|
384
388
|
},
|
|
385
389
|
"eyebrow": {
|
|
386
390
|
"fontFamily": "'Plus Jakarta Sans', Arial, Helvetica, sans-serif",
|
|
387
|
-
"fontSize": "0.
|
|
391
|
+
"fontSize": "0.75rem",
|
|
388
392
|
"fontWeight": "600",
|
|
389
393
|
"letterSpacing": "0.08em"
|
|
390
394
|
},
|
|
@@ -393,9 +397,9 @@
|
|
|
393
397
|
"fontWeight": "600",
|
|
394
398
|
"letterSpacing": "0.02em",
|
|
395
399
|
"fontSize": {
|
|
396
|
-
"sm": "
|
|
397
|
-
"md": "
|
|
398
|
-
"lg": "1.
|
|
400
|
+
"sm": "1rem",
|
|
401
|
+
"md": "1rem",
|
|
402
|
+
"lg": "1.25rem"
|
|
399
403
|
}
|
|
400
404
|
},
|
|
401
405
|
"emphasis": {
|
|
@@ -403,7 +407,7 @@
|
|
|
403
407
|
},
|
|
404
408
|
"code": {
|
|
405
409
|
"fontFamily": "ui-monospace, SFMono-Regular, Menlo, Consolas, monospace",
|
|
406
|
-
"fontSize": "
|
|
410
|
+
"fontSize": "1rem",
|
|
407
411
|
"lineHeight": 1.5
|
|
408
412
|
}
|
|
409
413
|
},
|
|
@@ -491,21 +495,21 @@
|
|
|
491
495
|
"size": {
|
|
492
496
|
"$description": "Matches oh-button.ts, which reads these. Minimum 16px text",
|
|
493
497
|
"sm": {
|
|
494
|
-
"fontSize": "
|
|
498
|
+
"fontSize": "1rem",
|
|
495
499
|
"paddingX": "1rem",
|
|
496
500
|
"paddingY": "0.5rem",
|
|
497
501
|
"minHeight": "40px",
|
|
498
502
|
"gap": "0.5rem"
|
|
499
503
|
},
|
|
500
504
|
"md": {
|
|
501
|
-
"fontSize": "
|
|
505
|
+
"fontSize": "1rem",
|
|
502
506
|
"paddingX": "1.5rem",
|
|
503
507
|
"paddingY": "0.75rem",
|
|
504
508
|
"minHeight": "48px",
|
|
505
509
|
"gap": "0.5rem"
|
|
506
510
|
},
|
|
507
511
|
"lg": {
|
|
508
|
-
"fontSize": "1.
|
|
512
|
+
"fontSize": "1.25rem",
|
|
509
513
|
"paddingX": "2rem",
|
|
510
514
|
"paddingY": "1rem",
|
|
511
515
|
"minHeight": "56px",
|
|
@@ -551,7 +555,7 @@
|
|
|
551
555
|
"$description": "Input — chunky border, inset shadow, tactile feel",
|
|
552
556
|
"base": {
|
|
553
557
|
"fontFamily": "'Plus Jakarta Sans', Arial, Helvetica, sans-serif",
|
|
554
|
-
"fontSize": "
|
|
558
|
+
"fontSize": "1rem",
|
|
555
559
|
"lineHeight": 1.5,
|
|
556
560
|
"borderRadius": "4px",
|
|
557
561
|
"borderWidth": "1px",
|
|
@@ -662,7 +666,7 @@
|
|
|
662
666
|
"$description": "Badge — small status indicators",
|
|
663
667
|
"base": {
|
|
664
668
|
"fontFamily": "'Plus Jakarta Sans', Arial, Helvetica, sans-serif",
|
|
665
|
-
"fontSize": "
|
|
669
|
+
"fontSize": "1rem",
|
|
666
670
|
"fontWeight": "600",
|
|
667
671
|
"letterSpacing": "0.02em",
|
|
668
672
|
"borderRadius": "2px",
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$description": "Dark Theme — warm cocoa base, cozy evening Orange Halo. Overrides tier 2 only; every colour references the palette. Applies when data-theme=\"dark\" is set.",
|
|
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",
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
:root {
|
|
6
|
+
--oh-grid-unit: 8px; /** 8px grid with 4px half-steps */
|
|
6
7
|
--oh-color-orange-50: #fff3e0;
|
|
7
8
|
--oh-color-orange-100: #ffe0b2;
|
|
8
9
|
--oh-color-orange-200: #ffcc80;
|
|
@@ -98,14 +99,13 @@
|
|
|
98
99
|
--oh-font-family-display: 'Bricolage Grotesque', 'General Sans', sans-serif;
|
|
99
100
|
--oh-font-family-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
|
|
100
101
|
--oh-font-size-xs: 0.75rem; /** 12px */
|
|
101
|
-
--oh-font-size-sm: 0.875rem; /** 14px */
|
|
102
102
|
--oh-font-size-base: 1rem; /** 16px */
|
|
103
|
-
--oh-font-size-lg: 1.
|
|
104
|
-
--oh-font-size-xl: 1.
|
|
105
|
-
--oh-font-size-2xl: 1.
|
|
103
|
+
--oh-font-size-lg: 1.25rem; /** 20px */
|
|
104
|
+
--oh-font-size-xl: 1.5rem; /** 24px */
|
|
105
|
+
--oh-font-size-2xl: 1.75rem; /** 28px */
|
|
106
106
|
--oh-font-size-3xl: 2rem; /** 32px */
|
|
107
|
-
--oh-font-size-4xl: 2.
|
|
108
|
-
--oh-font-size-5xl:
|
|
107
|
+
--oh-font-size-4xl: 2.5rem; /** 40px */
|
|
108
|
+
--oh-font-size-5xl: 3rem; /** 48px */
|
|
109
109
|
--oh-font-weight-normal: 400;
|
|
110
110
|
--oh-font-weight-medium: 500;
|
|
111
111
|
--oh-font-weight-semibold: 600;
|
|
@@ -200,6 +200,20 @@
|
|
|
200
200
|
--oh-z-index-modal: 1200;
|
|
201
201
|
--oh-z-index-popover: 1300;
|
|
202
202
|
--oh-z-index-tooltip: 1400;
|
|
203
|
+
--oh-typography-heading-h1-line-height: 1.2; /** 48px at 40px: 40px × 1.25, rounded to the 8px grid */
|
|
204
|
+
--oh-typography-heading-h2-line-height: 1.25; /** 40px at 32px: 32px × 1.25, rounded to the 8px grid */
|
|
205
|
+
--oh-typography-heading-h3-line-height: 1.4286; /** 40px at 28px: 28px × 1.35, rounded to the 8px grid */
|
|
206
|
+
--oh-typography-heading-h4-line-height: 1.3333; /** 32px at 24px: 24px × 1.35, rounded to the 8px grid */
|
|
207
|
+
--oh-typography-heading-h5-line-height: 1.6; /** 32px at 20px: 20px × 1.5, rounded to the 8px grid */
|
|
208
|
+
--oh-typography-heading-h6-line-height: 1.5; /** 24px at 16px: 16px × 1.5, rounded to the 8px grid */
|
|
209
|
+
--oh-typography-body-xl-line-height: 1.6667; /** 40px at 24px: 24px × 1.5, rounded to the 8px grid */
|
|
210
|
+
--oh-typography-body-lg-line-height: 1.6; /** 32px at 20px: 20px × 1.65, rounded to the 8px grid */
|
|
211
|
+
--oh-typography-body-base-line-height: 1.5; /** 24px at 16px: 16px × 1.5, rounded to the 8px grid */
|
|
212
|
+
--oh-typography-body-sm-line-height: 1.6667; /** 20px at 12px: 12px × 1.5, rounded to the 4px grid */
|
|
213
|
+
--oh-typography-body-xs-line-height: 1.6667; /** 20px at 12px: 12px × 1.5, rounded to the 4px grid */
|
|
214
|
+
--oh-typography-label-base-line-height: 1.5; /** 24px at 16px: 16px × 1.5, rounded to the 8px grid */
|
|
215
|
+
--oh-typography-label-sm-line-height: 1.6667; /** 20px at 12px: 12px × 1.5, rounded to the 4px grid */
|
|
216
|
+
--oh-typography-code-line-height: 1.5; /** 24px at 16px: 16px × 1.5, rounded to the 8px grid */
|
|
203
217
|
--oh-elevation-offset-xs: 1px;
|
|
204
218
|
--oh-elevation-offset-sm: 2px;
|
|
205
219
|
--oh-elevation-offset-md: 3px;
|
|
@@ -280,6 +294,7 @@
|
|
|
280
294
|
--oh-color-text-on-error: var(--oh-color-white); /** Text on filled color.feedback.error */
|
|
281
295
|
--oh-color-text-on-warning: var(--oh-color-white); /** Text on filled color.feedback.warning */
|
|
282
296
|
--oh-color-text-on-info: var(--oh-color-white); /** Text on filled color.feedback.info */
|
|
297
|
+
--oh-font-size-sm: var(--oh-font-size-xs); /** Kept so existing references don't break. On the grid, small text is xs; use xs or a tier 2 role */
|
|
283
298
|
--oh-shadow-primary: var(--oh-shadow-chunky-primary); /** Primary buttons */
|
|
284
299
|
--oh-shadow-secondary: var(--oh-shadow-chunky-secondary); /** Secondary/form elements */
|
|
285
300
|
--oh-shadow-accent: var(--oh-shadow-chunky-accent); /** Accent buttons */
|
|
@@ -309,52 +324,39 @@
|
|
|
309
324
|
--oh-typography-heading-font-family: var(--oh-font-family-display);
|
|
310
325
|
--oh-typography-heading-h1-font-size: var(--oh-font-size-4xl);
|
|
311
326
|
--oh-typography-heading-h1-font-weight: var(--oh-font-weight-bold);
|
|
312
|
-
--oh-typography-heading-h1-line-height: var(--oh-font-line-height-tight);
|
|
313
327
|
--oh-typography-heading-h1-letter-spacing: var(--oh-font-letter-spacing-tighter);
|
|
314
328
|
--oh-typography-heading-h2-font-size: var(--oh-font-size-3xl);
|
|
315
329
|
--oh-typography-heading-h2-font-weight: var(--oh-font-weight-bold);
|
|
316
|
-
--oh-typography-heading-h2-line-height: var(--oh-font-line-height-tight);
|
|
317
330
|
--oh-typography-heading-h2-letter-spacing: var(--oh-font-letter-spacing-tight);
|
|
318
331
|
--oh-typography-heading-h3-font-size: var(--oh-font-size-2xl);
|
|
319
332
|
--oh-typography-heading-h3-font-weight: var(--oh-font-weight-semibold);
|
|
320
|
-
--oh-typography-heading-h3-line-height: var(--oh-font-line-height-snug);
|
|
321
333
|
--oh-typography-heading-h3-letter-spacing: var(--oh-font-letter-spacing-tight);
|
|
322
334
|
--oh-typography-heading-h4-font-size: var(--oh-font-size-xl);
|
|
323
335
|
--oh-typography-heading-h4-font-weight: var(--oh-font-weight-semibold);
|
|
324
|
-
--oh-typography-heading-h4-line-height: var(--oh-font-line-height-snug);
|
|
325
336
|
--oh-typography-heading-h4-letter-spacing: var(--oh-font-letter-spacing-normal);
|
|
326
337
|
--oh-typography-heading-h5-font-size: var(--oh-font-size-lg);
|
|
327
338
|
--oh-typography-heading-h5-font-weight: var(--oh-font-weight-medium);
|
|
328
|
-
--oh-typography-heading-h5-line-height: var(--oh-font-line-height-normal);
|
|
329
339
|
--oh-typography-heading-h6-font-size: var(--oh-font-size-base);
|
|
330
340
|
--oh-typography-heading-h6-font-weight: var(--oh-font-weight-medium);
|
|
331
|
-
--oh-typography-heading-h6-line-height: var(--oh-font-line-height-normal);
|
|
332
341
|
--oh-typography-body-font-family: var(--oh-font-family-sans);
|
|
333
342
|
--oh-typography-body-xl-font-size: var(--oh-font-size-xl);
|
|
334
343
|
--oh-typography-body-xl-font-weight: var(--oh-font-weight-normal);
|
|
335
|
-
--oh-typography-body-xl-line-height: var(--oh-font-line-height-normal);
|
|
336
344
|
--oh-typography-body-lg-font-size: var(--oh-font-size-lg);
|
|
337
345
|
--oh-typography-body-lg-font-weight: var(--oh-font-weight-normal);
|
|
338
|
-
--oh-typography-body-lg-line-height: var(--oh-font-line-height-relaxed);
|
|
339
346
|
--oh-typography-body-base-font-size: var(--oh-font-size-base);
|
|
340
347
|
--oh-typography-body-base-font-weight: var(--oh-font-weight-normal);
|
|
341
|
-
--oh-typography-body-
|
|
342
|
-
--oh-typography-body-sm-font-size: var(--oh-font-size-sm);
|
|
348
|
+
--oh-typography-body-sm-font-size: var(--oh-font-size-xs);
|
|
343
349
|
--oh-typography-body-sm-font-weight: var(--oh-font-weight-normal);
|
|
344
|
-
--oh-typography-body-sm-line-height: var(--oh-font-line-height-normal);
|
|
345
350
|
--oh-typography-body-sm-letter-spacing: var(--oh-font-letter-spacing-wide);
|
|
346
351
|
--oh-typography-body-xs-font-size: var(--oh-font-size-xs);
|
|
347
352
|
--oh-typography-body-xs-font-weight: var(--oh-font-weight-normal);
|
|
348
|
-
--oh-typography-body-xs-line-height: var(--oh-font-line-height-normal);
|
|
349
353
|
--oh-typography-body-xs-letter-spacing: var(--oh-font-letter-spacing-wide);
|
|
350
354
|
--oh-typography-label-font-family: var(--oh-font-family-sans);
|
|
351
|
-
--oh-typography-label-base-font-size: var(--oh-font-size-
|
|
355
|
+
--oh-typography-label-base-font-size: var(--oh-font-size-base);
|
|
352
356
|
--oh-typography-label-base-font-weight: var(--oh-font-weight-medium);
|
|
353
|
-
--oh-typography-label-base-line-height: var(--oh-font-line-height-normal); /** 1.5 for WCAG 1.4.12 */
|
|
354
357
|
--oh-typography-label-base-letter-spacing: var(--oh-font-letter-spacing-wide);
|
|
355
358
|
--oh-typography-label-sm-font-size: var(--oh-font-size-xs);
|
|
356
359
|
--oh-typography-label-sm-font-weight: var(--oh-font-weight-medium);
|
|
357
|
-
--oh-typography-label-sm-line-height: var(--oh-font-line-height-normal); /** 1.5 for WCAG 1.4.12 */
|
|
358
360
|
--oh-typography-label-sm-letter-spacing: var(--oh-font-letter-spacing-wide);
|
|
359
361
|
--oh-typography-eyebrow-font-family: var(--oh-font-family-sans);
|
|
360
362
|
--oh-typography-eyebrow-font-size: var(--oh-font-size-base);
|
|
@@ -368,8 +370,7 @@
|
|
|
368
370
|
--oh-typography-control-font-size-lg: var(--oh-font-size-xl); /** Large buttons */
|
|
369
371
|
--oh-typography-emphasis-font-weight: var(--oh-font-weight-semibold);
|
|
370
372
|
--oh-typography-code-font-family: var(--oh-font-family-mono);
|
|
371
|
-
--oh-typography-code-font-size: var(--oh-font-size-
|
|
372
|
-
--oh-typography-code-line-height: var(--oh-font-line-height-normal);
|
|
373
|
+
--oh-typography-code-font-size: var(--oh-font-size-base);
|
|
373
374
|
--oh-layout-container-sm: var(--oh-size-container-sm);
|
|
374
375
|
--oh-layout-container-md: var(--oh-size-container-md);
|
|
375
376
|
--oh-layout-container-lg: var(--oh-size-container-lg);
|
|
@@ -410,6 +411,7 @@
|
|
|
410
411
|
--oh-button-variant-secondary-background-hover: var(--oh-color-surface-hover);
|
|
411
412
|
--oh-button-variant-secondary-background-active: var(--oh-color-surface-active-pressed);
|
|
412
413
|
--oh-button-focus-glow-color: var(--oh-focus-glow-color);
|
|
414
|
+
--oh-input-base-line-height: var(--oh-typography-body-base-line-height);
|
|
413
415
|
--oh-input-size-md-padding-x: var(--oh-spacing-4);
|
|
414
416
|
--oh-input-size-md-padding-y: var(--oh-spacing-3);
|
|
415
417
|
--oh-card-base-padding: var(--oh-spacing-5);
|
|
@@ -450,7 +452,6 @@
|
|
|
450
452
|
--oh-button-focus-ring-color: var(--oh-focus-ring-color);
|
|
451
453
|
--oh-input-base-font-family: var(--oh-typography-control-font-family);
|
|
452
454
|
--oh-input-base-font-size: var(--oh-typography-control-font-size-md);
|
|
453
|
-
--oh-input-base-line-height: var(--oh-typography-body-base-line-height);
|
|
454
455
|
--oh-input-base-border-radius: var(--oh-shape-control);
|
|
455
456
|
--oh-input-base-border-width: var(--oh-stroke-control);
|
|
456
457
|
--oh-input-base-transition-duration: var(--oh-motion-snappy);
|