@orange-halo/tokens 2.0.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 -30
- package/contrast.js +11 -2
- package/dist/brands/hood-dark.css +74 -0
- package/dist/brands/hood-dark.json +723 -0
- package/dist/brands/hood.css +434 -0
- package/dist/brands/hood.json +723 -0
- package/dist/brands/orange-halo-dark.css +78 -0
- package/dist/brands/orange-halo-dark.json +857 -0
- package/dist/brands/orange-halo.css +512 -0
- package/dist/brands/orange-halo.json +857 -0
- package/dist/themes/dark.css +11 -0
- package/dist/themes/dark.json +146 -72
- package/dist/tokens.css +113 -62
- package/dist/tokens.js +131 -64
- package/dist/tokens.json +146 -72
- package/package.json +3 -4
- package/tokens/brands/hood/brand.json +7 -0
- package/tokens/brands/hood/dark.tokens.json +295 -0
- package/tokens/brands/hood/light.tokens.json +875 -0
- package/tokens/brands/hood/palette.tokens.json +187 -0
- package/tokens/brands/orange-halo/brand.json +7 -0
- package/tokens/{themes → brands/orange-halo}/dark.tokens.json +57 -7
- package/tokens/{semantic.tokens.json → brands/orange-halo/light.tokens.json} +128 -3
- package/tokens/{global.tokens.json → brands/orange-halo/palette.tokens.json} +83 -205
- package/tokens/{component.tokens.json → core/component.tokens.json} +205 -51
- package/tokens/core/scales.tokens.json +170 -0
- package/dist/themes/light.css +0 -47
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$description": "
|
|
2
|
+
"$description": "Orange Halo palette (tier 1): colours, fonts, radii, shadows, gradients, motion and borders. Warm, playful, personal. Other brands provide their own palette with the same groups.",
|
|
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
|
"$description": "Warm palette with nostalgic character. Neutrals are always warm; blue is the deliberate accent.",
|
|
5
13
|
"orange": {
|
|
@@ -414,7 +422,7 @@
|
|
|
414
422
|
}
|
|
415
423
|
},
|
|
416
424
|
"size": {
|
|
417
|
-
"$description": "
|
|
425
|
+
"$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",
|
|
418
426
|
"xs": {
|
|
419
427
|
"$type": "dimension",
|
|
420
428
|
"$value": "0.75rem",
|
|
@@ -422,8 +430,8 @@
|
|
|
422
430
|
},
|
|
423
431
|
"sm": {
|
|
424
432
|
"$type": "dimension",
|
|
425
|
-
"$value": "
|
|
426
|
-
"$description": "
|
|
433
|
+
"$value": "{font.size.xs}",
|
|
434
|
+
"$description": "Kept so existing references don't break. On the grid, small text is xs; use xs or a tier 2 role"
|
|
427
435
|
},
|
|
428
436
|
"base": {
|
|
429
437
|
"$type": "dimension",
|
|
@@ -432,18 +440,18 @@
|
|
|
432
440
|
},
|
|
433
441
|
"lg": {
|
|
434
442
|
"$type": "dimension",
|
|
435
|
-
"$value": "1.
|
|
436
|
-
"$description": "
|
|
443
|
+
"$value": "1.25rem",
|
|
444
|
+
"$description": "20px"
|
|
437
445
|
},
|
|
438
446
|
"xl": {
|
|
439
447
|
"$type": "dimension",
|
|
440
|
-
"$value": "1.
|
|
441
|
-
"$description": "
|
|
448
|
+
"$value": "1.5rem",
|
|
449
|
+
"$description": "24px"
|
|
442
450
|
},
|
|
443
451
|
"2xl": {
|
|
444
452
|
"$type": "dimension",
|
|
445
|
-
"$value": "1.
|
|
446
|
-
"$description": "
|
|
453
|
+
"$value": "1.75rem",
|
|
454
|
+
"$description": "28px"
|
|
447
455
|
},
|
|
448
456
|
"3xl": {
|
|
449
457
|
"$type": "dimension",
|
|
@@ -452,13 +460,13 @@
|
|
|
452
460
|
},
|
|
453
461
|
"4xl": {
|
|
454
462
|
"$type": "dimension",
|
|
455
|
-
"$value": "2.
|
|
456
|
-
"$description": "
|
|
463
|
+
"$value": "2.5rem",
|
|
464
|
+
"$description": "40px"
|
|
457
465
|
},
|
|
458
466
|
"5xl": {
|
|
459
467
|
"$type": "dimension",
|
|
460
|
-
"$value": "
|
|
461
|
-
"$description": "
|
|
468
|
+
"$value": "3rem",
|
|
469
|
+
"$description": "48px"
|
|
462
470
|
}
|
|
463
471
|
},
|
|
464
472
|
"weight": {
|
|
@@ -536,97 +544,6 @@
|
|
|
536
544
|
}
|
|
537
545
|
}
|
|
538
546
|
},
|
|
539
|
-
"spacing": {
|
|
540
|
-
"$description": "Generous spacing — breathing room, not dense",
|
|
541
|
-
"0": {
|
|
542
|
-
"$type": "dimension",
|
|
543
|
-
"$value": "0"
|
|
544
|
-
},
|
|
545
|
-
"px": {
|
|
546
|
-
"$type": "dimension",
|
|
547
|
-
"$value": "1px"
|
|
548
|
-
},
|
|
549
|
-
"0-5": {
|
|
550
|
-
"$type": "dimension",
|
|
551
|
-
"$value": "0.125rem",
|
|
552
|
-
"$description": "2px"
|
|
553
|
-
},
|
|
554
|
-
"1": {
|
|
555
|
-
"$type": "dimension",
|
|
556
|
-
"$value": "0.25rem",
|
|
557
|
-
"$description": "4px"
|
|
558
|
-
},
|
|
559
|
-
"1-5": {
|
|
560
|
-
"$type": "dimension",
|
|
561
|
-
"$value": "0.375rem",
|
|
562
|
-
"$description": "6px"
|
|
563
|
-
},
|
|
564
|
-
"2": {
|
|
565
|
-
"$type": "dimension",
|
|
566
|
-
"$value": "0.5rem",
|
|
567
|
-
"$description": "8px"
|
|
568
|
-
},
|
|
569
|
-
"2-5": {
|
|
570
|
-
"$type": "dimension",
|
|
571
|
-
"$value": "0.625rem",
|
|
572
|
-
"$description": "10px"
|
|
573
|
-
},
|
|
574
|
-
"3": {
|
|
575
|
-
"$type": "dimension",
|
|
576
|
-
"$value": "0.75rem",
|
|
577
|
-
"$description": "12px"
|
|
578
|
-
},
|
|
579
|
-
"3-5": {
|
|
580
|
-
"$type": "dimension",
|
|
581
|
-
"$value": "0.875rem",
|
|
582
|
-
"$description": "14px"
|
|
583
|
-
},
|
|
584
|
-
"4": {
|
|
585
|
-
"$type": "dimension",
|
|
586
|
-
"$value": "1rem",
|
|
587
|
-
"$description": "16px"
|
|
588
|
-
},
|
|
589
|
-
"5": {
|
|
590
|
-
"$type": "dimension",
|
|
591
|
-
"$value": "1.25rem",
|
|
592
|
-
"$description": "20px"
|
|
593
|
-
},
|
|
594
|
-
"6": {
|
|
595
|
-
"$type": "dimension",
|
|
596
|
-
"$value": "1.5rem",
|
|
597
|
-
"$description": "24px"
|
|
598
|
-
},
|
|
599
|
-
"7": {
|
|
600
|
-
"$type": "dimension",
|
|
601
|
-
"$value": "1.75rem",
|
|
602
|
-
"$description": "28px"
|
|
603
|
-
},
|
|
604
|
-
"8": {
|
|
605
|
-
"$type": "dimension",
|
|
606
|
-
"$value": "2rem",
|
|
607
|
-
"$description": "32px"
|
|
608
|
-
},
|
|
609
|
-
"10": {
|
|
610
|
-
"$type": "dimension",
|
|
611
|
-
"$value": "2.5rem",
|
|
612
|
-
"$description": "40px"
|
|
613
|
-
},
|
|
614
|
-
"12": {
|
|
615
|
-
"$type": "dimension",
|
|
616
|
-
"$value": "3rem",
|
|
617
|
-
"$description": "48px"
|
|
618
|
-
},
|
|
619
|
-
"16": {
|
|
620
|
-
"$type": "dimension",
|
|
621
|
-
"$value": "4rem",
|
|
622
|
-
"$description": "64px"
|
|
623
|
-
},
|
|
624
|
-
"20": {
|
|
625
|
-
"$type": "dimension",
|
|
626
|
-
"$value": "5rem",
|
|
627
|
-
"$description": "80px"
|
|
628
|
-
}
|
|
629
|
-
},
|
|
630
547
|
"radius": {
|
|
631
548
|
"$description": "Friendly and soft — not sharp, not overly pill-shaped",
|
|
632
549
|
"none": {
|
|
@@ -716,6 +633,63 @@
|
|
|
716
633
|
"$type": "color",
|
|
717
634
|
"$value": "rgba(181, 69, 64, 0.3)",
|
|
718
635
|
"$description": "Error state shadow"
|
|
636
|
+
},
|
|
637
|
+
"driftwood": {
|
|
638
|
+
"$type": "color",
|
|
639
|
+
"$value": "rgba(107, 93, 77, 0.15)",
|
|
640
|
+
"$description": "Translucent driftwood, for offset shadows on cream"
|
|
641
|
+
},
|
|
642
|
+
"driftwoodHover": {
|
|
643
|
+
"$type": "color",
|
|
644
|
+
"$value": "rgba(107, 93, 77, 0.2)",
|
|
645
|
+
"$description": "A step darker, for the lifted state"
|
|
646
|
+
},
|
|
647
|
+
"driftwoodDeep": {
|
|
648
|
+
"$type": "color",
|
|
649
|
+
"$value": "rgba(107, 93, 77, 0.25)",
|
|
650
|
+
"$description": "For dialogs, which sit above everything"
|
|
651
|
+
},
|
|
652
|
+
"walnut": {
|
|
653
|
+
"$type": "color",
|
|
654
|
+
"$value": "rgba(61, 50, 41, 0.15)",
|
|
655
|
+
"$description": "Translucent walnut, for the inset shadow inside fields"
|
|
656
|
+
}
|
|
657
|
+
},
|
|
658
|
+
"layered": {
|
|
659
|
+
"$description": "Layered surface shadows: soft drop shadows with a top highlight, so cards feel like physical objects",
|
|
660
|
+
"flat": {
|
|
661
|
+
"$type": "shadow",
|
|
662
|
+
"$value": "0 1px 2px rgba(61, 50, 41, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.6)"
|
|
663
|
+
},
|
|
664
|
+
"raised": {
|
|
665
|
+
"$type": "shadow",
|
|
666
|
+
"$value": "0 2px 6px rgba(61, 50, 41, 0.08), 0 6px 16px rgba(61, 50, 41, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.8)"
|
|
667
|
+
},
|
|
668
|
+
"lifted": {
|
|
669
|
+
"$type": "shadow",
|
|
670
|
+
"$value": "0 4px 12px rgba(61, 50, 41, 0.1), 0 12px 28px rgba(61, 50, 41, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9)"
|
|
671
|
+
},
|
|
672
|
+
"pressed": {
|
|
673
|
+
"$type": "shadow",
|
|
674
|
+
"$value": "0 1px 3px rgba(61, 50, 41, 0.1), 0 3px 8px rgba(61, 50, 41, 0.06), inset 0 1px 2px rgba(61, 50, 41, 0.04)"
|
|
675
|
+
},
|
|
676
|
+
"focused": {
|
|
677
|
+
"$type": "shadow",
|
|
678
|
+
"$value": "0 2px 6px rgba(61, 50, 41, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8)",
|
|
679
|
+
"$description": "Sits under the focus glow"
|
|
680
|
+
},
|
|
681
|
+
"sunlit": {
|
|
682
|
+
"$type": "shadow",
|
|
683
|
+
"$value": "0 2px 8px rgba(139, 69, 19, 0.08), 0 8px 24px rgba(139, 69, 19, 0.06), 0 0 20px rgba(197, 67, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.9)"
|
|
684
|
+
},
|
|
685
|
+
"sunlitLifted": {
|
|
686
|
+
"$type": "shadow",
|
|
687
|
+
"$value": "0 4px 12px rgba(139, 69, 19, 0.12), 0 12px 32px rgba(139, 69, 19, 0.08), 0 0 28px rgba(197, 67, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 1)"
|
|
688
|
+
},
|
|
689
|
+
"sunlitFocused": {
|
|
690
|
+
"$type": "shadow",
|
|
691
|
+
"$value": "0 2px 8px rgba(139, 69, 19, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9)",
|
|
692
|
+
"$description": "Sits under the focus glow"
|
|
719
693
|
}
|
|
720
694
|
}
|
|
721
695
|
},
|
|
@@ -769,42 +743,22 @@
|
|
|
769
743
|
"easing": {
|
|
770
744
|
"gentle": {
|
|
771
745
|
"$type": "cubicBezier",
|
|
772
|
-
"$value": [
|
|
773
|
-
0.4,
|
|
774
|
-
0,
|
|
775
|
-
0.2,
|
|
776
|
-
1
|
|
777
|
-
],
|
|
746
|
+
"$value": [0.4, 0, 0.2, 1],
|
|
778
747
|
"$description": "Default — smooth and natural"
|
|
779
748
|
},
|
|
780
749
|
"out": {
|
|
781
750
|
"$type": "cubicBezier",
|
|
782
|
-
"$value": [
|
|
783
|
-
0,
|
|
784
|
-
0,
|
|
785
|
-
0.2,
|
|
786
|
-
1
|
|
787
|
-
],
|
|
751
|
+
"$value": [0, 0, 0.2, 1],
|
|
788
752
|
"$description": "Enters and reveals"
|
|
789
753
|
},
|
|
790
754
|
"in": {
|
|
791
755
|
"$type": "cubicBezier",
|
|
792
|
-
"$value": [
|
|
793
|
-
0.4,
|
|
794
|
-
0,
|
|
795
|
-
1,
|
|
796
|
-
1
|
|
797
|
-
],
|
|
756
|
+
"$value": [0.4, 0, 1, 1],
|
|
798
757
|
"$description": "Exits"
|
|
799
758
|
},
|
|
800
759
|
"playful": {
|
|
801
760
|
"$type": "cubicBezier",
|
|
802
|
-
"$value": [
|
|
803
|
-
0.34,
|
|
804
|
-
1.3,
|
|
805
|
-
0.64,
|
|
806
|
-
1
|
|
807
|
-
],
|
|
761
|
+
"$value": [0.34, 1.3, 0.64, 1],
|
|
808
762
|
"$description": "Celebrations — slight overshoot"
|
|
809
763
|
}
|
|
810
764
|
}
|
|
@@ -830,81 +784,5 @@
|
|
|
830
784
|
"$description": "Signature chunky frame for controls and feedback"
|
|
831
785
|
}
|
|
832
786
|
}
|
|
833
|
-
},
|
|
834
|
-
"size": {
|
|
835
|
-
"$description": "Fixed layout sizes: content widths and viewport breakpoints",
|
|
836
|
-
"container": {
|
|
837
|
-
"$description": "Content max-widths",
|
|
838
|
-
"sm": {
|
|
839
|
-
"$type": "dimension",
|
|
840
|
-
"$value": "640px"
|
|
841
|
-
},
|
|
842
|
-
"md": {
|
|
843
|
-
"$type": "dimension",
|
|
844
|
-
"$value": "768px"
|
|
845
|
-
},
|
|
846
|
-
"lg": {
|
|
847
|
-
"$type": "dimension",
|
|
848
|
-
"$value": "1024px"
|
|
849
|
-
},
|
|
850
|
-
"xl": {
|
|
851
|
-
"$type": "dimension",
|
|
852
|
-
"$value": "1280px"
|
|
853
|
-
}
|
|
854
|
-
},
|
|
855
|
-
"breakpoint": {
|
|
856
|
-
"$description": "Viewport widths for @media queries. CSS can't read custom properties in a media query, so components write the value; check:tokens fails any (min|max)-width that isn't one of these (or one pixel either side, for adjoining ranges).",
|
|
857
|
-
"xs": {
|
|
858
|
-
"$type": "dimension",
|
|
859
|
-
"$value": "480px"
|
|
860
|
-
},
|
|
861
|
-
"sm": {
|
|
862
|
-
"$type": "dimension",
|
|
863
|
-
"$value": "640px"
|
|
864
|
-
},
|
|
865
|
-
"md": {
|
|
866
|
-
"$type": "dimension",
|
|
867
|
-
"$value": "768px"
|
|
868
|
-
},
|
|
869
|
-
"lg": {
|
|
870
|
-
"$type": "dimension",
|
|
871
|
-
"$value": "1024px"
|
|
872
|
-
}
|
|
873
|
-
}
|
|
874
|
-
},
|
|
875
|
-
"zIndex": {
|
|
876
|
-
"$description": "Z-index layering",
|
|
877
|
-
"0": {
|
|
878
|
-
"$type": "number",
|
|
879
|
-
"$value": 0
|
|
880
|
-
},
|
|
881
|
-
"10": {
|
|
882
|
-
"$type": "number",
|
|
883
|
-
"$value": 10
|
|
884
|
-
},
|
|
885
|
-
"20": {
|
|
886
|
-
"$type": "number",
|
|
887
|
-
"$value": 20
|
|
888
|
-
},
|
|
889
|
-
"dropdown": {
|
|
890
|
-
"$type": "number",
|
|
891
|
-
"$value": 1000
|
|
892
|
-
},
|
|
893
|
-
"sticky": {
|
|
894
|
-
"$type": "number",
|
|
895
|
-
"$value": 1100
|
|
896
|
-
},
|
|
897
|
-
"modal": {
|
|
898
|
-
"$type": "number",
|
|
899
|
-
"$value": 1200
|
|
900
|
-
},
|
|
901
|
-
"popover": {
|
|
902
|
-
"$type": "number",
|
|
903
|
-
"$value": 1300
|
|
904
|
-
},
|
|
905
|
-
"tooltip": {
|
|
906
|
-
"$type": "number",
|
|
907
|
-
"$value": 1400
|
|
908
|
-
}
|
|
909
787
|
}
|
|
910
788
|
}
|