@use 'iro-sass/src/iro-sass' as iro; @use '../functions' as fn; $themes: 'accent' 'positive' 'negative' 'warning' !default; @include iro.props-namespace('status-indicator') { @include iro.props-store(( --dims: ( --size: fn.global-dim(--size --125), ), --colors: ( --default: fn.global-color(--border-strong), --primary: fn.global-color(--text), ), )); @each $theme in $themes { @include iro.props-store(( --colors: ( --#{$theme}: fn.global-color(--#{$theme} --700), ), )); } @include iro.bem-object(iro.props-namespace()) { display: inline-block; inline-size: fn.dim(--size); block-size: fn.dim(--size); vertical-align: middle; background-color: fn.color(--default); border-radius: 10em; @each $theme in $themes { @include iro.bem-is($theme) { background-color: fn.color(--#{$theme}); } } } }