@use 'iro-sass/src/index' as iro; @use '../functions' as fn; @include iro.props-namespace('status-indicator') { @include iro.props-store(( --dims: ( --100: fn.global-dim(--size --100), --125: fn.global-dim(--size --125), ), ), 'dims'); @include iro.props-store(( --colors: ( --default: fn.global-color(--obj-lo), --green: fn.global-color(--green --bg-hi), --yellow: fn.global-color(--yellow --bg-hi), --red: fn.global-color(--red --bg-hi), ), ), 'colors'); @include iro.bem-object(iro.props-namespace()) { display: inline-block; width: fn.dim(--100); height: fn.dim(--100); border-radius: fn.dim(--100); background-color: fn.color(--default); @include iro.bem-modifier('125') { width: fn.dim(--125); height: fn.dim(--125); border-radius: fn.dim(--125); } @each $color in 'green' 'yellow' 'red' { @include iro.bem-is($color) { background-color: fn.color(--#{$color}); } } } }