From 2448ebfdef6a15549137cf42116168f467bae393 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Tue, 10 Dec 2024 11:40:28 +0100 Subject: Refactoring --- src/_core.scss | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/_core.scss') diff --git a/src/_core.scss b/src/_core.scss index a99d147..aeea3ce 100644 --- a/src/_core.scss +++ b/src/_core.scss @@ -1,17 +1,20 @@ @use 'sass:map'; +@use 'sass:meta'; @use 'iro-sass/src/props'; @use 'core.vars' as vars; @forward 'core.vars'; -@mixin styles--light { +@mixin styles { :root { @include props.materialize(map.get(vars.$themes, --light)); + @include props.materialize(map.values(meta.module-variables('vars')), null); } } @mixin styles--dark { :root { @include props.materialize(map.get(vars.$themes, --dark)); + @include props.materialize(map.values(meta.module-variables('vars')), 'dark'); } } -- cgit v1.2.3-70-g09d2