@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.
Files changed (34) hide show
  1. package/dist/css/themes/dark.css +47 -19
  2. package/dist/css/themes/light.css +40 -12
  3. package/dist/css/tokens.css +117 -60
  4. package/dist/js/themes/dark.js +47 -19
  5. package/dist/js/themes/light.js +40 -12
  6. package/dist/js/tokens.js +140 -83
  7. package/dist/json/themes/dark.json +1616 -596
  8. package/dist/json/themes/light.json +1304 -284
  9. package/dist/json/tokens.json +6763 -2038
  10. package/dist/scss/_tokens.scss +118 -63
  11. package/dist/scss/themes/_dark.scss +48 -20
  12. package/dist/scss/themes/_light.scss +41 -13
  13. package/package.json +4 -3
  14. package/src/figma/tokens.json +1062 -252
  15. package/src/figma/variables/base14.json +62 -0
  16. package/src/figma/variables/color.json +2 -2
  17. package/src/figma/variables/dark.json +314 -0
  18. package/src/figma/variables/elevation.json +232 -0
  19. package/src/figma/variables/grid.json +5 -5
  20. package/src/figma/variables/guideline/componente.json +24 -0
  21. package/src/figma/variables/guideline/fundamento.json +24 -0
  22. package/src/figma/variables/guideline/geral.json +20 -0
  23. package/src/figma/variables/guideline/manifest.json +21 -0
  24. package/src/figma/variables/guideline/padrao.json +24 -0
  25. package/src/figma/variables/iconography.json +16 -0
  26. package/src/figma/variables/light.json +314 -0
  27. package/src/figma/variables/manifest.json +11 -4
  28. package/src/figma/variables/motion.json +112 -0
  29. package/src/figma/variables/state.json +238 -0
  30. package/src/figma/variables/surface.json +2 -2
  31. package/src/figma/variables/typography.json +6 -12
  32. package/src/style-dictionary/themes/dark.json +513 -3060
  33. package/src/style-dictionary/themes/light.json +507 -3054
  34. package/src/style-dictionary/tokens.json +292 -132
package/dist/js/tokens.js CHANGED
@@ -291,7 +291,7 @@ export const colorCyanVivid70 = "#0E4F5C";
291
291
  export const colorCyanVivid80 = "#093B44";
292
292
  export const colorBlue5 = "#EFF6FB";
293
293
  export const colorBlue10 = "#DBE8FB";
294
- export const colorBlue20 = "#DBE8FB";
294
+ export const colorBlue20 = "#AACDEC";
295
295
  export const colorBlue30 = "#73B3E7";
296
296
  export const colorBlue40 = "#4F97D1";
297
297
  export const colorBlue50 = "#2378C3";
@@ -462,10 +462,8 @@ export const colorMagentaVivid70 = "#731F44";
462
462
  export const colorMagentaVivid80 = "#4F172E";
463
463
  export const typographyFontFamilyNotoSans = "'Noto Sans'";
464
464
  export const typographyFontFamilyNotoSerif = "'Noto Serif'";
465
- export const typographyFontFamilyNotoMono = "'Noto Mono'";
465
+ export const typographyFontFamilyNotoMono = "'Noto Sans Mono'";
466
466
  export const typographyFontFamilyRawlineSans = "Rawline";
467
- export const typographyFontFamilyFontAwesomeFree = "'Font Awesome 6 Free'"; // Selecione 'solid' para o funcionamento adequado.
468
- export const typographyFontFamilyFontAwesomeBrands = "'Font Awesome 6 Brands'"; // Selecione 'solid' para o funcionamento adequado.
469
467
  export const typographyFontWeightThin = 100;
470
468
  export const typographyFontWeightExtraLight = 200;
471
469
  export const typographyFontWeightLight = 300;
@@ -504,9 +502,13 @@ export const typographyFontStyleLegend = "600 1.125rem/1.5 'Noto Sans'";
504
502
  export const typographyFontStylePlaceholder = "400 italic 1.125rem/1 'Noto Sans'";
505
503
  export const typographyFontStyleParagraph = "400 16px/1.5 'Noto Sans'";
