summaryrefslogtreecommitdiffstats
path: root/src/_themes.scss
diff options
context:
space:
mode:
Diffstat (limited to 'src/_themes.scss')
-rw-r--r--src/_themes.scss86
1 files changed, 0 insertions, 86 deletions
diff --git a/src/_themes.scss b/src/_themes.scss
deleted file mode 100644
index 2ca89cb..0000000
--- a/src/_themes.scss
+++ /dev/null
@@ -1,86 +0,0 @@
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}