diff options
Diffstat (limited to 'src/objects/_status-indicator.vars.scss')
-rw-r--r-- | src/objects/_status-indicator.vars.scss | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/objects/_status-indicator.vars.scss b/src/objects/_status-indicator.vars.scss new file mode 100644 index 0000000..6289145 --- /dev/null +++ b/src/objects/_status-indicator.vars.scss | |||
@@ -0,0 +1,26 @@ | |||
1 | @use 'sass:map'; | ||
2 | @use 'iro-sass/src/props'; | ||
3 | @use '../config'; | ||
4 | @use '../core.vars' as core; | ||
5 | |||
6 | $size: props.def(--o-status-indicator--size, props.get(core.$size--125)) !default; | ||
7 | |||
8 | $default: props.def(--o-status-indicator--default, props.get(core.$theme, --border-strong), 'color') !default; | ||
9 | $primary: props.def(--o-status-indicator--primary, props.get(core.$theme, --text), 'color') !default; | ||
10 | |||
11 | $themes-config: ( | ||
12 | accent: --accent, | ||
13 | positive: --positive, | ||
14 | negative: --negative, | ||
15 | warning: --warning, | ||
16 | ) !default; | ||
17 | |||
18 | $themes: props.def(--o-status-indicator, (), 'color'); | ||
19 | |||
20 | @each $theme, $key in $themes-config { | ||
21 | @if $theme != --base { | ||
22 | $themes: props.merge($themes, ( | ||
23 | --#{$theme}: props.get(core.$theme, $key, --700), | ||
24 | )); | ||
25 | } | ||
26 | } | ||