506
504
  export const typographyFontStyleInput = "500 16px/1.5 'Noto Sans'";
507
- export const typographyFontStyleCode = "400 16px/1.5 'Noto Mono'";
505
+ export const typographyFontStyleCode = "400 16px/1.5 'Noto Sans Mono'";
508
506
  export const typographyFontStyleLabel = "600 0.889rem/1.5 'Noto Sans'";
509
507
  export const typographyFontStyleBasic = "400 16px/1.5 'Noto Sans'";
508
+ export const iconographyFontFamilyFontAwesomeFree = "'Font Awesome 6 Free'";
509
+ export const iconographyFontFamilyFontAwesomeBrands = "'Font Awesome 6 Brands'";
510
+ export const iconographyIconStyleSolid = "Solid 16px/1 'Font Awesome 6 Free'";
511
+ export const iconographyIconStyleBrand = "400 16px/1 'Font Awesome 6 Brands'";
510
512
  export const spacingScale = 8;
511
513
  export const spacingNone = "0";
512
514
  export const spacingLayout01 = "8px";
@@ -544,7 +546,7 @@ export const surfaceOpacity08 = 0.8;
544
546
  export const surfaceOpacity09 = 0.9;
545
547
  export const surfaceOpacityFull = 1;
546
548
  export const surfaceOverlayFocus = "rgba(0, 0, 0, 0.4)";
547
- export const surfaceOverlayReadability = "linear-gradient (0deg, #000000 0%, rgba(0, 0, 0, 0.4) 100%)";
549
+ export const surfaceOverlayReadability = "linear-gradient(0deg, #000000 0%, rgba(0, 0, 0, 0.4) 100%)";
548
550
  export const gridBreakpointSmallMain = "100%";
549
551
  export const gridBreakpointSmallExtra = "576px";
550
552
  export const gridBreakpointMediumMain = "992px";
@@ -571,90 +573,139 @@ export const gridMarginLargeSpacious = "40px";
571
573
  export const elevationColor = "#000000";
572
574
  export const elevationOpacityBright = 0.2;
573
575
  export const elevationOpacityDim = 0.6;
574
- export const elevationBrightRgba = "rgba(0, 0, 0, 0.2)";
575
- export const elevationDimRgba = "rgba(0, 0, 0, 0.6)";
576
+ export const elevationOffsetScale = 4;
576
577
  export const elevationOffsetNone = 0;
577
- export const elevationOffset01 = "1px";
578
- export const elevationOffset02 = "4px";
579
- export const elevationOffset03 = "8px";
580
- export const elevationOffset04 = "12px";
581
- export const elevationOffset05 = "16px";
578
+ export const elevationOffset01 = 1;
579
+ export const elevationOffset02 = 4;
580
+ export const elevationOffset03 = 8;
581
+ export const elevationOffset04 = 12;
582
+ export const elevationOffset05 = 16;
583
+ export const elevationBlurScale = 4;
582
584
  export const elevationBlurNone = 0;
