diff options
| author | Volpeon <git@volpeon.ink> | 2024-11-29 23:42:09 +0100 | 
|---|---|---|
| committer | Volpeon <git@volpeon.ink> | 2024-11-29 23:42:09 +0100 | 
| commit | c9b00ce5c53b7abe68cbd4021ccc2c4c1d0fb50e (patch) | |
| tree | 57d6d59a6c6d95fdf8908a7f9ddbc39773822651 | |
| parent | Fix (diff) | |
| download | iro-design-c9b00ce5c53b7abe68cbd4021ccc2c4c1d0fb50e.tar.gz iro-design-c9b00ce5c53b7abe68cbd4021ccc2c4c1d0fb50e.tar.bz2 iro-design-c9b00ce5c53b7abe68cbd4021ccc2c4c1d0fb50e.zip  | |
Static themes fix
| -rw-r--r-- | src/_themes.scss | 9 | ||||
| -rw-r--r-- | src/_utils.scss | 33 | ||||
| -rw-r--r-- | src/scopes/_implicit.scss | 4 | 
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 { | 
