summaryrefslogtreecommitdiffstats
path: root/src/objects/_status-indicator.vars.scss
blob: 55b446afec441870a1b72212f403566679abc698 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
@use 'sass:map';
@use 'iro-sass/src/props';
@use '../config';
@use '../core.vars' as core;

$size: props.def(--o-status-indicator--size, props.get(core.$size--125)) !default;

$default: props.def(--o-status-indicator--default, props.get(core.$theme, --border-strong), 'color') !default;
$primary: props.def(--o-status-indicator--primary, props.get(core.$theme, --text), 'color') !default;

$themes-config: (
	accent:   --accent,
	positive: --positive,
	negative: --negative,
	warning:  --warning,
) !default;

$themes: props.def(--o-status-indicator, (), 'color');

@each $theme, $key in $themes-config {
	@if $theme != --base {
		$themes: props.merge($themes, (
			--#{$theme}: props.get(core.$theme, $key, --700),
		));
	}
}