@use 'iro-sass/src/index' as iro; @use '../functions' as fn; $themes: 'accent' 'positive' 'negative' 'warning' !default; @include iro.props-namespace('alert') { @include iro.props-store(( --dims: ( --border: fn.global-dim(--border --medium), --pad-i: fn.global-dim(--size --250), --pad-b: fn.global-dim(--size --200), --rounding: fn.global-dim(--rounding), ), --colors: ( --bg: fn.global-color(--bg-l2), --border: fn.global-color(--text-mute-more), ), )); @each $theme in $themes { @include iro.props-store(( --colors: ( --#{$theme}: ( --border: fn.global-color(--#{$theme} --700), ), ), )); } @include iro.bem-object(iro.props-namespace()) { padding-block: fn.dim(--pad-b); padding-inline: fn.dim(--pad-i); border: fn.dim(--border) solid fn.color(--border); border-radius: fn.dim(--rounding); background-color: fn.color(--bg); @each $theme in $themes { @include iro.bem-modifier($theme) { border-color: fn.color(--#{$theme} --border); } } } }