summaryrefslogtreecommitdiffstats
path: root/src/objects/_divider.vars.scss
diff options
context:
space:
mode:
Diffstat (limited to 'src/objects/_divider.vars.scss')
-rw-r--r--src/objects/_divider.vars.scss59
1 files changed, 59 insertions, 0 deletions
diff --git a/src/objects/_divider.vars.scss b/src/objects/_divider.vars.scss
new file mode 100644
index 0000000..09e734f
--- /dev/null
+++ b/src/objects/_divider.vars.scss
@@ -0,0 +1,59 @@
1@use 'sass:map';
2@use '../props';
3@use '../core.vars' as core;
4
5$margin-b: props.def(--o-divider--size, props.get(core.$size--85)) !default;
6
7$strong--border-width: props.def(--o-divider--strong--border-width, props.get(core.$border-width--thick)) !default;
8$strong--label-font-size: props.def(--o-divider--strong--label-font-size, props.get(core.$font-size--100)) !default;
9
10$medium--border-width: props.def(--o-divider--medium--border-width, props.get(core.$border-width--medium)) !default;
11$medium--label-font-size: props.def(--o-divider--medium--label-font-size, props.get(core.$font-size--75)) !default;
12
13$faint--border-width: props.def(--o-divider--faint--border-width, props.get(core.$border-width--thin)) !default;
14$faint--label-font-size: props.def(--o-divider--faint--label-font-size, props.get(core.$font-size--50)) !default;
15
16$strong--bg-color: props.def(--o-divider--strong--bg-color, props.get(core.$theme, --text)) !default;
17$strong--label-color: props.def(--o-divider--strong--label-color, props.get(core.$theme, --text)) !default;
18
19$medium--bg-color: props.def(--o-divider--medium--bg-color, props.get(core.$theme, --border)) !default;
20$medium--label-color: props.def(--o-divider--medium--label-color, props.get(core.$theme, --text-mute)) !default;
21
22$faint--bg-color: props.def(--o-divider--faint--bg-color, props.get(core.$theme, --border)) !default;
23$faint--label-color: props.def(--o-divider--faint--label-color, props.get(core.$theme, --text-mute-more)) !default;
24
25$static-themes: props.def(--o-divider);
26
27@each $theme in map.keys(props.get(core.$transparent-colors)) {
28 $button-theme: #{$theme}-static;
29
30 $static-themes: props.merge($static-themes, (
31 $button-theme: (
32 --strong: (
33 --bg: props.get(core.$transparent-colors, $theme, --800),
34 --label: props.get(core.$transparent-colors, $theme, --900),
35 ),
36 --medium: (
37 --bg: props.get(core.$transparent-colors, $theme, --300),
38 --label: props.get(core.$transparent-colors, $theme, --500),
39 ),
40 --faint: (
41 --bg: props.get(core.$transparent-colors, $theme, --300),
42 --label: props.get(core.$transparent-colors, $theme, --500),
43 ),
44 )
45 ));
46}
47
48$themes-config: --accent --negative !default;
49
50$themes: props.def(--o-divider);
51
52@each $theme in $themes-config {
53 $themes: props.merge($themes, (
54 $theme: (
55 --bg: props.get(core.$static-colors, $theme, --800),
56 --label: props.get(core.$static-colors, $theme, --1000),
57 )
58 ));
59}