|
1 | 1 | /*******************************************************************************
|
2 | 2 | * Themes
|
3 | 3 | ******************************************************************************/
|
4 |
| - |
| 4 | +@use "variables" as v; |
5 | 5 | @use "sass:color";
|
6 | 6 |
|
7 | 7 | :root {
|
8 | 8 | color-scheme: light;
|
9 |
| - --global-bg-color: #{$white-color}; |
10 |
| - --global-code-bg-color: #{$code-bg-color-light}; |
11 |
| - --global-text-color: #{$black-color}; |
12 |
| - --global-text-color-light: #{$grey-color}; |
13 |
| - --global-theme-color: #{$purple-color}; |
14 |
| - --global-hover-color: #{$purple-color}; |
15 |
| - --global-hover-text-color: #{$white-color}; |
16 |
| - --global-footer-bg-color: #{$grey-color-dark}; |
17 |
| - --global-footer-text-color: #{$grey-color-light}; |
18 |
| - --global-footer-link-color: #{$white-color}; |
19 |
| - --global-distill-app-color: #{$grey-color}; |
| 9 | + --global-bg-color: #{v.$white-color}; |
| 10 | + --global-code-bg-color: #{v.$code-bg-color-light}; |
| 11 | + --global-text-color: #{v.$black-color}; |
| 12 | + --global-text-color-light: #{v.$grey-color}; |
| 13 | + --global-theme-color: #{v.$purple-color}; |
| 14 | + --global-hover-color: #{v.$purple-color}; |
| 15 | + --global-hover-text-color: #{v.$white-color}; |
| 16 | + --global-footer-bg-color: #{v.$grey-color-dark}; |
| 17 | + --global-footer-text-color: #{v.$grey-color-light}; |
| 18 | + --global-footer-link-color: #{v.$white-color}; |
| 19 | + --global-distill-app-color: #{v.$grey-color}; |
20 | 20 | --global-divider-color: rgba(0, 0, 0, 0.1);
|
21 |
| - --global-card-bg-color: #{$white-color}; |
22 |
| - --global-highlight-color: #{$red-color-dark}; |
| 21 | + --global-card-bg-color: #{v.$white-color}; |
| 22 | + --global-highlight-color: #{v.$red-color-dark}; |
23 | 23 | --global-back-to-top-bg-color: rgba(
|
24 |
| - #{color.channel($black-color, "red", $space: rgb)}, |
25 |
| - #{color.channel($black-color, "green", $space: rgb)}, |
26 |
| - #{color.channel($black-color, "blue", $space: rgb)}, |
| 24 | + #{color.channel(v.$black-color, "red", v.$space: rgb)}, |
| 25 | + #{color.channel(v.$black-color, "green", v.$space: rgb)}, |
| 26 | + #{color.channel(v.$black-color, "blue", v.$space: rgb)}, |
27 | 27 | 0.4
|
28 | 28 | );
|
29 |
| - --global-back-to-top-text-color: #{$white-color}; |
30 |
| - --global-newsletter-bg-color: #{$white-color}; |
31 |
| - --global-newsletter-text-color: #{$black-color}; |
| 29 | + --global-back-to-top-text-color: #{v.$white-color}; |
| 30 | + --global-newsletter-bg-color: #{v.$white-color}; |
| 31 | + --global-newsletter-text-color: #{v.$black-color}; |
32 | 32 |
|
33 | 33 | --global-tip-block: #42b983;
|
34 | 34 | --global-tip-block-bg: #e2f5ec;
|
|
68 | 68 | #back-to-top {
|
69 | 69 | color: var(--global-back-to-top-text-color);
|
70 | 70 | background: var(--global-back-to-top-bg-color);
|
71 |
| - bottom: $back-to-top-bottom; |
72 |
| - right: $back-to-top-right; |
73 |
| - height: $back-to-top-height; |
74 |
| - width: $back-to-top-width; |
75 |
| - z-index: $back-to-top-z-index; |
| 71 | + bottom: v.$back-to-top-bottom; |
| 72 | + right: v.$back-to-top-right; |
| 73 | + height: v.$back-to-top-height; |
| 74 | + width: v.$back-to-top-width; |
| 75 | + z-index: v.$back-to-top-z-index; |
76 | 76 | }
|
77 | 77 | }
|
78 | 78 |
|
79 | 79 | html[data-theme="dark"] {
|
80 | 80 | color-scheme: dark;
|
81 |
| - --global-bg-color: #{$grey-color-dark}; |
82 |
| - --global-code-bg-color: #{$code-bg-color-dark}; |
83 |
| - --global-text-color: #{$grey-color-light}; |
84 |
| - --global-text-color-light: #{$grey-color}; |
85 |
| - --global-theme-color: #{$cyan-color}; |
86 |
| - --global-hover-color: #{$cyan-color}; |
87 |
| - --global-hover-text-color: #{$white-color}; |
88 |
| - --global-footer-bg-color: #{$grey-color-light}; |
89 |
| - --global-footer-text-color: #{$grey-color-dark}; |
90 |
| - --global-footer-link-color: #{$black-color}; |
91 |
| - --global-distill-app-color: #{$grey-color-light}; |
| 81 | + --global-bg-color: #{v.$grey-color-dark}; |
| 82 | + --global-code-bg-color: #{v.$code-bg-color-dark}; |
| 83 | + --global-text-color: #{v.$grey-color-light}; |
| 84 | + --global-text-color-light: #{v.$grey-color}; |
| 85 | + --global-theme-color: #{v.$cyan-color}; |
| 86 | + --global-hover-color: #{v.$cyan-color}; |
| 87 | + --global-hover-text-color: #{v.$white-color}; |
| 88 | + --global-footer-bg-color: #{v.$grey-color-light}; |
| 89 | + --global-footer-text-color: #{v.$grey-color-dark}; |
| 90 | + --global-footer-link-color: #{v.$black-color}; |
| 91 | + --global-distill-app-color: #{v.$grey-color-light}; |
92 | 92 | --global-divider-color: #424246;
|
93 |
| - --global-card-bg-color: #{$grey-900}; |
| 93 | + --global-card-bg-color: #{v.$grey-900}; |
94 | 94 | --global-back-to-top-bg-color: rgba(
|
95 |
| - #{color.channel($white-color, "red", $space: rgb)}, |
96 |
| - #{color.channel($white-color, "green", $space: rgb)}, |
97 |
| - #{color.channel($white-color, "blue", $space: rgb)}, |
| 95 | + #{color.channel(v.$white-color, "red", v.$space: rgb)}, |
| 96 | + #{color.channel(v.$white-color, "green", v.$space: rgb)}, |
| 97 | + #{color.channel(v.$white-color, "blue", v.$space: rgb)}, |
98 | 98 | 0.5
|
99 | 99 | );
|
100 |
| - --global-back-to-top-text-color: #{$black-color}; |
101 |
| - --global-newsletter-bg-color: #{$grey-color-light}; |
102 |
| - --global-newsletter-text-color: #{$grey-color-dark}; |
| 100 | + --global-back-to-top-text-color: #{v.$black-color}; |
| 101 | + --global-newsletter-bg-color: #{v.$grey-color-light}; |
| 102 | + --global-newsletter-text-color: #{v.$grey-color-dark}; |
103 | 103 |
|
104 | 104 | --global-tip-block: #42b983;
|
105 | 105 | --global-tip-block-bg: #e2f5ec;
|
|
0 commit comments