@carbon/themes 10.11.0-rc.0 → 10.11.1
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/docs/sass.md +521 -129
- package/package.json +7 -7
- package/scss/generated/_mixins.scss +520 -128
package/docs/sass.md
CHANGED
|
@@ -221,6 +221,8 @@ Define theme variables from a map of tokens
|
|
|
221
221
|
|
|
222
222
|
```scss
|
|
223
223
|
@mixin carbon--theme($theme: $carbon--theme, $emit-custom-properties: false) {
|
|
224
|
+
$parent-carbon-theme: $carbon--theme;
|
|
225
|
+
$carbon--theme: $theme !global;
|
|
224
226
|
$interactive-01: map-get($theme, 'interactive-01') !global;
|
|
225
227
|
$interactive-02: map-get($theme, 'interactive-02') !global;
|
|
226
228
|
$interactive-03: map-get($theme, 'interactive-03') !global;
|
|
@@ -738,7 +740,12 @@ Define theme variables from a map of tokens
|
|
|
738
740
|
) !global;
|
|
739
741
|
}
|
|
740
742
|
@if $emit-custom-properties == true {
|
|
741
|
-
@if should-emit(
|
|
743
|
+
@if should-emit(
|
|
744
|
+
$theme,
|
|
745
|
+
$parent-carbon-theme,
|
|
746
|
+
'interactive-01',
|
|
747
|
+
$emit-difference
|
|
748
|
+
)
|
|
742
749
|
{
|
|
743
750
|
@include custom-property(
|
|
744
751
|
'interactive-01',
|
|
@@ -746,7 +753,12 @@ Define theme variables from a map of tokens
|
|
|
746
753
|
);
|
|
747
754
|
}
|
|
748
755
|
|
|
749
|
-
@if should-emit(
|
|
756
|
+
@if should-emit(
|
|
757
|
+
$theme,
|
|
758
|
+
$parent-carbon-theme,
|
|
759
|
+
'interactive-02',
|
|
760
|
+
$emit-difference
|
|
761
|
+
)
|
|
750
762
|
{
|
|
751
763
|
@include custom-property(
|
|
752
764
|
'interactive-02',
|
|
@@ -754,7 +766,12 @@ Define theme variables from a map of tokens
|
|
|
754
766
|
);
|
|
755
767
|
}
|
|
756
768
|
|
|
757
|
-
@if should-emit(
|
|
769
|
+
@if should-emit(
|
|
770
|
+
$theme,
|
|
771
|
+
$parent-carbon-theme,
|
|
772
|
+
'interactive-03',
|
|
773
|
+
$emit-difference
|
|
774
|
+
)
|
|
758
775
|
{
|
|
759
776
|
@include custom-property(
|
|
760
777
|
'interactive-03',
|
|
@@ -762,7 +779,12 @@ Define theme variables from a map of tokens
|
|
|
762
779
|
);
|
|
763
780
|
}
|
|
764
781
|
|
|
765
|
-
@if should-emit(
|
|
782
|
+
@if should-emit(
|
|
783
|
+
$theme,
|
|
784
|
+
$parent-carbon-theme,
|
|
785
|
+
'interactive-04',
|
|
786
|
+
$emit-difference
|
|
787
|
+
)
|
|
766
788
|
{
|
|
767
789
|
@include custom-property(
|
|
768
790
|
'interactive-04',
|
|
@@ -770,112 +792,168 @@ Define theme variables from a map of tokens
|
|
|
770
792
|
);
|
|
771
793
|
}
|
|
772
794
|
|
|
773
|
-
@if should-emit(
|
|
795
|
+
@if should-emit(
|
|
796
|
+
$theme,
|
|
797
|
+
$parent-carbon-theme,
|
|
798
|
+
'ui-background',
|
|
799
|
+
$emit-difference
|
|
800
|
+
)
|
|
801
|
+
{
|
|
774
802
|
@include custom-property(
|
|
775
803
|
'ui-background',
|
|
776
804
|
map-get($theme, 'ui-background')
|
|
777
805
|
);
|
|
778
806
|
}
|
|
779
807
|
|
|
780
|
-
@if should-emit($theme, $carbon
|
|
808
|
+
@if should-emit($theme, $parent-carbon-theme, 'ui-01', $emit-difference) {
|
|
781
809
|
@include custom-property('ui-01', map-get($theme, 'ui-01'));
|
|
782
810
|
}
|
|
783
811
|
|
|
784
|
-
@if should-emit($theme, $carbon
|
|
812
|
+
@if should-emit($theme, $parent-carbon-theme, 'ui-02', $emit-difference) {
|
|
785
813
|
@include custom-property('ui-02', map-get($theme, 'ui-02'));
|
|
786
814
|
}
|
|
787
815
|
|
|
788
|
-
@if should-emit($theme, $carbon
|
|
816
|
+
@if should-emit($theme, $parent-carbon-theme, 'ui-03', $emit-difference) {
|
|
789
817
|
@include custom-property('ui-03', map-get($theme, 'ui-03'));
|
|
790
818
|
}
|
|
791
819
|
|
|
792
|
-
@if should-emit($theme, $carbon
|
|
820
|
+
@if should-emit($theme, $parent-carbon-theme, 'ui-04', $emit-difference) {
|
|
793
821
|
@include custom-property('ui-04', map-get($theme, 'ui-04'));
|
|
794
822
|
}
|
|
795
823
|
|
|
796
|
-
@if should-emit($theme, $carbon
|
|
824
|
+
@if should-emit($theme, $parent-carbon-theme, 'ui-05', $emit-difference) {
|
|
797
825
|
@include custom-property('ui-05', map-get($theme, 'ui-05'));
|
|
798
826
|
}
|
|
799
827
|
|
|
800
|
-
@if should-emit($theme, $carbon
|
|
828
|
+
@if should-emit($theme, $parent-carbon-theme, 'text-01', $emit-difference) {
|
|
801
829
|
@include custom-property('text-01', map-get($theme, 'text-01'));
|
|
802
830
|
}
|
|
803
831
|
|
|
804
|
-
@if should-emit($theme, $carbon
|
|
832
|
+
@if should-emit($theme, $parent-carbon-theme, 'text-02', $emit-difference) {
|
|
805
833
|
@include custom-property('text-02', map-get($theme, 'text-02'));
|
|
806
834
|
}
|
|
807
835
|
|
|
808
|
-
@if should-emit($theme, $carbon
|
|
836
|
+
@if should-emit($theme, $parent-carbon-theme, 'text-03', $emit-difference) {
|
|
809
837
|
@include custom-property('text-03', map-get($theme, 'text-03'));
|
|
810
838
|
}
|
|
811
839
|
|
|
812
|
-
@if should-emit($theme, $carbon
|
|
840
|
+
@if should-emit($theme, $parent-carbon-theme, 'text-04', $emit-difference) {
|
|
813
841
|
@include custom-property('text-04', map-get($theme, 'text-04'));
|
|
814
842
|
}
|
|
815
843
|
|
|
816
|
-
@if should-emit($theme, $carbon
|
|
844
|
+
@if should-emit($theme, $parent-carbon-theme, 'text-05', $emit-difference) {
|
|
817
845
|
@include custom-property('text-05', map-get($theme, 'text-05'));
|
|
818
846
|
}
|
|
819
847
|
|
|
820
|
-
@if should-emit(
|
|
848
|
+
@if should-emit(
|
|
849
|
+
$theme,
|
|
850
|
+
$parent-carbon-theme,
|
|
851
|
+
'text-error',
|
|
852
|
+
$emit-difference
|
|
853
|
+
)
|
|
854
|
+
{
|
|
821
855
|
@include custom-property('text-error', map-get($theme, 'text-error'));
|
|
822
856
|
}
|
|
823
857
|
|
|
824
|
-
@if should-emit($theme, $carbon
|
|
858
|
+
@if should-emit($theme, $parent-carbon-theme, 'icon-01', $emit-difference) {
|
|
825
859
|
@include custom-property('icon-01', map-get($theme, 'icon-01'));
|
|
826
860
|
}
|
|
827
861
|
|
|
828
|
-
@if should-emit($theme, $carbon
|
|
862
|
+
@if should-emit($theme, $parent-carbon-theme, 'icon-02', $emit-difference) {
|
|
829
863
|
@include custom-property('icon-02', map-get($theme, 'icon-02'));
|
|
830
864
|
}
|
|
831
865
|
|
|
832
|
-
@if should-emit($theme, $carbon
|
|
866
|
+
@if should-emit($theme, $parent-carbon-theme, 'icon-03', $emit-difference) {
|
|
833
867
|
@include custom-property('icon-03', map-get($theme, 'icon-03'));
|
|
834
868
|
}
|
|
835
869
|
|
|
836
|
-
@if should-emit($theme, $carbon
|
|
870
|
+
@if should-emit($theme, $parent-carbon-theme, 'link-01', $emit-difference) {
|
|
837
871
|
@include custom-property('link-01', map-get($theme, 'link-01'));
|
|
838
872
|
}
|
|
839
873
|
|
|
840
|
-
@if should-emit(
|
|
874
|
+
@if should-emit(
|
|
875
|
+
$theme,
|
|
876
|
+
$parent-carbon-theme,
|
|
877
|
+
'inverse-link',
|
|
878
|
+
$emit-difference
|
|
879
|
+
)
|
|
880
|
+
{
|
|
841
881
|
@include custom-property('inverse-link', map-get($theme, 'inverse-link'));
|
|
842
882
|
}
|
|
843
883
|
|
|
844
|
-
@if should-emit($theme, $carbon
|
|
884
|
+
@if should-emit($theme, $parent-carbon-theme, 'field-01', $emit-difference)
|
|
885
|
+
{
|
|
845
886
|
@include custom-property('field-01', map-get($theme, 'field-01'));
|
|
846
887
|
}
|
|
847
888
|
|
|
848
|
-
@if should-emit($theme, $carbon
|
|
889
|
+
@if should-emit($theme, $parent-carbon-theme, 'field-02', $emit-difference)
|
|
890
|
+
{
|
|
849
891
|
@include custom-property('field-02', map-get($theme, 'field-02'));
|
|
850
892
|
}
|
|
851
893
|
|
|
852
|
-
@if should-emit(
|
|
894
|
+
@if should-emit(
|
|
895
|
+
$theme,
|
|
896
|
+
$parent-carbon-theme,
|
|
897
|
+
'inverse-01',
|
|
898
|
+
$emit-difference
|
|
899
|
+
)
|
|
900
|
+
{
|
|
853
901
|
@include custom-property('inverse-01', map-get($theme, 'inverse-01'));
|
|
854
902
|
}
|
|
855
903
|
|
|
856
|
-
@if should-emit(
|
|
904
|
+
@if should-emit(
|
|
905
|
+
$theme,
|
|
906
|
+
$parent-carbon-theme,
|
|
907
|
+
'inverse-02',
|
|
908
|
+
$emit-difference
|
|
909
|
+
)
|
|
910
|
+
{
|
|
857
911
|
@include custom-property('inverse-02', map-get($theme, 'inverse-02'));
|
|
858
912
|
}
|
|
859
913
|
|
|
860
|
-
@if should-emit(
|
|
914
|
+
@if should-emit(
|
|
915
|
+
$theme,
|
|
916
|
+
$parent-carbon-theme,
|
|
917
|
+
'support-01',
|
|
918
|
+
$emit-difference
|
|
919
|
+
)
|
|
920
|
+
{
|
|
861
921
|
@include custom-property('support-01', map-get($theme, 'support-01'));
|
|
862
922
|
}
|
|
863
923
|
|
|
864
|
-
@if should-emit(
|
|
924
|
+
@if should-emit(
|
|
925
|
+
$theme,
|
|
926
|
+
$parent-carbon-theme,
|
|
927
|
+
'support-02',
|
|
928
|
+
$emit-difference
|
|
929
|
+
)
|
|
930
|
+
{
|
|
865
931
|
@include custom-property('support-02', map-get($theme, 'support-02'));
|
|
866
932
|
}
|
|
867
933
|
|
|
868
|
-
@if should-emit(
|
|
934
|
+
@if should-emit(
|
|
935
|
+
$theme,
|
|
936
|
+
$parent-carbon-theme,
|
|
937
|
+
'support-03',
|
|
938
|
+
$emit-difference
|
|
939
|
+
)
|
|
940
|
+
{
|
|
869
941
|
@include custom-property('support-03', map-get($theme, 'support-03'));
|
|
870
942
|
}
|
|
871
943
|
|
|
872
|
-
@if should-emit(
|
|
944
|
+
@if should-emit(
|
|
945
|
+
$theme,
|
|
946
|
+
$parent-carbon-theme,
|
|
947
|
+
'support-04',
|
|
948
|
+
$emit-difference
|
|
949
|
+
)
|
|
950
|
+
{
|
|
873
951
|
@include custom-property('support-04', map-get($theme, 'support-04'));
|
|
874
952
|
}
|
|
875
953
|
|
|
876
954
|
@if should-emit(
|
|
877
955
|
$theme,
|
|
878
|
-
$carbon
|
|
956
|
+
$parent-carbon-theme,
|
|
879
957
|
'inverse-support-01',
|
|
880
958
|
$emit-difference
|
|
881
959
|
)
|
|
@@ -888,7 +966,7 @@ Define theme variables from a map of tokens
|
|
|
888
966
|
|
|
889
967
|
@if should-emit(
|
|
890
968
|
$theme,
|
|
891
|
-
$carbon
|
|
969
|
+
$parent-carbon-theme,
|
|
892
970
|
'inverse-support-02',
|
|
893
971
|
$emit-difference
|
|
894
972
|
)
|
|
@@ -901,7 +979,7 @@ Define theme variables from a map of tokens
|
|
|
901
979
|
|
|
902
980
|
@if should-emit(
|
|
903
981
|
$theme,
|
|
904
|
-
$carbon
|
|
982
|
+
$parent-carbon-theme,
|
|
905
983
|
'inverse-support-03',
|
|
906
984
|
$emit-difference
|
|
907
985
|
)
|
|
@@ -914,7 +992,7 @@ Define theme variables from a map of tokens
|
|
|
914
992
|
|
|
915
993
|
@if should-emit(
|
|
916
994
|
$theme,
|
|
917
|
-
$carbon
|
|
995
|
+
$parent-carbon-theme,
|
|
918
996
|
'inverse-support-04',
|
|
919
997
|
$emit-difference
|
|
920
998
|
)
|
|
@@ -925,21 +1003,27 @@ Define theme variables from a map of tokens
|
|
|
925
1003
|
);
|
|
926
1004
|
}
|
|
927
1005
|
|
|
928
|
-
@if should-emit(
|
|
1006
|
+
@if should-emit(
|
|
1007
|
+
$theme,
|
|
1008
|
+
$parent-carbon-theme,
|
|
1009
|
+
'overlay-01',
|
|
1010
|
+
$emit-difference
|
|
1011
|
+
)
|
|
1012
|
+
{
|
|
929
1013
|
@include custom-property('overlay-01', map-get($theme, 'overlay-01'));
|
|
930
1014
|
}
|
|
931
1015
|
|
|
932
|
-
@if should-emit($theme, $carbon
|
|
1016
|
+
@if should-emit($theme, $parent-carbon-theme, 'danger', $emit-difference) {
|
|
933
1017
|
@include custom-property('danger', map-get($theme, 'danger'));
|
|
934
1018
|
}
|
|
935
1019
|
|
|
936
|
-
@if should-emit($theme, $carbon
|
|
1020
|
+
@if should-emit($theme, $parent-carbon-theme, 'focus', $emit-difference) {
|
|
937
1021
|
@include custom-property('focus', map-get($theme, 'focus'));
|
|
938
1022
|
}
|
|
939
1023
|
|
|
940
1024
|
@if should-emit(
|
|
941
1025
|
$theme,
|
|
942
|
-
$carbon
|
|
1026
|
+
$parent-carbon-theme,
|
|
943
1027
|
'inverse-focus-ui',
|
|
944
1028
|
$emit-difference
|
|
945
1029
|
)
|
|
@@ -950,14 +1034,25 @@ Define theme variables from a map of tokens
|
|
|
950
1034
|
);
|
|
951
1035
|
}
|
|
952
1036
|
|
|
953
|
-
@if should-emit(
|
|
1037
|
+
@if should-emit(
|
|
1038
|
+
$theme,
|
|
1039
|
+
$parent-carbon-theme,
|
|
1040
|
+
'hover-primary',
|
|
1041
|
+
$emit-difference
|
|
1042
|
+
)
|
|
1043
|
+
{
|
|
954
1044
|
@include custom-property(
|
|
955
1045
|
'hover-primary',
|
|
956
1046
|
map-get($theme, 'hover-primary')
|
|
957
1047
|
);
|
|
958
1048
|
}
|
|
959
1049
|
|
|
960
|
-
@if should-emit(
|
|
1050
|
+
@if should-emit(
|
|
1051
|
+
$theme,
|
|
1052
|
+
$parent-carbon-theme,
|
|
1053
|
+
'active-primary',
|
|
1054
|
+
$emit-difference
|
|
1055
|
+
)
|
|
961
1056
|
{
|
|
962
1057
|
@include custom-property(
|
|
963
1058
|
'active-primary',
|
|
@@ -967,7 +1062,7 @@ Define theme variables from a map of tokens
|
|
|
967
1062
|
|
|
968
1063
|
@if should-emit(
|
|
969
1064
|
$theme,
|
|
970
|
-
$carbon
|
|
1065
|
+
$parent-carbon-theme,
|
|
971
1066
|
'hover-primary-text',
|
|
972
1067
|
$emit-difference
|
|
973
1068
|
)
|
|
@@ -978,7 +1073,12 @@ Define theme variables from a map of tokens
|
|
|
978
1073
|
);
|
|
979
1074
|
}
|
|
980
1075
|
|
|
981
|
-
@if should-emit(
|
|
1076
|
+
@if should-emit(
|
|
1077
|
+
$theme,
|
|
1078
|
+
$parent-carbon-theme,
|
|
1079
|
+
'hover-secondary',
|
|
1080
|
+
$emit-difference
|
|
1081
|
+
)
|
|
982
1082
|
{
|
|
983
1083
|
@include custom-property(
|
|
984
1084
|
'hover-secondary',
|
|
@@ -988,7 +1088,7 @@ Define theme variables from a map of tokens
|
|
|
988
1088
|
|
|
989
1089
|
@if should-emit(
|
|
990
1090
|
$theme,
|
|
991
|
-
$carbon
|
|
1091
|
+
$parent-carbon-theme,
|
|
992
1092
|
'active-secondary',
|
|
993
1093
|
$emit-difference
|
|
994
1094
|
)
|
|
@@ -999,7 +1099,12 @@ Define theme variables from a map of tokens
|
|
|
999
1099
|
);
|
|
1000
1100
|
}
|
|
1001
1101
|
|
|
1002
|
-
@if should-emit(
|
|
1102
|
+
@if should-emit(
|
|
1103
|
+
$theme,
|
|
1104
|
+
$parent-carbon-theme,
|
|
1105
|
+
'hover-tertiary',
|
|
1106
|
+
$emit-difference
|
|
1107
|
+
)
|
|
1003
1108
|
{
|
|
1004
1109
|
@include custom-property(
|
|
1005
1110
|
'hover-tertiary',
|
|
@@ -1007,7 +1112,12 @@ Define theme variables from a map of tokens
|
|
|
1007
1112
|
);
|
|
1008
1113
|
}
|
|
1009
1114
|
|
|
1010
|
-
@if should-emit(
|
|
1115
|
+
@if should-emit(
|
|
1116
|
+
$theme,
|
|
1117
|
+
$parent-carbon-theme,
|
|
1118
|
+
'active-tertiary',
|
|
1119
|
+
$emit-difference
|
|
1120
|
+
)
|
|
1011
1121
|
{
|
|
1012
1122
|
@include custom-property(
|
|
1013
1123
|
'active-tertiary',
|
|
@@ -1015,21 +1125,29 @@ Define theme variables from a map of tokens
|
|
|
1015
1125
|
);
|
|
1016
1126
|
}
|
|
1017
1127
|
|
|
1018
|
-
@if should-emit($theme, $carbon
|
|
1128
|
+
@if should-emit($theme, $parent-carbon-theme, 'hover-ui', $emit-difference)
|
|
1129
|
+
{
|
|
1019
1130
|
@include custom-property('hover-ui', map-get($theme, 'hover-ui'));
|
|
1020
1131
|
}
|
|
1021
1132
|
|
|
1022
|
-
@if should-emit($theme, $carbon
|
|
1133
|
+
@if should-emit($theme, $parent-carbon-theme, 'active-ui', $emit-difference)
|
|
1134
|
+
{
|
|
1023
1135
|
@include custom-property('active-ui', map-get($theme, 'active-ui'));
|
|
1024
1136
|
}
|
|
1025
1137
|
|
|
1026
|
-
@if should-emit(
|
|
1138
|
+
@if should-emit(
|
|
1139
|
+
$theme,
|
|
1140
|
+
$parent-carbon-theme,
|
|
1141
|
+
'selected-ui',
|
|
1142
|
+
$emit-difference
|
|
1143
|
+
)
|
|
1144
|
+
{
|
|
1027
1145
|
@include custom-property('selected-ui', map-get($theme, 'selected-ui'));
|
|
1028
1146
|
}
|
|
1029
1147
|
|
|
1030
1148
|
@if should-emit(
|
|
1031
1149
|
$theme,
|
|
1032
|
-
$carbon
|
|
1150
|
+
$parent-carbon-theme,
|
|
1033
1151
|
'selected-light-ui',
|
|
1034
1152
|
$emit-difference
|
|
1035
1153
|
)
|
|
@@ -1042,7 +1160,7 @@ Define theme variables from a map of tokens
|
|
|
1042
1160
|
|
|
1043
1161
|
@if should-emit(
|
|
1044
1162
|
$theme,
|
|
1045
|
-
$carbon
|
|
1163
|
+
$parent-carbon-theme,
|
|
1046
1164
|
'hover-selected-ui',
|
|
1047
1165
|
$emit-difference
|
|
1048
1166
|
)
|
|
@@ -1055,7 +1173,7 @@ Define theme variables from a map of tokens
|
|
|
1055
1173
|
|
|
1056
1174
|
@if should-emit(
|
|
1057
1175
|
$theme,
|
|
1058
|
-
$carbon
|
|
1176
|
+
$parent-carbon-theme,
|
|
1059
1177
|
'inverse-hover-ui',
|
|
1060
1178
|
$emit-difference
|
|
1061
1179
|
)
|
|
@@ -1066,85 +1184,163 @@ Define theme variables from a map of tokens
|
|
|
1066
1184
|
);
|
|
1067
1185
|
}
|
|
1068
1186
|
|
|
1069
|
-
@if should-emit(
|
|
1187
|
+
@if should-emit(
|
|
1188
|
+
$theme,
|
|
1189
|
+
$parent-carbon-theme,
|
|
1190
|
+
'hover-danger',
|
|
1191
|
+
$emit-difference
|
|
1192
|
+
)
|
|
1193
|
+
{
|
|
1070
1194
|
@include custom-property('hover-danger', map-get($theme, 'hover-danger'));
|
|
1071
1195
|
}
|
|
1072
1196
|
|
|
1073
|
-
@if should-emit(
|
|
1197
|
+
@if should-emit(
|
|
1198
|
+
$theme,
|
|
1199
|
+
$parent-carbon-theme,
|
|
1200
|
+
'active-danger',
|
|
1201
|
+
$emit-difference
|
|
1202
|
+
)
|
|
1203
|
+
{
|
|
1074
1204
|
@include custom-property(
|
|
1075
1205
|
'active-danger',
|
|
1076
1206
|
map-get($theme, 'active-danger')
|
|
1077
1207
|
);
|
|
1078
1208
|
}
|
|
1079
1209
|
|
|
1080
|
-
@if should-emit($theme, $carbon
|
|
1210
|
+
@if should-emit($theme, $parent-carbon-theme, 'hover-row', $emit-difference)
|
|
1211
|
+
{
|
|
1081
1212
|
@include custom-property('hover-row', map-get($theme, 'hover-row'));
|
|
1082
1213
|
}
|
|
1083
1214
|
|
|
1084
|
-
@if should-emit(
|
|
1215
|
+
@if should-emit(
|
|
1216
|
+
$theme,
|
|
1217
|
+
$parent-carbon-theme,
|
|
1218
|
+
'visited-link',
|
|
1219
|
+
$emit-difference
|
|
1220
|
+
)
|
|
1221
|
+
{
|
|
1085
1222
|
@include custom-property('visited-link', map-get($theme, 'visited-link'));
|
|
1086
1223
|
}
|
|
1087
1224
|
|
|
1088
|
-
@if should-emit(
|
|
1225
|
+
@if should-emit(
|
|
1226
|
+
$theme,
|
|
1227
|
+
$parent-carbon-theme,
|
|
1228
|
+
'disabled-01',
|
|
1229
|
+
$emit-difference
|
|
1230
|
+
)
|
|
1231
|
+
{
|
|
1089
1232
|
@include custom-property('disabled-01', map-get($theme, 'disabled-01'));
|
|
1090
1233
|
}
|
|
1091
1234
|
|
|
1092
|
-
@if should-emit(
|
|
1235
|
+
@if should-emit(
|
|
1236
|
+
$theme,
|
|
1237
|
+
$parent-carbon-theme,
|
|
1238
|
+
'disabled-02',
|
|
1239
|
+
$emit-difference
|
|
1240
|
+
)
|
|
1241
|
+
{
|
|
1093
1242
|
@include custom-property('disabled-02', map-get($theme, 'disabled-02'));
|
|
1094
1243
|
}
|
|
1095
1244
|
|
|
1096
|
-
@if should-emit(
|
|
1245
|
+
@if should-emit(
|
|
1246
|
+
$theme,
|
|
1247
|
+
$parent-carbon-theme,
|
|
1248
|
+
'disabled-03',
|
|
1249
|
+
$emit-difference
|
|
1250
|
+
)
|
|
1251
|
+
{
|
|
1097
1252
|
@include custom-property('disabled-03', map-get($theme, 'disabled-03'));
|
|
1098
1253
|
}
|
|
1099
1254
|
|
|
1100
|
-
@if should-emit($theme, $carbon
|
|
1255
|
+
@if should-emit($theme, $parent-carbon-theme, 'highlight', $emit-difference)
|
|
1256
|
+
{
|
|
1101
1257
|
@include custom-property('highlight', map-get($theme, 'highlight'));
|
|
1102
1258
|
}
|
|
1103
1259
|
|
|
1104
|
-
@if should-emit(
|
|
1260
|
+
@if should-emit(
|
|
1261
|
+
$theme,
|
|
1262
|
+
$parent-carbon-theme,
|
|
1263
|
+
'decorative-01',
|
|
1264
|
+
$emit-difference
|
|
1265
|
+
)
|
|
1266
|
+
{
|
|
1105
1267
|
@include custom-property(
|
|
1106
1268
|
'decorative-01',
|
|
1107
1269
|
map-get($theme, 'decorative-01')
|
|
1108
1270
|
);
|
|
1109
1271
|
}
|
|
1110
1272
|
|
|
1111
|
-
@if should-emit(
|
|
1273
|
+
@if should-emit(
|
|
1274
|
+
$theme,
|
|
1275
|
+
$parent-carbon-theme,
|
|
1276
|
+
'skeleton-01',
|
|
1277
|
+
$emit-difference
|
|
1278
|
+
)
|
|
1279
|
+
{
|
|
1112
1280
|
@include custom-property('skeleton-01', map-get($theme, 'skeleton-01'));
|
|
1113
1281
|
}
|
|
1114
1282
|
|
|
1115
|
-
@if should-emit(
|
|
1283
|
+
@if should-emit(
|
|
1284
|
+
$theme,
|
|
1285
|
+
$parent-carbon-theme,
|
|
1286
|
+
'skeleton-02',
|
|
1287
|
+
$emit-difference
|
|
1288
|
+
)
|
|
1289
|
+
{
|
|
1116
1290
|
@include custom-property('skeleton-02', map-get($theme, 'skeleton-02'));
|
|
1117
1291
|
}
|
|
1118
1292
|
|
|
1119
|
-
@if should-emit($theme, $carbon
|
|
1293
|
+
@if should-emit($theme, $parent-carbon-theme, 'brand-01', $emit-difference)
|
|
1294
|
+
{
|
|
1120
1295
|
@include custom-property('brand-01', map-get($theme, 'brand-01'));
|
|
1121
1296
|
}
|
|
1122
1297
|
|
|
1123
|
-
@if should-emit($theme, $carbon
|
|
1298
|
+
@if should-emit($theme, $parent-carbon-theme, 'brand-02', $emit-difference)
|
|
1299
|
+
{
|
|
1124
1300
|
@include custom-property('brand-02', map-get($theme, 'brand-02'));
|
|
1125
1301
|
}
|
|
1126
1302
|
|
|
1127
|
-
@if should-emit($theme, $carbon
|
|
1303
|
+
@if should-emit($theme, $parent-carbon-theme, 'brand-03', $emit-difference)
|
|
1304
|
+
{
|
|
1128
1305
|
@include custom-property('brand-03', map-get($theme, 'brand-03'));
|
|
1129
1306
|
}
|
|
1130
1307
|
|
|
1131
|
-
@if should-emit($theme, $carbon
|
|
1308
|
+
@if should-emit($theme, $parent-carbon-theme, 'active-01', $emit-difference)
|
|
1309
|
+
{
|
|
1132
1310
|
@include custom-property('active-01', map-get($theme, 'active-01'));
|
|
1133
1311
|
}
|
|
1134
1312
|
|
|
1135
|
-
@if should-emit(
|
|
1313
|
+
@if should-emit(
|
|
1314
|
+
$theme,
|
|
1315
|
+
$parent-carbon-theme,
|
|
1316
|
+
'hover-field',
|
|
1317
|
+
$emit-difference
|
|
1318
|
+
)
|
|
1319
|
+
{
|
|
1136
1320
|
@include custom-property('hover-field', map-get($theme, 'hover-field'));
|
|
1137
1321
|
}
|
|
1138
1322
|
|
|
1139
|
-
@if should-emit(
|
|
1323
|
+
@if should-emit(
|
|
1324
|
+
$theme,
|
|
1325
|
+
$parent-carbon-theme,
|
|
1326
|
+
'caption-01',
|
|
1327
|
+
$emit-difference
|
|
1328
|
+
)
|
|
1329
|
+
{
|
|
1140
1330
|
@include custom-property('caption-01', map-get($theme, 'caption-01'));
|
|
1141
1331
|
}
|
|
1142
1332
|
|
|
1143
|
-
@if should-emit($theme, $carbon
|
|
1333
|
+
@if should-emit($theme, $parent-carbon-theme, 'label-01', $emit-difference)
|
|
1334
|
+
{
|
|
1144
1335
|
@include custom-property('label-01', map-get($theme, 'label-01'));
|
|
1145
1336
|
}
|
|
1146
1337
|
|
|
1147
|
-
@if should-emit(
|
|
1338
|
+
@if should-emit(
|
|
1339
|
+
$theme,
|
|
1340
|
+
$parent-carbon-theme,
|
|
1341
|
+
'helper-text-01',
|
|
1342
|
+
$emit-difference
|
|
1343
|
+
)
|
|
1148
1344
|
{
|
|
1149
1345
|
@include custom-property(
|
|
1150
1346
|
'helper-text-01',
|
|
@@ -1152,43 +1348,73 @@ Define theme variables from a map of tokens
|
|
|
1152
1348
|
);
|
|
1153
1349
|
}
|
|
1154
1350
|
|
|
1155
|
-
@if should-emit(
|
|
1351
|
+
@if should-emit(
|
|
1352
|
+
$theme,
|
|
1353
|
+
$parent-carbon-theme,
|
|
1354
|
+
'body-short-01',
|
|
1355
|
+
$emit-difference
|
|
1356
|
+
)
|
|
1357
|
+
{
|
|
1156
1358
|
@include custom-property(
|
|
1157
1359
|
'body-short-01',
|
|
1158
1360
|
map-get($theme, 'body-short-01')
|
|
1159
1361
|
);
|
|
1160
1362
|
}
|
|
1161
1363
|
|
|
1162
|
-
@if should-emit(
|
|
1364
|
+
@if should-emit(
|
|
1365
|
+
$theme,
|
|
1366
|
+
$parent-carbon-theme,
|
|
1367
|
+
'body-long-01',
|
|
1368
|
+
$emit-difference
|
|
1369
|
+
)
|
|
1370
|
+
{
|
|
1163
1371
|
@include custom-property('body-long-01', map-get($theme, 'body-long-01'));
|
|
1164
1372
|
}
|
|
1165
1373
|
|
|
1166
|
-
@if should-emit(
|
|
1374
|
+
@if should-emit(
|
|
1375
|
+
$theme,
|
|
1376
|
+
$parent-carbon-theme,
|
|
1377
|
+
'body-short-02',
|
|
1378
|
+
$emit-difference
|
|
1379
|
+
)
|
|
1380
|
+
{
|
|
1167
1381
|
@include custom-property(
|
|
1168
1382
|
'body-short-02',
|
|
1169
1383
|
map-get($theme, 'body-short-02')
|
|
1170
1384
|
);
|
|
1171
1385
|
}
|
|
1172
1386
|
|
|
1173
|
-
@if should-emit(
|
|
1387
|
+
@if should-emit(
|
|
1388
|
+
$theme,
|
|
1389
|
+
$parent-carbon-theme,
|
|
1390
|
+
'body-long-02',
|
|
1391
|
+
$emit-difference
|
|
1392
|
+
)
|
|
1393
|
+
{
|
|
1174
1394
|
@include custom-property('body-long-02', map-get($theme, 'body-long-02'));
|
|
1175
1395
|
}
|
|
1176
1396
|
|
|
1177
|
-
@if should-emit($theme, $carbon
|
|
1397
|
+
@if should-emit($theme, $parent-carbon-theme, 'code-01', $emit-difference) {
|
|
1178
1398
|
@include custom-property('code-01', map-get($theme, 'code-01'));
|
|
1179
1399
|
}
|
|
1180
1400
|
|
|
1181
|
-
@if should-emit($theme, $carbon
|
|
1401
|
+
@if should-emit($theme, $parent-carbon-theme, 'code-02', $emit-difference) {
|
|
1182
1402
|
@include custom-property('code-02', map-get($theme, 'code-02'));
|
|
1183
1403
|
}
|
|
1184
1404
|
|
|
1185
|
-
@if should-emit(
|
|
1405
|
+
@if should-emit(
|
|
1406
|
+
$theme,
|
|
1407
|
+
$parent-carbon-theme,
|
|
1408
|
+
'heading-01',
|
|
1409
|
+
$emit-difference
|
|
1410
|
+
)
|
|
1411
|
+
{
|
|
1186
1412
|
@include custom-property('heading-01', map-get($theme, 'heading-01'));
|
|
1187
1413
|
}
|
|
1188
1414
|
|
|
1189
1415
|
@if should-emit(
|
|
1190
1416
|
$theme,
|
|
1191
|
-
$carbon
|
|
1417
|
+
$parent-carbon-theme,
|
|
1192
1418
|
'productive-heading-01',
|
|
1193
1419
|
$emit-difference
|
|
1194
1420
|
)
|
|
@@ -1199,13 +1425,19 @@ Define theme variables from a map of tokens
|
|
|
1199
1425
|
);
|
|
1200
1426
|
}
|
|
1201
1427
|
|
|
1202
|
-
@if should-emit(
|
|
1428
|
+
@if should-emit(
|
|
1429
|
+
$theme,
|
|
1430
|
+
$parent-carbon-theme,
|
|
1431
|
+
'heading-02',
|
|
1432
|
+
$emit-difference
|
|
1433
|
+
)
|
|
1434
|
+
{
|
|
1203
1435
|
@include custom-property('heading-02', map-get($theme, 'heading-02'));
|
|
1204
1436
|
}
|
|
1205
1437
|
|
|
1206
1438
|
@if should-emit(
|
|
1207
1439
|
$theme,
|
|
1208
|
-
$carbon
|
|
1440
|
+
$parent-carbon-theme,
|
|
1209
1441
|
'productive-heading-02',
|
|
1210
1442
|
$emit-difference
|
|
1211
1443
|
)
|
|
@@ -1218,7 +1450,7 @@ Define theme variables from a map of tokens
|
|
|
1218
1450
|
|
|
1219
1451
|
@if should-emit(
|
|
1220
1452
|
$theme,
|
|
1221
|
-
$carbon
|
|
1453
|
+
$parent-carbon-theme,
|
|
1222
1454
|
'productive-heading-03',
|
|
1223
1455
|
$emit-difference
|
|
1224
1456
|
)
|
|
@@ -1231,7 +1463,7 @@ Define theme variables from a map of tokens
|
|
|
1231
1463
|
|
|
1232
1464
|
@if should-emit(
|
|
1233
1465
|
$theme,
|
|
1234
|
-
$carbon
|
|
1466
|
+
$parent-carbon-theme,
|
|
1235
1467
|
'productive-heading-04',
|
|
1236
1468
|
$emit-difference
|
|
1237
1469
|
)
|
|
@@ -1244,7 +1476,7 @@ Define theme variables from a map of tokens
|
|
|
1244
1476
|
|
|
1245
1477
|
@if should-emit(
|
|
1246
1478
|
$theme,
|
|
1247
|
-
$carbon
|
|
1479
|
+
$parent-carbon-theme,
|
|
1248
1480
|
'productive-heading-05',
|
|
1249
1481
|
$emit-difference
|
|
1250
1482
|
)
|
|
@@ -1257,7 +1489,7 @@ Define theme variables from a map of tokens
|
|
|
1257
1489
|
|
|
1258
1490
|
@if should-emit(
|
|
1259
1491
|
$theme,
|
|
1260
|
-
$carbon
|
|
1492
|
+
$parent-carbon-theme,
|
|
1261
1493
|
'productive-heading-06',
|
|
1262
1494
|
$emit-difference
|
|
1263
1495
|
)
|
|
@@ -1270,7 +1502,7 @@ Define theme variables from a map of tokens
|
|
|
1270
1502
|
|
|
1271
1503
|
@if should-emit(
|
|
1272
1504
|
$theme,
|
|
1273
|
-
$carbon
|
|
1505
|
+
$parent-carbon-theme,
|
|
1274
1506
|
'productive-heading-07',
|
|
1275
1507
|
$emit-difference
|
|
1276
1508
|
)
|
|
@@ -1283,7 +1515,7 @@ Define theme variables from a map of tokens
|
|
|
1283
1515
|
|
|
1284
1516
|
@if should-emit(
|
|
1285
1517
|
$theme,
|
|
1286
|
-
$carbon
|
|
1518
|
+
$parent-carbon-theme,
|
|
1287
1519
|
'expressive-heading-01',
|
|
1288
1520
|
$emit-difference
|
|
1289
1521
|
)
|
|
@@ -1296,7 +1528,7 @@ Define theme variables from a map of tokens
|
|
|
1296
1528
|
|
|
1297
1529
|
@if should-emit(
|
|
1298
1530
|
$theme,
|
|
1299
|
-
$carbon
|
|
1531
|
+
$parent-carbon-theme,
|
|
1300
1532
|
'expressive-heading-02',
|
|
1301
1533
|
$emit-difference
|
|
1302
1534
|
)
|
|
@@ -1309,7 +1541,7 @@ Define theme variables from a map of tokens
|
|
|
1309
1541
|
|
|
1310
1542
|
@if should-emit(
|
|
1311
1543
|
$theme,
|
|
1312
|
-
$carbon
|
|
1544
|
+
$parent-carbon-theme,
|
|
1313
1545
|
'expressive-heading-03',
|
|
1314
1546
|
$emit-difference
|
|
1315
1547
|
)
|
|
@@ -1322,7 +1554,7 @@ Define theme variables from a map of tokens
|
|
|
1322
1554
|
|
|
1323
1555
|
@if should-emit(
|
|
1324
1556
|
$theme,
|
|
1325
|
-
$carbon
|
|
1557
|
+
$parent-carbon-theme,
|
|
1326
1558
|
'expressive-heading-04',
|
|
1327
1559
|
$emit-difference
|
|
1328
1560
|
)
|
|
@@ -1335,7 +1567,7 @@ Define theme variables from a map of tokens
|
|
|
1335
1567
|
|
|
1336
1568
|
@if should-emit(
|
|
1337
1569
|
$theme,
|
|
1338
|
-
$carbon
|
|
1570
|
+
$parent-carbon-theme,
|
|
1339
1571
|
'expressive-heading-05',
|
|
1340
1572
|
$emit-difference
|
|
1341
1573
|
)
|
|
@@ -1348,7 +1580,7 @@ Define theme variables from a map of tokens
|
|
|
1348
1580
|
|
|
1349
1581
|
@if should-emit(
|
|
1350
1582
|
$theme,
|
|
1351
|
-
$carbon
|
|
1583
|
+
$parent-carbon-theme,
|
|
1352
1584
|
'expressive-heading-06',
|
|
1353
1585
|
$emit-difference
|
|
1354
1586
|
)
|
|
@@ -1361,7 +1593,7 @@ Define theme variables from a map of tokens
|
|
|
1361
1593
|
|
|
1362
1594
|
@if should-emit(
|
|
1363
1595
|
$theme,
|
|
1364
|
-
$carbon
|
|
1596
|
+
$parent-carbon-theme,
|
|
1365
1597
|
'expressive-paragraph-01',
|
|
1366
1598
|
$emit-difference
|
|
1367
1599
|
)
|
|
@@ -1372,81 +1604,189 @@ Define theme variables from a map of tokens
|
|
|
1372
1604
|
);
|
|
1373
1605
|
}
|
|
1374
1606
|
|
|
1375
|
-
@if should-emit(
|
|
1607
|
+
@if should-emit(
|
|
1608
|
+
$theme,
|
|
1609
|
+
$parent-carbon-theme,
|
|
1610
|
+
'quotation-01',
|
|
1611
|
+
$emit-difference
|
|
1612
|
+
)
|
|
1613
|
+
{
|
|
1376
1614
|
@include custom-property('quotation-01', map-get($theme, 'quotation-01'));
|
|
1377
1615
|
}
|
|
1378
1616
|
|
|
1379
|
-
@if should-emit(
|
|
1617
|
+
@if should-emit(
|
|
1618
|
+
$theme,
|
|
1619
|
+
$parent-carbon-theme,
|
|
1620
|
+
'quotation-02',
|
|
1621
|
+
$emit-difference
|
|
1622
|
+
)
|
|
1623
|
+
{
|
|
1380
1624
|
@include custom-property('quotation-02', map-get($theme, 'quotation-02'));
|
|
1381
1625
|
}
|
|
1382
1626
|
|
|
1383
|
-
@if should-emit(
|
|
1627
|
+
@if should-emit(
|
|
1628
|
+
$theme,
|
|
1629
|
+
$parent-carbon-theme,
|
|
1630
|
+
'display-01',
|
|
1631
|
+
$emit-difference
|
|
1632
|
+
)
|
|
1633
|
+
{
|
|
1384
1634
|
@include custom-property('display-01', map-get($theme, 'display-01'));
|
|
1385
1635
|
}
|
|
1386
1636
|
|
|
1387
|
-
@if should-emit(
|
|
1637
|
+
@if should-emit(
|
|
1638
|
+
$theme,
|
|
1639
|
+
$parent-carbon-theme,
|
|
1640
|
+
'display-02',
|
|
1641
|
+
$emit-difference
|
|
1642
|
+
)
|
|
1643
|
+
{
|
|
1388
1644
|
@include custom-property('display-02', map-get($theme, 'display-02'));
|
|
1389
1645
|
}
|
|
1390
1646
|
|
|
1391
|
-
@if should-emit(
|
|
1647
|
+
@if should-emit(
|
|
1648
|
+
$theme,
|
|
1649
|
+
$parent-carbon-theme,
|
|
1650
|
+
'display-03',
|
|
1651
|
+
$emit-difference
|
|
1652
|
+
)
|
|
1653
|
+
{
|
|
1392
1654
|
@include custom-property('display-03', map-get($theme, 'display-03'));
|
|
1393
1655
|
}
|
|
1394
1656
|
|
|
1395
|
-
@if should-emit(
|
|
1657
|
+
@if should-emit(
|
|
1658
|
+
$theme,
|
|
1659
|
+
$parent-carbon-theme,
|
|
1660
|
+
'display-04',
|
|
1661
|
+
$emit-difference
|
|
1662
|
+
)
|
|
1663
|
+
{
|
|
1396
1664
|
@include custom-property('display-04', map-get($theme, 'display-04'));
|
|
1397
1665
|
}
|
|
1398
1666
|
|
|
1399
|
-
@if should-emit(
|
|
1667
|
+
@if should-emit(
|
|
1668
|
+
$theme,
|
|
1669
|
+
$parent-carbon-theme,
|
|
1670
|
+
'spacing-01',
|
|
1671
|
+
$emit-difference
|
|
1672
|
+
)
|
|
1673
|
+
{
|
|
1400
1674
|
@include custom-property('spacing-01', map-get($theme, 'spacing-01'));
|
|
1401
1675
|
}
|
|
1402
1676
|
|
|
1403
|
-
@if should-emit(
|
|
1677
|
+
@if should-emit(
|
|
1678
|
+
$theme,
|
|
1679
|
+
$parent-carbon-theme,
|
|
1680
|
+
'spacing-02',
|
|
1681
|
+
$emit-difference
|
|
1682
|
+
)
|
|
1683
|
+
{
|
|
1404
1684
|
@include custom-property('spacing-02', map-get($theme, 'spacing-02'));
|
|
1405
1685
|
}
|
|
1406
1686
|
|
|
1407
|
-
@if should-emit(
|
|
1687
|
+
@if should-emit(
|
|
1688
|
+
$theme,
|
|
1689
|
+
$parent-carbon-theme,
|
|
1690
|
+
'spacing-03',
|
|
1691
|
+
$emit-difference
|
|
1692
|
+
)
|
|
1693
|
+
{
|
|
1408
1694
|
@include custom-property('spacing-03', map-get($theme, 'spacing-03'));
|
|
1409
1695
|
}
|
|
1410
1696
|
|
|
1411
|
-
@if should-emit(
|
|
1697
|
+
@if should-emit(
|
|
1698
|
+
$theme,
|
|
1699
|
+
$parent-carbon-theme,
|
|
1700
|
+
'spacing-04',
|
|
1701
|
+
$emit-difference
|
|
1702
|
+
)
|
|
1703
|
+
{
|
|
1412
1704
|
@include custom-property('spacing-04', map-get($theme, 'spacing-04'));
|
|
1413
1705
|
}
|
|
1414
1706
|
|
|
1415
|
-
@if should-emit(
|
|
1707
|
+
@if should-emit(
|
|
1708
|
+
$theme,
|
|
1709
|
+
$parent-carbon-theme,
|
|
1710
|
+
'spacing-05',
|
|
1711
|
+
$emit-difference
|
|
1712
|
+
)
|
|
1713
|
+
{
|
|
1416
1714
|
@include custom-property('spacing-05', map-get($theme, 'spacing-05'));
|
|
1417
1715
|
}
|
|
1418
1716
|
|
|
1419
|
-
@if should-emit(
|
|
1717
|
+
@if should-emit(
|
|
1718
|
+
$theme,
|
|
1719
|
+
$parent-carbon-theme,
|
|
1720
|
+
'spacing-06',
|
|
1721
|
+
$emit-difference
|
|
1722
|
+
)
|
|
1723
|
+
{
|
|
1420
1724
|
@include custom-property('spacing-06', map-get($theme, 'spacing-06'));
|
|
1421
1725
|
}
|
|
1422
1726
|
|
|
1423
|
-
@if should-emit(
|
|
1727
|
+
@if should-emit(
|
|
1728
|
+
$theme,
|
|
1729
|
+
$parent-carbon-theme,
|
|
1730
|
+
'spacing-07',
|
|
1731
|
+
$emit-difference
|
|
1732
|
+
)
|
|
1733
|
+
{
|
|
1424
1734
|
@include custom-property('spacing-07', map-get($theme, 'spacing-07'));
|
|
1425
1735
|
}
|
|
1426
1736
|
|
|
1427
|
-
@if should-emit(
|
|
1737
|
+
@if should-emit(
|
|
1738
|
+
$theme,
|
|
1739
|
+
$parent-carbon-theme,
|
|
1740
|
+
'spacing-08',
|
|
1741
|
+
$emit-difference
|
|
1742
|
+
)
|
|
1743
|
+
{
|
|
1428
1744
|
@include custom-property('spacing-08', map-get($theme, 'spacing-08'));
|
|
1429
1745
|
}
|
|
1430
1746
|
|
|
1431
|
-
@if should-emit(
|
|
1747
|
+
@if should-emit(
|
|
1748
|
+
$theme,
|
|
1749
|
+
$parent-carbon-theme,
|
|
1750
|
+
'spacing-09',
|
|
1751
|
+
$emit-difference
|
|
1752
|
+
)
|
|
1753
|
+
{
|
|
1432
1754
|
@include custom-property('spacing-09', map-get($theme, 'spacing-09'));
|
|
1433
1755
|
}
|
|
1434
1756
|
|
|
1435
|
-
@if should-emit(
|
|
1757
|
+
@if should-emit(
|
|
1758
|
+
$theme,
|
|
1759
|
+
$parent-carbon-theme,
|
|
1760
|
+
'spacing-10',
|
|
1761
|
+
$emit-difference
|
|
1762
|
+
)
|
|
1763
|
+
{
|
|
1436
1764
|
@include custom-property('spacing-10', map-get($theme, 'spacing-10'));
|
|
1437
1765
|
}
|
|
1438
1766
|
|
|
1439
|
-
@if should-emit(
|
|
1767
|
+
@if should-emit(
|
|
1768
|
+
$theme,
|
|
1769
|
+
$parent-carbon-theme,
|
|
1770
|
+
'spacing-11',
|
|
1771
|
+
$emit-difference
|
|
1772
|
+
)
|
|
1773
|
+
{
|
|
1440
1774
|
@include custom-property('spacing-11', map-get($theme, 'spacing-11'));
|
|
1441
1775
|
}
|
|
1442
1776
|
|
|
1443
|
-
@if should-emit(
|
|
1777
|
+
@if should-emit(
|
|
1778
|
+
$theme,
|
|
1779
|
+
$parent-carbon-theme,
|
|
1780
|
+
'spacing-12',
|
|
1781
|
+
$emit-difference
|
|
1782
|
+
)
|
|
1783
|
+
{
|
|
1444
1784
|
@include custom-property('spacing-12', map-get($theme, 'spacing-12'));
|
|
1445
1785
|
}
|
|
1446
1786
|
|
|
1447
1787
|
@if should-emit(
|
|
1448
1788
|
$theme,
|
|
1449
|
-
$carbon
|
|
1789
|
+
$parent-carbon-theme,
|
|
1450
1790
|
'fluid-spacing-01',
|
|
1451
1791
|
$emit-difference
|
|
1452
1792
|
)
|
|
@@ -1459,7 +1799,7 @@ Define theme variables from a map of tokens
|
|
|
1459
1799
|
|
|
1460
1800
|
@if should-emit(
|
|
1461
1801
|
$theme,
|
|
1462
|
-
$carbon
|
|
1802
|
+
$parent-carbon-theme,
|
|
1463
1803
|
'fluid-spacing-02',
|
|
1464
1804
|
$emit-difference
|
|
1465
1805
|
)
|
|
@@ -1472,7 +1812,7 @@ Define theme variables from a map of tokens
|
|
|
1472
1812
|
|
|
1473
1813
|
@if should-emit(
|
|
1474
1814
|
$theme,
|
|
1475
|
-
$carbon
|
|
1815
|
+
$parent-carbon-theme,
|
|
1476
1816
|
'fluid-spacing-03',
|
|
1477
1817
|
$emit-difference
|
|
1478
1818
|
)
|
|
@@ -1485,7 +1825,7 @@ Define theme variables from a map of tokens
|
|
|
1485
1825
|
|
|
1486
1826
|
@if should-emit(
|
|
1487
1827
|
$theme,
|
|
1488
|
-
$carbon
|
|
1828
|
+
$parent-carbon-theme,
|
|
1489
1829
|
'fluid-spacing-04',
|
|
1490
1830
|
$emit-difference
|
|
1491
1831
|
)
|
|
@@ -1496,66 +1836,118 @@ Define theme variables from a map of tokens
|
|
|
1496
1836
|
);
|
|
1497
1837
|
}
|
|
1498
1838
|
|
|
1499
|
-
@if should-emit($theme, $carbon
|
|
1839
|
+
@if should-emit($theme, $parent-carbon-theme, 'layout-01', $emit-difference)
|
|
1840
|
+
{
|
|
1500
1841
|
@include custom-property('layout-01', map-get($theme, 'layout-01'));
|
|
1501
1842
|
}
|
|
1502
1843
|
|
|
1503
|
-
@if should-emit($theme, $carbon
|
|
1844
|
+
@if should-emit($theme, $parent-carbon-theme, 'layout-02', $emit-difference)
|
|
1845
|
+
{
|
|
1504
1846
|
@include custom-property('layout-02', map-get($theme, 'layout-02'));
|
|
1505
1847
|
}
|
|
1506
1848
|
|
|
1507
|
-
@if should-emit($theme, $carbon
|
|
1849
|
+
@if should-emit($theme, $parent-carbon-theme, 'layout-03', $emit-difference)
|
|
1850
|
+
{
|
|
1508
1851
|
@include custom-property('layout-03', map-get($theme, 'layout-03'));
|
|
1509
1852
|
}
|
|
1510
1853
|
|
|
1511
|
-
@if should-emit($theme, $carbon
|
|
1854
|
+
@if should-emit($theme, $parent-carbon-theme, 'layout-04', $emit-difference)
|
|
1855
|
+
{
|
|
1512
1856
|
@include custom-property('layout-04', map-get($theme, 'layout-04'));
|
|
1513
1857
|
}
|
|
1514
1858
|
|
|
1515
|
-
@if should-emit($theme, $carbon
|
|
1859
|
+
@if should-emit($theme, $parent-carbon-theme, 'layout-05', $emit-difference)
|
|
1860
|
+
{
|
|
1516
1861
|
@include custom-property('layout-05', map-get($theme, 'layout-05'));
|
|
1517
1862
|
}
|
|
1518
1863
|
|
|
1519
|
-
@if should-emit($theme, $carbon
|
|
1864
|
+
@if should-emit($theme, $parent-carbon-theme, 'layout-06', $emit-difference)
|
|
1865
|
+
{
|
|
1520
1866
|
@include custom-property('layout-06', map-get($theme, 'layout-06'));
|
|
1521
1867
|
}
|
|
1522
1868
|
|
|
1523
|
-
@if should-emit($theme, $carbon
|
|
1869
|
+
@if should-emit($theme, $parent-carbon-theme, 'layout-07', $emit-difference)
|
|
1870
|
+
{
|
|
1524
1871
|
@include custom-property('layout-07', map-get($theme, 'layout-07'));
|
|
1525
1872
|
}
|
|
1526
1873
|
|
|
1527
|
-
@if should-emit(
|
|
1874
|
+
@if should-emit(
|
|
1875
|
+
$theme,
|
|
1876
|
+
$parent-carbon-theme,
|
|
1877
|
+
'container-01',
|
|
1878
|
+
$emit-difference
|
|
1879
|
+
)
|
|
1880
|
+
{
|
|
1528
1881
|
@include custom-property('container-01', map-get($theme, 'container-01'));
|
|
1529
1882
|
}
|
|
1530
1883
|
|
|
1531
|
-
@if should-emit(
|
|
1884
|
+
@if should-emit(
|
|
1885
|
+
$theme,
|
|
1886
|
+
$parent-carbon-theme,
|
|
1887
|
+
'container-02',
|
|
1888
|
+
$emit-difference
|
|
1889
|
+
)
|
|
1890
|
+
{
|
|
1532
1891
|
@include custom-property('container-02', map-get($theme, 'container-02'));
|
|
1533
1892
|
}
|
|
1534
1893
|
|
|
1535
|
-
@if should-emit(
|
|
1894
|
+
@if should-emit(
|
|
1895
|
+
$theme,
|
|
1896
|
+
$parent-carbon-theme,
|
|
1897
|
+
'container-03',
|
|
1898
|
+
$emit-difference
|
|
1899
|
+
)
|
|
1900
|
+
{
|
|
1536
1901
|
@include custom-property('container-03', map-get($theme, 'container-03'));
|
|
1537
1902
|
}
|
|
1538
1903
|
|
|
1539
|
-
@if should-emit(
|
|
1904
|
+
@if should-emit(
|
|
1905
|
+
$theme,
|
|
1906
|
+
$parent-carbon-theme,
|
|
1907
|
+
'container-04',
|
|
1908
|
+
$emit-difference
|
|
1909
|
+
)
|
|
1910
|
+
{
|
|
1540
1911
|
@include custom-property('container-04', map-get($theme, 'container-04'));
|
|
1541
1912
|
}
|
|
1542
1913
|
|
|
1543
|
-
@if should-emit(
|
|
1914
|
+
@if should-emit(
|
|
1915
|
+
$theme,
|
|
1916
|
+
$parent-carbon-theme,
|
|
1917
|
+
'container-05',
|
|
1918
|
+
$emit-difference
|
|
1919
|
+
)
|
|
1920
|
+
{
|
|
1544
1921
|
@include custom-property('container-05', map-get($theme, 'container-05'));
|
|
1545
1922
|
}
|
|
1546
1923
|
|
|
1547
|
-
@if should-emit(
|
|
1924
|
+
@if should-emit(
|
|
1925
|
+
$theme,
|
|
1926
|
+
$parent-carbon-theme,
|
|
1927
|
+
'icon-size-01',
|
|
1928
|
+
$emit-difference
|
|
1929
|
+
)
|
|
1930
|
+
{
|
|
1548
1931
|
@include custom-property('icon-size-01', map-get($theme, 'icon-size-01'));
|
|
1549
1932
|
}
|
|
1550
1933
|
|
|
1551
|
-
@if should-emit(
|
|
1934
|
+
@if should-emit(
|
|
1935
|
+
$theme,
|
|
1936
|
+
$parent-carbon-theme,
|
|
1937
|
+
'icon-size-02',
|
|
1938
|
+
$emit-difference
|
|
1939
|
+
)
|
|
1940
|
+
{
|
|
1552
1941
|
@include custom-property('icon-size-02', map-get($theme, 'icon-size-02'));
|
|
1553
1942
|
}
|
|
1554
1943
|
}
|
|
1555
1944
|
|
|
1556
1945
|
@content;
|
|
1946
|
+
|
|
1557
1947
|
// Reset to default theme after apply in content
|
|
1558
|
-
@if $theme != $carbon
|
|
1948
|
+
@if $carbon--theme != $parent-carbon-theme {
|
|
1949
|
+
$carbon--theme: $parent-carbon-theme !global;
|
|
1950
|
+
|
|
1559
1951
|
@include carbon--theme();
|
|
1560
1952
|
}
|
|
1561
1953
|
}
|
|
@@ -1600,6 +1992,7 @@ Define theme variables from a map of tokens
|
|
|
1600
1992
|
- **Requires**:
|
|
1601
1993
|
- [custom-property [mixin]](#custom-property-mixin)
|
|
1602
1994
|
- [should-emit [function]](#should-emit-function)
|
|
1995
|
+
- [carbon--theme [variable]](#carbon--theme-variable)
|
|
1603
1996
|
- [interactive-01 [variable]](#interactive-01-variable)
|
|
1604
1997
|
- [interactive-02 [variable]](#interactive-02-variable)
|
|
1605
1998
|
- [interactive-03 [variable]](#interactive-03-variable)
|
|
@@ -1728,7 +2121,6 @@ Define theme variables from a map of tokens
|
|
|
1728
2121
|
- [icon-size-01 [variable]](#icon-size-01-variable)
|
|
1729
2122
|
- [icon-size-02 [variable]](#icon-size-02-variable)
|
|
1730
2123
|
- [custom-property-prefix [variable]](#custom-property-prefix-variable)
|
|
1731
|
-
- [carbon--theme [variable]](#carbon--theme-variable)
|
|
1732
2124
|
|
|
1733
2125
|
### ✅carbon--theme--g10 [variable]
|
|
1734
2126
|
|