@anyblades/blades 3.1.0-beta.5 → 3.1.0-beta.6

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.
Files changed (77) hide show
  1. package/.prettierrc.json +0 -7
  2. package/README.md +4 -3
  3. package/_includes/.prettierrc.json +12 -0
  4. package/_includes/package.json +10 -0
  5. package/css/blades.css +941 -1804
  6. package/css/blades.min.css +11 -1
  7. package/css/blades.ninja.css +1123 -2264
  8. package/css/blades.ninja.min.css +16 -1
  9. package/css/float-label.css +34 -187
  10. package/css/float-label.min.css +1 -1
  11. package/css/layered/blades.layered.css +941 -1804
  12. package/css/layered/blades.layered.min.css +11 -1
  13. package/css/layered/compact.css +10 -31
  14. package/css/layered/components/accordion.css +32 -21
  15. package/css/layered/components/card.css +8 -16
  16. package/css/layered/components/dropdown-popover.css +44 -59
  17. package/css/layered/components/dropdown.css +61 -61
  18. package/css/layered/components/group.css +40 -156
  19. package/css/layered/components/loading.css +28 -35
  20. package/css/layered/components/modal-modern.css +7 -15
  21. package/css/layered/components/modal.css +54 -65
  22. package/css/layered/components/nav.css +36 -36
  23. package/css/layered/components/progress.css +18 -23
  24. package/css/layered/components/timeline.css +5 -19
  25. package/css/layered/components/tooltip.css +88 -103
  26. package/css/layered/components.css +371 -517
  27. package/css/layered/content/button.css +37 -117
  28. package/css/layered/content/code-block.css +11 -23
  29. package/css/layered/content/code.css +11 -26
  30. package/css/layered/content/embedded-content.css +5 -10
  31. package/css/layered/content/figure.css +3 -5
  32. package/css/layered/content/icon.css +20 -47
  33. package/css/layered/content/link.css +18 -40
  34. package/css/layered/content/misc.css +1 -5
  35. package/css/layered/content/table.css +4 -10
  36. package/css/layered/content/typography.css +22 -41
  37. package/css/layered/content.css +102 -254
  38. package/css/layered/forms/basics.css +64 -142
  39. package/css/layered/forms/checkbox-radio-switch.css +46 -75
  40. package/css/layered/forms/float-label/core.css +13 -85
  41. package/css/layered/forms/float-label/theme.css +22 -104
  42. package/css/layered/forms/float-label.css +34 -187
  43. package/css/layered/forms/input-color.css +5 -5
  44. package/css/layered/forms/input-datetime.css +9 -26
  45. package/css/layered/forms/input-file.css +7 -8
  46. package/css/layered/forms/input-range.css +43 -50
  47. package/css/layered/forms/input-search.css +16 -47
  48. package/css/layered/forms.css +197 -355
  49. package/css/layered/layout/columns.css +4 -24
  50. package/css/layered/layout/container.css +13 -13
  51. package/css/layered/layout/document.css +4 -12
  52. package/css/layered/layout/grid.css +6 -8
  53. package/css/layered/layout/landmarks.css +1 -7
  54. package/css/layered/layout/overflow-auto.css +0 -3
  55. package/css/layered/layout/section.css +0 -3
  56. package/css/layered/layout.css +26 -39
  57. package/css/layered/utilities.css +6 -15
  58. package/css/layered/variables-blades.css +4 -16
  59. package/css/layered/variables.css +77 -181
  60. package/css/pico.conditional.css +785 -1368
  61. package/css/pico.conditional.min.css +1 -1
  62. package/css/pico.css +785 -1368
  63. package/css/pico.min.css +1 -1
  64. package/package.json +12 -25
  65. package/src/blades/_index.css +9 -9
  66. package/src/blades/forms/float-label/_index.css +2 -2
  67. package/src/blades.css +2 -2
  68. package/src/blades.ninja.css +3 -3
  69. package/src/float-label.css +1 -1
  70. package/src/ninja/_index.css +7 -8
  71. package/src/pico/_index.css +6 -6
  72. package/src/pico/components/_index.css +9 -9
  73. package/src/pico/content/_index.css +8 -8
  74. package/src/pico/forms/_index.css +7 -7
  75. package/src/pico/layout/_index.css +5 -5
  76. package/src/pico.css +2 -2
  77. package/src/ninja/_scroll-to.css +0 -10
