diff options
Diffstat (limited to 'src/objects/_alert.vars.scss')
-rw-r--r-- | src/objects/_alert.vars.scss | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/objects/_alert.vars.scss b/src/objects/_alert.vars.scss index 64d8f1f..e0c77d2 100644 --- a/src/objects/_alert.vars.scss +++ b/src/objects/_alert.vars.scss | |||
@@ -1,5 +1,5 @@ | |||
1 | @use '../props'; | 1 | @use '../props'; |
2 | @use '../core'; | 2 | @use '../core.vars' as core; |
3 | 3 | ||
4 | $border-width: props.def(--o-alert--border-width, props.get(core.$border-width--medium)) !default; | 4 | $border-width: props.def(--o-alert--border-width, props.get(core.$border-width--medium)) !default; |
5 | $pad-i: props.def(--o-alert--pad-i, props.get(core.$size--250)) !default; | 5 | $pad-i: props.def(--o-alert--pad-i, props.get(core.$size--250)) !default; |
@@ -9,16 +9,17 @@ $rounding: props.def(--o-alert--rounding, props.get(core.$rounding)) !defaul | |||
9 | $bg-color: props.def(--o-alert--bg-color, props.get(core.$theme, --bg-l2)) !default; | 9 | $bg-color: props.def(--o-alert--bg-color, props.get(core.$theme, --bg-l2)) !default; |
10 | $border-color: props.def(--o-alert--bg-color, props.get(core.$theme, --text-mute-more)) !default; | 10 | $border-color: props.def(--o-alert--bg-color, props.get(core.$theme, --text-mute-more)) !default; |
11 | 11 | ||
12 | $themes: ( | 12 | $themes-config: ( |
13 | accent: --accent, | 13 | accent: --accent, |
14 | positive: --positive, | 14 | positive: --positive, |
15 | negative: --negative, | 15 | negative: --negative, |
16 | warning: --warning, | 16 | warning: --warning, |
17 | ) !default; | 17 | ) !default; |
18 | 18 | ||
19 | $populated-themes: props.def(--o-alert); | 19 | $themes: props.def(--o-alert); |
20 | @each $theme, $key in $themes { | 20 | |
21 | $populated-themes: props.merge($populated-themes, ( | 21 | @each $theme, $key in $themes-config { |
22 | $themes: props.merge($themes, ( | ||
22 | $key: ( | 23 | $key: ( |
23 | --border-color: props.get(core.$theme, $key, --700), | 24 | --border-color: props.get(core.$theme, $key, --700), |
24 | ) | 25 | ) |