@govbr-ds/tokens 4.0.0-next.4 → 4.0.0-next.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/themes/dark.css +46 -19
- package/dist/css/themes/light.css +39 -12
- package/dist/css/tokens.css +120 -67
- package/dist/js/themes/dark.js +46 -19
- package/dist/js/themes/light.js +39 -12
- package/dist/js/tokens.js +120 -67
- package/dist/json/themes/dark.json +1521 -630
- package/dist/json/themes/light.json +1333 -442
- package/dist/json/tokens.json +2354 -836
- package/dist/scss/_tokens.scss +121 -68
- package/dist/scss/themes/_dark.scss +47 -20
- package/dist/scss/themes/_light.scss +40 -13
- package/package.json +3 -2
- package/src/figma/tokens.json +964 -269
- package/src/figma/variables/color.json +2 -2
- package/src/figma/variables/dark.json +304 -0
- package/src/figma/variables/elevation.json +162 -0
- package/src/figma/variables/guideline/componente.json +24 -0
- package/src/figma/variables/guideline/fundamento.json +24 -0
- package/src/figma/variables/guideline/geral.json +20 -0
- package/src/figma/variables/guideline/manifest.json +21 -0
- package/src/figma/variables/guideline/padrao.json +24 -0
- package/src/figma/variables/light.json +304 -0
- package/src/figma/variables/manifest.json +2 -1
- package/src/figma/variables/motion.json +2 -2
- package/src/figma/variables/state.json +238 -0
- package/src/style-dictionary/themes/dark.json +434 -71
- package/src/style-dictionary/themes/light.json +428 -65
- package/src/style-dictionary/tokens.json +209 -157
package/dist/scss/_tokens.scss
CHANGED
|
@@ -293,7 +293,7 @@ $tokens: (
|
|
|
293
293
|
'color-cyan-vivid-80': #093B44,
|
|
294
294
|
'color-blue-5': #EFF6FB,
|
|
295
295
|
'color-blue-10': #DBE8FB,
|
|
296
|
-
'color-blue-20': #
|
|
296
|
+
'color-blue-20': #AACDEC,
|
|
297
297
|
'color-blue-30': #73B3E7,
|
|
298
298
|
'color-blue-40': #4F97D1,
|
|
299
299
|
'color-blue-50': #2378C3,
|
|
@@ -477,36 +477,36 @@ $tokens: (
|
|
|
477
477
|
'typography-font-weight-black': 900,
|
|
478
478
|
'typography-font-size-base16': 16px,
|
|
479
479
|
'typography-font-size-base14': 14px,
|
|
480
|
-
'typography-font-size-base':
|
|
480
|
+
'typography-font-size-base': 1rem,
|
|
481
481
|
'typography-font-size-scale': 1.125,
|
|
482
|
-
'typography-font-size-up-01':
|
|
483
|
-
'typography-font-size-up-02':
|
|
484
|
-
'typography-font-size-up-03':
|
|
485
|
-
'typography-font-size-up-04':
|
|
486
|
-
'typography-font-size-up-05':
|
|
487
|
-
'typography-font-size-up-06':
|
|
488
|
-
'typography-font-size-up-07':
|
|
489
|
-
'typography-font-size-up-08':
|
|
490
|
-
'typography-font-size-down-01': 0.
|
|
491
|
-
'typography-font-size-down-02': 0.
|
|
492
|
-
'typography-font-size-down-03': 0.
|
|
493
|
-
'typography-font-size-down-04': 0.
|
|
482
|
+
'typography-font-size-up-01': 0.0625rem,
|
|
483
|
+
'typography-font-size-up-02': 0.0625rem,
|
|
484
|
+
'typography-font-size-up-03': 0.0625rem,
|
|
485
|
+
'typography-font-size-up-04': 0.0625rem,
|
|
486
|
+
'typography-font-size-up-05': 0.0625rem,
|
|
487
|
+
'typography-font-size-up-06': 0.0625rem,
|
|
488
|
+
'typography-font-size-up-07': 0.0625rem,
|
|
489
|
+
'typography-font-size-up-08': 0.0625rem,
|
|
490
|
+
'typography-font-size-down-01': 0.0625rem,
|
|
491
|
+
'typography-font-size-down-02': 0.0625rem,
|
|
492
|
+
'typography-font-size-down-03': 0.0625rem,
|
|
493
|
+
'typography-font-size-down-04': 0.0625rem,
|
|
494
494
|
'typography-line-height-low': 1.2,
|
|
495
495
|
'typography-line-height-medium': 1.5,
|
|
496
496
|
'typography-line-height-high': 1.8,
|
|
497
|
-
'typography-font-style-heading1': 700
|
|
498
|
-
'typography-font-style-heading2': 600
|
|
499
|
-
'typography-font-style-heading3': 500
|
|
500
|
-
'typography-font-style-heading4': 400
|
|
501
|
-
'typography-font-style-heading5': 300
|
|
502
|
-
'typography-font-style-heading6': 200
|
|
503
|
-
'typography-font-style-legend': 600
|
|
504
|
-
'typography-font-style-placeholder': 400 italic
|
|
505
|
-
'typography-font-style-paragraph': 400
|
|
506
|
-
'typography-font-style-input': 500
|
|
507
|
-
'typography-font-style-code': 400
|
|
508
|
-
'typography-font-style-label': 600 0.
|
|
509
|
-
'typography-font-style-basic': 400
|
|
497
|
+
'typography-font-style-heading1': "700 0.063rem/1.2 'Noto Sans'",
|
|
498
|
+
'typography-font-style-heading2': "600 0.063rem/1.2 'Noto Sans'",
|
|
499
|
+
'typography-font-style-heading3': "500 0.063rem/1.2 'Noto Sans'",
|
|
500
|
+
'typography-font-style-heading4': "400 0.063rem/1.2 'Noto Sans'",
|
|
501
|
+
'typography-font-style-heading5': "300 0.063rem/1.2 'Noto Sans'",
|
|
502
|
+
'typography-font-style-heading6': "200 0.063rem/1.2 'Noto Sans'",
|
|
503
|
+
'typography-font-style-legend': "600 0.063rem/1.5 'Noto Sans'",
|
|
504
|
+
'typography-font-style-placeholder': "400 italic 0.063rem/1 'Noto Sans'",
|
|
505
|
+
'typography-font-style-paragraph': "400 1rem/1.5 'Noto Sans'",
|
|
506
|
+
'typography-font-style-input': "500 1rem/1.5 'Noto Sans'",
|
|
507
|
+
'typography-font-style-code': "400 1rem/1.5 'Noto Sans Mono'",
|
|
508
|
+
'typography-font-style-label': "600 0.063rem/1.5 'Noto Sans'",
|
|
509
|
+
'typography-font-style-basic': "400 1rem/1.5 'Noto Sans'",
|
|
510
510
|
'iconography-font-family-font-awesome-free': 'Font Awesome 6 Free',
|
|
511
511
|
'iconography-font-family-font-awesome-brands': 'Font Awesome 6 Brands',
|
|
512
512
|
'iconography-icon-style-solid': Solid 16px/1 'Font Awesome 6 Free',
|
|
@@ -589,18 +589,43 @@ $tokens: (
|
|
|
589
589
|
'elevation-blur-03': 8,
|
|
590
590
|
'elevation-blur-04': 12,
|
|
591
591
|
'elevation-blur-05': 16,
|
|
592
|
-
'elevation-level-0':
|
|
593
|
-
'elevation-level-
|
|
594
|
-
'elevation-level-
|
|
595
|
-
'elevation-level-
|
|
596
|
-
'elevation-level-
|
|
592
|
+
'elevation-level-0-offset-x-cast': 0,
|
|
593
|
+
'elevation-level-0-offset-x-occlusion': 0,
|
|
594
|
+
'elevation-level-0-offset-y-cast': 0,
|
|
595
|
+
'elevation-level-0-offset-y-occlusion': 0,
|
|
596
|
+
'elevation-level-0-blur-cast': 0,
|
|
597
|
+
'elevation-level-0-blur-occlusion': 0,
|
|
598
|
+
'elevation-level-1-offset-x-cast': 0,
|
|
599
|
+
'elevation-level-1-offset-x-occlusion': 0,
|
|
600
|
+
'elevation-level-1-offset-y-cast': 1,
|
|
601
|
+
'elevation-level-1-offset-y-occlusion': 0,
|
|
602
|
+
'elevation-level-1-blur-cast': 1,
|
|
603
|
+
'elevation-level-1-blur-occlusion': 4,
|
|
604
|
+
'elevation-level-2-offset-x-cast': 0,
|
|
605
|
+
'elevation-level-2-offset-x-occlusion': 0,
|
|
606
|
+
'elevation-level-2-offset-y-cast': 4,
|
|
607
|
+
'elevation-level-2-offset-y-occlusion': 0,
|
|
608
|
+
'elevation-level-2-blur-cast': 4,
|
|
609
|
+
'elevation-level-2-blur-occlusion': 8,
|
|
610
|
+
'elevation-level-3-offset-x-cast': 0,
|
|
611
|
+
'elevation-level-3-offset-x-occlusion': 0,
|
|
612
|
+
'elevation-level-3-offset-y-cast': 8,
|
|
613
|
+
'elevation-level-3-offset-y-occlusion': 0,
|
|
614
|
+
'elevation-level-3-blur-cast': 8,
|
|
615
|
+
'elevation-level-3-blur-occlusion': 12,
|
|
616
|
+
'elevation-level-4-offset-x-cast': 0,
|
|
617
|
+
'elevation-level-4-offset-x-occlusion': 0,
|
|
618
|
+
'elevation-level-4-offset-y-cast': 12,
|
|
619
|
+
'elevation-level-4-offset-y-occlusion': 0,
|
|
620
|
+
'elevation-level-4-blur-cast': 12,
|
|
621
|
+
'elevation-level-4-blur-occlusion': 16,
|
|
597
622
|
'motion-easing-ease': cubic-bezier(0.25, 0.1, 0.25, 1),
|
|
598
623
|
'motion-easing-ease-in': cubic-bezier(0.42, 0, 1, 1),
|
|
599
624
|
'motion-easing-ease-out': cubic-bezier(0, 0, 0.58, 1),
|
|
600
625
|
'motion-easing-ease-in-out': cubic-bezier(0.42, 0, 0.58, 1),
|
|
601
626
|
'motion-easing-linear': cubic-bezier(0, 0, 1, 1),
|
|
602
|
-
'motion-easing-bounce-out': cubic-bezier(0.25, 2.
|
|
603
|
-
'motion-easing-elastic-out': cubic-bezier(0, 3, 0, 0
|
|
627
|
+
'motion-easing-bounce-out': cubic-bezier(0.25, 2.1, 0.5, 0),
|
|
628
|
+
'motion-easing-elastic-out': cubic-bezier(0.7, 3.3, 0.3, 0),
|
|
604
629
|
'motion-duration-scale': 50ms,
|
|
605
630
|
'motion-duration-none': 0,
|
|
606
631
|
'motion-duration-fast-01': 50ms,
|
|
@@ -619,28 +644,30 @@ $tokens: (
|
|
|
619
644
|
'motion-duration-very-slow-02': 800ms,
|
|
620
645
|
'motion-duration-very-slow-03': 900ms,
|
|
621
646
|
'motion-duration-very-slow-04': 1000ms,
|
|
622
|
-
'state-disabled-opacity': 0.
|
|
623
|
-
'state-hover-bright
|
|
624
|
-
'state-hover-dim
|
|
625
|
-
'state-hover-
|
|
626
|
-
'state-hover-motion-
|
|
647
|
+
'state-disabled-opacity': 0.3,
|
|
648
|
+
'state-hover-opacity-bright': 0.5,
|
|
649
|
+
'state-hover-opacity-dim': 0.6,
|
|
650
|
+
'state-hover-highlight-size': 1.05,
|
|
651
|
+
'state-hover-highlight-motion-easing': cubic-bezier(0.7, 3.3, 0.3, 0),
|
|
652
|
+
'state-hover-highlight-motion-duration': 200ms,
|
|
653
|
+
'state-hover-motion-in-easing': cubic-bezier(0.42, 0, 1, 1),
|
|
654
|
+
'state-hover-motion-in-duration': 200ms,
|
|
627
655
|
'state-hover-motion-out-easing': cubic-bezier(0.42, 0, 1, 1),
|
|
628
656
|
'state-hover-motion-out-duration': 100ms,
|
|
629
657
|
'state-pressed-shadow-offset': 1,
|
|
630
658
|
'state-pressed-shadow-blur': 8,
|
|
631
659
|
'state-pressed-shadow-opacity': 0.5,
|
|
632
|
-
'state-pressed-motion-in-easing': cubic-bezier(0, 0, 0.58, 1),
|
|
633
|
-
'state-pressed-motion-in-duration':
|
|
634
|
-
'state-pressed-motion-out-easing': cubic-bezier(0
|
|
635
|
-
'state-pressed-motion-out-duration':
|
|
636
|
-
'state-focus-
|
|
660
|
+
'state-pressed-motion-in-easing': cubic-bezier(0.42, 0, 0.58, 1),
|
|
661
|
+
'state-pressed-motion-in-duration': 100ms,
|
|
662
|
+
'state-pressed-motion-out-easing': cubic-bezier(0, 0, 0.58, 1),
|
|
663
|
+
'state-pressed-motion-out-duration': 50ms,
|
|
664
|
+
'state-focus-spacing': 4px,
|
|
665
|
+
'state-focus-border-width-high': 3px,
|
|
666
|
+
'state-focus-border-width-low': 2px,
|
|
667
|
+
'state-focus-motion-in-easing': cubic-bezier(0.7, 3.3, 0.3, 0),
|
|
637
668
|
'state-focus-motion-in-duration': 200ms,
|
|
638
669
|
'state-focus-motion-out-easing': cubic-bezier(0, 0, 0.58, 1),
|
|
639
670
|
'state-focus-motion-out-duration': 100ms,
|
|
640
|
-
'state-focus-spacing': 4px,
|
|
641
|
-
'state-focus-border-width-base': 3px,
|
|
642
|
-
'state-focus-border-width-alternative': 2px,
|
|
643
|
-
'state-focus-border-style': dashed,
|
|
644
671
|
'state-active-border-width': 4px,
|
|
645
672
|
'state-active-motion-in-easing': cubic-bezier(0, 0, 0.58, 1),
|
|
646
673
|
'state-active-motion-in-duration': 150ms,
|
|
@@ -651,16 +678,36 @@ $tokens: (
|
|
|
651
678
|
'state-selected-motion-out-easing': cubic-bezier(0.42, 0, 1, 1),
|
|
652
679
|
'state-selected-motion-out-duration': 100ms,
|
|
653
680
|
'state-grabbing-border-width': 2px,
|
|
654
|
-
'state-grabbing-rotation':
|
|
681
|
+
'state-grabbing-rotation': 5deg,
|
|
655
682
|
'state-grabbing-opacity': 0.7,
|
|
656
683
|
'state-dropzone-border-width': 1px,
|
|
657
|
-
'state-dropzone-
|
|
658
|
-
'state-
|
|
659
|
-
'state-on-motion-
|
|
660
|
-
'state-
|
|
661
|
-
'state-off-motion-
|
|
662
|
-
'
|
|
684
|
+
'state-dropzone-active-opacity': 0.3,
|
|
685
|
+
'state-on-motion-in-easing': cubic-bezier(0.25, 2.1, 0.5, 0),
|
|
686
|
+
'state-on-motion-in-duration': 200ms,
|
|
687
|
+
'state-off-motion-in-easing': cubic-bezier(0.25, 2.1, 0.5, 0),
|
|
688
|
+
'state-off-motion-in-duration': 200ms,
|
|
689
|
+
'theme-shadow-opacity': 0.2,
|
|
663
690
|
'theme-shadow-color': rgba(0, 0, 0, 0.2),
|
|
691
|
+
'theme-border-style-focus-high-main': 3px dashed #DA680B,
|
|
692
|
+
'theme-border-style-focus-high-contrast': 3px dashed #FF8C00,
|
|
693
|
+
'theme-border-style-focus-low-main': 2px solid #DA680B,
|
|
694
|
+
'theme-border-style-focus-low-contrast': 2px solid #FF8C00,
|
|
695
|
+
'theme-border-style-active-main': 4px solid #0C326F,
|
|
696
|
+
'theme-border-style-active-contrast': 4px solid #81AEFC,
|
|
697
|
+
'theme-border-style-grabbing-main': 2px solid #0040B4,
|
|
698
|
+
'theme-border-style-grabbing-contrast': 2px solid #ADCDFF,
|
|
699
|
+
'theme-border-style-dropzone-main': 1px dashed #0040B4,
|
|
700
|
+
'theme-border-style-dropzone-contrast': 1px dashed #ADCDFF,
|
|
701
|
+
'theme-shadow-style-level-0': "0 0 0 0 rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(0, 0, 0, 0.2)",
|
|
702
|
+
'theme-shadow-style-level-1': "0 1px 1px 0 rgba(0, 0, 0, 0.2), 0 0 4px 0 rgba(0, 0, 0, 0.2)",
|
|
703
|
+
'theme-shadow-style-level-2': "0 4px 4px 0 rgba(0, 0, 0, 0.2), 0 0 8px 0 rgba(0, 0, 0, 0.2)",
|
|
704
|
+
'theme-shadow-style-level-3': "0 8px 8px 0 rgba(0, 0, 0, 0.2), 0 0 12px 0 rgba(0, 0, 0, 0.2)",
|
|
705
|
+
'theme-shadow-style-level-4': "0 12px 12px 0 rgba(0, 0, 0, 0.2), 0 0 16px 0 rgba(0, 0, 0, 0.2)",
|
|
706
|
+
'theme-shadow-style-disabled': "0 0 0 0 rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(0, 0, 0, 0.2)",
|
|
707
|
+
'theme-shadow-style-hover-highlight': "0 0 4px 0 rgba(0, 0, 0, 0.2)",
|
|
708
|
+
'theme-shadow-style-pressed': "inset 1px 1px 8px 0 rgba(0, 0, 0, 0.5)",
|
|
709
|
+
'theme-shadow-style-grabbing-main': "0 12px 12px 0 rgba(0, 64, 180, 0.2), 0 0 16px 0 rgba(0, 64, 180, 0.2)",
|
|
710
|
+
'theme-shadow-style-grabbing-contrast': "0 12px 12px 0 rgba(173, 205, 255, 0.2), 0 0 16px 0 rgba(173, 205, 255, 0.2)",
|
|
664
711
|
'theme-text-main-base': #1B1B1B,
|
|
665
712
|
'theme-text-main-alternative': #636363,
|
|
666
713
|
'theme-text-contrast-base': #FCFCFC,
|
|
@@ -669,10 +716,6 @@ $tokens: (
|
|
|
669
716
|
'theme-surface-main-alternative': #F0F0F0,
|
|
670
717
|
'theme-surface-contrast-base': #252F3E,
|
|
671
718
|
'theme-surface-contrast-alternative': #2F4668,
|
|
672
|
-
'theme-surface-text-main-base': #1B1B1B,
|
|
673
|
-
'theme-surface-text-main-alternative': #1B1B1B,
|
|
674
|
-
'theme-surface-text-contrast-base': #FCFCFC,
|
|
675
|
-
'theme-surface-text-contrast-alternative': #FCFCFC,
|
|
676
719
|
'theme-border-base': #CCCCCC,
|
|
677
720
|
'theme-border-alternative': #888888,
|
|
678
721
|
'theme-interactive-main': #0040B4,
|
|
@@ -683,18 +726,16 @@ $tokens: (
|
|
|
683
726
|
'theme-cta-contrast': #70E17B,
|
|
684
727
|
'theme-cta-text-main': #FFFFFF,
|
|
685
728
|
'theme-cta-text-contrast': #000000,
|
|
686
|
-
'theme-success-main': #538200,
|
|
687
|
-
'theme-success-text': #FFFFFF,
|
|
688
|
-
'theme-alert-main': #FFCD07,
|
|
689
|
-
'theme-alert-text': #000000,
|
|
690
|
-
'theme-error-main': #E52207,
|
|
691
|
-
'theme-error-text': #FFFFFF,
|
|
692
729
|
'theme-disabled-main': #4A4A4A,
|
|
693
730
|
'theme-disabled-contrast': #CCCCCC,
|
|
694
731
|
'theme-visited-main': #2F4668,
|
|
695
732
|
'theme-visited-contrast': #C5D4EB,
|
|
696
|
-
'theme-hover-bright': rgba(212, 229, 255, 0.
|
|
697
|
-
'theme-hover-dim': rgba(12, 50, 111, 0.
|
|
733
|
+
'theme-hover-bright': rgba(212, 229, 255, 0.5),
|
|
734
|
+
'theme-hover-dim': rgba(12, 50, 111, 0.6),
|
|
735
|
+
'theme-hover-main-text': rgba(212, 229, 255, 0.5),
|
|
736
|
+
'theme-hover-main-surface': rgba(12, 50, 111, 0.6),
|
|
737
|
+
'theme-hover-contrast-text': rgba(12, 50, 111, 0.6),
|
|
738
|
+
'theme-hover-contrast-surface': rgba(212, 229, 255, 0.5),
|
|
698
739
|
'theme-focus-main': #DA680B,
|
|
699
740
|
'theme-focus-contrast': #FF8C00,
|
|
700
741
|
'theme-active-main': #0C326F,
|
|
@@ -705,6 +746,12 @@ $tokens: (
|
|
|
705
746
|
'theme-selected-contrast': #5992ED,
|
|
706
747
|
'theme-selected-text-main': #FFFFFF,
|
|
707
748
|
'theme-selected-text-contrast': #000000,
|
|
749
|
+
'theme-grabbing-main': #0040B4,
|
|
750
|
+
'theme-grabbing-contrast': #ADCDFF,
|
|
751
|
+
'theme-dropzone-main': #0040B4,
|
|
752
|
+
'theme-dropzone-contrast': #ADCDFF,
|
|
753
|
+
'theme-dropzone-active-main': #0040B4,
|
|
754
|
+
'theme-dropzone-active-contrast': #ADCDFF,
|
|
708
755
|
'theme-on-main': #5992ED,
|
|
709
756
|
'theme-on-contrast': #2670E8,
|
|
710
757
|
'theme-on-text-main': #000000,
|
|
@@ -712,5 +759,11 @@ $tokens: (
|
|
|
712
759
|
'theme-off-main': #888888,
|
|
713
760
|
'theme-off-contrast': #757575,
|
|
714
761
|
'theme-off-text-main': #000000,
|
|
715
|
-
'theme-off-text-contrast': #FFFFFF
|
|
762
|
+
'theme-off-text-contrast': #FFFFFF,
|
|
763
|
+
'theme-success-main': #538200,
|
|
764
|
+
'theme-success-text-main': #FFFFFF,
|
|
765
|
+
'theme-alert-main': #FFCD07,
|
|
766
|
+
'theme-alert-text-main': #000000,
|
|
767
|
+
'theme-error-main': #E52207,
|
|
768
|
+
'theme-error-text-main': #FFFFFF
|
|
716
769
|
);
|
|
@@ -1,6 +1,27 @@
|
|
|
1
1
|
|
|
2
2
|
$tokens-dark: (
|
|
3
|
+
'theme-shadow-opacity': 0.6,
|
|
3
4
|
'theme-shadow-color': rgba(0, 0, 0, 0.6),
|
|
5
|
+
'theme-border-style-focus-high-main': 3px dashed #FF8C00,
|
|
6
|
+
'theme-border-style-focus-high-contrast': 3px dashed #FF8C00,
|
|
7
|
+
'theme-border-style-focus-low-main': 2px solid #FF8C00,
|
|
8
|
+
'theme-border-style-focus-low-contrast': 2px solid #FF8C00,
|
|
9
|
+
'theme-border-style-active-main': 4px dashed #5992ED,
|
|
10
|
+
'theme-border-style-active-contrast': 4px dashed #5992ED,
|
|
11
|
+
'theme-border-style-grabbing-main': 2px solid #81AEFC,
|
|
12
|
+
'theme-border-style-grabbing-contrast': 2px solid #81AEFC,
|
|
13
|
+
'theme-border-style-dropzone-main': 1px dashed #81AEFC,
|
|
14
|
+
'theme-border-style-dropzone-contrast': 1px dashed #81AEFC,
|
|
15
|
+
'theme-shadow-style-level-0': 0 0 0 0 rgba(0, 0, 0, 0.6), 0 0 0 0 rgba(0, 0, 0, 0.6),
|
|
16
|
+
'theme-shadow-style-level-1': 0 1px 1px 0 rgba(0, 0, 0, 0.6), 0 0 4px 0 rgba(0, 0, 0, 0.6),
|
|
17
|
+
'theme-shadow-style-level-2': 0 4px 4px 0 rgba(0, 0, 0, 0.6), 0 0 8px 0 rgba(0, 0, 0, 0.6),
|
|
18
|
+
'theme-shadow-style-level-3': 0 8px 8px 0 rgba(0, 0, 0, 0.6), 0 0 12px 0 rgba(0, 0, 0, 0.6),
|
|
19
|
+
'theme-shadow-style-level-4': 0 12px 12px 0 rgba(0, 0, 0, 0.6), 0 0 16px 0 rgba(0, 0, 0, 0.6),
|
|
20
|
+
'theme-shadow-style-disabled': 0 0 0 0 rgba(0, 0, 0, 0.6), 0 0 0 0 rgba(0, 0, 0, 0.6),
|
|
21
|
+
'theme-shadow-style-hover-highlight': 0 0 4px 0 rgba(0, 0, 0, 0.6),
|
|
22
|
+
'theme-shadow-style-pressed': inset 1px 1px 8px 0 rgba(0, 0, 0, 0.5),
|
|
23
|
+
'theme-shadow-style-grabbing-main': 0 12px 12px 0 rgba(129, 174, 252, 0.6), 0 0 16px 0 rgba(129, 174, 252, 0.6),
|
|
24
|
+
'theme-shadow-style-grabbing-contrast': 0 12px 12px 0 rgba(129, 174, 252, 0.6), 0 0 16px 0 rgba(129, 174, 252, 0.6),
|
|
4
25
|
'theme-text-main-base': #FCFCFC,
|
|
5
26
|
'theme-text-main-alternative': #CCCCCC,
|
|
6
27
|
'theme-text-contrast-base': #FCFCFC,
|
|
@@ -9,10 +30,6 @@ $tokens-dark: (
|
|
|
9
30
|
'theme-surface-main-alternative': #1C1D1F,
|
|
10
31
|
'theme-surface-contrast-base': #2D2E2F,
|
|
11
32
|
'theme-surface-contrast-alternative': #1C1D1F,
|
|
12
|
-
'theme-surface-text-main-base': #FCFCFC,
|
|
13
|
-
'theme-surface-text-main-alternative': #FCFCFC,
|
|
14
|
-
'theme-surface-text-contrast-base': #FCFCFC,
|
|
15
|
-
'theme-surface-text-contrast-alternative': #FCFCFC,
|
|
16
33
|
'theme-border-base': #4A4A4A,
|
|
17
34
|
'theme-border-alternative': #757575,
|
|
18
35
|
'theme-interactive-main': #81AEFC,
|
|
@@ -23,28 +40,32 @@ $tokens-dark: (
|
|
|
23
40
|
'theme-cta-contrast': #21C834,
|
|
24
41
|
'theme-cta-text-main': #000000,
|
|
25
42
|
'theme-cta-text-contrast': #000000,
|
|
26
|
-
'theme-success-main': #538200,
|
|
27
|
-
'theme-success-text': #FFFFFF,
|
|
28
|
-
'theme-alert-main': #FFCD07,
|
|
29
|
-
'theme-alert-text': #000000,
|
|
30
|
-
'theme-error-main': #E52207,
|
|
31
|
-
'theme-error-text': #FFFFFF,
|
|
32
43
|
'theme-disabled-main': #A9AEB1,
|
|
33
44
|
'theme-disabled-contrast': #A9AEB1,
|
|
34
|
-
'theme-visited-main': #
|
|
35
|
-
'theme-visited-contrast': #
|
|
36
|
-
'theme-hover-bright': rgba(
|
|
37
|
-
'theme-hover-dim': rgba(
|
|
38
|
-
'theme-
|
|
45
|
+
'theme-visited-main': #98AFD2,
|
|
46
|
+
'theme-visited-contrast': #98AFD2,
|
|
47
|
+
'theme-hover-bright': rgba(212, 229, 255, 0.5),
|
|
48
|
+
'theme-hover-dim': rgba(12, 50, 111, 0.6),
|
|
49
|
+
'theme-hover-main-text': rgba(12, 50, 111, 0.6),
|
|
50
|
+
'theme-hover-main-surface': rgba(212, 229, 255, 0.5),
|
|
51
|
+
'theme-hover-contrast-text': rgba(12, 50, 111, 0.6),
|
|
52
|
+
'theme-hover-contrast-surface': rgba(212, 229, 255, 0.5),
|
|
53
|
+
'theme-focus-main': #FF8C00,
|
|
39
54
|
'theme-focus-contrast': #FF8C00,
|
|
40
55
|
'theme-active-main': #5992ED,
|
|
41
56
|
'theme-active-contrast': #5992ED,
|
|
42
57
|
'theme-active-text-main': #000000,
|
|
43
58
|
'theme-active-text-contrast': #000000,
|
|
44
|
-
'theme-selected-main': #
|
|
45
|
-
'theme-selected-contrast': #
|
|
46
|
-
'theme-selected-text-main': #
|
|
47
|
-
'theme-selected-text-contrast': #
|
|
59
|
+
'theme-selected-main': #ADCDFF,
|
|
60
|
+
'theme-selected-contrast': #ADCDFF,
|
|
61
|
+
'theme-selected-text-main': #000000,
|
|
62
|
+
'theme-selected-text-contrast': #000000,
|
|
63
|
+
'theme-grabbing-main': #81AEFC,
|
|
64
|
+
'theme-grabbing-contrast': #81AEFC,
|
|
65
|
+
'theme-dropzone-main': #81AEFC,
|
|
66
|
+
'theme-dropzone-contrast': #81AEFC,
|
|
67
|
+
'theme-dropzone-active-main': #81AEFC,
|
|
68
|
+
'theme-dropzone-active-contrast': #81AEFC,
|
|
48
69
|
'theme-on-main': #155BCB,
|
|
49
70
|
'theme-on-contrast': #155BCB,
|
|
50
71
|
'theme-on-text-main': #FFFFFF,
|
|
@@ -52,5 +73,11 @@ $tokens-dark: (
|
|
|
52
73
|
'theme-off-main': #636363,
|
|
53
74
|
'theme-off-contrast': #636363,
|
|
54
75
|
'theme-off-text-main': #FFFFFF,
|
|
55
|
-
'theme-off-text-contrast': #FFFFFF
|
|
76
|
+
'theme-off-text-contrast': #FFFFFF,
|
|
77
|
+
'theme-success-main': #538200,
|
|
78
|
+
'theme-success-text-main': #FFFFFF,
|
|
79
|
+
'theme-alert-main': #FFCD07,
|
|
80
|
+
'theme-alert-text-main': #000000,
|
|
81
|
+
'theme-error-main': #E52207,
|
|
82
|
+
'theme-error-text-main': #FFFFFF
|
|
56
83
|
);
|
|
@@ -1,6 +1,27 @@
|
|
|
1
1
|
|
|
2
2
|
$tokens-light: (
|
|
3
|
+
'theme-shadow-opacity': 0.2,
|
|
3
4
|
'theme-shadow-color': rgba(0, 0, 0, 0.2),
|
|
5
|
+
'theme-border-style-focus-high-main': 3px dashed #DA680B,
|
|
6
|
+
'theme-border-style-focus-high-contrast': 3px dashed #FF8C00,
|
|
7
|
+
'theme-border-style-focus-low-main': 2px solid #DA680B,
|
|
8
|
+
'theme-border-style-focus-low-contrast': 2px solid #FF8C00,
|
|
9
|
+
'theme-border-style-active-main': 4px solid #0C326F,
|
|
10
|
+
'theme-border-style-active-contrast': 4px solid #81AEFC,
|
|
11
|
+
'theme-border-style-grabbing-main': 2px solid #0040B4,
|
|
12
|
+
'theme-border-style-grabbing-contrast': 2px solid #ADCDFF,
|
|
13
|
+
'theme-border-style-dropzone-main': 1px dashed #0040B4,
|
|
14
|
+
'theme-border-style-dropzone-contrast': 1px dashed #ADCDFF,
|
|
15
|
+
'theme-shadow-style-level-0': 0 0 0 0 rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(0, 0, 0, 0.2),
|
|
16
|
+
'theme-shadow-style-level-1': 0 1px 1px 0 rgba(0, 0, 0, 0.2), 0 0 4px 0 rgba(0, 0, 0, 0.2),
|
|
17
|
+
'theme-shadow-style-level-2': 0 4px 4px 0 rgba(0, 0, 0, 0.2), 0 0 8px 0 rgba(0, 0, 0, 0.2),
|
|
18
|
+
'theme-shadow-style-level-3': 0 8px 8px 0 rgba(0, 0, 0, 0.2), 0 0 12px 0 rgba(0, 0, 0, 0.2),
|
|
19
|
+
'theme-shadow-style-level-4': 0 12px 12px 0 rgba(0, 0, 0, 0.2), 0 0 16px 0 rgba(0, 0, 0, 0.2),
|
|
20
|
+
'theme-shadow-style-disabled': 0 0 0 0 rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(0, 0, 0, 0.2),
|
|
21
|
+
'theme-shadow-style-hover-highlight': 0 0 4px 0 rgba(0, 0, 0, 0.2),
|
|
22
|
+
'theme-shadow-style-pressed': inset 1px 1px 8px 0 rgba(0, 0, 0, 0.5),
|
|
23
|
+
'theme-shadow-style-grabbing-main': 0 12px 12px 0 rgba(0, 64, 180, 0.2), 0 0 16px 0 rgba(0, 64, 180, 0.2),
|
|
24
|
+
'theme-shadow-style-grabbing-contrast': 0 12px 12px 0 rgba(173, 205, 255, 0.2), 0 0 16px 0 rgba(173, 205, 255, 0.2),
|
|
4
25
|
'theme-text-main-base': #1B1B1B,
|
|
5
26
|
'theme-text-main-alternative': #636363,
|
|
6
27
|
'theme-text-contrast-base': #FCFCFC,
|
|
@@ -9,10 +30,6 @@ $tokens-light: (
|
|
|
9
30
|
'theme-surface-main-alternative': #F0F0F0,
|
|
10
31
|
'theme-surface-contrast-base': #252F3E,
|
|
11
32
|
'theme-surface-contrast-alternative': #2F4668,
|
|
12
|
-
'theme-surface-text-main-base': #1B1B1B,
|
|
13
|
-
'theme-surface-text-main-alternative': #1B1B1B,
|
|
14
|
-
'theme-surface-text-contrast-base': #FCFCFC,
|
|
15
|
-
'theme-surface-text-contrast-alternative': #FCFCFC,
|
|
16
33
|
'theme-border-base': #CCCCCC,
|
|
17
34
|
'theme-border-alternative': #888888,
|
|
18
35
|
'theme-interactive-main': #0040B4,
|
|
@@ -23,18 +40,16 @@ $tokens-light: (
|
|
|
23
40
|
'theme-cta-contrast': #70E17B,
|
|
24
41
|
'theme-cta-text-main': #FFFFFF,
|
|
25
42
|
'theme-cta-text-contrast': #000000,
|
|
26
|
-
'theme-success-main': #538200,
|
|
27
|
-
'theme-success-text': #FFFFFF,
|
|
28
|
-
'theme-alert-main': #FFCD07,
|
|
29
|
-
'theme-alert-text': #000000,
|
|
30
|
-
'theme-error-main': #E52207,
|
|
31
|
-
'theme-error-text': #FFFFFF,
|
|
32
43
|
'theme-disabled-main': #4A4A4A,
|
|
33
44
|
'theme-disabled-contrast': #CCCCCC,
|
|
34
45
|
'theme-visited-main': #2F4668,
|
|
35
46
|
'theme-visited-contrast': #C5D4EB,
|
|
36
|
-
'theme-hover-bright': rgba(212, 229, 255, 0.
|
|
37
|
-
'theme-hover-dim': rgba(12, 50, 111, 0.
|
|
47
|
+
'theme-hover-bright': rgba(212, 229, 255, 0.5),
|
|
48
|
+
'theme-hover-dim': rgba(12, 50, 111, 0.6),
|
|
49
|
+
'theme-hover-main-text': rgba(212, 229, 255, 0.5),
|
|
50
|
+
'theme-hover-main-surface': rgba(12, 50, 111, 0.6),
|
|
51
|
+
'theme-hover-contrast-text': rgba(12, 50, 111, 0.6),
|
|
52
|
+
'theme-hover-contrast-surface': rgba(212, 229, 255, 0.5),
|
|
38
53
|
'theme-focus-main': #DA680B,
|
|
39
54
|
'theme-focus-contrast': #FF8C00,
|
|
40
55
|
'theme-active-main': #0C326F,
|
|
@@ -45,6 +60,12 @@ $tokens-light: (
|
|
|
45
60
|
'theme-selected-contrast': #5992ED,
|
|
46
61
|
'theme-selected-text-main': #FFFFFF,
|
|
47
62
|
'theme-selected-text-contrast': #000000,
|
|
63
|
+
'theme-grabbing-main': #0040B4,
|
|
64
|
+
'theme-grabbing-contrast': #ADCDFF,
|
|
65
|
+
'theme-dropzone-main': #0040B4,
|
|
66
|
+
'theme-dropzone-contrast': #ADCDFF,
|
|
67
|
+
'theme-dropzone-active-main': #0040B4,
|
|
68
|
+
'theme-dropzone-active-contrast': #ADCDFF,
|
|
48
69
|
'theme-on-main': #5992ED,
|
|
49
70
|
'theme-on-contrast': #2670E8,
|
|
50
71
|
'theme-on-text-main': #000000,
|
|
@@ -52,5 +73,11 @@ $tokens-light: (
|
|
|
52
73
|
'theme-off-main': #888888,
|
|
53
74
|
'theme-off-contrast': #757575,
|
|
54
75
|
'theme-off-text-main': #000000,
|
|
55
|
-
'theme-off-text-contrast': #FFFFFF
|
|
76
|
+
'theme-off-text-contrast': #FFFFFF,
|
|
77
|
+
'theme-success-main': #538200,
|
|
78
|
+
'theme-success-text-main': #FFFFFF,
|
|
79
|
+
'theme-alert-main': #FFCD07,
|
|
80
|
+
'theme-alert-text-main': #000000,
|
|
81
|
+
'theme-error-main': #E52207,
|
|
82
|
+
'theme-error-text-main': #FFFFFF
|
|
56
83
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@govbr-ds/tokens",
|
|
3
|
-
"version": "4.0.0-next.
|
|
3
|
+
"version": "4.0.0-next.6",
|
|
4
4
|
"description": "Tokens do Padrão Digital de Governo",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"design system",
|
|
@@ -29,7 +29,8 @@
|
|
|
29
29
|
"transform": "run-p transform:global transform:light transform:dark",
|
|
30
30
|
"transform:dark": "token-transformer src/figma/tokens.json src/style-dictionary/themes/dark.json dark --resolveReferences false",
|
|
31
31
|
"transform:global": "token-transformer src/figma/tokens.json src/style-dictionary/tokens.json global --resolveReferences false",
|
|
32
|
-
"transform:light": "token-transformer src/figma/tokens.json src/style-dictionary/themes/light.json light --resolveReferences false"
|
|
32
|
+
"transform:light": "token-transformer src/figma/tokens.json src/style-dictionary/themes/light.json light --resolveReferences false",
|
|
33
|
+
"start": "run-s transform compile"
|
|
33
34
|
},
|
|
34
35
|
"dependencies": {
|
|
35
36
|
"@tokens-studio/sd-transforms": "^0.12.2",
|