|
4 | 4 | --window-padding: 1.75rem; |
5 | 5 | --container-outside-text-padding-left: 0.25rem; |
6 | 6 |
|
7 | | - --theme-background-color: #f2f3f6; |
8 | | - --theme-secondary-background-color: white; |
9 | | - --theme-secondary-background-color-variant: #fafafc; |
10 | | - --theme-font-color: rgb(51, 51, 51); |
11 | | - --theme-secondary-font-color: rgb(51, 51, 51, 0.7); |
| 7 | + --md-surface-container: #f2f3f6; |
| 8 | + --md-surface: white; |
| 9 | + --md-surface-variant: #fafafc; |
| 10 | + --md-on-surface: rgb(51, 51, 51); |
| 11 | + --md-on-surface-variant: rgb(51, 51, 51, 0.7); |
12 | 12 |
|
13 | 13 | --md-sys-color-primary: rgb(73, 113, 214); |
14 | | - --md-sys-color-on-primary: var(--theme-secondary-background-color); |
| 14 | + --md-sys-color-on-primary: var(--md-surface); |
15 | 15 | --md-sys-color-on-surface-variant: #888; |
16 | 16 | --md-sys-color-on-surface: #aaa; |
17 | 17 | } |
18 | 18 |
|
19 | 19 | @media (prefers-color-scheme: dark) { |
20 | 20 | :root { |
21 | | - --theme-background-color: #0d0e14; |
22 | | - --theme-secondary-background-color: #1f2029; |
23 | | - --theme-secondary-background-color-variant: #2a2b37; |
24 | | - --theme-font-color: #ebedf2; |
25 | | - --theme-secondary-font-color: #a8b2c7; |
| 21 | + --md-surface-container: #0d0e14; |
| 22 | + --md-surface: #1f2029; |
| 23 | + --md-surface-variant: #2a2b37; |
| 24 | + --md-on-surface: #ebedf2; |
| 25 | + --md-on-surface-variant: #a8b2c7; |
26 | 26 |
|
27 | 27 | --md-sys-color-primary: rgb(98, 125, 194); |
28 | | - --md-sys-color-on-primary: var(--theme-secondary-background-color); |
| 28 | + --md-sys-color-on-primary: var(--md-surface); |
29 | 29 | --md-sys-color-on-surface-variant: #aaa; |
30 | 30 | --md-sys-color-on-surface: #888; |
31 | 31 | } |
|
41 | 41 | body { |
42 | 42 | padding: var(--window-padding); |
43 | 43 | width: max-content; |
44 | | - background: var(--theme-background-color); |
45 | | - color: var(--theme-font-color); |
| 44 | + background: var(--md-surface-container); |
| 45 | + color: var(--md-on-surface); |
46 | 46 | font-size: 1rem; |
47 | 47 | } |
48 | 48 |
|
|
61 | 61 | margin-left: 0.5rem; |
62 | 62 | color: inherit; |
63 | 63 | text-decoration: none; |
64 | | - color: var(--theme-secondary-font-color); |
| 64 | + color: var(--md-on-surface-variant); |
65 | 65 | } |
66 | 66 |
|
67 | 67 | fieldset { |
@@ -92,7 +92,7 @@ settings-description { |
92 | 92 |
|
93 | 93 | small { |
94 | 94 | font-size: 0.8em; |
95 | | - color: var(--theme-secondary-font-color); |
| 95 | + color: var(--md-on-surface-variant); |
96 | 96 | padding-left: var(--container-outside-text-padding-left); |
97 | 97 | } |
98 | 98 |
|
|
0 commit comments