@ecopages/radiant-themes 0.2.1 → 0.2.2
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/README.md +27 -15
- package/dist/compiled/themes/cloudflare/compact.css +40 -12
- package/dist/compiled/themes/cloudflare.css +40 -12
- package/dist/compiled/themes/github/compact.css +264 -67
- package/dist/compiled/themes/github.css +264 -67
- package/dist/compiled/themes/high-contrast/compact.css +88 -5
- package/dist/compiled/themes/high-contrast.css +88 -5
- package/dist/compiled/themes/macos/compact.css +674 -294
- package/dist/compiled/themes/macos-classic/compact.css +197 -25
- package/dist/compiled/themes/macos-classic.css +197 -25
- package/dist/compiled/themes/macos.css +674 -294
- package/dist/compiled/themes/material/compact.css +447 -132
- package/dist/compiled/themes/material.css +447 -132
- package/dist/compiled/themes/vercel/compact.css +104 -62
- package/dist/compiled/themes/vercel.css +104 -62
- package/dist/compiled/themes/vscode/compact.css +255 -40
- package/dist/compiled/themes/vscode.css +255 -40
- package/dist/compiled/themes/windows95/compact.css +260 -22
- package/dist/compiled/themes/windows95.css +260 -22
- package/dist/tokens/colors/github.css +32 -0
- package/dist/tokens/colors/macos.css +65 -25
- package/dist/tokens/colors/material.css +61 -20
- package/dist/tokens/colors/vercel.css +43 -39
- package/dist/tokens/colors/vscode.css +48 -4
- package/dist/tokens/colors/windows95.css +10 -5
- package/dist/tokens/components/cloudflare.css +55 -5
- package/dist/tokens/components/github.css +258 -40
- package/dist/tokens/components/high-contrast.css +93 -5
- package/dist/tokens/components/macos-classic.css +262 -24
- package/dist/tokens/components/macos.css +537 -106
- package/dist/tokens/components/material.css +354 -25
- package/dist/tokens/components/vercel.css +77 -15
- package/dist/tokens/components/vscode.css +248 -27
- package/dist/tokens/components/windows95.css +304 -19
- package/dist/tokens/roles/github.css +12 -12
- package/dist/tokens/roles/macos.css +97 -93
- package/dist/tokens/roles/material.css +65 -65
- package/dist/tokens/roles/vercel.css +3 -3
- package/package.json +3 -3
|
@@ -27,13 +27,8 @@
|
|
|
27
27
|
--font-weight-medium: var(--weight-medium);
|
|
28
28
|
--opacity-disabled: var(--opacity-disabled);
|
|
29
29
|
--opacity-muted: var(--opacity-muted);
|
|
30
|
-
--color-primary-container: var(--primary-container);
|
|
31
|
-
--color-on-primary-container: var(--on-primary-container);
|
|
32
30
|
--color-surface: var(--surface);
|
|
33
|
-
--
|
|
34
|
-
--color-surface-container-low: var(--surface-container-low);
|
|
35
|
-
--color-border: var(--border);
|
|
36
|
-
--radius-xs: var(--border-radius-xs);
|
|
31
|
+
--radius-none: var(--border-radius-none);
|
|
37
32
|
--radius-control: var(--radius-control);
|
|
38
33
|
--radius-container: var(--radius-container);
|
|
39
34
|
--radius-pill: var(--radius-pill);
|
|
@@ -261,28 +256,66 @@
|
|
|
261
256
|
color-scheme: dark;
|
|
262
257
|
}
|
|
263
258
|
:where(:root), :root[data-rui-theme='material'] {
|
|
264
|
-
--material-primary:
|
|
265
|
-
--material-
|
|
266
|
-
--material-
|
|
267
|
-
--material-
|
|
268
|
-
--material-
|
|
269
|
-
--material-
|
|
270
|
-
--material-
|
|
271
|
-
--material-
|
|
272
|
-
--material-
|
|
273
|
-
--material-
|
|
259
|
+
--material-primary: #6750a4;
|
|
260
|
+
--material-on-primary: #ffffff;
|
|
261
|
+
--material-primary-container: #eaddff;
|
|
262
|
+
--material-on-primary-container: #4f378b;
|
|
263
|
+
--material-secondary: #625b71;
|
|
264
|
+
--material-on-secondary: #ffffff;
|
|
265
|
+
--material-secondary-container: #e8def8;
|
|
266
|
+
--material-on-secondary-container: #4a4458;
|
|
267
|
+
--material-tertiary: #7d5260;
|
|
268
|
+
--material-on-tertiary: #ffffff;
|
|
269
|
+
--material-tertiary-container: #ffd8e4;
|
|
270
|
+
--material-on-tertiary-container: #633b48;
|
|
271
|
+
--material-error: #b3261e;
|
|
272
|
+
--material-on-error: #ffffff;
|
|
273
|
+
--material-error-container: #f9dedc;
|
|
274
|
+
--material-on-error-container: #8c1d18;
|
|
275
|
+
--material-surface: #fef7ff;
|
|
276
|
+
--material-on-surface: #1d1b20;
|
|
277
|
+
--material-on-surface-variant: #49454f;
|
|
278
|
+
--material-surface-container-lowest: #ffffff;
|
|
279
|
+
--material-surface-container-low: #f7f2fa;
|
|
280
|
+
--material-surface-container: #f3edf7;
|
|
281
|
+
--material-surface-container-high: #ece6f0;
|
|
282
|
+
--material-surface-container-highest: #e6e0e9;
|
|
283
|
+
--material-inverse-surface: #322f35;
|
|
284
|
+
--material-inverse-on-surface: #f5eff7;
|
|
285
|
+
--material-inverse-primary: #d0bcff;
|
|
286
|
+
--material-outline: #79747e;
|
|
287
|
+
--material-outline-variant: #cac4d0;
|
|
274
288
|
}
|
|
275
289
|
:where(.dark), :root.dark[data-rui-theme='material'] {
|
|
276
|
-
--material-primary:
|
|
277
|
-
--material-
|
|
278
|
-
--material-
|
|
279
|
-
--material-
|
|
280
|
-
--material-
|
|
281
|
-
--material-
|
|
282
|
-
--material-
|
|
283
|
-
--material-
|
|
284
|
-
--material-
|
|
285
|
-
--material-
|
|
290
|
+
--material-primary: #d0bcff;
|
|
291
|
+
--material-on-primary: #381e72;
|
|
292
|
+
--material-primary-container: #4f378b;
|
|
293
|
+
--material-on-primary-container: #eaddff;
|
|
294
|
+
--material-secondary: #ccc2dc;
|
|
295
|
+
--material-on-secondary: #332d41;
|
|
296
|
+
--material-secondary-container: #4a4458;
|
|
297
|
+
--material-on-secondary-container: #e8def8;
|
|
298
|
+
--material-tertiary: #efb8c8;
|
|
299
|
+
--material-on-tertiary: #492532;
|
|
300
|
+
--material-tertiary-container: #633b48;
|
|
301
|
+
--material-on-tertiary-container: #ffd8e4;
|
|
302
|
+
--material-error: #f2b8b5;
|
|
303
|
+
--material-on-error: #601410;
|
|
304
|
+
--material-error-container: #8c1d18;
|
|
305
|
+
--material-on-error-container: #f9dedc;
|
|
306
|
+
--material-surface: #141218;
|
|
307
|
+
--material-on-surface: #e6e0e9;
|
|
308
|
+
--material-on-surface-variant: #cac4d0;
|
|
309
|
+
--material-surface-container-lowest: #0f0d13;
|
|
310
|
+
--material-surface-container-low: #1d1b20;
|
|
311
|
+
--material-surface-container: #211f26;
|
|
312
|
+
--material-surface-container-high: #2b2930;
|
|
313
|
+
--material-surface-container-highest: #36343b;
|
|
314
|
+
--material-inverse-surface: #e6e0e9;
|
|
315
|
+
--material-inverse-on-surface: #322f35;
|
|
316
|
+
--material-inverse-primary: #6750a4;
|
|
317
|
+
--material-outline: #938f99;
|
|
318
|
+
--material-outline-variant: #49454f;
|
|
286
319
|
}
|
|
287
320
|
:where(:root), :root[data-rui-theme='material'] {
|
|
288
321
|
--gray-50: oklch(98% 0.008 285);
|
|
@@ -297,27 +330,27 @@
|
|
|
297
330
|
--gray-900: oklch(21% 0.014 285);
|
|
298
331
|
--gray-950: oklch(16% 0.012 285);
|
|
299
332
|
--primary: var(--material-primary);
|
|
300
|
-
--on-primary:
|
|
301
|
-
--primary-light:
|
|
302
|
-
--primary-dark:
|
|
303
|
-
--primary-container:
|
|
304
|
-
--on-primary-container:
|
|
333
|
+
--on-primary: var(--material-on-primary);
|
|
334
|
+
--primary-light: #7f67be;
|
|
335
|
+
--primary-dark: #4f378b;
|
|
336
|
+
--primary-container: var(--material-primary-container);
|
|
337
|
+
--on-primary-container: var(--material-on-primary-container);
|
|
305
338
|
--secondary: var(--material-secondary);
|
|
306
|
-
--on-secondary:
|
|
307
|
-
--secondary-light:
|
|
308
|
-
--secondary-dark:
|
|
309
|
-
--secondary-container:
|
|
310
|
-
--on-secondary-container:
|
|
339
|
+
--on-secondary: var(--material-on-secondary);
|
|
340
|
+
--secondary-light: #7a7289;
|
|
341
|
+
--secondary-dark: #4a4458;
|
|
342
|
+
--secondary-container: var(--material-secondary-container);
|
|
343
|
+
--on-secondary-container: var(--material-on-secondary-container);
|
|
311
344
|
--tertiary: var(--material-tertiary);
|
|
312
|
-
--on-tertiary:
|
|
313
|
-
--tertiary-container:
|
|
314
|
-
--on-tertiary-container:
|
|
345
|
+
--on-tertiary: var(--material-on-tertiary);
|
|
346
|
+
--tertiary-container: var(--material-tertiary-container);
|
|
347
|
+
--on-tertiary-container: var(--material-on-tertiary-container);
|
|
315
348
|
--error: var(--material-error);
|
|
316
|
-
--on-error:
|
|
317
|
-
--error-light:
|
|
318
|
-
--error-dark:
|
|
319
|
-
--error-container:
|
|
320
|
-
--on-error-container:
|
|
349
|
+
--on-error: var(--material-on-error);
|
|
350
|
+
--error-light: #dc362e;
|
|
351
|
+
--error-dark: #8c1d18;
|
|
352
|
+
--error-container: var(--material-error-container);
|
|
353
|
+
--on-error-container: var(--material-on-error-container);
|
|
321
354
|
--success: oklch(47% 0.13 155);
|
|
322
355
|
--on-success: white;
|
|
323
356
|
--success-light: oklch(68% 0.12 155);
|
|
@@ -336,33 +369,33 @@
|
|
|
336
369
|
--warning-dark: oklch(37% 0.1 75);
|
|
337
370
|
--warning-container: oklch(93% 0.04 85);
|
|
338
371
|
--on-warning-container: oklch(31% 0.08 75);
|
|
339
|
-
--neutral:
|
|
372
|
+
--neutral: var(--material-on-surface-variant);
|
|
340
373
|
--surface: var(--material-surface);
|
|
341
|
-
--on-surface: var(--material-
|
|
342
|
-
--surface-container-lowest:
|
|
343
|
-
--on-surface-container-lowest: var(--material-
|
|
344
|
-
--surface-container-low:
|
|
345
|
-
--on-surface-container-low: var(--material-
|
|
374
|
+
--on-surface: var(--material-on-surface);
|
|
375
|
+
--surface-container-lowest: var(--material-surface-container-lowest);
|
|
376
|
+
--on-surface-container-lowest: var(--material-on-surface);
|
|
377
|
+
--surface-container-low: var(--material-surface-container-low);
|
|
378
|
+
--on-surface-container-low: var(--material-on-surface);
|
|
346
379
|
--surface-container: var(--material-surface-container);
|
|
347
|
-
--on-surface-container: var(--material-
|
|
348
|
-
--surface-container-high:
|
|
349
|
-
--on-surface-container-high: var(--material-
|
|
350
|
-
--surface-container-highest:
|
|
351
|
-
--on-surface-container-highest: var(--material-
|
|
352
|
-
--background: var(--material-
|
|
353
|
-
--on-background: var(--material-
|
|
380
|
+
--on-surface-container: var(--material-on-surface);
|
|
381
|
+
--surface-container-high: var(--material-surface-container-high);
|
|
382
|
+
--on-surface-container-high: var(--material-on-surface);
|
|
383
|
+
--surface-container-highest: var(--material-surface-container-highest);
|
|
384
|
+
--on-surface-container-highest: var(--material-on-surface);
|
|
385
|
+
--background: var(--material-surface);
|
|
386
|
+
--on-background: var(--material-on-surface);
|
|
354
387
|
--rui-border-color: var(--material-outline-variant);
|
|
355
388
|
--rui-control-border-color: var(--material-outline);
|
|
356
389
|
--border: var(--rui-border-color);
|
|
357
390
|
@supports (color: color-mix(in lab, red, red)) {
|
|
358
391
|
--border: color-mix(in srgb, var(--rui-border-color) var(--rui-border-alpha), transparent);
|
|
359
392
|
}
|
|
360
|
-
--focus-ring:
|
|
361
|
-
--on-focus-ring:
|
|
362
|
-
--link:
|
|
393
|
+
--focus-ring: var(--material-secondary);
|
|
394
|
+
--on-focus-ring: var(--material-on-secondary);
|
|
395
|
+
--link: var(--material-primary);
|
|
363
396
|
--overlay: oklch(0% 0 0 / 0.48);
|
|
364
|
-
--background-code:
|
|
365
|
-
--on-background-code: var(--material-
|
|
397
|
+
--background-code: var(--material-surface-container-high);
|
|
398
|
+
--on-background-code: var(--material-on-surface);
|
|
366
399
|
}
|
|
367
400
|
:where(.dark), :root.dark[data-rui-theme='material'] {
|
|
368
401
|
--gray-50: oklch(95% 0.008 285);
|
|
@@ -377,21 +410,21 @@
|
|
|
377
410
|
--gray-900: oklch(20% 0.01 285);
|
|
378
411
|
--gray-950: oklch(15% 0.009 285);
|
|
379
412
|
--primary: var(--material-primary);
|
|
380
|
-
--on-primary:
|
|
381
|
-
--primary-container:
|
|
382
|
-
--on-primary-container:
|
|
413
|
+
--on-primary: var(--material-on-primary);
|
|
414
|
+
--primary-container: var(--material-primary-container);
|
|
415
|
+
--on-primary-container: var(--material-on-primary-container);
|
|
383
416
|
--secondary: var(--material-secondary);
|
|
384
|
-
--on-secondary:
|
|
385
|
-
--secondary-container:
|
|
386
|
-
--on-secondary-container:
|
|
417
|
+
--on-secondary: var(--material-on-secondary);
|
|
418
|
+
--secondary-container: var(--material-secondary-container);
|
|
419
|
+
--on-secondary-container: var(--material-on-secondary-container);
|
|
387
420
|
--tertiary: var(--material-tertiary);
|
|
388
|
-
--on-tertiary:
|
|
389
|
-
--tertiary-container:
|
|
390
|
-
--on-tertiary-container:
|
|
421
|
+
--on-tertiary: var(--material-on-tertiary);
|
|
422
|
+
--tertiary-container: var(--material-tertiary-container);
|
|
423
|
+
--on-tertiary-container: var(--material-on-tertiary-container);
|
|
391
424
|
--error: var(--material-error);
|
|
392
|
-
--on-error:
|
|
393
|
-
--error-container:
|
|
394
|
-
--on-error-container:
|
|
425
|
+
--on-error: var(--material-on-error);
|
|
426
|
+
--error-container: var(--material-error-container);
|
|
427
|
+
--on-error-container: var(--material-on-error-container);
|
|
395
428
|
--success: oklch(78% 0.13 155);
|
|
396
429
|
--on-success: oklch(22% 0.06 155);
|
|
397
430
|
--success-container: oklch(33% 0.07 155);
|
|
@@ -404,34 +437,35 @@
|
|
|
404
437
|
--on-warning: oklch(25% 0.06 75);
|
|
405
438
|
--warning-container: oklch(38% 0.07 75);
|
|
406
439
|
--on-warning-container: oklch(94% 0.04 85);
|
|
407
|
-
--neutral:
|
|
440
|
+
--neutral: var(--material-on-surface-variant);
|
|
408
441
|
--surface: var(--material-surface);
|
|
409
|
-
--on-surface: var(--material-
|
|
410
|
-
--surface-container-lowest:
|
|
411
|
-
--on-surface-container-lowest: var(--material-
|
|
412
|
-
--surface-container-low:
|
|
413
|
-
--on-surface-container-low: var(--material-
|
|
442
|
+
--on-surface: var(--material-on-surface);
|
|
443
|
+
--surface-container-lowest: var(--material-surface-container-lowest);
|
|
444
|
+
--on-surface-container-lowest: var(--material-on-surface);
|
|
445
|
+
--surface-container-low: var(--material-surface-container-low);
|
|
446
|
+
--on-surface-container-low: var(--material-on-surface);
|
|
414
447
|
--surface-container: var(--material-surface-container);
|
|
415
|
-
--on-surface-container: var(--material-
|
|
416
|
-
--surface-container-high:
|
|
417
|
-
--on-surface-container-high: var(--material-
|
|
418
|
-
--surface-container-highest:
|
|
419
|
-
--on-surface-container-highest: var(--material-
|
|
420
|
-
--background: var(--material-
|
|
421
|
-
--on-background: var(--material-
|
|
448
|
+
--on-surface-container: var(--material-on-surface);
|
|
449
|
+
--surface-container-high: var(--material-surface-container-high);
|
|
450
|
+
--on-surface-container-high: var(--material-on-surface);
|
|
451
|
+
--surface-container-highest: var(--material-surface-container-highest);
|
|
452
|
+
--on-surface-container-highest: var(--material-on-surface);
|
|
453
|
+
--background: var(--material-surface);
|
|
454
|
+
--on-background: var(--material-on-surface);
|
|
422
455
|
--rui-border-color: var(--material-outline-variant);
|
|
423
456
|
--rui-control-border-color: var(--material-outline);
|
|
424
457
|
--border: var(--rui-border-color);
|
|
425
458
|
@supports (color: color-mix(in lab, red, red)) {
|
|
426
459
|
--border: color-mix(in srgb, var(--rui-border-color) var(--rui-border-alpha), transparent);
|
|
427
460
|
}
|
|
428
|
-
--focus-ring: var(--material-
|
|
429
|
-
--on-focus-ring:
|
|
461
|
+
--focus-ring: var(--material-secondary);
|
|
462
|
+
--on-focus-ring: var(--material-on-secondary);
|
|
430
463
|
--link: var(--material-primary);
|
|
431
|
-
--background-code:
|
|
432
|
-
--on-background-code: var(--material-
|
|
464
|
+
--background-code: var(--material-surface-container-high);
|
|
465
|
+
--on-background-code: var(--material-on-surface);
|
|
433
466
|
}
|
|
434
|
-
:root,
|
|
467
|
+
:root,
|
|
468
|
+
:root[data-rui-theme='material'] {
|
|
435
469
|
--font-sans: Roboto, 'Noto Sans', ui-sans-serif, system-ui, sans-serif;
|
|
436
470
|
--font-heading: Roboto, 'Noto Sans', ui-sans-serif, system-ui, sans-serif;
|
|
437
471
|
--font-mono: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
@@ -443,36 +477,181 @@
|
|
|
443
477
|
--border-radius-xl: 1.75rem;
|
|
444
478
|
--border-radius-2xl: 2rem;
|
|
445
479
|
--border-radius-3xl: 2.5rem;
|
|
446
|
-
--radius-control: var(--border-radius-
|
|
447
|
-
--radius-container: var(--border-radius-
|
|
480
|
+
--radius-control: var(--border-radius-xs);
|
|
481
|
+
--radius-container: var(--border-radius-md);
|
|
482
|
+
--focus-ring-width: 3px;
|
|
483
|
+
--focus-ring-offset: 2px;
|
|
484
|
+
--shadow-control: none;
|
|
485
|
+
--shadow-overlay: 0 1px 2px rgb(0 0 0 / 0.3), 0 2px 6px 2px rgb(0 0 0 / 0.15);
|
|
486
|
+
--shadow-modal: 0 1px 3px rgb(0 0 0 / 0.3), 0 4px 8px 3px rgb(0 0 0 / 0.15);
|
|
487
|
+
--sheen-image: none;
|
|
488
|
+
--material-state-hover: 8%;
|
|
489
|
+
--material-state-press: 10%;
|
|
490
|
+
}
|
|
491
|
+
:root rui-switch {
|
|
492
|
+
--rui-switch-width: 3.25rem;
|
|
493
|
+
--rui-switch-height: 2rem;
|
|
494
|
+
--rui-switch-thumb-size: 1rem;
|
|
495
|
+
--rui-switch-track: var(--surface-container-highest);
|
|
496
|
+
--rui-switch-track-hover: var(--surface-container-highest);
|
|
497
|
+
--rui-switch-track-on: var(--primary);
|
|
498
|
+
--rui-switch-track-on-hover: var(--primary);
|
|
499
|
+
--rui-switch-thumb: var(--material-outline);
|
|
500
|
+
--rui-switch-thumb-on: var(--on-primary);
|
|
501
|
+
}
|
|
502
|
+
:root rui-dialog {
|
|
503
|
+
--rui-dialog-radius: var(--border-radius-xl);
|
|
504
|
+
--rui-dialog-surface: var(--surface-container-high);
|
|
505
|
+
--rui-dialog-padding: 1.5rem;
|
|
506
|
+
}
|
|
507
|
+
:root rui-tooltip {
|
|
508
|
+
--rui-tooltip-radius: var(--border-radius-xs);
|
|
509
|
+
--rui-tooltip-surface: var(--material-inverse-surface);
|
|
510
|
+
--rui-tooltip-color: var(--material-inverse-on-surface);
|
|
511
|
+
--rui-tooltip-shadow: none;
|
|
512
|
+
}
|
|
513
|
+
:root rui-tabs {
|
|
514
|
+
--rui-tabs-indicator-width: 3px;
|
|
515
|
+
}
|
|
516
|
+
:root rui-meter {
|
|
517
|
+
--rui-meter-height: 0.25rem;
|
|
518
|
+
--rui-meter-radius: var(--border-radius-full, 9999px);
|
|
519
|
+
--rui-meter-track-color: var(--secondary-container);
|
|
520
|
+
}
|
|
521
|
+
:root rui-slider {
|
|
522
|
+
--rui-slider-track-size: 0.25rem;
|
|
523
|
+
--rui-slider-track-color: var(--secondary-container);
|
|
524
|
+
--rui-slider-thumb-background: var(--primary);
|
|
525
|
+
--rui-slider-thumb-border-color: var(--primary);
|
|
526
|
+
--rui-slider-thumb-radius: 9999px;
|
|
527
|
+
--rui-slider-thumb-shadow: var(--shadow-control);
|
|
448
528
|
}
|
|
449
529
|
@layer components {
|
|
530
|
+
:root .rui-switch__track {
|
|
531
|
+
border: 2px solid var(--rui-control-border-color);
|
|
532
|
+
}
|
|
533
|
+
:root .rui-switch__input:checked + .rui-switch__track {
|
|
534
|
+
border-color: var(--primary);
|
|
535
|
+
}
|
|
536
|
+
:root .rui-switch__thumb {
|
|
537
|
+
left: 0.375rem;
|
|
538
|
+
transition-property: left, right, width, height, background-color;
|
|
539
|
+
}
|
|
540
|
+
:root .rui-switch__input:checked + .rui-switch__track .rui-switch__thumb {
|
|
541
|
+
right: 0.125rem;
|
|
542
|
+
width: 1.5rem;
|
|
543
|
+
height: 1.5rem;
|
|
544
|
+
}
|
|
545
|
+
:root .rui-switch__track:active .rui-switch__thumb {
|
|
546
|
+
width: 1.75rem;
|
|
547
|
+
height: 1.75rem;
|
|
548
|
+
}
|
|
450
549
|
:root .rui-button {
|
|
451
|
-
border-radius: var(--radius-
|
|
550
|
+
border-radius: var(--radius-pill);
|
|
452
551
|
border-style: var(--tw-border-style);
|
|
453
552
|
border-width: 1px;
|
|
454
553
|
border-color: transparent;
|
|
455
554
|
--tw-font-weight: var(--font-weight-medium);
|
|
456
555
|
font-weight: var(--font-weight-medium);
|
|
457
|
-
|
|
458
|
-
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
556
|
+
letter-spacing: 0.00625rem;
|
|
459
557
|
}
|
|
460
|
-
:root .rui-button--
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
558
|
+
:root .rui-button--sm {
|
|
559
|
+
padding-inline: 1rem;
|
|
560
|
+
}
|
|
561
|
+
:root .rui-button--md {
|
|
562
|
+
padding-inline: 1.5rem;
|
|
563
|
+
}
|
|
564
|
+
:root .rui-button--lg {
|
|
565
|
+
padding-inline: 2rem;
|
|
566
|
+
}
|
|
567
|
+
:root .rui-button--square,
|
|
568
|
+
:root .rui-button--link,
|
|
569
|
+
:root .rui-button--none {
|
|
570
|
+
padding-inline: 0;
|
|
571
|
+
}
|
|
572
|
+
:root .rui-button--filled:hover:not(:disabled) {
|
|
573
|
+
background-color: var(--on-primary);
|
|
574
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
575
|
+
background-color: color-mix(in srgb, var(--on-primary) var(--material-state-hover), var(--primary));
|
|
576
|
+
}
|
|
577
|
+
box-shadow: var(--shadow-overlay);
|
|
578
|
+
}
|
|
579
|
+
:root .rui-button--filled:active:not(:disabled) {
|
|
580
|
+
background-color: var(--on-primary);
|
|
581
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
582
|
+
background-color: color-mix(in srgb, var(--on-primary) var(--material-state-press), var(--primary));
|
|
583
|
+
}
|
|
584
|
+
box-shadow: none;
|
|
585
|
+
}
|
|
586
|
+
:root .rui-button--destructive:hover:not(:disabled) {
|
|
587
|
+
background-color: var(--on-error);
|
|
588
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
589
|
+
background-color: color-mix(in srgb, var(--on-error) var(--material-state-hover), var(--error));
|
|
590
|
+
}
|
|
591
|
+
box-shadow: var(--shadow-overlay);
|
|
592
|
+
}
|
|
593
|
+
:root .rui-button--destructive:active:not(:disabled) {
|
|
594
|
+
background-color: var(--on-error);
|
|
595
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
596
|
+
background-color: color-mix(in srgb, var(--on-error) var(--material-state-press), var(--error));
|
|
597
|
+
}
|
|
598
|
+
box-shadow: none;
|
|
464
599
|
}
|
|
465
600
|
:root .rui-button--outline {
|
|
466
|
-
|
|
467
|
-
background-color: var(--color-surface);
|
|
468
|
-
color: var(--color-on-surface);
|
|
601
|
+
background-color: transparent;
|
|
469
602
|
--tw-shadow: 0 0 #0000;
|
|
470
603
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
471
604
|
border-color: var(--rui-control-border-color);
|
|
605
|
+
color: var(--primary);
|
|
606
|
+
}
|
|
607
|
+
:root .rui-button--ghost {
|
|
608
|
+
color: var(--primary);
|
|
609
|
+
}
|
|
610
|
+
:root .rui-button--outline:hover:not(:disabled),
|
|
611
|
+
:root .rui-button--ghost:hover:not(:disabled) {
|
|
612
|
+
background-color: var(--primary);
|
|
613
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
614
|
+
background-color: color-mix(in srgb, var(--primary) var(--material-state-hover), transparent);
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
:root .rui-button--outline:active:not(:disabled),
|
|
618
|
+
:root .rui-button--ghost:active:not(:disabled) {
|
|
619
|
+
background-color: var(--primary);
|
|
620
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
621
|
+
background-color: color-mix(in srgb, var(--primary) var(--material-state-press), transparent);
|
|
622
|
+
}
|
|
623
|
+
}
|
|
624
|
+
:root .rui-button--outline[aria-pressed='true'],
|
|
625
|
+
:root .rui-button--ghost[aria-pressed='true'] {
|
|
626
|
+
--tw-shadow: 0 0 #0000;
|
|
627
|
+
--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
|
|
628
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
629
|
+
background-color: var(--secondary-container);
|
|
630
|
+
color: var(--on-secondary-container);
|
|
631
|
+
}
|
|
632
|
+
:root .rui-button:disabled {
|
|
633
|
+
opacity: 1;
|
|
634
|
+
background-color: var(--on-surface);
|
|
635
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
636
|
+
background-color: color-mix(in srgb, var(--on-surface) 12%, transparent);
|
|
637
|
+
}
|
|
638
|
+
color: var(--on-surface);
|
|
639
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
640
|
+
color: color-mix(in srgb, var(--on-surface) 38%, transparent);
|
|
641
|
+
}
|
|
642
|
+
box-shadow: none;
|
|
643
|
+
}
|
|
644
|
+
:root .rui-button--outline:disabled {
|
|
645
|
+
background-color: transparent;
|
|
646
|
+
border-color: var(--on-surface);
|
|
647
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
648
|
+
border-color: color-mix(in srgb, var(--on-surface) 12%, transparent);
|
|
649
|
+
}
|
|
472
650
|
}
|
|
473
|
-
:root .rui-button--ghost:
|
|
474
|
-
:root .rui-button--
|
|
475
|
-
|
|
651
|
+
:root .rui-button--ghost:disabled,
|
|
652
|
+
:root .rui-button--link:disabled,
|
|
653
|
+
:root .rui-button--none:disabled {
|
|
654
|
+
background-color: transparent;
|
|
476
655
|
}
|
|
477
656
|
:root .rui-input,
|
|
478
657
|
:root .rui-textarea,
|
|
@@ -485,49 +664,185 @@
|
|
|
485
664
|
:root rui-date-input:where(:not([data-date-field-input], [data-range-start], [data-range-end])),
|
|
486
665
|
:root .rui-select__control {
|
|
487
666
|
border-radius: var(--radius-control);
|
|
488
|
-
border-color: var(--color-border);
|
|
489
667
|
background-color: var(--color-surface);
|
|
490
|
-
color: var(--color-on-surface);
|
|
491
668
|
--tw-shadow: 0 0 #0000;
|
|
492
669
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
493
670
|
border-color: var(--rui-control-border-color);
|
|
671
|
+
color: var(--on-surface);
|
|
494
672
|
}
|
|
495
|
-
:root .rui-
|
|
496
|
-
:root .rui-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
673
|
+
:root .rui-input:hover:not(:disabled),
|
|
674
|
+
:root .rui-textarea:hover:not(:disabled),
|
|
675
|
+
:root .rui-select__control:hover {
|
|
676
|
+
border-color: var(--on-surface);
|
|
677
|
+
}
|
|
678
|
+
:root .rui-input:focus-visible,
|
|
679
|
+
:root .rui-textarea:focus-visible,
|
|
680
|
+
:root .rui-autocomplete__input:focus-visible,
|
|
681
|
+
:root .rui-combobox__control:focus-within,
|
|
682
|
+
:root .rui-date-field__group:focus-within,
|
|
683
|
+
:root .rui-date-range-picker__group:focus-within,
|
|
684
|
+
:root .rui-input-group:focus-within,
|
|
685
|
+
:root .rui-number-field__group:focus-within {
|
|
686
|
+
--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
|
|
687
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
688
|
+
--tw-outline-style: none;
|
|
689
|
+
outline-style: none;
|
|
690
|
+
border-color: var(--primary);
|
|
691
|
+
box-shadow: inset 0 0 0 1px var(--primary);
|
|
692
|
+
}
|
|
693
|
+
:root .rui-input::placeholder,
|
|
694
|
+
:root .rui-textarea::placeholder {
|
|
695
|
+
color: var(--material-on-surface-variant);
|
|
500
696
|
}
|
|
501
697
|
:root .rui-checkbox__control {
|
|
502
|
-
border-radius:
|
|
698
|
+
border-radius: 2px;
|
|
699
|
+
width: 1.125rem;
|
|
700
|
+
height: 1.125rem;
|
|
701
|
+
border-width: 2px;
|
|
702
|
+
border-color: var(--material-on-surface-variant);
|
|
703
|
+
background-color: transparent;
|
|
704
|
+
}
|
|
705
|
+
:root .rui-radio__control {
|
|
706
|
+
width: 1.25rem;
|
|
707
|
+
height: 1.25rem;
|
|
708
|
+
border-width: 2px;
|
|
709
|
+
border-color: var(--material-on-surface-variant);
|
|
710
|
+
background-color: transparent;
|
|
711
|
+
}
|
|
712
|
+
:root .rui-radio__input:checked + .rui-radio__control::after {
|
|
713
|
+
width: 0.625rem;
|
|
714
|
+
height: 0.625rem;
|
|
715
|
+
}
|
|
716
|
+
:root .rui-checkbox__input:checked:not(:indeterminate):not([aria-checked='mixed']) + .rui-checkbox__control::after {
|
|
717
|
+
width: 0.75rem;
|
|
718
|
+
height: 0.75rem;
|
|
719
|
+
}
|
|
720
|
+
:root .rui-checkbox__input:indeterminate + .rui-checkbox__control,
|
|
721
|
+
:root .rui-checkbox__input[aria-checked='mixed'] + .rui-checkbox__control {
|
|
722
|
+
background-color: var(--primary);
|
|
723
|
+
}
|
|
724
|
+
:root .rui-checkbox__input:indeterminate + .rui-checkbox__control::after,
|
|
725
|
+
:root .rui-checkbox__input[aria-checked='mixed'] + .rui-checkbox__control::after {
|
|
726
|
+
border-radius: var(--radius-none);
|
|
727
|
+
background-color: var(--on-primary);
|
|
503
728
|
}
|
|
504
|
-
:root .rui-dialog__surface
|
|
505
|
-
|
|
506
|
-
|
|
729
|
+
:root .rui-dialog__surface {
|
|
730
|
+
border-style: var(--tw-border-style);
|
|
731
|
+
border-width: 0px;
|
|
732
|
+
background-color: var(--surface-container-high);
|
|
733
|
+
box-shadow: var(--shadow-modal);
|
|
734
|
+
}
|
|
735
|
+
:root .rui-dialog__title {
|
|
736
|
+
--tw-font-weight: var(--font-weight-normal, 400);
|
|
737
|
+
font-weight: var(--font-weight-normal, 400);
|
|
738
|
+
font-size: 1.5rem;
|
|
739
|
+
line-height: 2rem;
|
|
740
|
+
}
|
|
741
|
+
:root .rui-popover {
|
|
742
|
+
--rui-popover-radius: var(--border-radius-xs);
|
|
743
|
+
--rui-popover-surface: var(--surface-container);
|
|
744
|
+
--rui-popover-border-color: transparent;
|
|
745
|
+
color: var(--on-surface);
|
|
746
|
+
}
|
|
747
|
+
:root .rui-popover .rui-listbox {
|
|
748
|
+
background-color: transparent;
|
|
749
|
+
}
|
|
750
|
+
:root .rui-hover-card__content,
|
|
751
|
+
:root .rui-menu-button__menu,
|
|
752
|
+
:root .rui-menubar__menu,
|
|
507
753
|
:root .rui-select__listbox,
|
|
508
|
-
:root .rui-combobox__listbox
|
|
509
|
-
|
|
510
|
-
border-radius: var(--radius-container);
|
|
754
|
+
:root .rui-combobox__listbox {
|
|
755
|
+
border-radius: var(--radius-control);
|
|
511
756
|
border-style: var(--tw-border-style);
|
|
512
|
-
border-width:
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
757
|
+
border-width: 0px;
|
|
758
|
+
background-color: var(--surface-container);
|
|
759
|
+
color: var(--on-surface);
|
|
760
|
+
box-shadow: var(--shadow-overlay);
|
|
761
|
+
}
|
|
762
|
+
:root .rui-calendar {
|
|
763
|
+
border-radius: 1rem;
|
|
764
|
+
border-style: var(--tw-border-style);
|
|
765
|
+
border-width: 0px;
|
|
766
|
+
background-color: var(--surface-container-high);
|
|
767
|
+
box-shadow: var(--shadow-overlay);
|
|
768
|
+
}
|
|
769
|
+
:root .rui-calendar__day[aria-selected='true']:not([data-range-middle='true']) {
|
|
770
|
+
border-radius: var(--radius-pill);
|
|
771
|
+
}
|
|
772
|
+
:root .rui-toast {
|
|
773
|
+
border-radius: var(--radius-control);
|
|
774
|
+
border-style: var(--tw-border-style);
|
|
775
|
+
border-width: 0px;
|
|
776
|
+
background-color: var(--material-inverse-surface);
|
|
777
|
+
color: var(--material-inverse-on-surface);
|
|
778
|
+
box-shadow: var(--shadow-modal);
|
|
517
779
|
}
|
|
518
|
-
:root .rui-
|
|
780
|
+
:root .rui-toast__action .rui-button {
|
|
781
|
+
color: var(--material-inverse-primary);
|
|
782
|
+
}
|
|
783
|
+
:root .rui-listbox__option[aria-selected='true']:not([aria-disabled='true']),
|
|
519
784
|
:root .rui-menu-button__item[aria-checked='true'],
|
|
520
|
-
:root .rui-
|
|
521
|
-
:root .rui-
|
|
785
|
+
:root .rui-menubar__menu-item[aria-checked='true'],
|
|
786
|
+
:root .rui-tree__node[aria-selected='true'] {
|
|
522
787
|
border-radius: var(--radius-control);
|
|
523
|
-
background-color: var(--
|
|
524
|
-
|
|
788
|
+
background-color: var(--secondary-container);
|
|
789
|
+
background-image: none;
|
|
790
|
+
color: var(--on-secondary-container);
|
|
791
|
+
}
|
|
792
|
+
:root .rui-listbox__option[aria-selected='true'] .rui-listbox__option-indicator {
|
|
793
|
+
color: inherit;
|
|
794
|
+
}
|
|
795
|
+
:root .rui-sidebar__menu-button {
|
|
796
|
+
border-radius: var(--radius-pill);
|
|
797
|
+
}
|
|
798
|
+
:root .rui-sidebar__menu-button[aria-current='page'],
|
|
799
|
+
:root .rui-sidebar__menu-button--active {
|
|
800
|
+
background-color: var(--secondary-container);
|
|
801
|
+
color: var(--on-secondary-container);
|
|
802
|
+
}
|
|
803
|
+
:root .rui-tabs__tab {
|
|
804
|
+
--tw-font-weight: var(--font-weight-medium);
|
|
805
|
+
font-weight: var(--font-weight-medium);
|
|
806
|
+
color: var(--material-on-surface-variant);
|
|
807
|
+
}
|
|
808
|
+
:root .rui-tabs__tab[aria-selected='true'],
|
|
809
|
+
:root rui-tabs[variant='boxed'] .rui-tabs__tab[aria-selected='true'] {
|
|
810
|
+
color: var(--primary);
|
|
811
|
+
}
|
|
812
|
+
:root rui-tabs[variant='boxed'] .rui-tabs__tab:not([aria-selected='true']) {
|
|
813
|
+
opacity: 1;
|
|
814
|
+
color: var(--material-on-surface-variant);
|
|
815
|
+
}
|
|
816
|
+
:root .rui-tabs__tab:hover {
|
|
817
|
+
background-color: var(--on-surface);
|
|
818
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
819
|
+
background-color: color-mix(in srgb, var(--on-surface) var(--material-state-hover), transparent);
|
|
820
|
+
}
|
|
821
|
+
}
|
|
822
|
+
:root .rui-chip,
|
|
823
|
+
:root .rui-tag {
|
|
824
|
+
border-radius: 0.5rem;
|
|
825
|
+
}
|
|
826
|
+
:root .rui-chip--default,
|
|
827
|
+
:root .rui-tag {
|
|
828
|
+
border-color: var(--material-outline-variant);
|
|
829
|
+
background-color: transparent;
|
|
830
|
+
color: var(--material-on-surface-variant);
|
|
831
|
+
}
|
|
832
|
+
:root .rui-tag[aria-selected='true'] {
|
|
833
|
+
border-color: transparent;
|
|
834
|
+
background-color: var(--secondary-container);
|
|
835
|
+
background-image: none;
|
|
836
|
+
color: var(--on-secondary-container);
|
|
525
837
|
}
|
|
526
838
|
:root .rui-badge,
|
|
527
|
-
:root .rui-chip,
|
|
528
839
|
:root .rui-pagination__link {
|
|
529
840
|
border-radius: var(--radius-pill);
|
|
530
841
|
}
|
|
842
|
+
:root .rui-feed__article {
|
|
843
|
+
border-color: var(--material-outline-variant);
|
|
844
|
+
background-color: var(--surface);
|
|
845
|
+
}
|
|
531
846
|
}
|
|
532
847
|
:root {
|
|
533
848
|
--space-1: calc(0.125rem * var(--rui-density));
|