From e0815613914e16d73a30efe709a74b994cc31963 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Fri, 25 Oct 2024 19:37:52 +0200 Subject: More efficient theming --- src/objects/_alert.vars.scss | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/objects/_alert.vars.scss') diff --git a/src/objects/_alert.vars.scss b/src/objects/_alert.vars.scss index 0c140b1..53c9e68 100644 --- a/src/objects/_alert.vars.scss +++ b/src/objects/_alert.vars.scss @@ -6,8 +6,8 @@ $pad-i: props.def(--o-alert--pad-i, props.get(core.$size--250)) !default; $pad-b: props.def(--o-alert--pad-b, props.get(core.$size--200)) !default; $rounding: props.def(--o-alert--rounding, props.get(core.$rounding)) !default; -$bg-color: props.def(--o-alert--bg-color, props.get(core.$theme, --bg-l2)) !default; -$border-color: props.def(--o-alert--border-color, props.get(core.$theme, --text-mute-more)) !default; +$bg-color: props.def(--o-alert--bg-color, props.get(core.$theme, --bg-l2), 'color') !default; +$border-color: props.def(--o-alert--border-color, props.get(core.$theme, --text-mute-more), 'color') !default; $themes-config: ( accent: --accent, @@ -16,7 +16,7 @@ $themes-config: ( warning: --warning, ) !default; -$themes: props.def(--o-alert); +$themes: props.def(--o-alert, (), 'color'); @each $theme, $key in $themes-config { $themes: props.merge($themes, ( -- cgit v1.2.3-70-g09d2