583
- export const elevationBlur01 = "1px";
584
- export const elevationBlur02 = "4px";
585
- export const elevationBlur03 = "8px";
586
- export const elevationBlur04 = "12px";
587
- export const elevationBlur05 = "16px";
588
- export const elevationOverlayFocusColor = "#000000";
589
- export const elevationOverlayFocusOpacity = 0.4;
590
- export const elevationOverlayLegibilityColor = "#000000";
591
- export const elevationOverlayLegibilityOpacityStart = 1;
592
- export const elevationOverlayLegibilityOpacityEnd = 0.4;
585
+ export const elevationBlur01 = 1;
586
+ export const elevationBlur02 = 4;
587
+ export const elevationBlur03 = 8;
588
+ export const elevationBlur04 = 12;
589
+ export const elevationBlur05 = 16;
590
+ export const elevationLevel0OffsetXCast = 0;
591
+ export const elevationLevel0OffsetXOcclusion = 0;
592
+ export const elevationLevel0OffsetYCast = 0;
593
+ export const elevationLevel0OffsetYOcclusion = 0;
594
+ export const elevationLevel0BlurCast = 0;
595
+ export const elevationLevel0BlurOcclusion = 0;
596
+ export const elevationLevel1OffsetXCast = 0;
597
+ export const elevationLevel1OffsetXOcclusion = 0;
598
+ export const elevationLevel1OffsetYCast = 1;
599
+ export const elevationLevel1OffsetYOcclusion = 0;
600
+ export const elevationLevel1BlurCast = 1;
601
+ export const elevationLevel1BlurOcclusion = 4;
602
+ export const elevationLevel2OffsetXCast = 0;
603
+ export const elevationLevel2OffsetXOcclusion = 0;
604
+ export const elevationLevel2OffsetYCast = 4;
605
+ export const elevationLevel2OffsetYOcclusion = 0;
606
+ export const elevationLevel2BlurCast = 4;
607
+ export const elevationLevel2BlurOcclusion = 8;
608
+ export const elevationLevel3OffsetXCast = 0;
609
+ export const elevationLevel3OffsetXOcclusion = 0;
610
+ export const elevationLevel3OffsetYCast = 8;
611
+ export const elevationLevel3OffsetYOcclusion = 0;
612
+ export const elevationLevel3BlurCast = 8;
613
+ export const elevationLevel3BlurOcclusion = 12;
614
+ export const elevationLevel4OffsetXCast = 0;
615
+ export const elevationLevel4OffsetXOcclusion = 0;
616
+ export const elevationLevel4OffsetYCast = 12;
617
+ export const elevationLevel4OffsetYOcclusion = 0;
618
+ export const elevationLevel4BlurCast = 12;
619
+ export const elevationLevel4BlurOcclusion = 16;
593
620
  export const motionEasingEase = "cubic-bezier(0.25, 0.1, 0.25, 1)";
594
621
  export const motionEasingEaseIn = "cubic-bezier(0.42, 0, 1, 1)";
595
622
  export const motionEasingEaseOut = "cubic-bezier(0, 0, 0.58, 1)";
596
623
  export const motionEasingEaseInOut = "cubic-bezier(0.42, 0, 0.58, 1)";
597
624
  export const motionEasingLinear = "cubic-bezier(0, 0, 1, 1)";
598
- export const motionEasingBounceOut = "cubic-bezier(0.25, 2.3, 0.57, -0.3)";
599
- export const motionEasingElasticOut = "cubic-bezier(0, 3, 0, 0.3)";
625
+ export const motionEasingBounceOut = "cubic-bezier(0.25, 2.1, 0.5, 0)";
626
+ export const motionEasingElasticOut = "cubic-bezier(0.7, 3.3, 0.3, 0)";
627
+ export const motionDurationScale = 50;
600
628
  export const motionDurationNone = 0;
601
- export const motionDurationFast01 = "50ms";
602
- export const motionDurationFast02 = "100ms";
603
- export const motionDurationFast03 = "150ms";
604
- export const motionDurationFast04 = "200ms";
605
- export const motionDurationModerate01 = "250ms";
606
- export const motionDurationModerate02 = "300ms";
607
- export const motionDurationModerate03 = "350ms";
608
- export const motionDurationModerate04 = "400ms";
609
- export const motionDurationSlow01 = "450ms";
610
- export const motionDurationSlow02 = "500ms";
611
- export const motionDurationSlow03 = "550ms";
612
- export const motionDurationSlow04 = "600ms";
613
- export const motionDurationVerySlow01 = "700ms";
614
- export const motionDurationVerySlow02 = "800ms";
615
- export const motionDurationVerySlow03 = "900ms";
616
- export const motionDurationVerySlow04 = "1000ms";
617
- export const stateDisabledOpacity = 0.4;
618
- export const stateHoverBrightOpacity = 0.6;
619
- export const stateHoverDimOpacity = 0.8;
620
- export const stateHoverMotionInEasing = "cubic-bezier(0, 0, 0.58, 1)";
621
- export const stateHoverMotionInDuration = "100ms";
629
+ export const motionDurationFast01 = 50;
630
+ export const motionDurationFast02 = 100;
631
+ export const motionDurationFast03 = 150;
632
+ export const motionDurationFast04 = 200;
633
+ export const motionDurationModerate01 = 250;
634
+ export const motionDurationModerate02 = 300;
635
+ export const motionDurationModerate03 = 350;
636
+ export const motionDurationModerate04 = 400;
637
+ export const motionDurationSlow01 = 450;
638
+ export const motionDurationSlow02 = 500;
639
+ export const motionDurationSlow03 = 550;
640
+ export const motionDurationSlow04 = 600;
641
+ export const motionDurationVerySlow01 = 700;
642
+ export const motionDurationVerySlow02 = 800;
643
+ export const motionDurationVerySlow03 = 900;
644
+ export const motionDurationVerySlow04 = 1000;
645
+ export const stateDisabledOpacity = 0.3;
646
+ export const stateHoverOpacityBright = 0.5;
647
+ export const stateHoverOpacityDim = 0.6;
648
+ export const stateHoverHighlightSize = "1.05";
649
+ export const stateHoverHighlightMotionEasing = "cubic-bezier(0.7, 3.3, 0.3, 0)";
650
+ export const stateHoverHighlightMotionDuration = 200;
651
+ export const stateHoverMotionInEasing = "cubic-bezier(0.42, 0, 1, 1)";
652
+ export const stateHoverMotionInDuration = 200;
622
653
  export const stateHoverMotionOutEasing = "cubic-bezier(0.42, 0, 1, 1)";
