diff options
author | Volpeon <git@volpeon.ink> | 2024-10-18 19:07:42 +0200 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2024-10-18 19:07:42 +0200 |
commit | e3d34a6d6ce2db04c3c898ad6a4687a0c59df996 (patch) | |
tree | 58b338d738076579030624b563df2365af19782e /src/_vars.scss | |
parent | Refactoring (diff) | |
download | iro-design-e3d34a6d6ce2db04c3c898ad6a4687a0c59df996.tar.gz iro-design-e3d34a6d6ce2db04c3c898ad6a4687a0c59df996.tar.bz2 iro-design-e3d34a6d6ce2db04c3c898ad6a4687a0c59df996.zip |
Update
Diffstat (limited to 'src/_vars.scss')
-rw-r--r-- | src/_vars.scss | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/src/_vars.scss b/src/_vars.scss deleted file mode 100644 index 78ead7c..0000000 --- a/src/_vars.scss +++ /dev/null | |||
@@ -1,33 +0,0 @@ | |||
1 | @use 'sass:map'; | ||
2 | @use 'sass:meta'; | ||
3 | @use 'iro-sass/src/props'; | ||
4 | @use 'themes'; | ||
5 | |||
6 | @use 'vars.vars' as vars; | ||
7 | @forward 'vars.vars'; | ||
8 | |||
9 | @mixin vars { | ||
10 | @each $theme-name, $theme in vars.$themes { | ||
11 | @if $theme-name == themes.$theme-default { | ||
12 | :root { | ||
13 | @include props.materialize(map.get($theme, 'light')); | ||
14 | |||
15 | @if map.has-key($theme, 'dark') { | ||
16 | @media (prefers-color-scheme: dark) { | ||
17 | @include props.materialize(map.get($theme, 'dark')); | ||
18 | } | ||
19 | } | ||
20 | } | ||
21 | } @else { | ||
22 | @include iro.bem-theme($theme-name) { | ||
23 | @include props.materialize(map.get($theme, 'light')); | ||
24 | |||
25 | @if map.has-key($theme, 'dark') { | ||
26 | @media (prefers-color-scheme: dark) { | ||
27 | @include props.materialize(map.get($theme, 'dark')); | ||
28 | } | ||
29 | } | ||
30 | } | ||
31 | } | ||
32 | } | ||
33 | } | ||