|
1 | 1 | @import url('@evilmartians/harmony/css/index.css');
|
2 | 2 |
|
| 3 | +@property --land-color { |
| 4 | + syntax: '<color>'; |
| 5 | +} |
| 6 | + |
3 | 7 | :root {
|
4 |
| - --focus-color: var(--blue-500); |
5 |
| - --shadow-color: oklch(15% 0.1 265); |
6 |
| - --fire1-color: oklch(70% 0.15 65); |
7 |
| - --fire2-color: oklch(58% 0.2 29); |
8 |
| - --error-color: var(--red-600); |
9 |
| - --accent-color: oklch(71.97% 0.152 239.92); |
| 8 | + --accent-color: oklch(0.72 0.15 240); |
| 9 | + --focus-color: var(--accent-color); |
| 10 | + --fire1-color: oklch(0.7 0.15 65); |
| 11 | + --fire2-color: oklch(0.58 0.2 29); |
| 12 | + --error-color: oklch(0.6 0.2 25); |
| 13 | + |
| 14 | + --flat-hover-color: oklch(from var(--land-color) calc(l + 0.02) c h); |
| 15 | + --flat-current-color: oklch(from var(--land-color) calc(l + 0.03) calc(c / 2) h); |
| 16 | + |
| 17 | + --card-color: oklch(from var(--land-color) calc(l + 0.03) calc(c / 2) h); |
| 18 | + |
| 19 | + --below-1-shadow: |
| 20 | + inset 0 0.3px 0.5px var(--shadow-color), |
| 21 | + inset 0 0.6px 1px var(--shadow-color), |
| 22 | + inset 0 1.2px 2px var(--shadow-color); |
| 23 | + --above-1-shadow: |
| 24 | + 0 0.3px 0.5px var(--shadow-color), |
| 25 | + 0 0.6px 1px var(--shadow-color), |
| 26 | + 0 1.2px 2px var(--shadow-color); |
| 27 | + --above-2-shadow: TODO; |
| 28 | + |
| 29 | + |
| 30 | + @media (prefers-color-scheme: light) { |
| 31 | + --text-color: oklch(0.15 0 0); |
| 32 | + --secondary-text-color: oklch(50% 0 0); |
| 33 | + --hotkey-color: oklch(0.7 0 0); |
| 34 | + |
| 35 | + --land-color: oklch(0.95 0 70); |
| 36 | + --shadow-color: oklch(from var(--land-color) 0.65 calc(c * 2) h / 45%); |
| 37 | + --border-color: oklch(0 0 0 / 15%); |
| 38 | + |
| 39 | + --above-color: oklch(from var(--land-color) 0.96 c h); |
| 40 | + --above-secondary-color: oklch(from var(--land-color) 0.93 c h); |
| 41 | + |
| 42 | + &.is-slow-theme { |
| 43 | + --land-color: oklch(0.95 0.02 70); |
| 44 | + } |
| 45 | + } |
| 46 | + |
| 47 | + @media (prefers-color-scheme: dark) { |
| 48 | + --text-color: oklch(0.98 0 0); |
| 49 | + --secondary-text-color: oklch(0.6 0 0); |
| 50 | + --hotkey-color: oklch(0.5 0 0); |
| 51 | + |
| 52 | + --land-color: oklch(0.25 0 70); |
| 53 | + --shadow-color: oklch(0 0 0 / 80%); |
| 54 | + |
| 55 | + --above-color: oklch(from var(--land-color) 0.3 c h); |
| 56 | + --above-secondary-color: oklch(from var(--land-color) 0.3 c h); |
| 57 | + |
| 58 | + &.is-slow-theme { |
| 59 | + --land-color: oklch(0.25 0.02 70); |
| 60 | + } |
| 61 | + } |
10 | 62 |
|
11 | 63 | @media (prefers-color-scheme: light) {
|
12 |
| - --land-color: color-mix(in oklab, var(--neutral-100), var(--neutral-200)); |
13 |
| - --text-color: var(--neutral-950); |
14 |
| - --secondary-text-color: var(--neutral-700); |
15 |
| - --hotkey-color: var(--neutral-400); |
16 |
| - --border-color: oklch(0% 0 0 / 15%); |
17 | 64 | --hover-color: color-mix(in oklch, var(--neutral-50), var(--sand-50));
|
18 |
| - --card-color: var(--neutral-50); |
19 |
| - --card-shadow: |
20 |
| - 0 1px 5px oklch(from var(--shadow-color) l c h / 8%), |
21 |
| - 0 1px 1px oklch(from var(--shadow-color) l c h / 15%); |
| 65 | + --card-shadow: var(--above-1-shadow); |
22 | 66 | --card-item-above-shadow: inset 0 1px 2px oklch(from var(--shadow-color) l c h / 20%);
|
23 | 67 | --card-item-pressed-shadow:
|
24 | 68 | inset -2px 0 0 var(--land-color),
|
|
32 | 76 | --dangerous-card-hover-color: color-mix(in oklab, var(--red-100), var(--sand-100));
|
33 | 77 | --dangerous-text-color: var(--red-700);
|
34 | 78 | --button-shadow:
|
35 |
| - 0 0 0 1px oklch(0% 0 0 / 15%), |
| 79 | + 0 0 0 1px oklch(0 0 0 / 15%), |
36 | 80 | inset 0 -5px 5px oklch(from var(--shadow-color) l c h / 8%);
|
37 | 81 | --button-active-shadow:
|
38 | 82 | inset 0 1px 2px oklch(from var(--shadow-color) l c h / 15%),
|
39 | 83 | inset 0 2px 5px oklch(from var(--shadow-color) l c h / 15%),
|
40 |
| - 0 -1px oklch(0% 0 0 / 20%), |
41 |
| - 0 1px oklch(100% 0 0), |
| 84 | + 0 -1px oklch(0 0 0 / 20%), |
| 85 | + 0 1px oklch(1 0 0), |
42 | 86 | inset 0 -5px 5px oklch(from var(--shadow-color) l c h / 8%);
|
43 | 87 | --button-pressed-shadow:
|
44 | 88 | inset 0 1px 1px oklch(from var(--shadow-color) l c h / 10%),
|
45 | 89 | inset 0 1px 3px oklch(from var(--shadow-color) l c h / 10%),
|
46 |
| - 0 -1px oklch(0% 0 0 / 20%), |
47 |
| - 0 1px oklch(100% 0 0), |
| 90 | + 0 -1px oklch(0 0 0 / 20%), |
| 91 | + 0 1px oklch(1 0 0), |
48 | 92 | inset 0 -5px 5px oklch(from var(--shadow-color) l c h / 8%);
|
49 |
| - --flat-hover-color: oklch(from var(--hover-color) l c h / 40%); |
50 | 93 | --flat-active-shadow:
|
51 | 94 | inset 0 1px 2px oklch(from var(--shadow-color) l c h / 15%),
|
52 |
| - 0 -1px oklch(0% 0 0 / 20%); |
53 |
| - --field-color: oklch(100% 0 0); |
| 95 | + 0 -1px oklch(0 0 0 / 20%); |
| 96 | + --field-color: oklch(1 0 0); |
54 | 97 | --field-shadow: inset 0 1px 2px oklch(from var(--shadow-color) l c h / 8%);
|
55 | 98 | --link-color: var(--blue-700);
|
56 | 99 | --link-color-visited: var(--fuchsia-700);
|
57 | 100 | --inline-code-color: oklch(from var(--neutral-200) l c h / 55%);
|
58 | 101 | }
|
59 | 102 |
|
60 | 103 | @media (prefers-color-scheme: dark) {
|
61 |
| - --land-color: var(--neutral-950); |
62 |
| - --text-color: var(--neutral-50); |
63 |
| - --secondary-text-color: var(--neutral-600); |
64 |
| - --hotkey-color: var(--neutral-700); |
65 |
| - --border-color: oklch(100% 0 0 / 15%); |
| 104 | + --border-color: oklch(1 0 0 / 15%); |
66 | 105 | --hover-color: color-mix(in oklch, var(--neutral-900), var(--neutral-800));
|
67 |
| - --card-color: var(--neutral-900); |
68 |
| - --card-shadow: 0 1px 2px oklch(0% 0 0), inset 0 1px oklch(100% 0 0 / 10%); |
69 |
| - --card-item-above-shadow: inset 0 1px 2px oklch(0% 0 0); |
| 106 | + --card-shadow: 0 1px 2px oklch(0 0 0), inset 0 1px oklch(1 0 0 / 10%); |
| 107 | + --card-item-above-shadow: inset 0 1px 2px oklch(0 0 0); |
70 | 108 | --card-item-pressed-shadow:
|
71 | 109 | inset -2px 0 0 var(--land-color),
|
72 | 110 | inset 2px 0 0 var(--land-color),
|
73 | 111 | 5px 0 0 var(--land-color),
|
74 | 112 | -5px 0 0 var(--land-color),
|
75 |
| - inset 0 1px 2px oklch(0% 0 0); |
| 113 | + inset 0 1px 2px oklch(0 0 0); |
76 | 114 | --float-shadow:
|
77 |
| - 0 -1px 0 oklch(0% 0 0), |
78 |
| - 0 0 5px oklch(0% 0 0 / 60%); |
| 115 | + 0 -1px 0 oklch(0 0 0), |
| 116 | + 0 0 5px oklch(0 0 0 / 60%); |
79 | 117 | --dangerous-card-color: var(--red-900);
|
80 | 118 | --dangerous-card-hover-color: color-mix(in oklab, var(--red-900), var(--red-800));
|
81 | 119 | --dangerous-text-color: var(--red-200);
|
82 | 120 | --button-shadow:
|
83 |
| - inset 0 0 0 1px oklch(100% 0 0 / 8%), |
84 |
| - inset 0 -5px 5px oklch(0% 0 0 / 20%), |
85 |
| - 0 1px 1px oklch(0% 0 0); |
| 121 | + inset 0 0 0 1px oklch(1 0 0 / 8%), |
| 122 | + inset 0 -5px 5px oklch(0 0 0 / 20%), |
| 123 | + 0 1px 1px oklch(0 0 0); |
86 | 124 | --button-active-shadow:
|
87 |
| - inset 0 0 1px oklch(100% 0 0 / 30%), |
88 |
| - inset 0 1px 2px oklch(0% 0 0 / 60%), |
89 |
| - inset 0 2px 5px oklch(0% 0 0 / 60%), |
90 |
| - 0 1px oklch(100% 0 0 / 20%), |
91 |
| - inset 0 -5px 5px oklch(0% 0 0 / 10%); |
| 125 | + inset 0 0 1px oklch(1 0 0 / 30%), |
| 126 | + inset 0 1px 2px oklch(0 0 0 / 60%), |
| 127 | + inset 0 2px 5px oklch(0 0 0 / 60%), |
| 128 | + 0 1px oklch(1 0 0 / 20%), |
| 129 | + inset 0 -5px 5px oklch(0 0 0 / 10%); |
92 | 130 | --button-pressed-shadow:
|
93 |
| - inset 0 0 1px oklch(100% 0 0 / 30%), |
94 |
| - inset 0 1px 1px oklch(0% 0 0 / 50%), |
95 |
| - inset 0 1px 4px oklch(0% 0 0 / 50%), |
96 |
| - 0 1px oklch(100% 0 0 / 20%), |
97 |
| - inset 0 -5px 5px oklch(0% 0 0 / 20%); |
98 |
| - --flat-hover-color: oklch(from var(--hover-color) l c h / 30%); |
99 |
| - --flat-active-shadow: inset 0 1px 2px oklch(0% 0 0 / 80%); |
| 131 | + inset 0 0 1px oklch(1 0 0 / 30%), |
| 132 | + inset 0 1px 1px oklch(0 0 0 / 50%), |
| 133 | + inset 0 1px 4px oklch(0 0 0 / 50%), |
| 134 | + 0 1px oklch(1 0 0 / 20%), |
| 135 | + inset 0 -5px 5px oklch(0 0 0 / 20%); |
| 136 | + --flat-active-shadow: inset 0 1px 2px oklch(0 0 0 / 80%); |
100 | 137 | --field-color: color-mix(in oklch, var(--neutral-900), var(--neutral-800));
|
101 |
| - --field-shadow: inset 0 1px 2px oklch(0% 0 0 / 60%); |
| 138 | + --field-shadow: inset 0 1px 2px oklch(0 0 0 / 60%); |
102 | 139 | --link-color: var(--blue-400);
|
103 | 140 | --link-color-visited: var(--fuchsia-400);
|
104 | 141 | --inline-code-color: oklch(from var(--zinc-800) l c h / 60%);
|
|
107 | 144 |
|
108 | 145 | .is-slow-theme {
|
109 | 146 | @media (prefers-color-scheme: light) {
|
110 |
| - --land-color: color-mix(in oklab, var(--sand-100), var(--sand-200)); |
111 |
| - --card-color: var(--sand-50); |
112 | 147 | --hover-color: color-mix(in oklch, var(--sand-50), var(--neutral-50));
|
113 | 148 | }
|
114 | 149 |
|
115 | 150 | @media (prefers-color-scheme: dark) {
|
116 |
| - --land-color: var(--sand-950); |
117 |
| - --card-color: var(--sand-900); |
118 | 151 | --hover-color: color-mix(in oklch, var(--sand-900), var(--sand-800));
|
119 | 152 | }
|
120 | 153 | }
|
0 commit comments