@@ -1,88 +1,72 @@
1
1
  @layer blades {
2
- /**
3
- * Variables
4
- */
5
- :scope,
6
- :host {
7
- --pico-font-family-emoji:
8
- "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
9
- --pico-font-family-sans-serif:
10
- system-ui, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, Helvetica, Arial, "Helvetica Neue",
2
+ :scope, :host {
3
+ --pico-font-family-emoji: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
4
+ --pico-font-family-sans-serif: system-ui, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, Helvetica, Arial, "Helvetica Neue",
11
5
  sans-serif, var(--pico-font-family-emoji);
12
- --pico-font-family-monospace:
13
- ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace,
6
+ --pico-font-family-monospace: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace,
14
7
  var(--pico-font-family-emoji);
15
8
  --pico-font-family: var(--pico-font-family-sans-serif);
16
9
  --pico-line-height: 1.5;
17
10
  --pico-font-weight: 400;
18
11
  --pico-font-size: 100%;
19
- --pico-text-underline-offset: 0.1rem;
20
- --pico-border-radius: 0.25rem;
21
- --pico-border-width: 0.0625rem;
22
- --pico-outline-width: 0.125rem;
23
- --pico-transition: 0.2s ease-in-out;
12
+ --pico-text-underline-offset: .1rem;
13
+ --pico-border-radius: .25rem;
14
+ --pico-border-width: .0625rem;
15
+ --pico-outline-width: .125rem;
16
+ --pico-transition: .2s ease-in-out;
24
17
  --pico-spacing: 1rem;
25
18
  --pico-typography-spacing-vertical: 1rem;
26
19
  --pico-block-spacing-vertical: var(--pico-spacing);
27
20
  --pico-block-spacing-horizontal: var(--pico-spacing);
28
21
  --pico-grid-column-gap: var(--pico-spacing);
29
22
  --pico-grid-row-gap: var(--pico-spacing);
30
- --pico-form-element-spacing-vertical: 0.75rem;
23
+ --pico-form-element-spacing-vertical: .75rem;
31
24
  --pico-form-element-spacing-horizontal: 1rem;
32
25
  --pico-nav-element-spacing-vertical: 1rem;
33
- --pico-nav-link-spacing-vertical: 0.5rem;
34
- --pico-nav-link-spacing-horizontal: 0.5rem;
26
+ --pico-nav-link-spacing-vertical: .5rem;
27
+ --pico-nav-link-spacing-horizontal: .5rem;
35
28
  --pico-icon-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(136, 145, 164)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
36
29
  }
37
- @media (min-width: 576px) {
38
- :scope,
39
- :host {
30
+
31
+ @media (width >= 576px) {
32
+ :scope, :host {
40
33
  --pico-font-size: 106.25%;
41
34
  }
42
35
  }
43
- @media (min-width: 768px) {
44
- :scope,
45
- :host {
36
+
37
+ @media (width >= 768px) {
38
+ :scope, :host {
46
39
  --pico-font-size: 112.5%;
47
40
  }
48
41
  }
49
- @media (min-width: 1024px) {
50
- :scope,
51
- :host {
42
+
43
+ @media (width >= 1024px) {
44
+ :scope, :host {
52
45
  --pico-font-size: 118.75%;
53
46
  }
54
47
  }
55
- @media (min-width: 1280px) {
56
- :scope,
57
- :host {
48
+
49
+ @media (width >= 1280px) {
50
+ :scope, :host {
58
51
  --pico-font-size: 125%;
59
52
  }
60
53
  }
61
- @media (min-width: 1536px) {
62
- :scope,
63
- :host {
54
+
55
+ @media (width >= 1536px) {
56
+ :scope, :host {
64
57
  --pico-font-size: 131.25%;
65
58
  }
66
59
  }
67
60
 
68
- a {
69
- --pico-text-decoration: underline;
70
- }
71
- a.secondary,
72
- a.contrast {
61
+ a, a.secondary, a.contrast {
73
62
  --pico-text-decoration: underline;
74
63
  }
75
64
 
76
65
  small {
77
- --pico-font-size: 0.875em;
66
+ --pico-font-size: .875em;
78
67
  }
79
68
 
80
- h1,
81
- h2,
82
- h3,
83
- h4,
84
- h5,
85
- h6 {
69
+ h1, h2, h3, h4, h5, h6 {
86
70
  --pico-font-weight: 700;
87
71
  }
88
72
 
@@ -122,18 +106,12 @@ h6 {
122
106
  --pico-typography-spacing-top: 1.5rem;
123
107
  }
124
108
 
125
- thead th,
126
- thead td,
127
- tfoot th,
128
- tfoot td {
109
+ thead th, thead td, tfoot th, tfoot td {
129
110
  --pico-font-weight: 600;
130
- --pico-border-width: 0.1875rem;
111
+ --pico-border-width: .1875rem;
131
112
  }
132
113
 
133
- pre,
134
- code,
135
- kbd,
136
- samp {
114
+ pre, code, kbd, samp {
137
115
  --pico-font-family: var(--pico-font-family-monospace);
138
116
  }
139
117
 
@@ -141,224 +119,142 @@ kbd {
141
119
  --pico-font-weight: bolder;
142
120
  }
143
121
 
144
- input:not(
145
- [type="submit"],
146
- [type="button"],
147
- [type="reset"],
148
- [type="checkbox"],
149
- [type="radio"],
150
- [type="file"]
151
- ),
152
- :where(select, textarea) {
153
- --pico-outline-width: 0.0625rem;
122
+ input:not([type="submit"], [type="button"], [type="reset"], [type="checkbox"], [type="radio"], [type="file"]), :where(select, textarea) {
123
+ --pico-outline-width: .0625rem;
154
124
  }
155
125
 
156
126
  [type="search"] {
157
127
  --pico-border-radius: 5rem;
158
128
  }
159
129
 
160
- [type="checkbox"],
161
- [type="radio"] {
162
- --pico-border-width: 0.125rem;
130
+ [type="checkbox"], [type="radio"] {
131
+ --pico-border-width: .125rem;
163
132
  }
164
133
 
165
134
  [type="checkbox"][role="switch"] {
166
- --pico-border-width: 0.1875rem;
135
+ --pico-border-width: .1875rem;
167
136
  }
168
137
 
169
138
  details.dropdown summary:not([role="button"]) {
170
- --pico-outline-width: 0.0625rem;
139
+ --pico-outline-width: .0625rem;
171
140
  }
172
141
 
173
142
  nav details.dropdown summary:focus-visible {
174
- --pico-outline-width: 0.125rem;
143
+ --pico-outline-width: .125rem;
175
144
  }
176
145
 
177
146
  [role="search"] {
178
147
  --pico-border-radius: 5rem;
179
148
  }
180
149
 
181
- [role="search"] button,
182
- [role="search"] [type="submit"],
183
- [role="search"] [type="button"],
184
- [role="search"] [role="button"],
185
- [role="group"] button,
186
- [role="group"] [type="submit"],
187
- [role="group"] [type="button"],
188
- [role="group"] [role="button"] {
150
+ [role="search"] button, [role="search"] [type="submit"], [role="search"] [type="button"], [role="search"] [role="button"], [role="group"] button, [role="group"] [type="submit"], [role="group"] [type="button"], [role="group"] [role="button"] {
189
151
  --pico-form-element-spacing-horizontal: 2rem;
190
152
  }
191
153
 
192
- details summary[role="button"]:not(.outline)::after {
193
- filter: brightness(0) invert(1);
194
- }
195
-
196
- [aria-busy="true"]:not(input, select, textarea):is(
197
- button,
198
- [type="submit"],
199
- [type="button"],
200
- [type="reset"],
201
- [role="button"]
202
- ):not(.outline)::before {
203
- filter: brightness(0) invert(1);
154
+ details summary[role="button"]:not(.outline):after, [aria-busy="true"]:not(input, select, textarea):is(button, [type="submit"], [type="button"], [type="reset"], [role="button"]):not(.outline):before {
155
+ filter: brightness(0) invert();
204
156
  }
205
157
 
206
- /**
207
- * Color schemes
208
- * One palette for both schemes: light-dark() picks the value from the used color-scheme,
209
- * so the dark scheme only has to switch color-scheme (same selectors as before).
210
- */
211
- :scope,
212
- :host,
213
- [data-theme="light"],
214
- [data-theme="dark"] {
158
+ :scope, :host, [data-theme="light"], [data-theme="dark"] {
215
159
  color-scheme: light;
216
- --pico-background-color: light-dark(#fff, rgb(19, 22.5, 30.5));
160
+ --pico-background-color: light-dark(#fff, #13171f);
217
161
  --pico-color: light-dark(#373c44, #c2c7d0);
218
- --pico-text-selection-color: light-dark(rgba(2, 154, 232, 0.25), rgba(1, 170, 255, 0.1875));
162
+ --pico-text-selection-color: light-dark(#029ae840, #01aaff30);
219
163
  --pico-muted-color: light-dark(#646b79, #7b8495);
220
- --pico-muted-border-color: light-dark(rgb(231, 234, 239.5), #202632);
164
+ --pico-muted-border-color: light-dark(#e7eaf0, #202632);
221
165
  --pico-primary: light-dark(#0172ad, #01aaff);
222
166
  --pico-primary-background: #0172ad;
223
167
  --pico-primary-border: var(--pico-primary-background);
224
- --pico-primary-underline: light-dark(rgba(1, 114, 173, 0.5), rgba(1, 170, 255, 0.5));
168
+ --pico-primary-underline: light-dark(#0172ad80, #01aaff80);
225
169
  --pico-primary-hover: light-dark(#015887, #79c0ff);
226
170
  --pico-primary-hover-background: light-dark(#02659a, #017fc0);
227
171
  --pico-primary-hover-border: var(--pico-primary-hover-background);
228
172
  --pico-primary-hover-underline: var(--pico-primary-hover);
229
- /* Focus rings are opaque: at 25–50% alpha they composite below 3:1 (SC 1.4.11), see #167 */
230
- --pico-primary-focus: light-dark(rgb(2, 138, 212), rgb(1, 170, 255));
173
+ --pico-primary-focus: light-dark(#028ad4, #01aaff);
231
174
  --pico-primary-inverse: #fff;
232
175
  --pico-secondary: light-dark(#5d6b89, #969eaf);
233
176
  --pico-secondary-background: #525f7a;
234
177
  --pico-secondary-border: var(--pico-secondary-background);
235
- --pico-secondary-underline: light-dark(rgba(93, 107, 137, 0.5), rgba(150, 158, 175, 0.5));
178
+ --pico-secondary-underline: light-dark(#5d6b8980, #969eaf80);
236
179
  --pico-secondary-hover: light-dark(#48536b, #b3b9c5);
237
180
  --pico-secondary-hover-background: light-dark(#48536b, #5d6b89);
238
181
  --pico-secondary-hover-border: var(--pico-secondary-hover-background);
239
182
  --pico-secondary-hover-underline: var(--pico-secondary-hover);
240
- --pico-secondary-focus: light-dark(rgb(93, 107, 137), rgb(144, 158, 190));
183
+ --pico-secondary-focus: light-dark(#5d6b89, #909ebe);
241
184
  --pico-secondary-inverse: #fff;
242
185
  --pico-contrast: light-dark(#181c25, #dfe3eb);
243
186
  --pico-contrast-background: light-dark(#181c25, #eff1f4);
244
187
  --pico-contrast-border: var(--pico-contrast-background);
245
- --pico-contrast-underline: light-dark(rgba(24, 28, 37, 0.5), rgba(223, 227, 235, 0.5));
188
+ --pico-contrast-underline: light-dark(#181c2580, #dfe3eb80);
246
189
  --pico-contrast-hover: light-dark(#000, #fff);
247
190
  --pico-contrast-hover-background: light-dark(#000, #fff);
248
191
  --pico-contrast-hover-border: var(--pico-contrast-hover-background);
249
- --pico-contrast-hover-underline: light-dark(
250
- var(--pico-secondary-hover),
251
- var(--pico-contrast-hover)
252
- );
253
- --pico-contrast-focus: light-dark(rgb(93, 107, 137), rgb(207, 213, 226));
192
+ --pico-contrast-hover-underline: light-dark(var(--pico-secondary-hover), var(--pico-contrast-hover));
193
+ --pico-contrast-focus: light-dark(#5d6b89, #cfd5e2);
254
194
  --pico-contrast-inverse: light-dark(#fff, #000);
255
- --pico-box-shadow: 0 0.5rem 2.5rem light-dark(rgba(129, 145, 181, 0.2), rgba(7, 8.5, 12, 0.2));
195
+ --pico-box-shadow: 0 .5rem 2.5rem light-dark(#8191b533, #07090c33);
256
196
  --pico-h1-color: light-dark(#2d3138, #f0f1f3);
257
197
  --pico-h2-color: light-dark(#373c44, #e0e3e7);
258
198
  --pico-h3-color: light-dark(#424751, #c2c7d0);
259
199
  --pico-h4-color: light-dark(#4d535e, #b3b9c5);
260
200
  --pico-h5-color: light-dark(#5c6370, #a4acba);
261
201
  --pico-h6-color: light-dark(#646b79, #8891a4);
262
- --pico-mark-background-color: light-dark(rgb(252.5, 230.5, 191.5), #014063);
202
+ --pico-mark-background-color: light-dark(#fde7c0, #014063);
263
203
  --pico-mark-color: light-dark(#0f1114, #fff);
264
- --pico-ins-color: light-dark(rgb(28.5, 105.5, 84), #62af9a);
265
- --pico-del-color: light-dark(rgb(136, 56.5, 53), rgb(205.5, 126, 123));
204
+ --pico-ins-color: light-dark(#1d6a54, #62af9a);
205
+ --pico-del-color: light-dark(#883935, #ce7e7b);
266
206
  --pico-blockquote-border-color: var(--pico-muted-border-color);
267
207
  --pico-blockquote-footer-color: var(--pico-muted-color);
268
- --pico-button-box-shadow: 0 0 0 rgba(0, 0, 0, 0);
269
- --pico-button-hover-box-shadow: 0 0 0 rgba(0, 0, 0, 0);
208
+ --pico-button-box-shadow: 0 0 0 #0000;
209
+ --pico-button-hover-box-shadow: 0 0 0 #0000;
270
210
  --pico-table-border-color: var(--pico-muted-border-color);
271
- --pico-table-row-stripped-background-color: rgba(111, 120, 135, 0.0375);
272
- --pico-code-background-color: light-dark(rgb(243, 244.5, 246.75), rgb(26, 30.5, 40.25));
211
+ --pico-table-row-stripped-background-color: #6f78870a;
212
+ --pico-code-background-color: light-dark(#f3f5f7, #1a1f28);
273
213
  --pico-code-color: light-dark(#646b79, #8891a4);
274
214
  --pico-code-kbd-background-color: var(--pico-color);
275
215
  --pico-code-kbd-color: var(--pico-background-color);
276
- --pico-form-element-background-color: light-dark(rgb(251, 251.5, 252.25), rgb(28, 33, 43.5));
216
+ --pico-form-element-background-color: light-dark(#fbfcfc, #1c212c);
277
217
  --pico-form-element-selected-background-color: light-dark(#dfe3eb, #2a3140);
278
218
  --pico-form-element-border-color: light-dark(#cfd5e2, #2a3140);
279
219
  --pico-form-element-color: light-dark(#23262c, #e0e3e7);
280
220
  --pico-form-element-placeholder-color: light-dark(var(--pico-muted-color), #8891a4);
281
- --pico-form-element-active-background-color: light-dark(#fff, rgb(26, 30.5, 40.25));
221
+ --pico-form-element-active-background-color: light-dark(#fff, #1a1f28);
282
222
  --pico-form-element-active-border-color: var(--pico-primary-border);
283
223
  --pico-form-element-focus-color: var(--pico-primary-border);
284
- --pico-form-element-disabled-opacity: 0.5;
285
- --pico-form-element-invalid-border-color: light-dark(
286
- rgb(183.5, 105.5, 106.5),
287
- rgb(200.25, 79.25, 72.25)
288
- );
289
- --pico-form-element-invalid-active-border-color: light-dark(
290
- rgb(200.25, 79.25, 72.25),
291
- rgb(214, 92, 86)
292
- );
224
+ --pico-form-element-disabled-opacity: .5;
225
+ --pico-form-element-invalid-border-color: light-dark(#b86a6b, #c84f48);
226
+ --pico-form-element-invalid-active-border-color: light-dark(#c84f48, #d65c56);
293
227
  --pico-form-element-invalid-focus-color: var(--pico-form-element-invalid-active-border-color);
294
- --pico-form-element-valid-border-color: light-dark(rgb(76, 154.5, 137.5), #2a7b6f);
295
- --pico-form-element-valid-active-border-color: light-dark(
296
- rgb(39, 152.75, 118.75),
297
- rgb(22, 137, 105.5)
298
- );
228
+ --pico-form-element-valid-border-color: light-dark(#4c9b8a, #2a7b6f);
229
+ --pico-form-element-valid-active-border-color: light-dark(#279977, #16896a);
299
230
  --pico-form-element-valid-focus-color: var(--pico-form-element-valid-active-border-color);
300
- /* One stroke color for both schemes, at least 3:1 on light and dark form backgrounds */
301
231
  --pico-icon-valid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(76, 154.5, 137.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
302
232
  --pico-icon-invalid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(200.25, 79.25, 72.25)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='8' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'%3E%3C/line%3E%3C/svg%3E");
303
233
  }
304
234
 
305
- input:is(
306
- [type="submit"],
307
- [type="button"],
308
- [type="reset"],
309
- [type="checkbox"],
310
- [type="radio"],
311
- [type="file"]
312
- ) {
235
+ input:is([type="submit"], [type="button"], [type="reset"], [type="checkbox"], [type="radio"], [type="file"]) {
313
236
  --pico-form-element-focus-color: var(--pico-primary-focus);
314
237
  }
315
238
 
316
- /* Dark scheme: switch color-scheme, plus filters that light-dark() can't pick */
317
239
  @media only screen and (prefers-color-scheme: dark) {
318
- :scope:not([data-theme]),
319
- :host(:not([data-theme])) {
240
+ :scope:not([data-theme]), :host(:not([data-theme])) {
320
241
  color-scheme: dark;
321
242
  }
322
- :scope:not([data-theme]) details summary[role="button"].contrast:not(.outline)::after,
323
- :host(:not([data-theme])) details summary[role="button"].contrast:not(.outline)::after,
324
- :scope:not([data-theme])
325
- [aria-busy="true"]:not(input, select, textarea).contrast:is(
326
- button,
327
- [type="submit"],
328
- [type="button"],
329
- [type="reset"],
330
- [role="button"]
331
- ):not(.outline)::before,
332
- :host(:not([data-theme]))
333
- [aria-busy="true"]:not(input, select, textarea).contrast:is(
334
- button,
335
- [type="submit"],
336
- [type="button"],
337
- [type="reset"],
338
- [role="button"]
339
- ):not(.outline)::before {
243
+
244
+ :scope:not([data-theme]) details summary[role="button"].contrast:not(.outline):after, :host(:not([data-theme])) details summary[role="button"].contrast:not(.outline):after, :scope:not([data-theme]) [aria-busy="true"]:not(input, select, textarea).contrast:is(button, [type="submit"], [type="button"], [type="reset"], [role="button"]):not(.outline):before, :host(:not([data-theme])) [aria-busy="true"]:not(input, select, textarea).contrast:is(button, [type="submit"], [type="button"], [type="reset"], [role="button"]):not(.outline):before {
340
245
  filter: brightness(0);
341
246
  }
342
247
  }
248
+
343
249
  [data-theme="dark"] {
344
250
  color-scheme: dark;
345
251
  }
346
- [data-theme="dark"] details summary[role="button"].contrast:not(.outline)::after,
347
- [data-theme="dark"]
348
- [aria-busy="true"]:not(input, select, textarea).contrast:is(
349
- button,
350
- [type="submit"],
351
- [type="button"],
352
- [type="reset"],
353
- [role="button"]
354
- ):not(.outline)::before {
252
+
253
+ [data-theme="dark"] details summary[role="button"].contrast:not(.outline):after, [data-theme="dark"] [aria-busy="true"]:not(input, select, textarea).contrast:is(button, [type="submit"], [type="button"], [type="reset"], [role="button"]):not(.outline):before {
355
254
  filter: brightness(0);
356
255
  }
357
256
 
358
- progress,
359
- [type="checkbox"],
360
- [type="radio"],
361
- [type="range"] {
257
+ progress, [type="checkbox"], [type="radio"], [type="range"] {
362
258
  accent-color: var(--pico-primary);
363
259
  }
364
260