@carbon/themes 10.10.3 → 10.11.0

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 CHANGED
@@ -13,6 +13,7 @@
13
13
  - [❌custom-property [mixin]](#custom-property-mixin)
14
14
  - [❌should-emit [function]](#should-emit-function)
15
15
  - [✅carbon--theme [mixin]](#carbon--theme-mixin)
16
+ - [❌emit-component-tokens [mixin]](#emit-component-tokens-mixin)
16
17
  - [✅carbon--theme--g10 [variable]](#carbon--theme--g10-variable)
17
18
  - [✅carbon--theme--g90 [variable]](#carbon--theme--g90-variable)
18
19
  - [✅carbon--theme--g100 [variable]](#carbon--theme--g100-variable)
@@ -65,6 +66,7 @@
65
66
  - [✅hover-ui [variable]](#hover-ui-variable)
66
67
  - [✅active-ui [variable]](#active-ui-variable)
67
68
  - [✅selected-ui [variable]](#selected-ui-variable)
69
+ - [✅selected-light-ui [variable]](#selected-light-ui-variable)
68
70
  - [✅hover-selected-ui [variable]](#hover-selected-ui-variable)
69
71
  - [✅inverse-hover-ui [variable]](#inverse-hover-ui-variable)
70
72
  - [✅hover-danger [variable]](#hover-danger-variable)
@@ -75,6 +77,7 @@
75
77
  - [✅disabled-02 [variable]](#disabled-02-variable)
76
78
  - [✅disabled-03 [variable]](#disabled-03-variable)
77
79
  - [✅highlight [variable]](#highlight-variable)
80
+ - [✅decorative-01 [variable]](#decorative-01-variable)
78
81
  - [✅skeleton-01 [variable]](#skeleton-01-variable)
79
82
  - [✅skeleton-02 [variable]](#skeleton-02-variable)
80
83
  - [✅⚠️brand-01 [variable]](#brand-01-variable)
@@ -162,6 +165,7 @@ $custom-property-prefix: 'cds';
162
165
  - **Group**: [@carbon/themes](#carbonthemes)
163
166
  - **Used by**:
164
167
  - [carbon--theme [mixin]](#carbon--theme-mixin)
168
+ - [emit-component-tokens [mixin]](#emit-component-tokens-mixin)
165
169
 
166
170
  ### ❌custom-property [mixin]
167
171
 
@@ -219,6 +223,8 @@ Define theme variables from a map of tokens
219
223
 
220
224
  ```scss
221
225
  @mixin carbon--theme($theme: $carbon--theme, $emit-custom-properties: false) {
226
+ $parent-carbon-theme: $carbon--theme;
227
+ $carbon--theme: $theme !global;
222
228
  $interactive-01: map-get($theme, 'interactive-01') !global;
223
229
  $interactive-02: map-get($theme, 'interactive-02') !global;
224
230
  $interactive-03: map-get($theme, 'interactive-03') !global;
@@ -266,6 +272,7 @@ Define theme variables from a map of tokens
266
272
  $hover-ui: map-get($theme, 'hover-ui') !global;
267
273
  $active-ui: map-get($theme, 'active-ui') !global;
268
274
  $selected-ui: map-get($theme, 'selected-ui') !global;
275
+ $selected-light-ui: map-get($theme, 'selected-light-ui') !global;
269
276
  $hover-selected-ui: map-get($theme, 'hover-selected-ui') !global;
270
277
  $inverse-hover-ui: map-get($theme, 'inverse-hover-ui') !global;
271
278
  $hover-danger: map-get($theme, 'hover-danger') !global;
@@ -276,6 +283,7 @@ Define theme variables from a map of tokens
276
283
  $disabled-02: map-get($theme, 'disabled-02') !global;
277
284
  $disabled-03: map-get($theme, 'disabled-03') !global;
278
285
  $highlight: map-get($theme, 'highlight') !global;
286
+ $decorative-01: map-get($theme, 'decorative-01') !global;
279
287
  $skeleton-01: map-get($theme, 'skeleton-01') !global;
280
288
  $skeleton-02: map-get($theme, 'skeleton-02') !global;
281
289
  $brand-01: map-get($theme, 'brand-01') !global;
@@ -536,6 +544,10 @@ Define theme variables from a map of tokens
536
544
  --#{$custom-property-prefix}-selected-ui,
537
545
  map-get($theme, 'selected-ui')
538
546
  ) !global;
547
+ $selected-light-ui: var(
548
+ --#{$custom-property-prefix}-selected-light-ui,
549
+ map-get($theme, 'selected-light-ui')
550
+ ) !global;
539
551
  $hover-selected-ui: var(
540
552
  --#{$custom-property-prefix}-hover-selected-ui,
541
553
  map-get($theme, 'hover-selected-ui')
@@ -576,6 +588,10 @@ Define theme variables from a map of tokens
576
588
  --#{$custom-property-prefix}-highlight,
577
589
  map-get($theme, 'highlight')
578
590
  ) !global;
591
+ $decorative-01: var(
592
+ --#{$custom-property-prefix}-decorative-01,
593
+ map-get($theme, 'decorative-01')
594
+ ) !global;
579
595
  $skeleton-01: var(
580
596
  --#{$custom-property-prefix}-skeleton-01,
581
597
  map-get($theme, 'skeleton-01')
@@ -726,7 +742,12 @@ Define theme variables from a map of tokens
726
742
  ) !global;
727
743
  }
728
744
  @if $emit-custom-properties == true {
729
- @if should-emit($theme, $carbon--theme, 'interactive-01', $emit-difference)
745
+ @if should-emit(
746
+ $theme,
747
+ $parent-carbon-theme,
748
+ 'interactive-01',
749
+ $emit-difference
750
+ )
730
751
  {
731
752
  @include custom-property(
732
753
  'interactive-01',
@@ -734,7 +755,12 @@ Define theme variables from a map of tokens
734
755
  );
735
756
  }
736
757
 
737
- @if should-emit($theme, $carbon--theme, 'interactive-02', $emit-difference)
758
+ @if should-emit(
759
+ $theme,
760
+ $parent-carbon-theme,
761
+ 'interactive-02',
762
+ $emit-difference
763
+ )
738
764
  {
739
765
  @include custom-property(
740
766
  'interactive-02',
@@ -742,7 +768,12 @@ Define theme variables from a map of tokens
742
768
  );
743
769
  }
744
770
 
745
- @if should-emit($theme, $carbon--theme, 'interactive-03', $emit-difference)
771
+ @if should-emit(
772
+ $theme,
773
+ $parent-carbon-theme,
774
+ 'interactive-03',
775
+ $emit-difference
776
+ )
746
777
  {
747
778
  @include custom-property(
748
779
  'interactive-03',
@@ -750,7 +781,12 @@ Define theme variables from a map of tokens
750
781
  );
751
782
  }
752
783
 
753
- @if should-emit($theme, $carbon--theme, 'interactive-04', $emit-difference)
784
+ @if should-emit(
785
+ $theme,
786
+ $parent-carbon-theme,
787
+ 'interactive-04',
788
+ $emit-difference
789
+ )
754
790
  {
755
791
  @include custom-property(
756
792
  'interactive-04',
@@ -758,112 +794,168 @@ Define theme variables from a map of tokens
758
794
  );
759
795
  }
760
796
 
761
- @if should-emit($theme, $carbon--theme, 'ui-background', $emit-difference) {
797
+ @if should-emit(
798
+ $theme,
799
+ $parent-carbon-theme,
800
+ 'ui-background',
801
+ $emit-difference
802
+ )
803
+ {
762
804
  @include custom-property(
763
805
  'ui-background',
764
806
  map-get($theme, 'ui-background')
765
807
  );
766
808
  }
767
809
 
768
- @if should-emit($theme, $carbon--theme, 'ui-01', $emit-difference) {
810
+ @if should-emit($theme, $parent-carbon-theme, 'ui-01', $emit-difference) {
769
811
  @include custom-property('ui-01', map-get($theme, 'ui-01'));
770
812
  }
771
813
 
772
- @if should-emit($theme, $carbon--theme, 'ui-02', $emit-difference) {
814
+ @if should-emit($theme, $parent-carbon-theme, 'ui-02', $emit-difference) {
773
815
  @include custom-property('ui-02', map-get($theme, 'ui-02'));
774
816
  }
775
817
 
776
- @if should-emit($theme, $carbon--theme, 'ui-03', $emit-difference) {
818
+ @if should-emit($theme, $parent-carbon-theme, 'ui-03', $emit-difference) {
777
819
  @include custom-property('ui-03', map-get($theme, 'ui-03'));
778
820
  }
779
821
 
780
- @if should-emit($theme, $carbon--theme, 'ui-04', $emit-difference) {
822
+ @if should-emit($theme, $parent-carbon-theme, 'ui-04', $emit-difference) {
781
823
  @include custom-property('ui-04', map-get($theme, 'ui-04'));
782
824
  }
783
825
 
784
- @if should-emit($theme, $carbon--theme, 'ui-05', $emit-difference) {
826
+ @if should-emit($theme, $parent-carbon-theme, 'ui-05', $emit-difference) {
785
827
  @include custom-property('ui-05', map-get($theme, 'ui-05'));
786
828
  }
787
829
 
788
- @if should-emit($theme, $carbon--theme, 'text-01', $emit-difference) {
830
+ @if should-emit($theme, $parent-carbon-theme, 'text-01', $emit-difference) {
789
831
  @include custom-property('text-01', map-get($theme, 'text-01'));
790
832
  }
791
833
 
792
- @if should-emit($theme, $carbon--theme, 'text-02', $emit-difference) {
834
+ @if should-emit($theme, $parent-carbon-theme, 'text-02', $emit-difference) {
793
835
  @include custom-property('text-02', map-get($theme, 'text-02'));
794
836
  }
795
837
 
796
- @if should-emit($theme, $carbon--theme, 'text-03', $emit-difference) {
838
+ @if should-emit($theme, $parent-carbon-theme, 'text-03', $emit-difference) {
797
839
  @include custom-property('text-03', map-get($theme, 'text-03'));
798
840
  }
799
841
 
800
- @if should-emit($theme, $carbon--theme, 'text-04', $emit-difference) {
842
+ @if should-emit($theme, $parent-carbon-theme, 'text-04', $emit-difference) {
801
843
  @include custom-property('text-04', map-get($theme, 'text-04'));
802
844
  }
803
845
 
804
- @if should-emit($theme, $carbon--theme, 'text-05', $emit-difference) {
846
+ @if should-emit($theme, $parent-carbon-theme, 'text-05', $emit-difference) {
805
847
  @include custom-property('text-05', map-get($theme, 'text-05'));
806
848
  }
807
849
 
808
- @if should-emit($theme, $carbon--theme, 'text-error', $emit-difference) {
850
+ @if should-emit(
851
+ $theme,
852
+ $parent-carbon-theme,
853
+ 'text-error',
854
+ $emit-difference
855
+ )
856
+ {
809
857
  @include custom-property('text-error', map-get($theme, 'text-error'));
810
858
  }
811
859
 
812
- @if should-emit($theme, $carbon--theme, 'icon-01', $emit-difference) {
860
+ @if should-emit($theme, $parent-carbon-theme, 'icon-01', $emit-difference) {
813
861
  @include custom-property('icon-01', map-get($theme, 'icon-01'));
814
862
  }
815
863
 
816
- @if should-emit($theme, $carbon--theme, 'icon-02', $emit-difference) {
864
+ @if should-emit($theme, $parent-carbon-theme, 'icon-02', $emit-difference) {
817
865
  @include custom-property('icon-02', map-get($theme, 'icon-02'));
818
866
  }
819
867
 
820
- @if should-emit($theme, $carbon--theme, 'icon-03', $emit-difference) {
868
+ @if should-emit($theme, $parent-carbon-theme, 'icon-03', $emit-difference) {
821
869
  @include custom-property('icon-03', map-get($theme, 'icon-03'));
822
870
  }
823
871
 
824
- @if should-emit($theme, $carbon--theme, 'link-01', $emit-difference) {
872
+ @if should-emit($theme, $parent-carbon-theme, 'link-01', $emit-difference) {
825
873
  @include custom-property('link-01', map-get($theme, 'link-01'));
826
874
  }
827
875
 
828
- @if should-emit($theme, $carbon--theme, 'inverse-link', $emit-difference) {
876
+ @if should-emit(
877
+ $theme,
878
+ $parent-carbon-theme,
879
+ 'inverse-link',
880
+ $emit-difference
881
+ )
882
+ {
829
883
  @include custom-property('inverse-link', map-get($theme, 'inverse-link'));
830
884
  }
831
885
 
832
- @if should-emit($theme, $carbon--theme, 'field-01', $emit-difference) {
886
+ @if should-emit($theme, $parent-carbon-theme, 'field-01', $emit-difference)
887
+ {
833
888
  @include custom-property('field-01', map-get($theme, 'field-01'));
834
889
  }
835
890
 
836
- @if should-emit($theme, $carbon--theme, 'field-02', $emit-difference) {
891
+ @if should-emit($theme, $parent-carbon-theme, 'field-02', $emit-difference)
892
+ {
837
893
  @include custom-property('field-02', map-get($theme, 'field-02'));
838
894
  }
839
895
 
840
- @if should-emit($theme, $carbon--theme, 'inverse-01', $emit-difference) {
896
+ @if should-emit(
897
+ $theme,
898
+ $parent-carbon-theme,
899
+ 'inverse-01',
900
+ $emit-difference
901
+ )
902
+ {
841
903
  @include custom-property('inverse-01', map-get($theme, 'inverse-01'));
842
904
  }
843
905
 
844
- @if should-emit($theme, $carbon--theme, 'inverse-02', $emit-difference) {
906
+ @if should-emit(
907
+ $theme,
908
+ $parent-carbon-theme,
909
+ 'inverse-02',
910
+ $emit-difference
911
+ )
912
+ {
845
913
  @include custom-property('inverse-02', map-get($theme, 'inverse-02'));
846
914
  }
847
915
 
848
- @if should-emit($theme, $carbon--theme, 'support-01', $emit-difference) {
916
+ @if should-emit(
917
+ $theme,
918
+ $parent-carbon-theme,
919
+ 'support-01',
920
+ $emit-difference
921
+ )
922
+ {
849
923
  @include custom-property('support-01', map-get($theme, 'support-01'));
850
924
  }
851
925
 
852
- @if should-emit($theme, $carbon--theme, 'support-02', $emit-difference) {
926
+ @if should-emit(
927
+ $theme,
928
+ $parent-carbon-theme,
929
+ 'support-02',
930
+ $emit-difference
931
+ )
932
+ {
853
933
  @include custom-property('support-02', map-get($theme, 'support-02'));
854
934
  }
855
935
 
856
- @if should-emit($theme, $carbon--theme, 'support-03', $emit-difference) {
936
+ @if should-emit(
937
+ $theme,
938
+ $parent-carbon-theme,
939
+ 'support-03',
940
+ $emit-difference
941
+ )
942
+ {
857
943
  @include custom-property('support-03', map-get($theme, 'support-03'));
858
944
  }
859
945
 
860
- @if should-emit($theme, $carbon--theme, 'support-04', $emit-difference) {
946
+ @if should-emit(
947
+ $theme,
948
+ $parent-carbon-theme,
949
+ 'support-04',
950
+ $emit-difference
951
+ )
952
+ {
861
953
  @include custom-property('support-04', map-get($theme, 'support-04'));
862
954
  }
863
955
 
864
956
  @if should-emit(
865
957
  $theme,
866
- $carbon--theme,
958
+ $parent-carbon-theme,
867
959
  'inverse-support-01',
868
960
  $emit-difference
869
961
  )
@@ -876,7 +968,7 @@ Define theme variables from a map of tokens
876
968
 
877
969
  @if should-emit(
878
970
  $theme,
879
- $carbon--theme,
971
+ $parent-carbon-theme,
880
972
  'inverse-support-02',
881
973
  $emit-difference
882
974
  )
@@ -889,7 +981,7 @@ Define theme variables from a map of tokens
889
981
 
890
982
  @if should-emit(
891
983
  $theme,
892
- $carbon--theme,
984
+ $parent-carbon-theme,
893
985
  'inverse-support-03',
894
986
  $emit-difference
895
987
  )
@@ -902,7 +994,7 @@ Define theme variables from a map of tokens
902
994
 
903
995
  @if should-emit(
904
996
  $theme,
905
- $carbon--theme,
997
+ $parent-carbon-theme,
906
998
  'inverse-support-04',
907
999
  $emit-difference
908
1000
  )
@@ -913,21 +1005,27 @@ Define theme variables from a map of tokens
913
1005
  );
914
1006
  }
915
1007
 
916
- @if should-emit($theme, $carbon--theme, 'overlay-01', $emit-difference) {
1008
+ @if should-emit(
1009
+ $theme,
1010
+ $parent-carbon-theme,
1011
+ 'overlay-01',
1012
+ $emit-difference
1013
+ )
1014
+ {
917
1015
  @include custom-property('overlay-01', map-get($theme, 'overlay-01'));
918
1016
  }
919
1017
 
920
- @if should-emit($theme, $carbon--theme, 'danger', $emit-difference) {
1018
+ @if should-emit($theme, $parent-carbon-theme, 'danger', $emit-difference) {
921
1019
  @include custom-property('danger', map-get($theme, 'danger'));
922
1020
  }
923
1021
 
924
- @if should-emit($theme, $carbon--theme, 'focus', $emit-difference) {
1022
+ @if should-emit($theme, $parent-carbon-theme, 'focus', $emit-difference) {
925
1023
  @include custom-property('focus', map-get($theme, 'focus'));
926
1024
  }
927
1025
 
928
1026
  @if should-emit(
929
1027
  $theme,
930
- $carbon--theme,
1028
+ $parent-carbon-theme,
931
1029
  'inverse-focus-ui',
932
1030
  $emit-difference
933
1031
  )
@@ -938,14 +1036,25 @@ Define theme variables from a map of tokens
938
1036
  );
939
1037
  }
940
1038
 
941
- @if should-emit($theme, $carbon--theme, 'hover-primary', $emit-difference) {
1039
+ @if should-emit(
1040
+ $theme,
1041
+ $parent-carbon-theme,
1042
+ 'hover-primary',
1043
+ $emit-difference
1044
+ )
1045
+ {
942
1046
  @include custom-property(
943
1047
  'hover-primary',
944
1048
  map-get($theme, 'hover-primary')
945
1049
  );
946
1050
  }
947
1051
 
948
- @if should-emit($theme, $carbon--theme, 'active-primary', $emit-difference)
1052
+ @if should-emit(
1053
+ $theme,
1054
+ $parent-carbon-theme,
1055
+ 'active-primary',
1056
+ $emit-difference
1057
+ )
949
1058
  {
950
1059
  @include custom-property(
951
1060
  'active-primary',
@@ -955,7 +1064,7 @@ Define theme variables from a map of tokens
955
1064
 
956
1065
  @if should-emit(
957
1066
  $theme,
958
- $carbon--theme,
1067
+ $parent-carbon-theme,
959
1068
  'hover-primary-text',
960
1069
  $emit-difference
961
1070
  )
@@ -966,7 +1075,12 @@ Define theme variables from a map of tokens
966
1075
  );
967
1076
  }
968
1077
 
969
- @if should-emit($theme, $carbon--theme, 'hover-secondary', $emit-difference)
1078
+ @if should-emit(
1079
+ $theme,
1080
+ $parent-carbon-theme,
1081
+ 'hover-secondary',
1082
+ $emit-difference
1083
+ )
970
1084
  {
971
1085
  @include custom-property(
972
1086
  'hover-secondary',
@@ -976,7 +1090,7 @@ Define theme variables from a map of tokens
976
1090
 
977
1091
  @if should-emit(
978
1092
  $theme,
979
- $carbon--theme,
1093
+ $parent-carbon-theme,
980
1094
  'active-secondary',
981
1095
  $emit-difference
982
1096
  )
@@ -987,7 +1101,12 @@ Define theme variables from a map of tokens
987
1101
  );
988
1102
  }
989
1103
 
990
- @if should-emit($theme, $carbon--theme, 'hover-tertiary', $emit-difference)
1104
+ @if should-emit(
1105
+ $theme,
1106
+ $parent-carbon-theme,
1107
+ 'hover-tertiary',
1108
+ $emit-difference
1109
+ )
991
1110
  {
992
1111
  @include custom-property(
993
1112
  'hover-tertiary',
@@ -995,7 +1114,12 @@ Define theme variables from a map of tokens
995
1114
  );
996
1115
  }
997
1116
 
998
- @if should-emit($theme, $carbon--theme, 'active-tertiary', $emit-difference)
1117
+ @if should-emit(
1118
+ $theme,
1119
+ $parent-carbon-theme,
1120
+ 'active-tertiary',
1121
+ $emit-difference
1122
+ )
999
1123
  {
1000
1124
  @include custom-property(
1001
1125
  'active-tertiary',
@@ -1003,21 +1127,42 @@ Define theme variables from a map of tokens
1003
1127
  );
1004
1128
  }
1005
1129
 
1006
- @if should-emit($theme, $carbon--theme, 'hover-ui', $emit-difference) {
1130
+ @if should-emit($theme, $parent-carbon-theme, 'hover-ui', $emit-difference)
1131
+ {
1007
1132
  @include custom-property('hover-ui', map-get($theme, 'hover-ui'));
1008
1133
  }
1009
1134
 
1010
- @if should-emit($theme, $carbon--theme, 'active-ui', $emit-difference) {
1135
+ @if should-emit($theme, $parent-carbon-theme, 'active-ui', $emit-difference)
1136
+ {
1011
1137
  @include custom-property('active-ui', map-get($theme, 'active-ui'));
1012
1138
  }
1013
1139
 
1014
- @if should-emit($theme, $carbon--theme, 'selected-ui', $emit-difference) {
1140
+ @if should-emit(
1141
+ $theme,
1142
+ $parent-carbon-theme,
1143
+ 'selected-ui',
1144
+ $emit-difference
1145
+ )
1146
+ {
1015
1147
  @include custom-property('selected-ui', map-get($theme, 'selected-ui'));
1016
1148
  }
1017
1149
 
1018
1150
  @if should-emit(
1019
1151
  $theme,
1020
- $carbon--theme,
1152
+ $parent-carbon-theme,
1153
+ 'selected-light-ui',
1154
+ $emit-difference
1155
+ )
1156
+ {
1157
+ @include custom-property(
1158
+ 'selected-light-ui',
1159
+ map-get($theme, 'selected-light-ui')
1160
+ );
1161
+ }
1162
+
1163
+ @if should-emit(
1164
+ $theme,
1165
+ $parent-carbon-theme,
1021
1166
  'hover-selected-ui',
1022
1167
  $emit-difference
1023
1168
  )
@@ -1030,7 +1175,7 @@ Define theme variables from a map of tokens
1030
1175
 
1031
1176
  @if should-emit(
1032
1177
  $theme,
1033
- $carbon--theme,
1178
+ $parent-carbon-theme,
1034
1179
  'inverse-hover-ui',
1035
1180
  $emit-difference
1036
1181
  )
@@ -1041,78 +1186,163 @@ Define theme variables from a map of tokens
1041
1186
  );
1042
1187
  }
1043
1188
 
1044
- @if should-emit($theme, $carbon--theme, 'hover-danger', $emit-difference) {
1189
+ @if should-emit(
1190
+ $theme,
1191
+ $parent-carbon-theme,
1192
+ 'hover-danger',
1193
+ $emit-difference
1194
+ )
1195
+ {
1045
1196
  @include custom-property('hover-danger', map-get($theme, 'hover-danger'));
1046
1197
  }
1047
1198
 
1048
- @if should-emit($theme, $carbon--theme, 'active-danger', $emit-difference) {
1199
+ @if should-emit(
1200
+ $theme,
1201
+ $parent-carbon-theme,
1202
+ 'active-danger',
1203
+ $emit-difference
1204
+ )
1205
+ {
1049
1206
  @include custom-property(
1050
1207
  'active-danger',
1051
1208
  map-get($theme, 'active-danger')
1052
1209
  );
1053
1210
  }
1054
1211
 
1055
- @if should-emit($theme, $carbon--theme, 'hover-row', $emit-difference) {
1212
+ @if should-emit($theme, $parent-carbon-theme, 'hover-row', $emit-difference)
1213
+ {
1056
1214
  @include custom-property('hover-row', map-get($theme, 'hover-row'));
1057
1215
  }
1058
1216
 
1059
- @if should-emit($theme, $carbon--theme, 'visited-link', $emit-difference) {
1217
+ @if should-emit(
1218
+ $theme,
1219
+ $parent-carbon-theme,
1220
+ 'visited-link',
1221
+ $emit-difference
1222
+ )
1223
+ {
1060
1224
  @include custom-property('visited-link', map-get($theme, 'visited-link'));
1061
1225
  }
1062
1226
 
1063
- @if should-emit($theme, $carbon--theme, 'disabled-01', $emit-difference) {
1227
+ @if should-emit(
1228
+ $theme,
1229
+ $parent-carbon-theme,
1230
+ 'disabled-01',
1231
+ $emit-difference
1232
+ )
1233
+ {
1064
1234
  @include custom-property('disabled-01', map-get($theme, 'disabled-01'));
1065
1235
  }
1066
1236
 
1067
- @if should-emit($theme, $carbon--theme, 'disabled-02', $emit-difference) {
1237
+ @if should-emit(
1238
+ $theme,
1239
+ $parent-carbon-theme,
1240
+ 'disabled-02',
1241
+ $emit-difference
1242
+ )
1243
+ {
1068
1244
  @include custom-property('disabled-02', map-get($theme, 'disabled-02'));
1069
1245
  }
1070
1246
 
1071
- @if should-emit($theme, $carbon--theme, 'disabled-03', $emit-difference) {
1247
+ @if should-emit(
1248
+ $theme,
1249
+ $parent-carbon-theme,
1250
+ 'disabled-03',
1251
+ $emit-difference
1252
+ )
1253
+ {
1072
1254
  @include custom-property('disabled-03', map-get($theme, 'disabled-03'));
1073
1255
  }
1074
1256
 
1075
- @if should-emit($theme, $carbon--theme, 'highlight', $emit-difference) {
1257
+ @if should-emit($theme, $parent-carbon-theme, 'highlight', $emit-difference)
1258
+ {
1076
1259
  @include custom-property('highlight', map-get($theme, 'highlight'));
1077
1260
  }
1078
1261
 
1079
- @if should-emit($theme, $carbon--theme, 'skeleton-01', $emit-difference) {
1262
+ @if should-emit(
1263
+ $theme,
1264
+ $parent-carbon-theme,
1265
+ 'decorative-01',
1266
+ $emit-difference
1267
+ )
1268
+ {
1269
+ @include custom-property(
1270
+ 'decorative-01',
1271
+ map-get($theme, 'decorative-01')
1272
+ );
1273
+ }
1274
+
1275
+ @if should-emit(
1276
+ $theme,
1277
+ $parent-carbon-theme,
1278
+ 'skeleton-01',
1279
+ $emit-difference
1280
+ )
1281
+ {
1080
1282
  @include custom-property('skeleton-01', map-get($theme, 'skeleton-01'));
1081
1283
  }
1082
1284
 
1083
- @if should-emit($theme, $carbon--theme, 'skeleton-02', $emit-difference) {
1285
+ @if should-emit(
1286
+ $theme,
1287
+ $parent-carbon-theme,
1288
+ 'skeleton-02',
1289
+ $emit-difference
1290
+ )
1291
+ {
1084
1292
  @include custom-property('skeleton-02', map-get($theme, 'skeleton-02'));
1085
1293
  }
1086
1294
 
1087
- @if should-emit($theme, $carbon--theme, 'brand-01', $emit-difference) {
1295
+ @if should-emit($theme, $parent-carbon-theme, 'brand-01', $emit-difference)
1296
+ {
1088
1297
  @include custom-property('brand-01', map-get($theme, 'brand-01'));
1089
1298
  }
1090
1299
 
1091
- @if should-emit($theme, $carbon--theme, 'brand-02', $emit-difference) {
1300
+ @if should-emit($theme, $parent-carbon-theme, 'brand-02', $emit-difference)
1301
+ {
1092
1302
  @include custom-property('brand-02', map-get($theme, 'brand-02'));
1093
1303
  }
1094
1304
 
1095
- @if should-emit($theme, $carbon--theme, 'brand-03', $emit-difference) {
1305
+ @if should-emit($theme, $parent-carbon-theme, 'brand-03', $emit-difference)
1306
+ {
1096
1307
  @include custom-property('brand-03', map-get($theme, 'brand-03'));
1097
1308
  }
1098
1309
 
1099
- @if should-emit($theme, $carbon--theme, 'active-01', $emit-difference) {
1310
+ @if should-emit($theme, $parent-carbon-theme, 'active-01', $emit-difference)
1311
+ {
1100
1312
  @include custom-property('active-01', map-get($theme, 'active-01'));
1101
1313
  }
1102
1314
 
1103
- @if should-emit($theme, $carbon--theme, 'hover-field', $emit-difference) {
1315
+ @if should-emit(
1316
+ $theme,
1317
+ $parent-carbon-theme,
1318
+ 'hover-field',
1319
+ $emit-difference
1320
+ )
1321
+ {
1104
1322
  @include custom-property('hover-field', map-get($theme, 'hover-field'));
1105
1323
  }
1106
1324
 
1107
- @if should-emit($theme, $carbon--theme, 'caption-01', $emit-difference) {
1325
+ @if should-emit(
1326
+ $theme,
1327
+ $parent-carbon-theme,
1328
+ 'caption-01',
1329
+ $emit-difference
1330
+ )
1331
+ {
1108
1332
  @include custom-property('caption-01', map-get($theme, 'caption-01'));
1109
1333
  }
1110
1334
 
1111
- @if should-emit($theme, $carbon--theme, 'label-01', $emit-difference) {
1335
+ @if should-emit($theme, $parent-carbon-theme, 'label-01', $emit-difference)
1336
+ {
1112
1337
  @include custom-property('label-01', map-get($theme, 'label-01'));
1113
1338
  }
1114
1339
 
1115
- @if should-emit($theme, $carbon--theme, 'helper-text-01', $emit-difference)
1340
+ @if should-emit(
1341
+ $theme,
1342
+ $parent-carbon-theme,
1343
+ 'helper-text-01',
1344
+ $emit-difference
1345
+ )
1116
1346
  {
1117
1347
  @include custom-property(
1118
1348
  'helper-text-01',
@@ -1120,43 +1350,73 @@ Define theme variables from a map of tokens
1120
1350
  );
1121
1351
  }
1122
1352
 
1123
- @if should-emit($theme, $carbon--theme, 'body-short-01', $emit-difference) {
1353
+ @if should-emit(
1354
+ $theme,
1355
+ $parent-carbon-theme,
1356
+ 'body-short-01',
1357
+ $emit-difference
1358
+ )
1359
+ {
1124
1360
  @include custom-property(
1125
1361
  'body-short-01',
1126
1362
  map-get($theme, 'body-short-01')
1127
1363
  );
1128
1364
  }
1129
1365
 
1130
- @if should-emit($theme, $carbon--theme, 'body-long-01', $emit-difference) {
1366
+ @if should-emit(
1367
+ $theme,
1368
+ $parent-carbon-theme,
1369
+ 'body-long-01',
1370
+ $emit-difference
1371
+ )
1372
+ {
1131
1373
  @include custom-property('body-long-01', map-get($theme, 'body-long-01'));
1132
1374
  }
1133
1375
 
1134
- @if should-emit($theme, $carbon--theme, 'body-short-02', $emit-difference) {
1376
+ @if should-emit(
1377
+ $theme,
1378
+ $parent-carbon-theme,
1379
+ 'body-short-02',
1380
+ $emit-difference
1381
+ )
1382
+ {
1135
1383
  @include custom-property(
1136
1384
  'body-short-02',
1137
1385
  map-get($theme, 'body-short-02')
1138
1386
  );
1139
1387
  }
1140
1388
 
1141
- @if should-emit($theme, $carbon--theme, 'body-long-02', $emit-difference) {
1389
+ @if should-emit(
1390
+ $theme,
1391
+ $parent-carbon-theme,
1392
+ 'body-long-02',
1393
+ $emit-difference
1394
+ )
1395
+ {
1142
1396
  @include custom-property('body-long-02', map-get($theme, 'body-long-02'));
1143
1397
  }
1144
1398
 
1145
- @if should-emit($theme, $carbon--theme, 'code-01', $emit-difference) {
1399
+ @if should-emit($theme, $parent-carbon-theme, 'code-01', $emit-difference) {
1146
1400
  @include custom-property('code-01', map-get($theme, 'code-01'));
1147
1401
  }
1148
1402
 
1149
- @if should-emit($theme, $carbon--theme, 'code-02', $emit-difference) {
1403
+ @if should-emit($theme, $parent-carbon-theme, 'code-02', $emit-difference) {
1150
1404
  @include custom-property('code-02', map-get($theme, 'code-02'));
1151
1405
  }
1152
1406
 
1153
- @if should-emit($theme, $carbon--theme, 'heading-01', $emit-difference) {
1407
+ @if should-emit(
1408
+ $theme,
1409
+ $parent-carbon-theme,
1410
+ 'heading-01',
1411
+ $emit-difference
1412
+ )
1413
+ {
1154
1414
  @include custom-property('heading-01', map-get($theme, 'heading-01'));
1155
1415
  }
1156
1416
 
1157
1417
  @if should-emit(
1158
1418
  $theme,
1159
- $carbon--theme,
1419
+ $parent-carbon-theme,
1160
1420
  'productive-heading-01',
1161
1421
  $emit-difference
1162
1422
  )
@@ -1167,13 +1427,19 @@ Define theme variables from a map of tokens
1167
1427
  );
1168
1428
  }
1169
1429
 
1170
- @if should-emit($theme, $carbon--theme, 'heading-02', $emit-difference) {
1430
+ @if should-emit(
1431
+ $theme,
1432
+ $parent-carbon-theme,
1433
+ 'heading-02',
1434
+ $emit-difference
1435
+ )
1436
+ {
1171
1437
  @include custom-property('heading-02', map-get($theme, 'heading-02'));
1172
1438
  }
1173
1439
 
1174
1440
  @if should-emit(
1175
1441
  $theme,
1176
- $carbon--theme,
1442
+ $parent-carbon-theme,
1177
1443
  'productive-heading-02',
1178
1444
  $emit-difference
1179
1445
  )
@@ -1186,7 +1452,7 @@ Define theme variables from a map of tokens
1186
1452
 
1187
1453
  @if should-emit(
1188
1454
  $theme,
1189
- $carbon--theme,
1455
+ $parent-carbon-theme,
1190
1456
  'productive-heading-03',
1191
1457
  $emit-difference
1192
1458
  )
@@ -1199,7 +1465,7 @@ Define theme variables from a map of tokens
1199
1465
 
1200
1466
  @if should-emit(
1201
1467
  $theme,
1202
- $carbon--theme,
1468
+ $parent-carbon-theme,
1203
1469
  'productive-heading-04',
1204
1470
  $emit-difference
1205
1471
  )
@@ -1212,7 +1478,7 @@ Define theme variables from a map of tokens
1212
1478
 
1213
1479
  @if should-emit(
1214
1480
  $theme,
1215
- $carbon--theme,
1481
+ $parent-carbon-theme,
1216
1482
  'productive-heading-05',
1217
1483
  $emit-difference
1218
1484
  )
@@ -1225,7 +1491,7 @@ Define theme variables from a map of tokens
1225
1491
 
1226
1492
  @if should-emit(
1227
1493
  $theme,
1228
- $carbon--theme,
1494
+ $parent-carbon-theme,
1229
1495
  'productive-heading-06',
1230
1496
  $emit-difference
1231
1497
  )
@@ -1238,7 +1504,7 @@ Define theme variables from a map of tokens
1238
1504
 
1239
1505
  @if should-emit(
1240
1506
  $theme,
1241
- $carbon--theme,
1507
+ $parent-carbon-theme,
1242
1508
  'productive-heading-07',
1243
1509
  $emit-difference
1244
1510
  )
@@ -1251,7 +1517,7 @@ Define theme variables from a map of tokens
1251
1517
 
1252
1518
  @if should-emit(
1253
1519
  $theme,
1254
- $carbon--theme,
1520
+ $parent-carbon-theme,
1255
1521
  'expressive-heading-01',
1256
1522
  $emit-difference
1257
1523
  )
@@ -1264,7 +1530,7 @@ Define theme variables from a map of tokens
1264
1530
 
1265
1531
  @if should-emit(
1266
1532
  $theme,
1267
- $carbon--theme,
1533
+ $parent-carbon-theme,
1268
1534
  'expressive-heading-02',
1269
1535
  $emit-difference
1270
1536
  )
@@ -1277,7 +1543,7 @@ Define theme variables from a map of tokens
1277
1543
 
1278
1544
  @if should-emit(
1279
1545
  $theme,
1280
- $carbon--theme,
1546
+ $parent-carbon-theme,
1281
1547
  'expressive-heading-03',
1282
1548
  $emit-difference
1283
1549
  )
@@ -1290,7 +1556,7 @@ Define theme variables from a map of tokens
1290
1556
 
1291
1557
  @if should-emit(
1292
1558
  $theme,
1293
- $carbon--theme,
1559
+ $parent-carbon-theme,
1294
1560
  'expressive-heading-04',
1295
1561
  $emit-difference
1296
1562
  )
@@ -1303,7 +1569,7 @@ Define theme variables from a map of tokens
1303
1569
 
1304
1570
  @if should-emit(
1305
1571
  $theme,
1306
- $carbon--theme,
1572
+ $parent-carbon-theme,
1307
1573
  'expressive-heading-05',
1308
1574
  $emit-difference
1309
1575
  )
@@ -1316,7 +1582,7 @@ Define theme variables from a map of tokens
1316
1582
 
1317
1583
  @if should-emit(
1318
1584
  $theme,
1319
- $carbon--theme,
1585
+ $parent-carbon-theme,
1320
1586
  'expressive-heading-06',
1321
1587
  $emit-difference
1322
1588
  )
@@ -1329,7 +1595,7 @@ Define theme variables from a map of tokens
1329
1595
 
1330
1596
  @if should-emit(
1331
1597
  $theme,
1332
- $carbon--theme,
1598
+ $parent-carbon-theme,
1333
1599
  'expressive-paragraph-01',
1334
1600
  $emit-difference
1335
1601
  )
@@ -1340,81 +1606,189 @@ Define theme variables from a map of tokens
1340
1606
  );
1341
1607
  }
1342
1608
 
1343
- @if should-emit($theme, $carbon--theme, 'quotation-01', $emit-difference) {
1609
+ @if should-emit(
1610
+ $theme,
1611
+ $parent-carbon-theme,
1612
+ 'quotation-01',
1613
+ $emit-difference
1614
+ )
1615
+ {
1344
1616
  @include custom-property('quotation-01', map-get($theme, 'quotation-01'));
1345
1617
  }
1346
1618
 
1347
- @if should-emit($theme, $carbon--theme, 'quotation-02', $emit-difference) {
1619
+ @if should-emit(
1620
+ $theme,
1621
+ $parent-carbon-theme,
1622
+ 'quotation-02',
1623
+ $emit-difference
1624
+ )
1625
+ {
1348
1626
  @include custom-property('quotation-02', map-get($theme, 'quotation-02'));
1349
1627
  }
1350
1628
 
1351
- @if should-emit($theme, $carbon--theme, 'display-01', $emit-difference) {
1629
+ @if should-emit(
1630
+ $theme,
1631
+ $parent-carbon-theme,
1632
+ 'display-01',
1633
+ $emit-difference
1634
+ )
1635
+ {
1352
1636
  @include custom-property('display-01', map-get($theme, 'display-01'));
1353
1637
  }
1354
1638
 
1355
- @if should-emit($theme, $carbon--theme, 'display-02', $emit-difference) {
1639
+ @if should-emit(
1640
+ $theme,
1641
+ $parent-carbon-theme,
1642
+ 'display-02',
1643
+ $emit-difference
1644
+ )
1645
+ {
1356
1646
  @include custom-property('display-02', map-get($theme, 'display-02'));
1357
1647
  }
1358
1648
 
1359
- @if should-emit($theme, $carbon--theme, 'display-03', $emit-difference) {
1649
+ @if should-emit(
1650
+ $theme,
1651
+ $parent-carbon-theme,
1652
+ 'display-03',
1653
+ $emit-difference
1654
+ )
1655
+ {
1360
1656
  @include custom-property('display-03', map-get($theme, 'display-03'));
1361
1657
  }
1362
1658
 
1363
- @if should-emit($theme, $carbon--theme, 'display-04', $emit-difference) {
1659
+ @if should-emit(
1660
+ $theme,
1661
+ $parent-carbon-theme,
1662
+ 'display-04',
1663
+ $emit-difference
1664
+ )
1665
+ {
1364
1666
  @include custom-property('display-04', map-get($theme, 'display-04'));
1365
1667
  }
1366
1668
 
1367
- @if should-emit($theme, $carbon--theme, 'spacing-01', $emit-difference) {
1669
+ @if should-emit(
1670
+ $theme,
1671
+ $parent-carbon-theme,
1672
+ 'spacing-01',
1673
+ $emit-difference
1674
+ )
1675
+ {
1368
1676
  @include custom-property('spacing-01', map-get($theme, 'spacing-01'));
1369
1677
  }
1370
1678
 
1371
- @if should-emit($theme, $carbon--theme, 'spacing-02', $emit-difference) {
1679
+ @if should-emit(
1680
+ $theme,
1681
+ $parent-carbon-theme,
1682
+ 'spacing-02',
1683
+ $emit-difference
1684
+ )
1685
+ {
1372
1686
  @include custom-property('spacing-02', map-get($theme, 'spacing-02'));
1373
1687
  }
1374
1688
 
1375
- @if should-emit($theme, $carbon--theme, 'spacing-03', $emit-difference) {
1689
+ @if should-emit(
1690
+ $theme,
1691
+ $parent-carbon-theme,
1692
+ 'spacing-03',
1693
+ $emit-difference
1694
+ )
1695
+ {
1376
1696
  @include custom-property('spacing-03', map-get($theme, 'spacing-03'));
1377
1697
  }
1378
1698
 
1379
- @if should-emit($theme, $carbon--theme, 'spacing-04', $emit-difference) {
1699
+ @if should-emit(
1700
+ $theme,
1701
+ $parent-carbon-theme,
1702
+ 'spacing-04',
1703
+ $emit-difference
1704
+ )
1705
+ {
1380
1706
  @include custom-property('spacing-04', map-get($theme, 'spacing-04'));
1381
1707
  }
1382
1708
 
1383
- @if should-emit($theme, $carbon--theme, 'spacing-05', $emit-difference) {
1709
+ @if should-emit(
1710
+ $theme,
1711
+ $parent-carbon-theme,
1712
+ 'spacing-05',
1713
+ $emit-difference
1714
+ )
1715
+ {
1384
1716
  @include custom-property('spacing-05', map-get($theme, 'spacing-05'));
1385
1717
  }
1386
1718
 
1387
- @if should-emit($theme, $carbon--theme, 'spacing-06', $emit-difference) {
1719
+ @if should-emit(
1720
+ $theme,
1721
+ $parent-carbon-theme,
1722
+ 'spacing-06',
1723
+ $emit-difference
1724
+ )
1725
+ {
1388
1726
  @include custom-property('spacing-06', map-get($theme, 'spacing-06'));
1389
1727
  }
1390
1728
 
1391
- @if should-emit($theme, $carbon--theme, 'spacing-07', $emit-difference) {
1729
+ @if should-emit(
1730
+ $theme,
1731
+ $parent-carbon-theme,
1732
+ 'spacing-07',
1733
+ $emit-difference
1734
+ )
1735
+ {
1392
1736
  @include custom-property('spacing-07', map-get($theme, 'spacing-07'));
1393
1737
  }
1394
1738
 
1395
- @if should-emit($theme, $carbon--theme, 'spacing-08', $emit-difference) {
1739
+ @if should-emit(
1740
+ $theme,
1741
+ $parent-carbon-theme,
1742
+ 'spacing-08',
1743
+ $emit-difference
1744
+ )
1745
+ {
1396
1746
  @include custom-property('spacing-08', map-get($theme, 'spacing-08'));
1397
1747
  }
1398
1748
 
1399
- @if should-emit($theme, $carbon--theme, 'spacing-09', $emit-difference) {
1749
+ @if should-emit(
1750
+ $theme,
1751
+ $parent-carbon-theme,
1752
+ 'spacing-09',
1753
+ $emit-difference
1754
+ )
1755
+ {
1400
1756
  @include custom-property('spacing-09', map-get($theme, 'spacing-09'));
1401
1757
  }
1402
1758
 
1403
- @if should-emit($theme, $carbon--theme, 'spacing-10', $emit-difference) {
1759
+ @if should-emit(
1760
+ $theme,
1761
+ $parent-carbon-theme,
1762
+ 'spacing-10',
1763
+ $emit-difference
1764
+ )
1765
+ {
1404
1766
  @include custom-property('spacing-10', map-get($theme, 'spacing-10'));
1405
1767
  }
1406
1768
 
1407
- @if should-emit($theme, $carbon--theme, 'spacing-11', $emit-difference) {
1769
+ @if should-emit(
1770
+ $theme,
1771
+ $parent-carbon-theme,
1772
+ 'spacing-11',
1773
+ $emit-difference
1774
+ )
1775
+ {
1408
1776
  @include custom-property('spacing-11', map-get($theme, 'spacing-11'));
1409
1777
  }
1410
1778
 
1411
- @if should-emit($theme, $carbon--theme, 'spacing-12', $emit-difference) {
1779
+ @if should-emit(
1780
+ $theme,
1781
+ $parent-carbon-theme,
1782
+ 'spacing-12',
1783
+ $emit-difference
1784
+ )
1785
+ {
1412
1786
  @include custom-property('spacing-12', map-get($theme, 'spacing-12'));
1413
1787
  }
1414
1788
 
1415
1789
  @if should-emit(
1416
1790
  $theme,
1417
- $carbon--theme,
1791
+ $parent-carbon-theme,
1418
1792
  'fluid-spacing-01',
1419
1793
  $emit-difference
1420
1794
  )
@@ -1427,7 +1801,7 @@ Define theme variables from a map of tokens
1427
1801
 
1428
1802
  @if should-emit(
1429
1803
  $theme,
1430
- $carbon--theme,
1804
+ $parent-carbon-theme,
1431
1805
  'fluid-spacing-02',
1432
1806
  $emit-difference
1433
1807
  )
@@ -1440,7 +1814,7 @@ Define theme variables from a map of tokens
1440
1814
 
1441
1815
  @if should-emit(
1442
1816
  $theme,
1443
- $carbon--theme,
1817
+ $parent-carbon-theme,
1444
1818
  'fluid-spacing-03',
1445
1819
  $emit-difference
1446
1820
  )
@@ -1453,7 +1827,7 @@ Define theme variables from a map of tokens
1453
1827
 
1454
1828
  @if should-emit(
1455
1829
  $theme,
1456
- $carbon--theme,
1830
+ $parent-carbon-theme,
1457
1831
  'fluid-spacing-04',
1458
1832
  $emit-difference
1459
1833
  )
@@ -1464,66 +1838,118 @@ Define theme variables from a map of tokens
1464
1838
  );
1465
1839
  }
1466
1840
 
1467
- @if should-emit($theme, $carbon--theme, 'layout-01', $emit-difference) {
1841
+ @if should-emit($theme, $parent-carbon-theme, 'layout-01', $emit-difference)
1842
+ {
1468
1843
  @include custom-property('layout-01', map-get($theme, 'layout-01'));
1469
1844
  }
1470
1845
 
1471
- @if should-emit($theme, $carbon--theme, 'layout-02', $emit-difference) {
1846
+ @if should-emit($theme, $parent-carbon-theme, 'layout-02', $emit-difference)
1847
+ {
1472
1848
  @include custom-property('layout-02', map-get($theme, 'layout-02'));
1473
1849
  }
1474
1850
 
1475
- @if should-emit($theme, $carbon--theme, 'layout-03', $emit-difference) {
1851
+ @if should-emit($theme, $parent-carbon-theme, 'layout-03', $emit-difference)
1852
+ {
1476
1853
  @include custom-property('layout-03', map-get($theme, 'layout-03'));
1477
1854
  }
1478
1855
 
1479
- @if should-emit($theme, $carbon--theme, 'layout-04', $emit-difference) {
1856
+ @if should-emit($theme, $parent-carbon-theme, 'layout-04', $emit-difference)
1857
+ {
1480
1858
  @include custom-property('layout-04', map-get($theme, 'layout-04'));
1481
1859
  }
1482
1860
 
1483
- @if should-emit($theme, $carbon--theme, 'layout-05', $emit-difference) {
1861
+ @if should-emit($theme, $parent-carbon-theme, 'layout-05', $emit-difference)
1862
+ {
1484
1863
  @include custom-property('layout-05', map-get($theme, 'layout-05'));
1485
1864
  }
1486
1865
 
1487
- @if should-emit($theme, $carbon--theme, 'layout-06', $emit-difference) {
1866
+ @if should-emit($theme, $parent-carbon-theme, 'layout-06', $emit-difference)
1867
+ {
1488
1868
  @include custom-property('layout-06', map-get($theme, 'layout-06'));
1489
1869
  }
1490
1870
 
1491
- @if should-emit($theme, $carbon--theme, 'layout-07', $emit-difference) {
1871
+ @if should-emit($theme, $parent-carbon-theme, 'layout-07', $emit-difference)
1872
+ {
1492
1873
  @include custom-property('layout-07', map-get($theme, 'layout-07'));
1493
1874
  }
1494
1875
 
1495
- @if should-emit($theme, $carbon--theme, 'container-01', $emit-difference) {
1876
+ @if should-emit(
1877
+ $theme,
1878
+ $parent-carbon-theme,
1879
+ 'container-01',
1880
+ $emit-difference
1881
+ )
1882
+ {
1496
1883
  @include custom-property('container-01', map-get($theme, 'container-01'));
1497
1884
  }
1498
1885
 
1499
- @if should-emit($theme, $carbon--theme, 'container-02', $emit-difference) {
1886
+ @if should-emit(
1887
+ $theme,
1888
+ $parent-carbon-theme,
1889
+ 'container-02',
1890
+ $emit-difference
1891
+ )
1892
+ {
1500
1893
  @include custom-property('container-02', map-get($theme, 'container-02'));
1501
1894
  }
1502
1895
 
1503
- @if should-emit($theme, $carbon--theme, 'container-03', $emit-difference) {
1896
+ @if should-emit(
1897
+ $theme,
1898
+ $parent-carbon-theme,
1899
+ 'container-03',
1900
+ $emit-difference
1901
+ )
1902
+ {
1504
1903
  @include custom-property('container-03', map-get($theme, 'container-03'));
1505
1904
  }
1506
1905
 
1507
- @if should-emit($theme, $carbon--theme, 'container-04', $emit-difference) {
1906
+ @if should-emit(
1907
+ $theme,
1908
+ $parent-carbon-theme,
1909
+ 'container-04',
1910
+ $emit-difference
1911
+ )
1912
+ {
1508
1913
  @include custom-property('container-04', map-get($theme, 'container-04'));
1509
1914
  }
1510
1915
 
1511
- @if should-emit($theme, $carbon--theme, 'container-05', $emit-difference) {
1916
+ @if should-emit(
1917
+ $theme,
1918
+ $parent-carbon-theme,
1919
+ 'container-05',
1920
+ $emit-difference
1921
+ )
1922
+ {
1512
1923
  @include custom-property('container-05', map-get($theme, 'container-05'));
1513
1924
  }
1514
1925
 
1515
- @if should-emit($theme, $carbon--theme, 'icon-size-01', $emit-difference) {
1926
+ @if should-emit(
1927
+ $theme,
1928
+ $parent-carbon-theme,
1929
+ 'icon-size-01',
1930
+ $emit-difference
1931
+ )
1932
+ {
1516
1933
  @include custom-property('icon-size-01', map-get($theme, 'icon-size-01'));
1517
1934
  }
1518
1935
 
1519
- @if should-emit($theme, $carbon--theme, 'icon-size-02', $emit-difference) {
1936
+ @if should-emit(
1937
+ $theme,
1938
+ $parent-carbon-theme,
1939
+ 'icon-size-02',
1940
+ $emit-difference
1941
+ )
1942
+ {
1520
1943
  @include custom-property('icon-size-02', map-get($theme, 'icon-size-02'));
1521
1944
  }
1522
1945
  }
1523
1946
 
1524
1947
  @content;
1948
+
1525
1949
  // Reset to default theme after apply in content
1526
- @if $theme != $carbon--theme {
1950
+ @if $carbon--theme != $parent-carbon-theme {
1951
+ $carbon--theme: $parent-carbon-theme !global;
1952
+
1527
1953
  @include carbon--theme();
1528
1954
  }
1529
1955
  }
@@ -1568,6 +1994,7 @@ Define theme variables from a map of tokens
1568
1994
  - **Requires**:
1569
1995
  - [custom-property [mixin]](#custom-property-mixin)
1570
1996
  - [should-emit [function]](#should-emit-function)
1997
+ - [carbon--theme [variable]](#carbon--theme-variable)
1571
1998
  - [interactive-01 [variable]](#interactive-01-variable)
1572
1999
  - [interactive-02 [variable]](#interactive-02-variable)
1573
2000
  - [interactive-03 [variable]](#interactive-03-variable)
@@ -1615,6 +2042,7 @@ Define theme variables from a map of tokens
1615
2042
  - [hover-ui [variable]](#hover-ui-variable)
1616
2043
  - [active-ui [variable]](#active-ui-variable)
1617
2044
  - [selected-ui [variable]](#selected-ui-variable)
2045
+ - [selected-light-ui [variable]](#selected-light-ui-variable)
1618
2046
  - [hover-selected-ui [variable]](#hover-selected-ui-variable)
1619
2047
  - [inverse-hover-ui [variable]](#inverse-hover-ui-variable)
1620
2048
  - [hover-danger [variable]](#hover-danger-variable)
@@ -1625,6 +2053,7 @@ Define theme variables from a map of tokens
1625
2053
  - [disabled-02 [variable]](#disabled-02-variable)
1626
2054
  - [disabled-03 [variable]](#disabled-03-variable)
1627
2055
  - [highlight [variable]](#highlight-variable)
2056
+ - [decorative-01 [variable]](#decorative-01-variable)
1628
2057
  - [skeleton-01 [variable]](#skeleton-01-variable)
1629
2058
  - [skeleton-02 [variable]](#skeleton-02-variable)
1630
2059
  - [brand-01 [variable]](#brand-01-variable)
@@ -1694,7 +2123,56 @@ Define theme variables from a map of tokens
1694
2123
  - [icon-size-01 [variable]](#icon-size-01-variable)
1695
2124
  - [icon-size-02 [variable]](#icon-size-02-variable)
1696
2125
  - [custom-property-prefix [variable]](#custom-property-prefix-variable)
2126
+
2127
+ ### ❌emit-component-tokens [mixin]
2128
+
2129
+ <details>
2130
+ <summary>Source code</summary>
2131
+
2132
+ ```scss
2133
+ @mixin emit-component-tokens($tokens, $theme) {
2134
+ @if type-of($tokens) == 'map' {
2135
+ @each $key, $options in $tokens {
2136
+ @each $option in $options {
2137
+ $theme: map-get($option, 'theme');
2138
+
2139
+ @if ($theme == $carbon--theme) {
2140
+ $value: map-get($option, 'value');
2141
+
2142
+ --#{$custom-property-prefix}-#{$key}: #{$value};
2143
+ }
2144
+ }
2145
+ }
2146
+ } @else {
2147
+ @error 'Unable to find map';
2148
+ }
2149
+ }
2150
+ ```
2151
+
2152
+ </details>
2153
+
2154
+ - **Parameters**:
2155
+
2156
+ | Name | Description | Type | Default value |
2157
+ | --------- | ----------------------- | -------- | ------------- |
2158
+ | `$tokens` | Map of component tokens | `Map` | — |
2159
+ | `$theme` | Theme identifier | `String` | — |
2160
+
2161
+ **Example**:
2162
+
2163
+ <details>
2164
+ <summary>Example code</summary>
2165
+
2166
+ ```scss
2167
+ @include emit-component-tokens($component-tokens);
2168
+ ```
2169
+
2170
+ </details>
2171
+
2172
+ - **Group**: [@carbon/themes](#carbonthemes)
2173
+ - **Requires**:
1697
2174
  - [carbon--theme [variable]](#carbon--theme-variable)
2175
+ - [custom-property-prefix [variable]](#custom-property-prefix-variable)
1698
2176
 
1699
2177
  ### ✅carbon--theme--g10 [variable]
1700
2178
 
@@ -1771,6 +2249,7 @@ $carbon--theme--g90: map-merge(
1771
2249
  hover-ui: #4c4c4c,
1772
2250
  active-ui: #6f6f6f,
1773
2251
  selected-ui: #525252,
2252
+ selected-light-ui: #6f6f6f,
1774
2253
  inverse-hover-ui: #e5e5e5,
1775
2254
  hover-selected-ui: #656565,
1776
2255
  hover-row: #4c4c4c,
@@ -1779,6 +2258,7 @@ $carbon--theme--g90: map-merge(
1779
2258
  disabled-02: #6f6f6f,
1780
2259
  disabled-03: #a8a8a8,
1781
2260
  highlight: #0043ce,
2261
+ decorative-01: #6f6f6f,
1782
2262
  skeleton-01: #353535,
1783
2263
  skeleton-02: #525252,
1784
2264
  brand-02: #6f6f6f,
@@ -1844,6 +2324,7 @@ $carbon--theme--g100: map-merge(
1844
2324
  hover-ui: #353535,
1845
2325
  active-ui: #525252,
1846
2326
  selected-ui: #393939,
2327
+ selected-light-ui: #525252,
1847
2328
  inverse-hover-ui: #e5e5e5,
1848
2329
  hover-selected-ui: #4c4c4c,
1849
2330
  hover-row: #353535,
@@ -1851,6 +2332,7 @@ $carbon--theme--g100: map-merge(
1851
2332
  disabled-01: #262626,
1852
2333
  disabled-02: #525252,
1853
2334
  highlight: #002d9c,
2335
+ decorative-01: #525252,
1854
2336
  skeleton-01: #353535,
1855
2337
  skeleton-02: #393939,
1856
2338
  brand-02: #6f6f6f,
@@ -1920,6 +2402,7 @@ $carbon--theme--v9: map-merge(
1920
2402
  hover-ui: #eef4fc,
1921
2403
  active-ui: #dfeafa,
1922
2404
  selected-ui: #eef4fc,
2405
+ selected-light-ui: #eef4fc,
1923
2406
  hover-selected-ui: #dfeafa,
1924
2407
  hover-danger: #c70014,
1925
2408
  active-danger: #ad1625,
@@ -1929,6 +2412,7 @@ $carbon--theme--v9: map-merge(
1929
2412
  disabled-02: #dfe3e6,
1930
2413
  disabled-03: #cdd1d4,
1931
2414
  highlight: #f4f7fb,
2415
+ decorative-01: #eef4fc,
1932
2416
  skeleton-01: rgba(61, 112, 178, 0.1),
1933
2417
  skeleton-02: rgba(61, 112, 178, 0.1),
1934
2418
  brand-01: #3d70b2,
@@ -2001,6 +2485,7 @@ $carbon--theme: (
2001
2485
  hover-ui: if(global-variable-exists('hover-ui'), $hover-ui, map-get($carbon--theme--white, 'hover-ui')),
2002
2486
  active-ui: if(global-variable-exists('active-ui'), $active-ui, map-get($carbon--theme--white, 'active-ui')),
2003
2487
  selected-ui: if(global-variable-exists('selected-ui'), $selected-ui, map-get($carbon--theme--white, 'selected-ui')),
2488
+ selected-light-ui: if(global-variable-exists('selected-light-ui'), $selected-light-ui, map-get($carbon--theme--white, 'selected-light-ui')),
2004
2489
  hover-selected-ui: if(global-variable-exists('hover-selected-ui'), $hover-selected-ui, map-get($carbon--theme--white, 'hover-selected-ui')),
2005
2490
  inverse-hover-ui: if(global-variable-exists('inverse-hover-ui'), $inverse-hover-ui, map-get($carbon--theme--white, 'inverse-hover-ui')),
2006
2491
  hover-danger: if(global-variable-exists('hover-danger'), $hover-danger, map-get($carbon--theme--white, 'hover-danger')),
@@ -2011,6 +2496,7 @@ $carbon--theme: (
2011
2496
  disabled-02: if(global-variable-exists('disabled-02'), $disabled-02, map-get($carbon--theme--white, 'disabled-02')),
2012
2497
  disabled-03: if(global-variable-exists('disabled-03'), $disabled-03, map-get($carbon--theme--white, 'disabled-03')),
2013
2498
  highlight: if(global-variable-exists('highlight'), $highlight, map-get($carbon--theme--white, 'highlight')),
2499
+ decorative-01: if(global-variable-exists('decorative-01'), $decorative-01, map-get($carbon--theme--white, 'decorative-01')),
2014
2500
  skeleton-01: if(global-variable-exists('skeleton-01'), $skeleton-01, map-get($carbon--theme--white, 'skeleton-01')),
2015
2501
  skeleton-02: if(global-variable-exists('skeleton-02'), $skeleton-02, map-get($carbon--theme--white, 'skeleton-02')),
2016
2502
  brand-01: if(global-variable-exists('brand-01'), $brand-01, map-get($carbon--theme--white, 'brand-01')),
@@ -2088,6 +2574,7 @@ $carbon--theme: (
2088
2574
  - **Type**: `Map`
2089
2575
  - **Used by**:
2090
2576
  - [carbon--theme [mixin]](#carbon--theme-mixin)
2577
+ - [emit-component-tokens [mixin]](#emit-component-tokens-mixin)
2091
2578
 
2092
2579
  ### ✅interactive-01 [variable]
2093
2580
 
@@ -3259,6 +3746,29 @@ $selected-ui: if(
3259
3746
 
3260
3747
  </details>
3261
3748
 
3749
+ - **Group**: [@carbon/themes](#carbonthemes)
3750
+ - **Type**: `{undefined}`
3751
+ - **Used by**:
3752
+ - [carbon--theme [mixin]](#carbon--theme-mixin)
3753
+
3754
+ ### ✅selected-light-ui [variable]
3755
+
3756
+ <details>
3757
+ <summary>Source code</summary>
3758
+
3759
+ ```scss
3760
+ $selected-light-ui: if(
3761
+ global-variable-exists('carbon--theme') and map-has-key(
3762
+ $carbon--theme,
3763
+ 'selected-light-ui'
3764
+ ),
3765
+ map-get($carbon--theme, 'selected-light-ui'),
3766
+ #e0e0e0
3767
+ );
3768
+ ```
3769
+
3770
+ </details>
3771
+
3262
3772
  - **Group**: [@carbon/themes](#carbonthemes)
3263
3773
  - **Type**: `{undefined}`
3264
3774
  - **Used by**:
@@ -3508,6 +4018,29 @@ $highlight: if(
3508
4018
 
3509
4019
  </details>
3510
4020
 
4021
+ - **Group**: [@carbon/themes](#carbonthemes)
4022
+ - **Type**: `{undefined}`
4023
+ - **Used by**:
4024
+ - [carbon--theme [mixin]](#carbon--theme-mixin)
4025
+
4026
+ ### ✅decorative-01 [variable]
4027
+
4028
+ <details>
4029
+ <summary>Source code</summary>
4030
+
4031
+ ```scss
4032
+ $decorative-01: if(
4033
+ global-variable-exists('carbon--theme') and map-has-key(
4034
+ $carbon--theme,
4035
+ 'decorative-01'
4036
+ ),
4037
+ map-get($carbon--theme, 'decorative-01'),
4038
+ #e0e0e0
4039
+ );
4040
+ ```
4041
+
4042
+ </details>
4043
+
3511
4044
  - **Group**: [@carbon/themes](#carbonthemes)
3512
4045
  - **Type**: `{undefined}`
3513
4046
  - **Used by**: