From 990a2cd28ed8814442546c749c35c63f231df59d Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sat, 8 Nov 2025 11:50:57 +0100 Subject: Heading: Add static theme colors --- src/scopes/_headings.scss | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'src/scopes') diff --git a/src/scopes/_headings.scss b/src/scopes/_headings.scss index 0a56ef1..362b116 100644 --- a/src/scopes/_headings.scss +++ b/src/scopes/_headings.scss @@ -1,4 +1,5 @@ @use 'sass:map'; +@use 'sass:string'; @use 'iro-sass/src/bem'; @use 'iro-sass/src/props'; @use '../objects/heading.vars' as heading; @@ -67,5 +68,25 @@ } } } + + @each $theme in map.keys(props.get(heading.$static-themes)) { + @include bem.modifier(string.slice($theme, 3)) { + color: props.get(heading.$static-themes, $theme, --text-color); + + @each $mod, $value in heading.$sizes { + #{map.get($-size-map, $mod)} { + color: props.get(heading.$static-themes, $theme, --#{$mod}, --text-color); + } + } + + @include bem.modifier('display') { + @each $mod, $value in heading.$sizes { + #{map.get($-size-map, $mod)} { + color: props.get(heading.$static-themes, $theme, --display, --#{$mod}, --text-color); + } + } + } + } + } } } -- cgit v1.2.3-70-g09d2