@warmio/design 5.0.0 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/theme.css +55 -28
package/package.json
CHANGED
package/theme.css
CHANGED
|
@@ -148,28 +148,29 @@
|
|
|
148
148
|
:root:where(*),
|
|
149
149
|
.light {
|
|
150
150
|
--theme-hue: 82;
|
|
151
|
+
--theme-tint: 1;
|
|
151
152
|
--theme-shadow-hue: calc(var(--theme-hue) + 213);
|
|
152
153
|
--theme-data-lightness: 50%;
|
|
153
|
-
--background: oklch(97% 0.003 calc(var(--theme-hue) + 13));
|
|
154
|
-
--foreground: oklch(24% 0.006 calc(var(--theme-hue) - 12));
|
|
155
|
-
--muted-foreground: oklch(46% 0.01 calc(var(--theme-hue) - 12));
|
|
156
|
-
--accent: oklch(48% 0.065 var(--theme-hue));
|
|
154
|
+
--background: oklch(97% calc(0.003 * var(--theme-tint)) calc(var(--theme-hue) + 13));
|
|
155
|
+
--foreground: oklch(24% calc(0.006 * var(--theme-tint)) calc(var(--theme-hue) - 12));
|
|
156
|
+
--muted-foreground: oklch(46% calc(0.01 * var(--theme-tint)) calc(var(--theme-hue) - 12));
|
|
157
|
+
--accent: oklch(48% calc(0.065 * var(--theme-tint)) var(--theme-hue));
|
|
157
158
|
--negative: oklch(47% 0.095 32);
|
|
158
159
|
--warning: oklch(54% 0.13 62);
|
|
159
|
-
--muted: oklch(94.8% 0.004 calc(var(--theme-hue) + 3));
|
|
160
|
-
--border: oklch(90.5% 0.005 calc(var(--theme-hue) + 3));
|
|
161
|
-
--control-border: oklch(58% 0.01 calc(var(--theme-hue) - 12));
|
|
162
|
-
--accent-tint: oklch(93.4% 0.015 calc(var(--theme-hue) - 5));
|
|
160
|
+
--muted: oklch(94.8% calc(0.004 * var(--theme-tint)) calc(var(--theme-hue) + 3));
|
|
161
|
+
--border: oklch(90.5% calc(0.005 * var(--theme-tint)) calc(var(--theme-hue) + 3));
|
|
162
|
+
--control-border: oklch(58% calc(0.01 * var(--theme-tint)) calc(var(--theme-hue) - 12));
|
|
163
|
+
--accent-tint: oklch(93.4% calc(0.015 * var(--theme-tint)) calc(var(--theme-hue) - 5));
|
|
163
164
|
--negative-tint: oklch(94.7% 0.0095 32);
|
|
164
165
|
--warning-tint: oklch(95% 0.02 62);
|
|
165
|
-
--shadow-color: oklch(12% 0.025 var(--theme-shadow-hue) / 10%);
|
|
166
|
+
--shadow-color: oklch(12% calc(0.025 * var(--theme-tint)) var(--theme-shadow-hue) / 10%);
|
|
166
167
|
--card: oklch(100% 0 0);
|
|
167
168
|
--primary: var(--foreground);
|
|
168
169
|
--primary-foreground: var(--card);
|
|
169
|
-
--secondary: oklch(96.5% 0.005 calc(var(--theme-hue) - 4));
|
|
170
|
-
--secondary-foreground: oklch(35.2% 0.005 calc(var(--theme-hue) + 10));
|
|
171
|
-
--control-hover: oklch(91.5% 0.008 calc(var(--theme-hue) + 3));
|
|
172
|
-
--control-active: oklch(88% 0.01 calc(var(--theme-hue) - 2));
|
|
170
|
+
--secondary: oklch(96.5% calc(0.005 * var(--theme-tint)) calc(var(--theme-hue) - 4));
|
|
171
|
+
--secondary-foreground: oklch(35.2% calc(0.005 * var(--theme-tint)) calc(var(--theme-hue) + 10));
|
|
172
|
+
--control-hover: oklch(91.5% calc(0.008 * var(--theme-tint)) calc(var(--theme-hue) + 3));
|
|
173
|
+
--control-active: oklch(88% calc(0.01 * var(--theme-tint)) calc(var(--theme-hue) - 2));
|
|
173
174
|
--segmented-surface: oklch(93.4% 0 0);
|
|
174
175
|
--segmented-border: oklch(89% 0 0);
|
|
175
176
|
--shadow-button:
|
|
@@ -178,29 +179,30 @@
|
|
|
178
179
|
0 12px 32px -6px var(--shadow-color);
|
|
179
180
|
--shadow-button-secondary: 0 1px 2px var(--shadow-color);
|
|
180
181
|
--gain: var(--foreground);
|
|
181
|
-
--chart-mid: oklch(75% 0.03 var(--theme-hue));
|
|
182
|
+
--chart-mid: oklch(75% calc(0.03 * var(--theme-tint)) var(--theme-hue));
|
|
182
183
|
}
|
|
183
184
|
|
|
184
185
|
.dark {
|
|
185
186
|
--theme-hue: 295;
|
|
187
|
+
--theme-tint: 1;
|
|
186
188
|
--theme-shadow-hue: var(--theme-hue);
|
|
187
189
|
--theme-data-lightness: 78%;
|
|
188
|
-
--background: oklch(20.5% 0.012 var(--theme-hue));
|
|
189
|
-
--foreground: oklch(94% 0.012 var(--theme-hue));
|
|
190
|
-
--muted-foreground: oklch(74% 0.02 var(--theme-hue));
|
|
191
|
-
--accent: oklch(74% 0.07 var(--theme-hue));
|
|
190
|
+
--background: oklch(20.5% calc(0.012 * var(--theme-tint)) var(--theme-hue));
|
|
191
|
+
--foreground: oklch(94% calc(0.012 * var(--theme-tint)) var(--theme-hue));
|
|
192
|
+
--muted-foreground: oklch(74% calc(0.02 * var(--theme-tint)) var(--theme-hue));
|
|
193
|
+
--accent: oklch(74% calc(0.07 * var(--theme-tint)) var(--theme-hue));
|
|
192
194
|
--negative: oklch(74% 0.065 35);
|
|
193
195
|
--warning: oklch(76% 0.08 75);
|
|
194
|
-
--muted: oklch(30% 0.018 var(--theme-hue));
|
|
195
|
-
--border: oklch(34% 0.018 var(--theme-hue));
|
|
196
|
-
--control-border: oklch(62% 0.015 var(--theme-hue));
|
|
197
|
-
--accent-tint: oklch(25.85% 0.0124 var(--theme-hue));
|
|
196
|
+
--muted: oklch(30% calc(0.018 * var(--theme-tint)) var(--theme-hue));
|
|
197
|
+
--border: oklch(34% calc(0.018 * var(--theme-tint)) var(--theme-hue));
|
|
198
|
+
--control-border: oklch(62% calc(0.015 * var(--theme-tint)) var(--theme-hue));
|
|
199
|
+
--accent-tint: oklch(25.85% calc(0.0124 * var(--theme-tint)) var(--theme-hue));
|
|
198
200
|
--negative-tint: oklch(25.85% 0.007695 351.2865);
|
|
199
201
|
--warning-tint: oklch(26.05% 0.005194 33.0617);
|
|
200
|
-
--shadow-color: oklch(12% 0.025 var(--theme-shadow-hue) / 50%);
|
|
202
|
+
--shadow-color: oklch(12% calc(0.025 * var(--theme-tint)) var(--theme-shadow-hue) / 50%);
|
|
201
203
|
--card: var(--background);
|
|
202
|
-
--primary: oklch(92% 0.01 var(--theme-hue));
|
|
203
|
-
--primary-foreground: oklch(18% 0.01 var(--theme-hue));
|
|
204
|
+
--primary: oklch(92% calc(0.01 * var(--theme-tint)) var(--theme-hue));
|
|
205
|
+
--primary-foreground: oklch(18% calc(0.01 * var(--theme-tint)) var(--theme-hue));
|
|
204
206
|
--secondary: var(--muted);
|
|
205
207
|
--secondary-foreground: var(--foreground);
|
|
206
208
|
--control-hover: var(--muted);
|
|
@@ -213,7 +215,7 @@
|
|
|
213
215
|
inset 0 1px 0 color-mix(in oklab, var(--foreground) 8%, transparent),
|
|
214
216
|
0 1px 2px var(--shadow-color);
|
|
215
217
|
--gain: var(--accent);
|
|
216
|
-
--chart-mid: oklch(44.575% 0.0348 var(--theme-hue));
|
|
218
|
+
--chart-mid: oklch(44.575% calc(0.0348 * var(--theme-tint)) var(--theme-hue));
|
|
217
219
|
--onboarding-v2-hero-halo-edge-stop: 55%;
|
|
218
220
|
--onboarding-setup-field-label-size: var(--type-size-body-emphasis);
|
|
219
221
|
--onboarding-setup-field-label-weight: 400;
|
|
@@ -221,7 +223,7 @@
|
|
|
221
223
|
}
|
|
222
224
|
|
|
223
225
|
:is(:root, .light, .dark) {
|
|
224
|
-
--scrim: oklch(12% 0.025 var(--theme-shadow-hue) / 10%);
|
|
226
|
+
--scrim: oklch(12% calc(0.025 * var(--theme-tint)) var(--theme-shadow-hue) / 10%);
|
|
225
227
|
--hue-sky: oklch(var(--theme-data-lightness) 0.08 232);
|
|
226
228
|
--hue-rose: oklch(var(--theme-data-lightness) 0.08 12);
|
|
227
229
|
--hue-mint: oklch(var(--theme-data-lightness) 0.08 160);
|
|
@@ -232,11 +234,36 @@
|
|
|
232
234
|
--hue-orchid: oklch(var(--theme-data-lightness) 0.08 335);
|
|
233
235
|
}
|
|
234
236
|
|
|
237
|
+
[data-accent='rose'],
|
|
238
|
+
[data-accent='rose'] :where(.light, .dark):where(:not([data-accent])) {
|
|
239
|
+
--theme-hue: 345;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
[data-accent='sage'],
|
|
243
|
+
[data-accent='sage'] :where(.light, .dark):where(:not([data-accent])) {
|
|
244
|
+
--theme-hue: 150;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
[data-accent='sky'],
|
|
248
|
+
[data-accent='sky'] :where(.light, .dark):where(:not([data-accent])) {
|
|
249
|
+
--theme-hue: 225;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
[data-accent='indigo'],
|
|
253
|
+
[data-accent='indigo'] :where(.light, .dark):where(:not([data-accent])) {
|
|
254
|
+
--theme-hue: 268;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
[data-accent='grayscale'],
|
|
258
|
+
[data-accent='grayscale'] :where(.light, .dark):where(:not([data-accent])) {
|
|
259
|
+
--theme-tint: 0;
|
|
260
|
+
}
|
|
261
|
+
|
|
235
262
|
@media (prefers-reduced-transparency: reduce) {
|
|
236
263
|
:root:where(*),
|
|
237
264
|
.light,
|
|
238
265
|
.dark {
|
|
239
|
-
--scrim: oklch(12% 0.025 var(--theme-shadow-hue) / 60%);
|
|
266
|
+
--scrim: oklch(12% calc(0.025 * var(--theme-tint)) var(--theme-shadow-hue) / 60%);
|
|
240
267
|
}
|
|
241
268
|
}
|
|
242
269
|
|