summaryrefslogtreecommitdiffstats
path: root/src/objects/_alert.vars.scss
diff options
context:
space:
mode:
Diffstat (limited to 'src/objects/_alert.vars.scss')
-rw-r--r--src/objects/_alert.vars.scss27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/objects/_alert.vars.scss b/src/objects/_alert.vars.scss
new file mode 100644
index 0000000..53c9e68
--- /dev/null
+++ b/src/objects/_alert.vars.scss
@@ -0,0 +1,27 @@
1@use 'iro-sass/src/props';
2@use '../core.vars' as core;
3
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;
6$pad-b: props.def(--o-alert--pad-b, props.get(core.$size--200)) !default;
7$rounding: props.def(--o-alert--rounding, props.get(core.$rounding)) !default;
8
9$bg-color: props.def(--o-alert--bg-color, props.get(core.$theme, --bg-l2), 'color') !default;
10$border-color: props.def(--o-alert--border-color, props.get(core.$theme, --text-mute-more), 'color') !default;
11
12$themes-config: (
13 accent: --accent,
14 positive: --positive,
15 negative: --negative,
16 warning: --warning,
17) !default;
18
19$themes: props.def(--o-alert, (), 'color');
20
21@each $theme, $key in $themes-config {
22 $themes: props.merge($themes, (
23 $key: (
24 --border-color: props.get(core.$theme, $key, --700),
25 )
26 ));
27}