623
- export const stateHoverMotionOutDuration = "100ms";
624
- export const statePressedShadowOffset = "1px";
625
- export const statePressedShadowBlur = "8px";
654
+ export const stateHoverMotionOutDuration = 100;
655
+ export const statePressedShadowOffset = 1;
656
+ export const statePressedShadowBlur = 8;
626
657
  export const statePressedShadowOpacity = 0.5;
627
- export const statePressedMotionInEasing = "cubic-bezier(0, 0, 0.58, 1)";
628
- export const statePressedMotionInDuration = "150ms";
629
- export const statePressedMotionOutEasing = "cubic-bezier(0.42, 0, 1, 1)";
630
- export const statePressedMotionOutDuration = "100ms";
631
- export const stateFocusMotionInEasing = "cubic-bezier(0, 3, 0, 0.3)";
632
- export const stateFocusMotionInDuration = "200ms";
633
- export const stateFocusMotionOutEasing = "cubic-bezier(0, 0, 0.58, 1)";
634
- export const stateFocusMotionOutDuration = "100ms";
658
+ export const statePressedMotionInEasing = "cubic-bezier(0.42, 0, 0.58, 1)";
659
+ export const statePressedMotionInDuration = 100;
660
+ export const statePressedMotionOutEasing = "cubic-bezier(0, 0, 0.58, 1)";
661
+ export const statePressedMotionOutDuration = 50;
635
662
  export const stateFocusSpacing = "4px";
636
- export const stateFocusBorderWidthBase = "3px";
637
- export const stateFocusBorderWidthAlternative = "2px";
638
- export const stateFocusBorderStyle = "dashed";
663
+ export const stateFocusBorderWidthHigh = "3px";
664
+ export const stateFocusBorderWidthLow = "2px";
665
+ export const stateFocusMotionInEasing = "cubic-bezier(0.7, 3.3, 0.3, 0)";
666
+ export const stateFocusMotionInDuration = 200;
667
+ export const stateFocusMotionOutEasing = "cubic-bezier(0, 0, 0.58, 1)";
668
+ export const stateFocusMotionOutDuration = 100;
639
669
  export const stateActiveBorderWidth = "4px";
640
670
  export const stateActiveMotionInEasing = "cubic-bezier(0, 0, 0.58, 1)";
641
- export const stateActiveMotionInDuration = "150ms";
671
+ export const stateActiveMotionInDuration = 150;
642
672
  export const stateActiveMotionOutEasing = "cubic-bezier(0.42, 0, 1, 1)";
643
- export const stateActiveMotionOutDuration = "100ms";
673
+ export const stateActiveMotionOutDuration = 100;
644
674
  export const stateSelectedMotionInEasing = "cubic-bezier(0, 0, 0.58, 1)";
