blob: 78ead7c9b7856d1174d18198ae658ba29edeb6b2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
@use 'sass:map';
@use 'sass:meta';
@use 'iro-sass/src/props';
@use 'themes';
@use 'vars.vars' as vars;
@forward 'vars.vars';
@mixin vars {
@each $theme-name, $theme in vars.$themes {
@if $theme-name == themes.$theme-default {
:root {
@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'));
}
}
}
} @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'));
}
}
}
}
}
}
|