|
| 1 | +@layer theme { |
| 2 | + @property --surface-1 { |
| 3 | + syntax: '<color>'; |
| 4 | + inherits: false; |
| 5 | + initial-value: #d3e0e0; |
| 6 | + } |
| 7 | + @property --surface-2 { |
| 8 | + syntax: '<color>'; |
| 9 | + inherits: false; |
| 10 | + initial-value: #2f324d; |
| 11 | + } |
| 12 | + @property --surface-3 { |
| 13 | + syntax: '<color>'; |
| 14 | + inherits: false; |
| 15 | + initial-value: #414138; |
| 16 | + } |
| 17 | + @property --surface-4 { |
| 18 | + syntax: '<color>'; |
| 19 | + inherits: false; |
| 20 | + initial-value: #008195; |
| 21 | + } |
| 22 | + @property --surface-5 { |
| 23 | + syntax: '<color>'; |
| 24 | + inherits: false; |
| 25 | + initial-value: #006a7a; |
| 26 | + } |
| 27 | + @property --surface-6 { |
| 28 | + syntax: '<color>'; |
| 29 | + inherits: false; |
| 30 | + initial-value: #77c0c0; |
| 31 | + } |
| 32 | + @property --surface-7 { |
| 33 | + syntax: '<color>'; |
| 34 | + inherits: false; |
| 35 | + initial-value: #233665; |
| 36 | + } |
1 | 37 |
|
2 | | -@property --surface-1 { |
3 | | - syntax: '<color>'; |
4 | | - inherits: false; |
5 | | - initial-value: #d3e0e0; |
6 | | -} |
7 | | -@property --surface-2 { |
8 | | - syntax: '<color>'; |
9 | | - inherits: false; |
10 | | - initial-value: #2f324d; |
11 | | -} |
12 | | -@property --surface-3 { |
13 | | - syntax: '<color>'; |
14 | | - inherits: false; |
15 | | - initial-value: #414138; |
16 | | -} |
17 | | -@property --surface-4 { |
18 | | - syntax: '<color>'; |
19 | | - inherits: false; |
20 | | - initial-value: #008195; |
21 | | -} |
22 | | -@property --surface-5 { |
23 | | - syntax: '<color>'; |
24 | | - inherits: false; |
25 | | - initial-value: #006a7a; |
26 | | -} |
27 | | -@property --surface-6 { |
28 | | - syntax: '<color>'; |
29 | | - inherits: false; |
30 | | - initial-value: #77c0c0; |
31 | | -} |
32 | | -@property --surface-7 { |
33 | | - syntax: '<color>'; |
34 | | - inherits: false; |
35 | | - initial-value: #233665; |
36 | | -} |
37 | | - |
38 | | -:root { |
39 | | - color-scheme: dark light; |
40 | | - --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; |
41 | | - --font-mono: Consolas, monaco, 'Ubuntu Mono', 'Liberation Mono', 'Courier New', Courier, monospace; |
42 | | - --base-weight: 400; |
43 | | - --base-grade: 0; |
| 38 | + :root { |
| 39 | + color-scheme: dark light; |
| 40 | + --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; |
| 41 | + --font-mono: Consolas, monaco, 'Ubuntu Mono', 'Liberation Mono', 'Courier New', Courier, monospace; |
| 42 | + --base-weight: 400; |
| 43 | + --base-grade: 0; |
44 | 44 |
|
45 | | - /* Light theme */ |
46 | | - --light-surface: light-dark(var(--surface-2), var(--surface-1)); |
47 | | - --dark-surface: light-dark(var(--surface-1), var(--surface-2)); |
48 | | - --light-link: light-dark(var(--surface-4), var(--surface-5)); |
49 | | - --dark-link: light-dark(var(--surface-5), var(--surface-4)); |
50 | | - --light-line: light-dark(var(--surface-6), var(--surface-7)); |
51 | | - --dark-line: light-dark(var(--surface-7), var(--surface-6)); |
| 45 | + /* Light theme */ |
| 46 | + --light-surface: light-dark(var(--surface-2), var(--surface-1)); |
| 47 | + --dark-surface: light-dark(var(--surface-1), var(--surface-2)); |
| 48 | + --light-link: light-dark(var(--surface-4), var(--surface-5)); |
| 49 | + --dark-link: light-dark(var(--surface-5), var(--surface-4)); |
| 50 | + --light-line: light-dark(var(--surface-6), var(--surface-7)); |
| 51 | + --dark-line: light-dark(var(--surface-7), var(--surface-6)); |
52 | 52 |
|
53 | | - &:has(input[name="color-scheme"][value="light dark"]:checked) { |
54 | | - color-scheme: light dark; |
55 | | - } |
56 | | - &:has(input[name="color-scheme"][value="light"]:checked) { |
57 | | - color-scheme: light; |
58 | | - } |
59 | | - &:has(input[name="color-scheme"][value="dark"]:checked) { |
60 | | - color-scheme: dark; |
61 | | - } |
62 | | - @supports (font-variation-settings: normal) { |
63 | | - font-family: InterVariable, sans-serif; |
64 | | - font-variation-settings: |
65 | | - "wght" var(--base-weight), |
66 | | - "GRAD" var(--base-grade) |
| 53 | + &:has(input[name="color-scheme"][value="light dark"]:checked) { |
| 54 | + color-scheme: light dark; |
| 55 | + } |
| 56 | + &:has(input[name="color-scheme"][value="light"]:checked) { |
| 57 | + color-scheme: light; |
| 58 | + } |
| 59 | + &:has(input[name="color-scheme"][value="dark"]:checked) { |
| 60 | + color-scheme: dark; |
| 61 | + } |
| 62 | + @supports (font-variation-settings: normal) { |
| 63 | + font-family: InterVariable, sans-serif; |
| 64 | + font-variation-settings: |
| 65 | + "wght" var(--base-weight), |
| 66 | + "GRAD" var(--base-grade) |
67 | 67 | ; |
68 | 68 |
|
69 | | - @media (prefers-contrast: more) { --base-weight: 700 } |
70 | | - @media (prefers-contrast: less) { --base-weight: 200 } |
71 | | - @media (prefers-color-scheme: dark) { --base-grade: -25 } |
| 69 | + @media (prefers-contrast: more) { --base-weight: 700 } |
| 70 | + @media (prefers-contrast: less) { --base-weight: 200 } |
| 71 | + @media (prefers-color-scheme: dark) { --base-grade: -25 } |
| 72 | + } |
72 | 73 | } |
73 | 74 | } |
74 | 75 |
|
|
78 | 79 | margin: 0; |
79 | 80 | padding: 0; |
80 | 81 | border: 0; |
| 82 | + transition: .1s cubic-bezier(.1,0,.9,1); |
| 83 | + transition-property: accent-color, background-color, color; |
81 | 84 | @media (prefers-reduced-motion) { |
82 | 85 | animation-duration: 0s !important; |
83 | 86 | transition: none !important; |
|
104 | 107 | word-break: break-word; |
105 | 108 | overflow-wrap: break-word; |
106 | 109 | -webkit-font-smoothing: antialiased; |
107 | | - transition: color 0.4s, background-color; |
108 | 110 | } |
109 | 111 | address, area, article, aside, audio, blockquote, datalist, details, dl, div, fieldset, figure, form, input, iframe, img, meter, nav, ol, optgroup, option, output, p, pre, progress, ruby, section, table, textarea, ul, video { |
110 | 112 | margin-bottom: 1rem; |
|
0 commit comments