645
- export const stateSelectedMotionInDuration = "150ms";
675
+ export const stateSelectedMotionInDuration = 150;
646
676
  export const stateSelectedMotionOutEasing = "cubic-bezier(0.42, 0, 1, 1)";
647
- export const stateSelectedMotionOutDuration = "100ms";
677
+ export const stateSelectedMotionOutDuration = 100;
648
678
  export const stateGrabbingBorderWidth = "2px";
649
- export const stateGrabbingRotation = -5;
679
+ export const stateGrabbingRotation = "5deg";
650
680
  export const stateGrabbingOpacity = 0.7;
651
681
  export const stateDropzoneBorderWidth = "1px";
652
- export const stateDropzoneBorderStyle = "dashed";
653
- export const stateDropzoneOpacity = 0.3;
654
- export const stateOnMotionEasing = "cubic-bezier(0, 0, 0.58, 1)";
655
- export const stateOnMotionDuration = "100ms";
656
- export const stateOffMotionEasing = "cubic-bezier(0, 0, 0.58, 1)";
657
- export const stateOffMotionDuration = "100ms";
682
+ export const stateDropzoneActiveOpacity = 0.3;
683
+ export const stateOnMotionInEasing = "cubic-bezier(0.25, 2.1, 0.5, 0)";
684
+ export const stateOnMotionInDuration = 200;
685
+ export const stateOffMotionInEasing = "cubic-bezier(0.25, 2.1, 0.5, 0)";
686
+ export const stateOffMotionInDuration = 200;
687
+ export const themeShadowOpacity = 0.2;
688
+ export const themeShadowColor = "rgba(0, 0, 0, 0.2)";
689
+ export const themeBorderStyleFocusHighMain = "3px dashed #DA680B";
690
+ export const themeBorderStyleFocusHighContrast = "3px dashed #FF8C00";
691
+ export const themeBorderStyleFocusLowMain = "2px solid #DA680B";
692
+ export const themeBorderStyleFocusLowContrast = "2px solid #FF8C00";
693
+ export const themeBorderStyleActiveMain = "4px solid #0C326F";
694
+ export const themeBorderStyleActiveContrast = "4px solid #81AEFC";
695
+ export const themeBorderStyleGrabbingMain = "2px solid #0040B4";
696
+ export const themeBorderStyleGrabbingContrast = "2px solid #ADCDFF";
697
+ export const themeBorderStyleDropzoneMain = "1px dashed #0040B4";
698
+ export const themeBorderStyleDropzoneContrast = "1px dashed #ADCDFF";
699
+ export const themeShadowStyleLevel0 = "0 0 0 0 rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(0, 0, 0, 0.2)";
700
+ export const themeShadowStyleLevel1 = "0 1px 1px 0 rgba(0, 0, 0, 0.2), 0 0 4px 0 rgba(0, 0, 0, 0.2)";
701
+ export const themeShadowStyleLevel2 = "0 4px 4px 0 rgba(0, 0, 0, 0.2), 0 0 8px 0 rgba(0, 0, 0, 0.2)";
702
+ export const themeShadowStyleLevel3 = "0 8px 8px 0 rgba(0, 0, 0, 0.2), 0 0 12px 0 rgba(0, 0, 0, 0.2)";
703
+ export const themeShadowStyleLevel4 = "0 12px 12px 0 rgba(0, 0, 0, 0.2), 0 0 16px 0 rgba(0, 0, 0, 0.2)";
704
+ export const themeShadowStyleDisabled = "0 0 0 0 rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(0, 0, 0, 0.2)";
705
+ export const themeShadowStyleHoverHighlight = "0 0 4px 0 rgba(0, 0, 0, 0.2)";
706
+ export const themeShadowStylePressed = "inset 1px 1px 8px 0 rgba(0, 0, 0, 0.5)";
707
+ export const themeShadowStyleGrabbingMain = "0 12px 12px 0 rgba(0, 64, 180, 0.2), 0 0 16px 0 rgba(0, 64, 180, 0.2)";
708
+ export const themeShadowStyleGrabbingContrast = "0 12px 12px 0 rgba(173, 205, 255, 0.2), 0 0 16px 0 rgba(173, 205, 255, 0.2)";
658
709
  export const themeTextMainBase = "#1B1B1B";
659
710
  export const themeTextMainAlternative = "#636363";
660
711
  export const themeTextContrastBase = "#FCFCFC";
@@ -663,10 +714,6 @@ export const themeSurfaceMainBase = "#FCFCFC";
663
714
  export const themeSurfaceMainAlternative = "#F0F0F0";
664
715
  export const themeSurfaceContrastBase = "#252F3E";
665
716
  export const themeSurfaceContrastAlternative = "#2F4668";
666
- export const themeSurfaceTextMainBase = "#1B1B1B";
667
- export const themeSurfaceTextMainAlternative = "#1B1B1B";
668
- export const themeSurfaceTextContrastBase = "#FCFCFC";
669
- export const themeSurfaceTextContrastAlternative = "#FCFCFC";
670
717
  export const themeBorderBase = "#CCCCCC";
671
718
  export const themeBorderAlternative = "#888888";
672
719
  export const themeInteractiveMain = "#0040B4";
@@ -677,18 +724,16 @@ export const themeCtaMain = "#216E1F";
677
724
  export const themeCtaContrast = "#70E17B";
678
725
  export const themeCtaTextMain = "#FFFFFF";
679
726
  export const themeCtaTextContrast = "#000000";
680
- export const themeSuccessMain = "#538200";
681
- export const themeSuccessText = "#FFFFFF";
682
- export const themeAlertMain = "#FFCD07";
683
- export const themeAlertText = "#000000";
684
- export const themeErrorMain = "#E52207";
685
- export const themeErrorText = "#FFFFFF";
686
727
  export const themeDisabledMain = "#4A4A4A";
687
728
  export const themeDisabledContrast = "#CCCCCC";
688
729
  export const themeVisitedMain = "#2F4668";
689
730
  export const themeVisitedContrast = "#C5D4EB";
690
- export const themeHoverBright = "rgba(212, 229, 255, 0.6)";
691
- export const themeHoverDim = "rgba(12, 50, 111, 0.8)";
731
+ export const themeHoverBright = "rgba(212, 229, 255, 0.5)";
732
+ export const themeHoverDim = "rgba(12, 50, 111, 0.6)";
733
+ export const themeHoverMainText = "rgba(212, 229, 255, 0.5)";
734
+ export const themeHoverMainSurface = "rgba(12, 50, 111, 0.6)";
735
+ export const themeHoverContrastText = "rgba(12, 50, 111, 0.6)";
736
+ export const themeHoverContrastSurface = "rgba(212, 229, 255, 0.5)";
692
737
  export const themeFocusMain = "#DA680B";
693
738
  export const themeFocusContrast = "#FF8C00";
694
739
  export const themeActiveMain = "#0C326F";
@@ -699,6 +744,12 @@ export const themeSelectedMain = "#2670E8";
699
744
  export const themeSelectedContrast = "#5992ED";
700
745
  export const themeSelectedTextMain = "#FFFFFF";
701
746
  export const themeSelectedTextContrast = "#000000";
747
+ export const themeGrabbingMain = "#0040B4";
748
+ export const themeGrabbingContrast = "#ADCDFF";
749
+ export const themeDropzoneMain = "#0040B4";
750
+ export const themeDropzoneContrast = "#ADCDFF";
751
+ export const themeDropzoneActiveMain = "#0040B4";
752
+ export const themeDropzoneActiveContrast = "#ADCDFF";
702
753
  export const themeOnMain = "#5992ED";
703
754
  export const themeOnContrast = "#2670E8";
704
755
  export const themeOnTextMain = "#000000";
@@ -707,3 +758,9 @@ export const themeOffMain = "#888888";
707
758
  export const themeOffContrast = "#757575";
708
759
  export const themeOffTextMain = "#000000";
709
760
  export const themeOffTextContrast = "#FFFFFF";
761
+ export const themeSuccessMain = "#538200";
762
+ export const themeSuccessTextMain = "#FFFFFF";
763
+ export const themeAlertMain = "#FFCD07";
764
+ export const themeAlertTextMain = "#000000";
765
+ export const themeErrorMain = "#E52207";
766
+ export const themeErrorTextMain = "#FFFFFF";