@use 'iro-sass/src/index' as iro; @use 'functions' as fn; $static-themes: 'black' 'white' !default; @include iro.bem-theme('base') { background-color: fn.global-color(--bg-base); @include iro.bem-suffix('light') { @media (prefers-color-scheme: light) { background-color: fn.global-color(--bg-base); } } @include iro.bem-suffix('dark') { @media (prefers-color-scheme: dark) { background-color: fn.global-color(--bg-base); } } } @include iro.bem-theme('l1') { background-color: fn.global-color(--bg-l1); @include iro.bem-suffix('light') { @media (prefers-color-scheme: light) { background-color: fn.global-color(--bg-l1); } } @include iro.bem-suffix('dark') { @media (prefers-color-scheme: dark) { background-color: fn.global-color(--bg-l1); } } } @include iro.bem-theme('l2') { background-color: fn.global-color(--bg-l2); @include iro.bem-suffix('light') { @media (prefers-color-scheme: light) { background-color: fn.global-color(--bg-l2); } } @include iro.bem-suffix('dark') { @media (prefers-color-scheme: dark) { background-color: fn.global-color(--bg-l2); } } } @include iro.bem-theme('50') { background-color: fn.global-color(--base --50); @include iro.bem-suffix('light') { @media (prefers-color-scheme: light) { background-color: fn.global-color(--base --50); } } @include iro.bem-suffix('dark') { @media (prefers-color-scheme: dark) { background-color: fn.global-color(--base --50); } } } @each $theme in $static-themes { @include iro.bem-theme(static-#{$theme}) { color: fn.global-color(--#{$theme}-transparent --800); @include iro.bem-suffix('light') { @media (prefers-color-scheme: light) { background-color: fn.global-color(--base --50); } } @include iro.bem-suffix('dark') { @media (prefers-color-scheme: dark) { background-color: fn.global-color(--base --50); } } } }