|
8 | 8 | height: calc(1lh - 2px);
|
9 | 9 | border: 1px solid var(--_bg);
|
10 | 10 | --_bg: color-mix(in srgb, var(--color) 12%, transparent);
|
11 |
| - background: var(--aura-surface-solid); |
| 11 | + background: var(--_bg); |
12 | 12 | padding: 0 0.5em;
|
13 | 13 | border-radius: var(--vaadin-radius-l);
|
14 | 14 | min-width: calc(1lh - 1em - 2px);
|
15 | 15 | --color: var(--vaadin-text-color);
|
16 | 16 | --text-opacity: 70%;
|
17 | 17 | color: color-mix(
|
18 |
| - in xyz, |
| 18 | + in srgb, |
19 | 19 | var(--color) calc(var(--text-opacity) - 15% * var(--aura-contrast)),
|
20 | 20 | var(--vaadin-text-color)
|
21 | 21 | );
|
|
24 | 24 |
|
25 | 25 | [theme~='badge'][theme~='accent'] {
|
26 | 26 | --color: var(--aura-accent-color);
|
27 |
| - color: var(--aura-accent-text); |
28 |
| - background: var(--_bg); |
29 | 27 | }
|
30 | 28 |
|
31 | 29 | [theme~='badge'][theme~='blue'] {
|
32 | 30 | --color: var(--aura-blue);
|
33 |
| - color: var(--aura-blue-text); |
34 |
| - background: var(--_bg); |
35 | 31 | }
|
36 | 32 |
|
37 | 33 | [theme~='badge'][theme~='red'] {
|
38 | 34 | --color: var(--aura-red);
|
39 |
| - color: var(--aura-red-text); |
40 |
| - background: var(--_bg); |
41 | 35 | }
|
42 | 36 |
|
43 | 37 | [theme~='badge'][theme~='green'] {
|
44 | 38 | --color: var(--aura-green);
|
45 |
| - color: var(--aura-green-text); |
46 |
| - background: var(--_bg); |
47 | 39 | }
|
48 | 40 |
|
49 | 41 | [theme~='badge'][theme~='yellow'] {
|
50 | 42 | --color: var(--aura-yellow);
|
51 |
| - color: var(--aura-yellow-text); |
52 |
| - background: var(--_bg); |
| 43 | + --text-opacity: 60%; |
53 | 44 | }
|
54 | 45 |
|
55 | 46 | [theme~='badge'][theme~='orange'] {
|
56 | 47 | --color: var(--aura-orange);
|
57 |
| - color: var(--aura-orange-text); |
58 |
| - background: var(--_bg); |
59 | 48 | }
|
60 | 49 |
|
61 | 50 | [theme~='badge'][theme~='purple'] {
|
62 | 51 | --color: var(--aura-purple);
|
63 |
| - color: var(--aura-purple-text); |
64 |
| - background: var(--_bg); |
65 | 52 | }
|
66 | 53 |
|
67 | 54 | [theme~='badge'][theme~='filled'] {
|
68 |
| - background: var(--color); |
69 |
| - color: oklch(from var(--color) clamp(0, (0.62 - l) * 1000, 1) 0 0 / clamp(0.8, (0.62 - l) * 1000, 1)); |
| 55 | + --_bg: color-mix(in srgb, var(--vaadin-text-color) 5%, var(--color)); |
| 56 | + color: oklch(from var(--_bg) clamp(0, (0.62 - l) * 1000, 1) 0 0 / clamp(0.8, (0.62 - l) * 1000, 1)); |
70 | 57 | }
|
0 commit comments