summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/_themes.scss9
-rw-r--r--src/_utils.scss33
-rw-r--r--src/scopes/_implicit.scss4
3 files changed, 36 insertions, 10 deletions
diff --git a/src/_themes.scss b/src/_themes.scss
index 9b868f3..caf1e80 100644
--- a/src/_themes.scss
+++ b/src/_themes.scss
@@ -71,13 +71,4 @@
71 } 71 }
72 } 72 }
73 } 73 }
74
75 @each $theme in map.keys(props.get(vars.$transparent-colors)) {
76 $theme-name: static-#{string.slice($theme, 3)};
77
78 @include bem.theme($theme-name) {
79 color: props.get(vars.$transparent-colors, $theme, --text);
80 background-color: props.get(vars.$transparent-colors, $theme, --900);
81 }
82 }
83} 74}
diff --git a/src/_utils.scss b/src/_utils.scss
index e90aa57..49191ef 100644
--- a/src/_utils.scss
+++ b/src/_utils.scss
@@ -1,4 +1,5 @@
1@use 'sass:map'; 1@use 'sass:map';
2@use 'sass:string';
2@use 'iro-sass/src/bem'; 3@use 'iro-sass/src/bem';
3@use 'iro-sass/src/props'; 4@use 'iro-sass/src/props';
4@use 'include-media/dist/include-media' as media; 5@use 'include-media/dist/include-media' as media;
@@ -154,18 +155,50 @@ $-sizes: (
154 155
155 @include bem.utility('c-heading') { 156 @include bem.utility('c-heading') {
156 color: props.get(vars.$theme, --heading); 157 color: props.get(vars.$theme, --heading);
158
159 @each $theme in map.keys(props.get(vars.$transparent-colors)) {
160 $theme-name: static-#{string.slice($theme, 3)};
161
162 @include bem.at-theme($theme-name) {
163 color: props.get(vars.$transparent-colors, $theme, --900);
164 }
165 }
157 } 166 }
158 167
159 @include bem.utility('c-text') { 168 @include bem.utility('c-text') {
160 color: props.get(vars.$theme, --text); 169 color: props.get(vars.$theme, --text);
170
171 @each $theme in map.keys(props.get(vars.$transparent-colors)) {
172 $theme-name: static-#{string.slice($theme, 3)};
173
174 @include bem.at-theme($theme-name) {
175 color: props.get(vars.$transparent-colors, $theme, --800);
176 }
177 }
161 } 178 }
162 179
163 @include bem.utility('c-mute') { 180 @include bem.utility('c-mute') {
164 color: props.get(vars.$theme, --text-mute); 181 color: props.get(vars.$theme, --text-mute);
182
183 @each $theme in map.keys(props.get(vars.$transparent-colors)) {
184 $theme-name: static-#{string.slice($theme, 3)};
185
186 @include bem.at-theme($theme-name) {
187 color: props.get(vars.$transparent-colors, $theme, --700);
188 }
189 }
165 } 190 }
166 191
167 @include bem.utility('c-mute-more') { 192 @include bem.utility('c-mute-more') {
168 color: props.get(vars.$theme, --text-mute-more); 193 color: props.get(vars.$theme, --text-mute-more);
194
195 @each $theme in map.keys(props.get(vars.$transparent-colors)) {
196 $theme-name: static-#{string.slice($theme, 3)};
197
198 @include bem.at-theme($theme-name) {
199 color: props.get(vars.$transparent-colors, $theme, --600);
200 }
201 }
169 } 202 }
170 203
171 @each $dir, $prop in (is: inline-size, bs: block-size) { 204 @each $dir, $prop in (is: inline-size, bs: block-size) {
diff --git a/src/scopes/_implicit.scss b/src/scopes/_implicit.scss
index 9bd411a..78f06be 100644
--- a/src/scopes/_implicit.scss
+++ b/src/scopes/_implicit.scss
@@ -160,13 +160,15 @@
160 160
161 @each $theme in map.keys(props.get(core.$transparent-colors)) { 161 @each $theme in map.keys(props.get(core.$transparent-colors)) {
162 .t-static-#{string.slice($theme, 3)} { 162 .t-static-#{string.slice($theme, 3)} {
163 color: props.get(core.$transparent-colors, $theme, --800);
164
163 h1, 165 h1,
164 h2, 166 h2,
165 h3, 167 h3,
166 h4, 168 h4,
167 h5, 169 h5,
168 h6 { 170 h6 {
169 color: props.get(core.$transparent-colors, $theme, --text); 171 color: props.get(core.$transparent-colors, $theme, --900);
170 } 172 }
171 173
172 hr { 174 hr {