@eui/styles 21.0.0-next.34 → 21.0.0-next.36

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.
@@ -46,7 +46,7 @@ $breakpoint-map: (
46
46
  );
47
47
 
48
48
  // naming
49
- $xs: base.new-breakpoint(min-width map.get($breakpoint-map, 'xs') max-width map.get($breakpoint-map, 's') - 1) !default;
49
+ $xs: base.new-breakpoint(min-width map.get($breakpoint-map, 'xs') max-width map.get($breakpoint-map, 'sm') - 1) !default;
50
50
  $s: base.new-breakpoint(min-width map.get($breakpoint-map, 'sm') max-width map.get($breakpoint-map, 'md') - 1) !default;
51
51
  $m: base.new-breakpoint(min-width map.get($breakpoint-map, 'md') max-width map.get($breakpoint-map, 'lg') - 1) !default;
52
52
  $l: base.new-breakpoint(min-width map.get($breakpoint-map, 'lg') max-width map.get($breakpoint-map, 'xl') - 1) !default;
@@ -55,8 +55,8 @@ $xxl: base.new-breakpoint(min-width map.get($breakpoint-map, 'xxl') max-width ma
55
55
  $fhd: base.new-breakpoint(min-width map.get($breakpoint-map, 'fhd') max-width map.get($breakpoint-map, '2k') - 1) !default;
56
56
 
57
57
  // human naming
58
- $eui-bkp-mobile-down: $xs !default;
59
- $eui-bkp-mobile: base.new-breakpoint(max-width map.get($breakpoint-map, 'md') - 1) !default;
58
+ $eui-bkp-mobile-xs: $xs !default;
59
+ $eui-bkp-mobile: $s !default;
60
60
  $eui-bkp-mobile-up: base.new-breakpoint(min-width map.get($breakpoint-map, 'md')) !default;
61
61
  $eui-bkp-tablet: $m !default;
62
62
  $eui-bkp-tablet-up: base.new-breakpoint(min-width map.get($breakpoint-map, 'lg')) !default;
@@ -577,39 +577,34 @@ $color-state-map: (
577
577
  base: 'br-900',
578
578
  default: 'br-900',
579
579
  lighter: 'br-700',
580
- on-lighter: 'br-700-contrast',
581
580
  light: 'br-800',
582
- on-light: 'br-800-contrast',
583
581
  dark: 'br-950',
584
- on-dark: 'br-950-contrast',
585
582
  surface: 'br-900',
586
583
  on-surface: 'br-900-contrast',
587
584
  surface-light: 'br-800',
588
- on-surface-light: 'br-800-contrast'
585
+ on-surface-light: 'br-800-contrast',
586
+ surface-dark: 'br-950',
587
+ on-surface-dark: 'br-950-contrast'
589
588
  ),
590
589
  primary: (
591
590
  base: 'pr-600',
592
591
  default: 'pr-700',
593
592
  lighter: 'pr-500',
594
- on-lighter: 'pr-500-contrast',
595
593
  light: 'pr-600',
596
- on-light: 'pr-600-contrast',
597
594
  dark: 'pr-900',
598
- on-dark: 'pr-900-contrast',
599
595
  darker: 'pr-950',
600
- on-darker: 'pr-950-contrast',
601
596
  surface-light: 'pr-75',
602
597
  on-surface-light: 'pr-900',
603
598
  surface-light-hover: 'pr-100',
604
599
  on-surface-light-hover: 'pr-950',
605
600
  surface-medium: 'pr-200',
606
- on-surface-medium: 'pr-950',
601
+ on-surface-medium: 'pr-200-contrast',
607
602
  surface: 'pr-600',
608
603
  on-surface: 'pr-600-contrast',
609
604
  surface-hover: 'pr-700',
610
605
  on-surface-hover: 'pr-700-contrast',
611
- surface-dark: 'pr-800',
612
- on-surface-dark: 'pr-800-contrast',
606
+ surface-dark: 'pr-900',
607
+ on-surface-dark: 'pr-900-contrast',
613
608
  border: 'pr-500',
614
609
  border-light: 'pr-300',
615
610
  border-lighter: 'pr-200'
@@ -618,13 +613,9 @@ $color-state-map: (
618
613
  base: 'gr-500',
619
614
  default: 'gr-800',
620
615
  lighter: 'gr-600',
621
- on-lighter: 'gr-600-contrast',
622
616
  light: 'gr-700',
623
- on-light: 'gr-700-contrast',
624
- dark: 'gr-900',
625
- on-dark: 'gr-900-contrast',
626
- darker: 'gr-950',
627
- on-darker: 'gr-950-contrast',
617
+ dark: 'gr-900',
618
+ darker: 'gr-950',
628
619
  surface-light: 'gr-50',
629
620
  on-surface-light: 'gr-900',
630
621
  surface-light-hover: 'gr-75',
@@ -635,8 +626,8 @@ $color-state-map: (
635
626
  on-surface: 'gr-600-contrast',
636
627
  surface-hover: 'gr-700',
637
628
  on-surface-hover: 'gr-700-contrast',
638
- surface-dark: 'gr-800',
639
- on-surface-dark: 'gr-800-contrast',
629
+ surface-dark: 'gr-900',
630
+ on-surface-dark: 'gr-900-contrast',
640
631
  border: 'gr-500',
641
632
  border-light: 'gr-300',
642
633
  border-lighter: 'gr-200'
@@ -645,13 +636,9 @@ $color-state-map: (
645
636
  base: 'grn-500',
646
637
  default: 'grn-800',
647
638
  lighter: 'grn-600',
648
- on-lighter: 'grn-600-contrast',
649
639
  light: 'grn-700',
650
- on-light: 'grn-700-contrast',
651
- dark: 'grn-900',
652
- on-dark: 'grn-900-contrast',
653
- darker: 'grn-950',
654
- on-darker: 'grn-950-contrast',
640
+ dark: 'grn-900',
641
+ darker: 'grn-950',
655
642
  surface-light: 'grn-50',
656
643
  on-surface-light: 'grn-900',
657
644
  surface-light-hover: 'grn-75',
@@ -662,8 +649,8 @@ $color-state-map: (
662
649
  on-surface: 'grn-400-contrast',
663
650
  surface-hover: 'grn-300',
664
651
  on-surface-hover: 'grn-300-contrast',
665
- surface-dark: 'grn-600',
666
- on-surface-dark: 'grn-600-contrast',
652
+ surface-dark: 'grn-900',
653
+ on-surface-dark: 'grn-900-contrast',
667
654
  border: 'grn-500',
668
655
  border-light: 'grn-400',
669
656
  border-lighter: 'grn-300'
@@ -672,13 +659,9 @@ $color-state-map: (
672
659
  base: 'cta-400',
673
660
  default: 'cta-900',
674
661
  lighter: 'cta-400',
675
- on-lighter: 'cta-400-contrast',
676
662
  light: 'cta-500',
677
- on-light: 'cta-500-contrast',
678
663
  dark: 'cta-800',
679
- on-dark: 'cta-800-contrast',
680
664
  darker: 'cta-900',
681
- on-darker: 'cta-900-contrast',
682
665
  surface-light: 'cta-25',
683
666
  on-surface-light: 'cta-800',
684
667
  surface-light-hover: 'cta-50',
@@ -699,13 +682,9 @@ $color-state-map: (
699
682
  base: 'in-500',
700
683
  default: 'in-600',
701
684
  lighter: 'in-400',
702
- on-lighter: 'in-400-contrast',
703
685
  light: 'in-500',
704
- on-light: 'in-500-contrast',
705
686
  dark: 'in-800',
706
- on-dark: 'in-800-contrast',
707
687
  darker: 'in-900',
708
- on-darker: 'in-900-contrast',
709
688
  surface-light: 'in-75',
710
689
  on-surface-light: 'in-600',
711
690
  surface-light-hover: 'in-100',
@@ -716,8 +695,8 @@ $color-state-map: (
716
695
  on-surface: 'in-600-contrast',
717
696
  surface-hover: 'in-800',
718
697
  on-surface-hover: 'in-800-contrast',
719
- surface-dark: 'in-900',
720
- on-surface-dark: 'in-900-contrast',
698
+ surface-dark: 'in-800',
699
+ on-surface-dark: 'in-800-contrast',
721
700
  border: 'in-400',
722
701
  border-light: 'in-300',
723
702
  border-lighter: 'in-200'
@@ -726,13 +705,9 @@ $color-state-map: (
726
705
  base: 'su-700',
727
706
  default: 'su-900',
728
707
  lighter: 'su-700',
729
- on-lighter: 'su-700-contrast',
730
708
  light: 'su-800',
731
- on-light: 'su-800-contrast',
732
709
  dark: 'su-900',
733
- on-dark: 'su-900-contrast',
734
710
  darker: 'su-950',
735
- on-darker: 'su-950-contrast',
736
711
  surface-light: 'su-100',
737
712
  on-surface-light: 'su-950',
738
713
  surface-light-hover: 'su-200',
@@ -743,8 +718,8 @@ $color-state-map: (
743
718
  on-surface: 'su-950-contrast',
744
719
  surface-hover: 'su-950',
745
720
  on-surface-hover: 'su-950-contrast',
746
- surface-dark: 'su-950',
747
- on-surface-dark: 'su-950-contrast',
721
+ surface-dark: 'su-900',
722
+ on-surface-dark: 'su-900-contrast',
748
723
  border: 'su-600',
749
724
  border-light: 'su-400',
750
725
  border-lighter: 'su-300'
@@ -752,14 +727,10 @@ $color-state-map: (
752
727
  warning: (
753
728
  base: 'wa-500',
754
729
  default: 'wa-800',
755
- lighter: 'wa-500',
756
- on-lighter: 'wa-500-contrast',
757
- light: 'wa-600',
758
- on-light: 'wa-600-contrast',
759
- dark: 'wa-900',
760
- on-dark: 'wa-900-contrast',
730
+ lighter: 'wa-700',
731
+ light: 'wa-800',
732
+ dark: 'wa-950',
761
733
  darker: 'wa-950',
762
- on-darker: 'wa-950-contrast',
763
734
  surface-light: 'wa-50',
764
735
  on-surface-light: 'wa-900',
765
736
  surface-light-hover: 'wa-75',
@@ -770,8 +741,8 @@ $color-state-map: (
770
741
  on-surface: 'wa-500-contrast',
771
742
  surface-hover: 'wa-600',
772
743
  on-surface-hover: 'wa-600-contrast',
773
- surface-dark: 'wa-700',
774
- on-surface-dark: 'wa-700-contrast',
744
+ surface-dark: 'wa-900',
745
+ on-surface-dark: 'wa-900-contrast',
775
746
  border: 'wa-400',
776
747
  border-light: 'wa-200',
777
748
  border-lighter: 'wa-100'
@@ -780,13 +751,9 @@ $color-state-map: (
780
751
  base: 'da-600',
781
752
  default: 'da-600',
782
753
  lighter: 'da-400',
783
- on-lighter: 'da-400-contrast',
784
754
  light: 'da-500',
785
- on-light: 'da-500-contrast',
786
755
  dark: 'da-700',
787
- on-dark: 'da-700-contrast',
788
756
  darker: 'da-800',
789
- on-darker: 'da-800-contrast',
790
757
  surface-light: 'da-75',
791
758
  on-surface-light: 'da-700',
792
759
  surface-light-hover: 'da-100',
@@ -827,63 +794,277 @@ $box-shadow-map: (
827
794
 
828
795
 
829
796
  // TYPOGRAPHY
830
-
831
- // new remapping against ECL v5
832
-
833
- // eUI 2xs => ECL none => 0.675rem/0.875rem // 10px
834
- // eUI xs => ECL 2xs => 0.75rem/0.875rem // 12px
835
- // eUI s => ECL xs => 0.875rem/1.25rem // 14px
836
- // eUI m => ECL s => 1rem/1.5rem // 16px
837
- // eUI l => ECL m => 1.125rem/1.75rem // 18px
838
- // eUI xl => ECL l => 1.25rem/1.75rem // 20px
839
- // eUI 2xl => ECL xl => 1.375rem/2rem // 22px
840
- // eUI 3xl => ECL 2xl => 1.5rem/2.25rem // 24px
841
- // eUI 4xl => ECL 3xl => 1.75rem/2.25rem // 28px
842
- // eUI 5xl => ECL 4xl => 2rem/2.75rem // 32px
843
- // eUI 6XL => ECL 5xl => 2.25rem/3rem // 36px
844
- // eUI 7XL => ECL 6xl => 2.5rem/3rem // 40px
845
- // eUI 8XL => ECL 7xl => 3.25rem/3.75rem // 52px
846
- // eUI 9XL => ECL 8xl => 3.75rem/4.25rem // 60px
847
- // eUI 10XL => ECL 9xl => 4.5rem/4.875rem // 72px
848
-
849
- $font-size-list: ('2xs', 'xs', 's', 'm', 'l', 'xl', '2xl', '3xl', '4xl', '5xl', '6xl', '7xl', '8xl', '9xl', '10xl');
797
+ $font-size-list: ('2xs', 'xs', 's', 'm', 'l', 'xl', '2xl', '3xl', '4xl', '5xl', '6xl', '7xl', '8xl');
850
798
 
851
799
  $font-size-map: (
852
- 2xs: 0.675rem, // 10px
853
- xs: 0.75rem, // 12px
854
- s: 0.875rem, // 14px
855
- m: 1rem, // 16px
856
- l: 1.125rem, // 18px
857
- xl: 1.25rem, // 20px
858
- 2xl: 1.375rem, // 22px
859
- 3xl: 1.5rem, // 24px
860
- 4xl: 1.75rem, // 28px
861
- 5xl: 2rem, // 32px
862
- 6xl: 2.25rem, // 36px
863
- 7xl: 2.5rem, // 40px
864
- 8xl: 3.25rem, // 52px
865
- 9xl: 3.75rem, // 60px
866
- 10xl: 4.5rem // 72px
800
+ '8xl': 3.75rem,
801
+ '7xl': 3.25rem,
802
+ '6xl': 2.5rem,
803
+ '5xl': 2.25rem,
804
+ '4xl': 2rem,
805
+ '3xl': 1.75rem,
806
+ '2xl': 1.5rem,
807
+ 'xl': 1.375rem,
808
+ 'l': 1.25rem,
809
+ 'm': 1.125rem,
810
+ 's': 1rem,
811
+ 'xs': 0.875rem,
812
+ '2xs': 0.75rem,
813
+ '3xs': 0.675rem
867
814
  );
868
815
 
869
816
  $font-line-height-map: (
870
- 2xs: 0.875rem,
871
- xs: 0.875rem,
872
- s: 1.2rem,
873
- m: 1.5rem,
874
- l: 1.75rem,
875
- xl: 1.75rem,
876
- 2xl: 2rem,
877
- 3xl: 2.25rem,
878
- 4xl: 2.25rem,
879
- 5xl: 2.75rem,
880
- 6xl: 3rem,
881
- 7xl: 3rem,
882
- 8xl: 3.75rem,
883
- 9xl: 4.25rem,
884
- 10xl: 4.875rem
817
+ '7xl': 3.75rem,
818
+ '6xl': 3.5rem,
819
+ '5xl': 3.25rem,
820
+ '4xl': 3rem,
821
+ '3xl': 2.75rem,
822
+ '2xl': 2.5rem,
823
+ 'xl': 2.25rem,
824
+ 'l': 2rem,
825
+ 'm': 1.75rem,
826
+ 's': 1.5rem,
827
+ 'xs': 1.25rem,
828
+ '2xs': 1rem,
829
+ '3xs': 0.875rem
885
830
  );
886
831
 
832
+ $font-map: (
833
+ 8xl: (
834
+ desktop: (
835
+ font-size: 8xl,
836
+ line-height: 7xl
837
+ ),
838
+ tablet: (
839
+ font-size: 7xl,
840
+ line-height: 6xl
841
+ ),
842
+ mobile: (
843
+ font-size: 6xl,
844
+ line-height: 3xl
845
+ ),
846
+ mobile-xs: (
847
+ font-size: 4xl,
848
+ line-height: xl
849
+ )
850
+ ),
851
+ 7xl: (
852
+ desktop: (
853
+ font-size: 7xl,
854
+ line-height: 6xl
855
+ ),
856
+ tablet: (
857
+ font-size: 6xl,
858
+ line-height: 3xl
859
+ ),
860
+ mobile: (
861
+ font-size: 5xl,
862
+ line-height: 3xl
863
+ ),
864
+ mobile-xs: (
865
+ font-size: 4xl,
866
+ line-height: xl
867
+ )
868
+ ),
869
+ 6xl: (
870
+ desktop: (
871
+ font-size: 6xl,
872
+ line-height: 4xl
873
+ ),
874
+ tablet: (
875
+ font-size: 5xl,
876
+ line-height: 3xl
877
+ ),
878
+ mobile: (
879
+ font-size: 4xl,
880
+ line-height: xl
881
+ ),
882
+ mobile-xs: (
883
+ font-size: 3xl,
884
+ line-height: xl
885
+ )
886
+ ),
887
+ 5xl: (
888
+ desktop: (
889
+ font-size: 5xl,
890
+ line-height: 3xl
891
+ ),
892
+ tablet: (
893
+ font-size: 4xl,
894
+ line-height: xl
895
+ ),
896
+ mobile: (
897
+ font-size: 3xl,
898
+ line-height: xl
899
+ ),
900
+ mobile-xs: (
901
+ font-size: 2xl,
902
+ line-height: l
903
+ )
904
+ ),
905
+ 4xl: (
906
+ desktop: (
907
+ font-size: 4xl,
908
+ line-height: xl
909
+ ),
910
+ tablet: (
911
+ font-size: 3xl,
912
+ line-height: xl
913
+ ),
914
+ mobile: (
915
+ font-size: 2xl,
916
+ line-height: l
917
+ ),
918
+ mobile-xs: (
919
+ font-size: xl,
920
+ line-height: l
921
+ )
922
+ ),
923
+ 3xl: (
924
+ desktop: (
925
+ font-size: 3xl,
926
+ line-height: xl
927
+ ),
928
+ tablet: (
929
+ font-size: 2xl,
930
+ line-height: xl
931
+ ),
932
+ mobile: (
933
+ font-size: xl,
934
+ line-height: l
935
+ ),
936
+ mobile-xs: (
937
+ font-size: l,
938
+ line-height: m
939
+ )
940
+ ),
941
+ 2xl: (
942
+ desktop: (
943
+ font-size: 2xl,
944
+ line-height: xl
945
+ ),
946
+ tablet: (
947
+ font-size: xl,
948
+ line-height: l
949
+ ),
950
+ mobile: (
951
+ font-size: l,
952
+ line-height: m
953
+ ),
954
+ mobile-xs: (
955
+ font-size: l,
956
+ line-height: m
957
+ )
958
+ ),
959
+ xl: (
960
+ desktop: (
961
+ font-size: xl,
962
+ line-height: m
963
+ ),
964
+ tablet: (
965
+ font-size: xl,
966
+ line-height: m
967
+ ),
968
+ mobile: (
969
+ font-size: l,
970
+ line-height: m
971
+ ),
972
+ mobile-xs: (
973
+ font-size: m,
974
+ line-height: s
975
+ )
976
+ ),
977
+ l: (
978
+ desktop: (
979
+ font-size: m,
980
+ line-height: s
981
+ ),
982
+ tablet: (
983
+ font-size: m,
984
+ line-height: s
985
+ ),
986
+ mobile: (
987
+ font-size: s,
988
+ line-height: s
989
+ ),
990
+ mobile-xs: (
991
+ font-size: s,
992
+ line-height: s
993
+ )
994
+ ),
995
+ m: (
996
+ desktop: (
997
+ font-size: s,
998
+ line-height: s
999
+ ),
1000
+ tablet: (
1001
+ font-size: s,
1002
+ line-height: s
1003
+ ),
1004
+ mobile: (
1005
+ font-size: s,
1006
+ line-height: s
1007
+ ),
1008
+ mobile-xs: (
1009
+ font-size: s,
1010
+ line-height: s
1011
+ )
1012
+ ),
1013
+ s: (
1014
+ desktop: (
1015
+ font-size: xs,
1016
+ line-height: s
1017
+ ),
1018
+ tablet: (
1019
+ font-size: xs,
1020
+ line-height: s
1021
+ ),
1022
+ mobile: (
1023
+ font-size: xs,
1024
+ line-height: s
1025
+ ),
1026
+ mobile-xs: (
1027
+ font-size: xs,
1028
+ line-height: s
1029
+ )
1030
+ ),
1031
+ xs: (
1032
+ desktop: (
1033
+ font-size: 2xs,
1034
+ line-height: xs
1035
+ ),
1036
+ tablet: (
1037
+ font-size: 2xs,
1038
+ line-height: xs
1039
+ ),
1040
+ mobile: (
1041
+ font-size: 2xs,
1042
+ line-height: xs
1043
+ ),
1044
+ mobile-xs: (
1045
+ font-size: 2xs,
1046
+ line-height: xs
1047
+ )
1048
+ ),
1049
+ 2xs: (
1050
+ desktop: (
1051
+ font-size: 3xs,
1052
+ line-height: 2xs
1053
+ ),
1054
+ tablet: (
1055
+ font-size: 3xs,
1056
+ line-height: 2xs
1057
+ ),
1058
+ mobile: (
1059
+ font-size: 3xs,
1060
+ line-height: 2xs
1061
+ ),
1062
+ mobile-xs: (
1063
+ font-size: 3xs,
1064
+ line-height: 2xs
1065
+ )
1066
+ )
1067
+ );
887
1068
 
888
1069
  $font-weight-map: (
889
1070
  'light': 300,
@@ -892,104 +1073,3 @@ $font-weight-map: (
892
1073
  'semi-bold': 600,
893
1074
  'bold': 700
894
1075
  );
895
-
896
- // based on new EDS specs, but not convenient, better to have a flat list of sizes rather than too much semantic and overlaps
897
-
898
- // $font-map-responsive: (
899
- // 'display': (
900
- // 'm': (
901
- // 'desktop': (
902
- // 'size': 3rem,
903
- // 'line-height': 3.5rem
904
- // ),
905
- // 'tablet': (
906
- // 'size': 2.75rem,
907
- // 'line-height': 3.25rem
908
- // ),
909
- // 'mobile': (
910
- // 'size': 2rem,
911
- // 'line-height': 2.25rem
912
- // )
913
- // )
914
- // ),
915
- // 'title': (
916
- // 'xl': (
917
- // 'desktop': (
918
- // 'size': 2.5rem,
919
- // 'line-height': 3rem
920
- // ),
921
- // 'tablet': (
922
- // 'size': 2rem,
923
- // 'line-height': 2.75rem
924
- // ),
925
- // 'mobile': (
926
- // 'size': 1.75rem,
927
- // 'line-height': 2.5rem
928
- // )
929
- // ),
930
- // 'xs': (
931
- // 'desktop': (
932
- // 'size': 1.25rem,
933
- // 'line-height': 1.75rem
934
- // ),
935
- // 'tablet': (
936
- // 'size': 1.25rem,
937
- // 'line-height': 1.75rem
938
- // ),
939
- // 'mobile': (
940
- // 'size': 1.2rem,
941
- // 'line-height': 1.5rem
942
- // )
943
- // )
944
- // )
945
- // );
946
-
947
- // $font-map: (
948
- // 'title': (
949
- // '2xs': (
950
- // 'size': 1rem,
951
- // 'line-height': 1.5rem
952
- // )
953
- // ),
954
- // 'card-title': (
955
- // 'm': (
956
- // 'size': 1.125rem,
957
- // 'line-height': 1.5rem
958
- // )
959
- // ),
960
- // 'label': (
961
- // 'm': (
962
- // 'size': 0.875rem,
963
- // 'line-height': 1.25rem
964
- // ),
965
- // 'l': (
966
- // 'size': 1rem,
967
- // 'line-height': 1.5rem
968
- // )
969
- // ),
970
- // 'body': (
971
- // 's': (
972
- // 'size': 0.875rem,
973
- // 'line-height': 1.25rem
974
- // ),
975
- // 'm': (
976
- // 'size': 1rem,
977
- // 'line-height': 1.5rem
978
- // ),
979
- // 'l': (
980
- // 'size': 1.25rem,
981
- // 'line-height': 1.75rem
982
- // ),
983
- // 'xl': (
984
- // 'size': 1.5rem,
985
- // 'line-height': 2rem
986
- // )
987
- // ),
988
- // 'microcopy': (
989
- // 'm': (
990
- // 'size': 0.75rem,
991
- // 'line-height': 1rem
992
- // )
993
- // )
994
- // );
995
-