From e3d34a6d6ce2db04c3c898ad6a4687a0c59df996 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Fri, 18 Oct 2024 19:07:42 +0200 Subject: Update --- src/_core.scss | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 src/_core.scss (limited to 'src/_core.scss') diff --git a/src/_core.scss b/src/_core.scss new file mode 100644 index 0000000..e1205c4 --- /dev/null +++ b/src/_core.scss @@ -0,0 +1,33 @@ +@use 'sass:map'; +@use 'sass:meta'; +@use 'iro-sass/src/props'; +@use 'themes'; + +@use 'core.vars' as vars; +@forward 'core.vars'; + +@mixin styles { + @each $theme-name, $theme in vars.$themes { + @if $theme-name == themes.$theme-default { + :root { + @include props.materialize(map.values(meta.module-variables('vars'))); + + @if map.has-key($theme, 'dark') { + @media (prefers-color-scheme: dark) { + @include props.materialize(map.get($theme, 'dark')); + } + } + } + } @else { + @include iro.bem-theme($theme-name) { + @include props.materialize(map.get($theme, 'light')); + + @if map.has-key($theme, 'dark') { + @media (prefers-color-scheme: dark) { + @include props.materialize(map.get($theme, 'dark')); + } + } + } + } + } +} -- cgit v1.2.3-70-g09d2