From 27222cb91c390a42055a7123b5a9409c928e8b26 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sat, 19 Oct 2024 18:23:02 +0200 Subject: Fixes --- src/objects/_button.vars.scss | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/objects/_button.vars.scss') diff --git a/src/objects/_button.vars.scss b/src/objects/_button.vars.scss index 7640e57..cc82d46 100644 --- a/src/objects/_button.vars.scss +++ b/src/objects/_button.vars.scss @@ -139,26 +139,26 @@ $static-themes: props.def(--o-button); )); } -$themes-config: --accent --negative !default; +$themes-config: accent negative !default; $themes: props.def(--o-button); @each $theme in $themes-config { $themes: props.merge($themes, ( - $theme: ( - --bg: props.get(core.$static-colors, $theme, --900), - --label: props.get(core.$static-colors, $theme, --900-text), - --outline-border: props.get(core.$theme, $theme, --900), - --outline-label: props.get(core.$theme, $theme, --1000), + --#{$theme}: ( + --bg: props.get(core.$theme, --#{$theme}-static, --900), + --label: props.get(core.$theme, --#{$theme}-static, --900-text), + --outline-border: props.get(core.$theme, --#{$theme}, --900), + --outline-label: props.get(core.$theme, --#{$theme}, --1000), --hover: ( - --bg: props.get(core.$static-colors, $theme, --1000), - --label: props.get(core.$static-colors, $theme, --1000-text), + --bg: props.get(core.$theme, --#{$theme}-static, --1000), + --label: props.get(core.$theme, --#{$theme}-static, --1000-text), ), --active: ( - --bg: props.get(core.$static-colors, $theme, --1100), - --label: props.get(core.$static-colors, $theme, --1100-text), + --bg: props.get(core.$theme, --#{$theme}-static, --1100), + --label: props.get(core.$theme, --#{$theme}-static, --1100-text), ), ) )); -- cgit v1.2.3-70-g09d2