diff options
author | Volpeon <git@volpeon.ink> | 2024-10-17 16:45:00 +0200 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2024-10-17 16:45:00 +0200 |
commit | 50f6acc739f24bfa2ca080d08e90d82f8fa83543 (patch) | |
tree | 404dbe97d34b7e4fc3293c8e6a8c92d9941ac51e /src_old/_themes.scss | |
parent | Colors (diff) | |
download | iro-design-50f6acc739f24bfa2ca080d08e90d82f8fa83543.tar.gz iro-design-50f6acc739f24bfa2ca080d08e90d82f8fa83543.tar.bz2 iro-design-50f6acc739f24bfa2ca080d08e90d82f8fa83543.zip |
Revamped variable management
Diffstat (limited to 'src_old/_themes.scss')
-rw-r--r-- | src_old/_themes.scss | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/src_old/_themes.scss b/src_old/_themes.scss new file mode 100644 index 0000000..2ca89cb --- /dev/null +++ b/src_old/_themes.scss | |||
@@ -0,0 +1,86 @@ | |||
1 | @use 'iro-sass/src/index' as iro; | ||
2 | @use 'functions' as fn; | ||
3 | |||
4 | $static-themes: 'black' 'white' !default; | ||
5 | |||
6 | @include iro.bem-theme('base') { | ||
7 | background-color: fn.global-color(--bg-base); | ||
8 | |||
9 | @include iro.bem-suffix('light') { | ||
10 | @media (prefers-color-scheme: light) { | ||
11 | background-color: fn.global-color(--bg-base); | ||
12 | } | ||
13 | } | ||
14 | |||
15 | @include iro.bem-suffix('dark') { | ||
16 | @media (prefers-color-scheme: dark) { | ||
17 | background-color: fn.global-color(--bg-base); | ||
18 | } | ||
19 | } | ||
20 | } | ||
21 | |||
22 | @include iro.bem-theme('l1') { | ||
23 | background-color: fn.global-color(--bg-l1); | ||
24 | |||
25 | @include iro.bem-suffix('light') { | ||
26 | @media (prefers-color-scheme: light) { | ||
27 | background-color: fn.global-color(--bg-l1); | ||
28 | } | ||
29 | } | ||
30 | |||
31 | @include iro.bem-suffix('dark') { | ||
32 | @media (prefers-color-scheme: dark) { | ||
33 | background-color: fn.global-color(--bg-l1); | ||
34 | } | ||
35 | } | ||
36 | } | ||
37 | |||
38 | @include iro.bem-theme('l2') { | ||
39 | background-color: fn.global-color(--bg-l2); | ||
40 | |||
41 | @include iro.bem-suffix('light') { | ||
42 | @media (prefers-color-scheme: light) { | ||
43 | background-color: fn.global-color(--bg-l2); | ||
44 | } | ||
45 | } | ||
46 | |||
47 | @include iro.bem-suffix('dark') { | ||
48 | @media (prefers-color-scheme: dark) { | ||
49 | background-color: fn.global-color(--bg-l2); | ||
50 | } | ||
51 | } | ||
52 | } | ||
53 | |||
54 | @include iro.bem-theme('50') { | ||
55 | background-color: fn.global-color(--base --50); | ||
56 | |||
57 | @include iro.bem-suffix('light') { | ||
58 | @media (prefers-color-scheme: light) { | ||
59 | background-color: fn.global-color(--base --50); | ||
60 | } | ||
61 | } | ||
62 | |||
63 | @include iro.bem-suffix('dark') { | ||
64 | @media (prefers-color-scheme: dark) { | ||
65 | background-color: fn.global-color(--base --50); | ||
66 | } | ||
67 | } | ||
68 | } | ||
69 | |||
70 | @each $theme in $static-themes { | ||
71 | @include iro.bem-theme(static-#{$theme}) { | ||
72 | color: fn.global-color(--#{$theme}-transparent --800); | ||
73 | |||
74 | @include iro.bem-suffix('light') { | ||
75 | @media (prefers-color-scheme: light) { | ||
76 | background-color: fn.global-color(--base --50); | ||
77 | } | ||
78 | } | ||
79 | |||
80 | @include iro.bem-suffix('dark') { | ||
81 | @media (prefers-color-scheme: dark) { | ||
82 | background-color: fn.global-color(--base --50); | ||
83 | } | ||
84 | } | ||
85 | } | ||
86 | } | ||