@govbr-ds/tokens 4.0.0-next.3 → 4.0.0-next.5
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 +47 -19
- package/dist/css/themes/light.css +40 -12
- package/dist/css/tokens.css +117 -60
- package/dist/js/themes/dark.js +47 -19
- package/dist/js/themes/light.js +40 -12
- package/dist/js/tokens.js +140 -83
- package/dist/json/themes/dark.json +1616 -596
- package/dist/json/themes/light.json +1304 -284
- package/dist/json/tokens.json +6763 -2038
- package/dist/scss/_tokens.scss +118 -63
- package/dist/scss/themes/_dark.scss +48 -20
- package/dist/scss/themes/_light.scss +41 -13
- package/package.json +4 -3
- package/src/figma/tokens.json +1062 -252
- package/src/figma/variables/base14.json +62 -0
- package/src/figma/variables/color.json +2 -2
- package/src/figma/variables/dark.json +314 -0
- package/src/figma/variables/elevation.json +232 -0
- package/src/figma/variables/grid.json +5 -5
- 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/iconography.json +16 -0
- package/src/figma/variables/light.json +314 -0
- package/src/figma/variables/manifest.json +11 -4
- package/src/figma/variables/motion.json +112 -0
- package/src/figma/variables/state.json +238 -0
- package/src/figma/variables/surface.json +2 -2
- package/src/figma/variables/typography.json +6 -12
- package/src/style-dictionary/themes/dark.json +513 -3060
- package/src/style-dictionary/themes/light.json +507 -3054
- package/src/style-dictionary/tokens.json +292 -132
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,
|
|
@@ -464,12 +464,8 @@ $tokens: (
|
|
|
464
464
|
'color-magenta-vivid-80': #4F172E,
|
|
465
465
|
'typography-font-family-noto-sans': 'Noto Sans',
|
|
466
466
|
'typography-font-family-noto-serif': 'Noto Serif',
|
|
467
|
-
'typography-font-family-noto-mono': 'Noto Mono',
|
|
467
|
+
'typography-font-family-noto-mono': 'Noto Sans Mono',
|
|
468
468
|
'typography-font-family-rawline-sans': Rawline,
|
|
469
|
-
// Selecione 'solid' para o funcionamento adequado.
|
|
470
|
-
'typography-font-family-font-awesome-free': 'Font Awesome 6 Free',
|
|
471
|
-
// Selecione 'solid' para o funcionamento adequado.
|
|
472
|
-
'typography-font-family-font-awesome-brands': 'Font Awesome 6 Brands',
|
|
473
469
|
'typography-font-weight-thin': 100,
|
|
474
470
|
'typography-font-weight-extra-light': 200,
|
|
475
471
|
'typography-font-weight-light': 300,
|
|
@@ -508,9 +504,13 @@ $tokens: (
|
|
|
508
504
|
'typography-font-style-placeholder': 400 italic 1.125rem/1 'Noto Sans',
|
|
509
505
|
'typography-font-style-paragraph': 400 16px/1.5 'Noto Sans',
|
|
510
506
|
'typography-font-style-input': 500 16px/1.5 'Noto Sans',
|
|
511
|
-
'typography-font-style-code': 400 16px/1.5 'Noto Mono',
|
|
507
|
+
'typography-font-style-code': 400 16px/1.5 'Noto Sans Mono',
|
|
512
508
|
'typography-font-style-label': 600 0.889rem/1.5 'Noto Sans',
|
|
513
509
|
'typography-font-style-basic': 400 16px/1.5 'Noto Sans',
|
|
510
|
+
'iconography-font-family-font-awesome-free': 'Font Awesome 6 Free',
|
|
511
|
+
'iconography-font-family-font-awesome-brands': 'Font Awesome 6 Brands',
|
|
512
|
+
'iconography-icon-style-solid': Solid 16px/1 'Font Awesome 6 Free',
|
|
513
|
+
'iconography-icon-style-brand': 400 16px/1 'Font Awesome 6 Brands',
|
|
514
514
|
'spacing-scale': 8,
|
|
515
515
|
'spacing-none': 0,
|
|
516
516
|
'spacing-layout-01': 8px,
|
|
@@ -548,7 +548,7 @@ $tokens: (
|
|
|
548
548
|
'surface-opacity-09': 0.9,
|
|
549
549
|
'surface-opacity-full': 1,
|
|
550
550
|
'surface-overlay-focus': rgba(0, 0, 0, 0.4),
|
|
551
|
-
'surface-overlay-readability': linear-gradient
|
|
551
|
+
'surface-overlay-readability': linear-gradient(0deg, #000000 0%, rgba(0, 0, 0, 0.4) 100%),
|
|
552
552
|
'grid-breakpoint-small-main': 100%,
|
|
553
553
|
'grid-breakpoint-small-extra': 576px,
|
|
554
554
|
'grid-breakpoint-medium-main': 992px,
|
|
@@ -575,32 +575,58 @@ $tokens: (
|
|
|
575
575
|
'elevation-color': #000000,
|
|
576
576
|
'elevation-opacity-bright': 0.2,
|
|
577
577
|
'elevation-opacity-dim': 0.6,
|
|
578
|
-
'elevation-
|
|
579
|
-
'elevation-dim-rgba': rgba(0, 0, 0, 0.6),
|
|
578
|
+
'elevation-offset-scale': 4,
|
|
580
579
|
'elevation-offset-none': 0,
|
|
581
|
-
'elevation-offset-01':
|
|
582
|
-
'elevation-offset-02':
|
|
583
|
-
'elevation-offset-03':
|
|
584
|
-
'elevation-offset-04':
|
|
585
|
-
'elevation-offset-05':
|
|
580
|
+
'elevation-offset-01': 1,
|
|
581
|
+
'elevation-offset-02': 4,
|
|
582
|
+
'elevation-offset-03': 8,
|
|
583
|
+
'elevation-offset-04': 12,
|
|
584
|
+
'elevation-offset-05': 16,
|
|
585
|
+
'elevation-blur-scale': 4,
|
|
586
586
|
'elevation-blur-none': 0,
|
|
587
|
-
'elevation-blur-01':
|
|
588
|
-
'elevation-blur-02':
|
|
589
|
-
'elevation-blur-03':
|
|
590
|
-
'elevation-blur-04':
|
|
591
|
-
'elevation-blur-05':
|
|
592
|
-
'elevation-
|
|
593
|
-
'elevation-
|
|
594
|
-
'elevation-
|
|
595
|
-
'elevation-
|
|
596
|
-
'elevation-
|
|
587
|
+
'elevation-blur-01': 1,
|
|
588
|
+
'elevation-blur-02': 4,
|
|
589
|
+
'elevation-blur-03': 8,
|
|
590
|
+
'elevation-blur-04': 12,
|
|
591
|
+
'elevation-blur-05': 16,
|
|
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),
|
|
629
|
+
'motion-duration-scale': 50ms,
|
|
604
630
|
'motion-duration-none': 0,
|
|
605
631
|
'motion-duration-fast-01': 50ms,
|
|
606
632
|
'motion-duration-fast-02': 100ms,
|
|
@@ -618,28 +644,30 @@ $tokens: (
|
|
|
618
644
|
'motion-duration-very-slow-02': 800ms,
|
|
619
645
|
'motion-duration-very-slow-03': 900ms,
|
|
620
646
|
'motion-duration-very-slow-04': 1000ms,
|
|
621
|
-
'state-disabled-opacity': 0.
|
|
622
|
-
'state-hover-bright
|
|
623
|
-
'state-hover-dim
|
|
624
|
-
'state-hover-
|
|
625
|
-
'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,
|
|
626
655
|
'state-hover-motion-out-easing': cubic-bezier(0.42, 0, 1, 1),
|
|
627
656
|
'state-hover-motion-out-duration': 100ms,
|
|
628
|
-
'state-pressed-shadow-offset':
|
|
629
|
-
'state-pressed-shadow-blur':
|
|
657
|
+
'state-pressed-shadow-offset': 1,
|
|
658
|
+
'state-pressed-shadow-blur': 8,
|
|
630
659
|
'state-pressed-shadow-opacity': 0.5,
|
|
631
|
-
'state-pressed-motion-in-easing': cubic-bezier(0, 0, 0.58, 1),
|
|
632
|
-
'state-pressed-motion-in-duration':
|
|
633
|
-
'state-pressed-motion-out-easing': cubic-bezier(0
|
|
634
|
-
'state-pressed-motion-out-duration':
|
|
635
|
-
'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),
|
|
636
668
|
'state-focus-motion-in-duration': 200ms,
|
|
637
669
|
'state-focus-motion-out-easing': cubic-bezier(0, 0, 0.58, 1),
|
|
638
670
|
'state-focus-motion-out-duration': 100ms,
|
|
639
|
-
'state-focus-spacing': 4px,
|
|
640
|
-
'state-focus-border-width-base': 3px,
|
|
641
|
-
'state-focus-border-width-alternative': 2px,
|
|
642
|
-
'state-focus-border-style': dashed,
|
|
643
671
|
'state-active-border-width': 4px,
|
|
644
672
|
'state-active-motion-in-easing': cubic-bezier(0, 0, 0.58, 1),
|
|
645
673
|
'state-active-motion-in-duration': 150ms,
|
|
@@ -650,15 +678,36 @@ $tokens: (
|
|
|
650
678
|
'state-selected-motion-out-easing': cubic-bezier(0.42, 0, 1, 1),
|
|
651
679
|
'state-selected-motion-out-duration': 100ms,
|
|
652
680
|
'state-grabbing-border-width': 2px,
|
|
653
|
-
'state-grabbing-rotation':
|
|
681
|
+
'state-grabbing-rotation': 5deg,
|
|
654
682
|
'state-grabbing-opacity': 0.7,
|
|
655
683
|
'state-dropzone-border-width': 1px,
|
|
656
|
-
'state-dropzone-
|
|
657
|
-
'state-
|
|
658
|
-
'state-on-motion-
|
|
659
|
-
'state-
|
|
660
|
-
'state-off-motion-
|
|
661
|
-
'
|
|
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,
|
|
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)",
|
|
662
711
|
'theme-text-main-base': #1B1B1B,
|
|
663
712
|
'theme-text-main-alternative': #636363,
|
|
664
713
|
'theme-text-contrast-base': #FCFCFC,
|
|
@@ -667,10 +716,6 @@ $tokens: (
|
|
|
667
716
|
'theme-surface-main-alternative': #F0F0F0,
|
|
668
717
|
'theme-surface-contrast-base': #252F3E,
|
|
669
718
|
'theme-surface-contrast-alternative': #2F4668,
|
|
670
|
-
'theme-surface-text-main-base': #1B1B1B,
|
|
671
|
-
'theme-surface-text-main-alternative': #1B1B1B,
|
|
672
|
-
'theme-surface-text-contrast-base': #FCFCFC,
|
|
673
|
-
'theme-surface-text-contrast-alternative': #FCFCFC,
|
|
674
719
|
'theme-border-base': #CCCCCC,
|
|
675
720
|
'theme-border-alternative': #888888,
|
|
676
721
|
'theme-interactive-main': #0040B4,
|
|
@@ -681,18 +726,16 @@ $tokens: (
|
|
|
681
726
|
'theme-cta-contrast': #70E17B,
|
|
682
727
|
'theme-cta-text-main': #FFFFFF,
|
|
683
728
|
'theme-cta-text-contrast': #000000,
|
|
684
|
-
'theme-success-main': #538200,
|
|
685
|
-
'theme-success-text': #FFFFFF,
|
|
686
|
-
'theme-alert-main': #FFCD07,
|
|
687
|
-
'theme-alert-text': #000000,
|
|
688
|
-
'theme-error-main': #E52207,
|
|
689
|
-
'theme-error-text': #FFFFFF,
|
|
690
729
|
'theme-disabled-main': #4A4A4A,
|
|
691
730
|
'theme-disabled-contrast': #CCCCCC,
|
|
692
731
|
'theme-visited-main': #2F4668,
|
|
693
732
|
'theme-visited-contrast': #C5D4EB,
|
|
694
|
-
'theme-hover-bright': rgba(212, 229, 255, 0.
|
|
695
|
-
'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),
|
|
696
739
|
'theme-focus-main': #DA680B,
|
|
697
740
|
'theme-focus-contrast': #FF8C00,
|
|
698
741
|
'theme-active-main': #0C326F,
|
|
@@ -703,6 +746,12 @@ $tokens: (
|
|
|
703
746
|
'theme-selected-contrast': #5992ED,
|
|
704
747
|
'theme-selected-text-main': #FFFFFF,
|
|
705
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,
|
|
706
755
|
'theme-on-main': #5992ED,
|
|
707
756
|
'theme-on-contrast': #2670E8,
|
|
708
757
|
'theme-on-text-main': #000000,
|
|
@@ -710,5 +759,11 @@ $tokens: (
|
|
|
710
759
|
'theme-off-main': #888888,
|
|
711
760
|
'theme-off-contrast': #757575,
|
|
712
761
|
'theme-off-text-main': #000000,
|
|
713
|
-
'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
|
|
714
769
|
);
|
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
|
|
2
2
|
$tokens-dark: (
|
|
3
|
+
'theme-shadow-opacity': 0.6,
|
|
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),
|
|
3
25
|
'theme-text-main-base': #FCFCFC,
|
|
4
26
|
'theme-text-main-alternative': #CCCCCC,
|
|
5
27
|
'theme-text-contrast-base': #FCFCFC,
|
|
@@ -8,10 +30,6 @@ $tokens-dark: (
|
|
|
8
30
|
'theme-surface-main-alternative': #1C1D1F,
|
|
9
31
|
'theme-surface-contrast-base': #2D2E2F,
|
|
10
32
|
'theme-surface-contrast-alternative': #1C1D1F,
|
|
11
|
-
'theme-surface-text-main-base': #FCFCFC,
|
|
12
|
-
'theme-surface-text-main-alternative': #FCFCFC,
|
|
13
|
-
'theme-surface-text-contrast-base': #FCFCFC,
|
|
14
|
-
'theme-surface-text-contrast-alternative': #FCFCFC,
|
|
15
33
|
'theme-border-base': #4A4A4A,
|
|
16
34
|
'theme-border-alternative': #757575,
|
|
17
35
|
'theme-interactive-main': #81AEFC,
|
|
@@ -22,28 +40,32 @@ $tokens-dark: (
|
|
|
22
40
|
'theme-cta-contrast': #21C834,
|
|
23
41
|
'theme-cta-text-main': #000000,
|
|
24
42
|
'theme-cta-text-contrast': #000000,
|
|
25
|
-
'theme-success-main': #538200,
|
|
26
|
-
'theme-success-text': #FFFFFF,
|
|
27
|
-
'theme-alert-main': #FFCD07,
|
|
28
|
-
'theme-alert-text': #000000,
|
|
29
|
-
'theme-error-main': #E52207,
|
|
30
|
-
'theme-error-text': #FFFFFF,
|
|
31
43
|
'theme-disabled-main': #A9AEB1,
|
|
32
44
|
'theme-disabled-contrast': #A9AEB1,
|
|
33
|
-
'theme-visited-main': #
|
|
34
|
-
'theme-visited-contrast': #
|
|
35
|
-
'theme-hover-bright': rgba(
|
|
36
|
-
'theme-hover-dim': rgba(
|
|
37
|
-
'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,
|
|
38
54
|
'theme-focus-contrast': #FF8C00,
|
|
39
55
|
'theme-active-main': #5992ED,
|
|
40
56
|
'theme-active-contrast': #5992ED,
|
|
41
57
|
'theme-active-text-main': #000000,
|
|
42
58
|
'theme-active-text-contrast': #000000,
|
|
43
|
-
'theme-selected-main': #
|
|
44
|
-
'theme-selected-contrast': #
|
|
45
|
-
'theme-selected-text-main': #
|
|
46
|
-
'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,
|
|
47
69
|
'theme-on-main': #155BCB,
|
|
48
70
|
'theme-on-contrast': #155BCB,
|
|
49
71
|
'theme-on-text-main': #FFFFFF,
|
|
@@ -51,5 +73,11 @@ $tokens-dark: (
|
|
|
51
73
|
'theme-off-main': #636363,
|
|
52
74
|
'theme-off-contrast': #636363,
|
|
53
75
|
'theme-off-text-main': #FFFFFF,
|
|
54
|
-
'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
|
|
55
83
|
);
|
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
|
|
2
2
|
$tokens-light: (
|
|
3
|
+
'theme-shadow-opacity': 0.2,
|
|
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),
|
|
3
25
|
'theme-text-main-base': #1B1B1B,
|
|
4
26
|
'theme-text-main-alternative': #636363,
|
|
5
27
|
'theme-text-contrast-base': #FCFCFC,
|
|
@@ -8,10 +30,6 @@ $tokens-light: (
|
|
|
8
30
|
'theme-surface-main-alternative': #F0F0F0,
|
|
9
31
|
'theme-surface-contrast-base': #252F3E,
|
|
10
32
|
'theme-surface-contrast-alternative': #2F4668,
|
|
11
|
-
'theme-surface-text-main-base': #1B1B1B,
|
|
12
|
-
'theme-surface-text-main-alternative': #1B1B1B,
|
|
13
|
-
'theme-surface-text-contrast-base': #FCFCFC,
|
|
14
|
-
'theme-surface-text-contrast-alternative': #FCFCFC,
|
|
15
33
|
'theme-border-base': #CCCCCC,
|
|
16
34
|
'theme-border-alternative': #888888,
|
|
17
35
|
'theme-interactive-main': #0040B4,
|
|
@@ -22,18 +40,16 @@ $tokens-light: (
|
|
|
22
40
|
'theme-cta-contrast': #70E17B,
|
|
23
41
|
'theme-cta-text-main': #FFFFFF,
|
|
24
42
|
'theme-cta-text-contrast': #000000,
|
|
25
|
-
'theme-success-main': #538200,
|
|
26
|
-
'theme-success-text': #FFFFFF,
|
|
27
|
-
'theme-alert-main': #FFCD07,
|
|
28
|
-
'theme-alert-text': #000000,
|
|
29
|
-
'theme-error-main': #E52207,
|
|
30
|
-
'theme-error-text': #FFFFFF,
|
|
31
43
|
'theme-disabled-main': #4A4A4A,
|
|
32
44
|
'theme-disabled-contrast': #CCCCCC,
|
|
33
45
|
'theme-visited-main': #2F4668,
|
|
34
46
|
'theme-visited-contrast': #C5D4EB,
|
|
35
|
-
'theme-hover-bright': rgba(212, 229, 255, 0.
|
|
36
|
-
'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),
|
|
37
53
|
'theme-focus-main': #DA680B,
|
|
38
54
|
'theme-focus-contrast': #FF8C00,
|
|
39
55
|
'theme-active-main': #0C326F,
|
|
@@ -44,6 +60,12 @@ $tokens-light: (
|
|
|
44
60
|
'theme-selected-contrast': #5992ED,
|
|
45
61
|
'theme-selected-text-main': #FFFFFF,
|
|
46
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,
|
|
47
69
|
'theme-on-main': #5992ED,
|
|
48
70
|
'theme-on-contrast': #2670E8,
|
|
49
71
|
'theme-on-text-main': #000000,
|
|
@@ -51,5 +73,11 @@ $tokens-light: (
|
|
|
51
73
|
'theme-off-main': #888888,
|
|
52
74
|
'theme-off-contrast': #757575,
|
|
53
75
|
'theme-off-text-main': #000000,
|
|
54
|
-
'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
|
|
55
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.5",
|
|
4
4
|
"description": "Tokens do Padrão Digital de Governo",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"design system",
|
|
@@ -27,9 +27,10 @@
|
|
|
27
27
|
"clear": "rimraf ./dist",
|
|
28
28
|
"compile": "node build-tokens.js",
|
|
29
29
|
"transform": "run-p transform:global transform:light transform:dark",
|
|
30
|
-
"transform:dark": "token-transformer src/figma/tokens.json src/style-dictionary/themes/dark.json
|
|
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
|
|
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",
|