@warmio/design 4.5.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 +84 -71
package/package.json
CHANGED
package/theme.css
CHANGED
|
@@ -147,27 +147,30 @@
|
|
|
147
147
|
|
|
148
148
|
:root:where(*),
|
|
149
149
|
.light {
|
|
150
|
-
--
|
|
151
|
-
--
|
|
152
|
-
--
|
|
153
|
-
--
|
|
150
|
+
--theme-hue: 82;
|
|
151
|
+
--theme-tint: 1;
|
|
152
|
+
--theme-shadow-hue: calc(var(--theme-hue) + 213);
|
|
153
|
+
--theme-data-lightness: 50%;
|
|
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));
|
|
154
158
|
--negative: oklch(47% 0.095 32);
|
|
155
159
|
--warning: oklch(54% 0.13 62);
|
|
156
|
-
--muted: oklch(94.8% 0.004
|
|
157
|
-
--border: oklch(90.5% 0.005
|
|
158
|
-
--control-border: oklch(58% 0.01
|
|
159
|
-
--accent-tint: oklch(93.4% 0.015
|
|
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));
|
|
160
164
|
--negative-tint: oklch(94.7% 0.0095 32);
|
|
161
165
|
--warning-tint: oklch(95% 0.02 62);
|
|
162
|
-
--
|
|
163
|
-
--
|
|
164
|
-
--
|
|
165
|
-
--primary:
|
|
166
|
-
--
|
|
167
|
-
--secondary: oklch(
|
|
168
|
-
--
|
|
169
|
-
--control-
|
|
170
|
-
--control-active: oklch(88% 0.01 80);
|
|
166
|
+
--shadow-color: oklch(12% calc(0.025 * var(--theme-tint)) var(--theme-shadow-hue) / 10%);
|
|
167
|
+
--card: oklch(100% 0 0);
|
|
168
|
+
--primary: var(--foreground);
|
|
169
|
+
--primary-foreground: var(--card);
|
|
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));
|
|
171
174
|
--segmented-surface: oklch(93.4% 0 0);
|
|
172
175
|
--segmented-border: oklch(89% 0 0);
|
|
173
176
|
--shadow-button:
|
|
@@ -175,82 +178,92 @@
|
|
|
175
178
|
0 1px 2px var(--shadow-color), 0 4px 10px -2px var(--shadow-color),
|
|
176
179
|
0 12px 32px -6px var(--shadow-color);
|
|
177
180
|
--shadow-button-secondary: 0 1px 2px var(--shadow-color);
|
|
178
|
-
--gain:
|
|
179
|
-
--chart-mid: oklch(75% 0.03
|
|
180
|
-
--hue-sky: oklch(50% 0.08 232);
|
|
181
|
-
--hue-rose: oklch(50% 0.08 12);
|
|
182
|
-
--hue-mint: oklch(50% 0.08 160);
|
|
183
|
-
--hue-peach: oklch(50% 0.08 55);
|
|
184
|
-
--hue-periwinkle: oklch(50% 0.08 268);
|
|
185
|
-
--hue-lemon: oklch(50% 0.08 85);
|
|
186
|
-
--hue-aqua: oklch(50% 0.08 195);
|
|
187
|
-
--hue-orchid: oklch(50% 0.08 335);
|
|
188
|
-
--warm-confetti-1: oklch(67.4378% 0.143554 39.9277);
|
|
189
|
-
--warm-confetti-2: oklch(80.7201% 0.140901 80.2776);
|
|
190
|
-
--warm-confetti-3: oklch(74.0401% 0.098072 127.9755);
|
|
191
|
-
--warm-confetti-4: oklch(58.4931% 0.089163 136.29);
|
|
192
|
-
--warm-confetti-5: oklch(73.6637% 0.082885 0.5121);
|
|
193
|
-
--warm-confetti-6: oklch(76.0232% 0.080118 80.1549);
|
|
194
|
-
--warm-confetti-7: oklch(85.6277% 0.089544 90.5616);
|
|
181
|
+
--gain: var(--foreground);
|
|
182
|
+
--chart-mid: oklch(75% calc(0.03 * var(--theme-tint)) var(--theme-hue));
|
|
195
183
|
}
|
|
196
184
|
|
|
197
185
|
.dark {
|
|
198
|
-
--
|
|
199
|
-
--
|
|
200
|
-
--
|
|
201
|
-
--
|
|
186
|
+
--theme-hue: 295;
|
|
187
|
+
--theme-tint: 1;
|
|
188
|
+
--theme-shadow-hue: var(--theme-hue);
|
|
189
|
+
--theme-data-lightness: 78%;
|
|
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));
|
|
202
194
|
--negative: oklch(74% 0.065 35);
|
|
203
195
|
--warning: oklch(76% 0.08 75);
|
|
204
|
-
--muted: oklch(30% 0.018
|
|
205
|
-
--border: oklch(34% 0.018
|
|
206
|
-
--control-border: oklch(62% 0.015
|
|
207
|
-
--accent-tint: oklch(25.85% 0.0124
|
|
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));
|
|
208
200
|
--negative-tint: oklch(25.85% 0.007695 351.2865);
|
|
209
201
|
--warning-tint: oklch(26.05% 0.005194 33.0617);
|
|
210
|
-
--
|
|
211
|
-
--
|
|
212
|
-
--
|
|
213
|
-
--primary: oklch(
|
|
214
|
-
--
|
|
215
|
-
--secondary:
|
|
216
|
-
--
|
|
217
|
-
--control-
|
|
218
|
-
--
|
|
219
|
-
--segmented-
|
|
220
|
-
--segmented-border: oklch(34% 0.018 295);
|
|
202
|
+
--shadow-color: oklch(12% calc(0.025 * var(--theme-tint)) var(--theme-shadow-hue) / 50%);
|
|
203
|
+
--card: var(--background);
|
|
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));
|
|
206
|
+
--secondary: var(--muted);
|
|
207
|
+
--secondary-foreground: var(--foreground);
|
|
208
|
+
--control-hover: var(--muted);
|
|
209
|
+
--control-active: var(--border);
|
|
210
|
+
--segmented-surface: var(--muted);
|
|
211
|
+
--segmented-border: var(--border);
|
|
221
212
|
--shadow-button:
|
|
222
213
|
inset 0 1px 0 oklch(from var(--primary) calc(l + 0.1) c h), 0 1px 2px var(--shadow-color);
|
|
223
214
|
--shadow-button-secondary:
|
|
224
215
|
inset 0 1px 0 color-mix(in oklab, var(--foreground) 8%, transparent),
|
|
225
216
|
0 1px 2px var(--shadow-color);
|
|
226
|
-
--gain:
|
|
227
|
-
--chart-mid: oklch(44.575% 0.0348
|
|
228
|
-
--hue-sky: oklch(78% 0.08 232);
|
|
229
|
-
--hue-rose: oklch(78% 0.08 12);
|
|
230
|
-
--hue-mint: oklch(78% 0.08 160);
|
|
231
|
-
--hue-peach: oklch(78% 0.08 55);
|
|
232
|
-
--hue-periwinkle: oklch(78% 0.08 268);
|
|
233
|
-
--hue-lemon: oklch(78% 0.08 85);
|
|
234
|
-
--hue-aqua: oklch(78% 0.08 195);
|
|
235
|
-
--hue-orchid: oklch(78% 0.08 335);
|
|
236
|
-
--warm-confetti-1: oklch(67.4378% 0.143554 39.9277);
|
|
237
|
-
--warm-confetti-2: oklch(80.7201% 0.140901 80.2776);
|
|
238
|
-
--warm-confetti-3: oklch(74.0401% 0.098072 127.9755);
|
|
239
|
-
--warm-confetti-4: oklch(58.4931% 0.089163 136.29);
|
|
240
|
-
--warm-confetti-5: oklch(73.6637% 0.082885 0.5121);
|
|
241
|
-
--warm-confetti-6: oklch(76.0232% 0.080118 80.1549);
|
|
242
|
-
--warm-confetti-7: oklch(85.6277% 0.089544 90.5616);
|
|
217
|
+
--gain: var(--accent);
|
|
218
|
+
--chart-mid: oklch(44.575% calc(0.0348 * var(--theme-tint)) var(--theme-hue));
|
|
243
219
|
--onboarding-v2-hero-halo-edge-stop: 55%;
|
|
244
220
|
--onboarding-setup-field-label-size: var(--type-size-body-emphasis);
|
|
245
221
|
--onboarding-setup-field-label-weight: 400;
|
|
246
222
|
--onboarding-setup-field-label-leading: var(--type-leading-body-emphasis);
|
|
247
223
|
}
|
|
248
224
|
|
|
225
|
+
:is(:root, .light, .dark) {
|
|
226
|
+
--scrim: oklch(12% calc(0.025 * var(--theme-tint)) var(--theme-shadow-hue) / 10%);
|
|
227
|
+
--hue-sky: oklch(var(--theme-data-lightness) 0.08 232);
|
|
228
|
+
--hue-rose: oklch(var(--theme-data-lightness) 0.08 12);
|
|
229
|
+
--hue-mint: oklch(var(--theme-data-lightness) 0.08 160);
|
|
230
|
+
--hue-peach: oklch(var(--theme-data-lightness) 0.08 55);
|
|
231
|
+
--hue-periwinkle: oklch(var(--theme-data-lightness) 0.08 268);
|
|
232
|
+
--hue-lemon: oklch(var(--theme-data-lightness) 0.08 85);
|
|
233
|
+
--hue-aqua: oklch(var(--theme-data-lightness) 0.08 195);
|
|
234
|
+
--hue-orchid: oklch(var(--theme-data-lightness) 0.08 335);
|
|
235
|
+
}
|
|
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
|
+
|
|
249
262
|
@media (prefers-reduced-transparency: reduce) {
|
|
250
263
|
:root:where(*),
|
|
251
264
|
.light,
|
|
252
265
|
.dark {
|
|
253
|
-
--scrim: oklch(12% 0.025
|
|
266
|
+
--scrim: oklch(12% calc(0.025 * var(--theme-tint)) var(--theme-shadow-hue) / 60%);
|
|
254
267
|
}
|
|
255
268
|
}
|
|
256
269
|
|