@cirthcss/cirth 0.8.0 → 0.8.1

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 CHANGED
@@ -52,7 +52,7 @@
52
52
  Include one stylesheet and write ordinary semantic HTML.
53
53
 
54
54
  ```html
55
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@cirthcss/cirth@0.8.0/dist/cirth.min.css">
55
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@cirthcss/cirth@0.8.1/dist/cirth.min.css">
56
56
  ```
57
57
 
58
58
  ```html
@@ -364,6 +364,10 @@ button:focus-visible, button[aria-current]:not([aria-current="false"]):focus-vis
364
364
  pointer-events: none;
365
365
  }
366
366
 
367
+ form:invalid :is(button:not([type="button"], [type="reset"]), [type="submit"]) {
368
+ opacity: var(--cirth-opacity-disabled);
369
+ }
370
+
367
371
  :where(table) {
368
372
  border-collapse: collapse;
369
373
  border-spacing: 0;
@@ -595,52 +599,52 @@ label[aria-disabled="true"] input[disabled] {
595
599
  opacity: 1;
596
600
  }
597
601
 
598
- :where(input, select, textarea):not([type="checkbox"], [type="radio"], [type="date"], [type="datetime-local"], [type="month"], [type="time"], [type="week"], [type="range"])[aria-invalid] {
602
+ :where(input, select, textarea):not([type="checkbox"], [type="radio"], [type="date"], [type="datetime-local"], [type="month"], [type="time"], [type="week"], [type="range"]):is([aria-invalid], :user-invalid:not([aria-invalid]), :user-valid:not([aria-invalid])) {
599
603
  padding-inline: var(--cirth-form-element-spacing-horizontal) calc(var(--cirth-form-element-spacing-horizontal) + var(--cirth-space-6));
600
604
  background-position: center right var(--cirth-space-3);
601
605
  background-size: var(--cirth-size-4) auto;
602
606
  background-repeat: no-repeat;
603
607
  }
604
608
 
605
- :where(input, select, textarea):not([type="checkbox"], [type="radio"], [type="date"], [type="datetime-local"], [type="month"], [type="time"], [type="week"], [type="range"])[aria-invalid="false"]:not(select) {
609
+ :where(input, select, textarea):not([type="checkbox"], [type="radio"], [type="date"], [type="datetime-local"], [type="month"], [type="time"], [type="week"], [type="range"]):is([aria-invalid="false"], :user-valid:not([aria-invalid])):not(select) {
606
610
  background-image: var(--cirth-icon-valid);
607
611
  }
608
612
 
609
- :where(input, select, textarea):not([type="checkbox"], [type="radio"], [type="date"], [type="datetime-local"], [type="month"], [type="time"], [type="week"], [type="range"])[aria-invalid="true"]:not(select) {
613
+ :where(input, select, textarea):not([type="checkbox"], [type="radio"], [type="date"], [type="datetime-local"], [type="month"], [type="time"], [type="week"], [type="range"]):is([aria-invalid="true"], :user-invalid:not([aria-invalid])):not(select) {
610
614
  background-image: var(--cirth-icon-invalid);
611
615
  }
612
616
 
613
- :where(input, select, textarea)[aria-invalid="false"] {
617
+ :where(input, select, textarea):is([aria-invalid="false"], :user-valid:not([aria-invalid])) {
614
618
  --cirth-border-color: var(--cirth-form-element-valid-border-color);
615
619
  }
616
620
 
617
- :where(input, select, textarea)[aria-invalid="false"]:is(:active, :focus) {
621
+ :where(input, select, textarea):is([aria-invalid="false"], :user-valid:not([aria-invalid])):is(:active, :focus) {
618
622
  --cirth-border-color: var(--cirth-form-element-valid-active-border-color);
619
623
  }
620
624
 
621
- :where(input, select, textarea)[aria-invalid="false"]:is(:active, :focus):not([type="checkbox"], [type="radio"]) {
625
+ :where(input, select, textarea):is([aria-invalid="false"], :user-valid:not([aria-invalid])):is(:active, :focus):not([type="checkbox"], [type="radio"]) {
622
626
  --cirth-box-shadow: 0 0 0 var(--cirth-outline-width)
623
627
  var(--cirth-form-element-valid-focus-color);
624
628
  }
625
629
 
626
- :where(input, select, textarea)[aria-invalid="true"] {
630
+ :where(input, select, textarea):is([aria-invalid="true"], :user-invalid:not([aria-invalid])) {
627
631
  --cirth-border-color: var(--cirth-form-element-invalid-border-color);
628
632
  }
629
633
 
630
- :where(input, select, textarea)[aria-invalid="true"]:is(:active, :focus) {
634
+ :where(input, select, textarea):is([aria-invalid="true"], :user-invalid:not([aria-invalid])):is(:active, :focus) {
631
635
  --cirth-border-color: var(--cirth-form-element-invalid-active-border-color);
632
636
  }
633
637
 
634
- :where(input, select, textarea)[aria-invalid="true"]:is(:active, :focus):not([type="checkbox"], [type="radio"]) {
638
+ :where(input, select, textarea):is([aria-invalid="true"], :user-invalid:not([aria-invalid])):is(:active, :focus):not([type="checkbox"], [type="radio"]) {
635
639
  --cirth-box-shadow: 0 0 0 var(--cirth-outline-width)
636
640
  var(--cirth-form-element-invalid-focus-color);
637
641
  }
638
642
 
639
- [dir="rtl"] :where(input, select, textarea):not([type="checkbox"], [type="radio"]):is([aria-invalid], [aria-invalid="true"], [aria-invalid="false"]) {
643
+ [dir="rtl"] :where(input, select, textarea):not([type="checkbox"], [type="radio"]):is([aria-invalid], :user-invalid:not([aria-invalid]), :user-valid:not([aria-invalid])) {
640
644
  background-position: center left var(--cirth-space-3);
641
645
  }
642
646
 
643
- [dir="rtl"] textarea[aria-invalid] {
647
+ [dir="rtl"] textarea:is([aria-invalid], :user-invalid:not([aria-invalid]), :user-valid:not([aria-invalid])) {
644
648
  background-position: top left var(--cirth-space-3);
645
649
  }
646
650
 
@@ -675,7 +679,7 @@ textarea {
675
679
  display: block;
676
680
  }
677
681
 
678
- textarea[aria-invalid] {
682
+ textarea:is([aria-invalid], :user-invalid:not([aria-invalid]), :user-valid:not([aria-invalid])) {
679
683
  --cirth-icon-height: calc(var(--cirth-size-4) * var(--cirth-line-height) +
680
684
  var(--cirth-form-element-spacing-vertical) * 2 +
681
685
  var(--cirth-border-width) * 2);
@@ -691,11 +695,11 @@ textarea[aria-invalid] {
691
695
  display: block;
692
696
  }
693
697
 
694
- :where(input, select, textarea, fieldset)[aria-invalid="false"] + small {
698
+ :where(input, select, textarea, fieldset):is([aria-invalid="false"], :user-valid:not([aria-invalid])) + small {
695
699
  color: var(--cirth-ins-color);
696
700
  }
697
701
 
698
- :where(input, select, textarea, fieldset)[aria-invalid="true"] + small {
702
+ :where(input, select, textarea, fieldset):is([aria-invalid="true"], :user-invalid:not([aria-invalid])) + small {
699
703
  color: var(--cirth-del-color);
700
704
  }
701
705
 
@@ -1163,7 +1167,7 @@ article > footer {
1163
1167
  border-bottom-left-radius: var(--cirth-border-radius);
1164
1168
  }
1165
1169
 
1166
- [role="search"], [role="group"] {
1170
+ [role="search"], [role="group"]:not(fieldset) {
1167
1171
  width: 100%;
1168
1172
  margin-bottom: var(--cirth-spacing);
1169
1173
  border-radius: var(--cirth-border-radius);
@@ -1175,61 +1179,86 @@ article > footer {
1175
1179
  position: relative;
1176
1180
  }
1177
1181
 
1178
- [role="search"] > small, [role="group"] > small {
1182
+ [role="search"] > small, [role="group"]:not(fieldset) > small {
1179
1183
  margin-top: calc(var(--cirth-spacing) * .25);
1180
1184
  flex: 0 0 100%;
1181
1185
  order: 1;
1182
1186
  margin-bottom: 0;
1183
1187
  }
1184
1188
 
1185
- [role="search"] > *, [role="search"] input:not([type="checkbox"], [type="radio"]), [role="search"] select, [role="group"] > *, [role="group"] input:not([type="checkbox"], [type="radio"]), [role="group"] select {
1189
+ [role="search"] > *, [role="search"] input:not([type="checkbox"], [type="radio"]), [role="search"] select, [role="group"]:not(fieldset) > *, [role="group"]:not(fieldset) input:not([type="checkbox"], [type="radio"]), [role="group"]:not(fieldset) select {
1186
1190
  flex: auto;
1187
1191
  margin-bottom: 0;
1188
1192
  position: relative;
1189
1193
  }
1190
1194
 
1191
- [role="search"] > :is(input, select, textarea), [role="search"] input:not([type="checkbox"], [type="radio"]):is(input, select, textarea), [role="search"] select:is(input, select, textarea), [role="group"] > :is(input, select, textarea), [role="group"] input:not([type="checkbox"], [type="radio"]):is(input, select, textarea), [role="group"] select:is(input, select, textarea) {
1195
+ [role="search"] > :is(input, select, textarea), [role="search"] input:not([type="checkbox"], [type="radio"]):is(input, select, textarea), [role="search"] select:is(input, select, textarea), [role="group"]:not(fieldset) > :is(input, select, textarea), [role="group"]:not(fieldset) input:not([type="checkbox"], [type="radio"]):is(input, select, textarea), [role="group"]:not(fieldset) select:is(input, select, textarea) {
1192
1196
  flex: 99;
1193
1197
  }
1194
1198
 
1195
- [role="search"] > :not(:first-child), [role="search"] input:not([type="checkbox"], [type="radio"]):not(:first-child), [role="search"] select:not(:first-child), [role="group"] > :not(:first-child), [role="group"] input:not([type="checkbox"], [type="radio"]):not(:first-child), [role="group"] select:not(:first-child) {
1199
+ [role="search"] > :not(:first-child), [role="search"] input:not([type="checkbox"], [type="radio"]):not(:first-child), [role="search"] select:not(:first-child), [role="group"]:not(fieldset) > :not(:first-child), [role="group"]:not(fieldset) input:not([type="checkbox"], [type="radio"]):not(:first-child), [role="group"]:not(fieldset) select:not(:first-child) {
1196
1200
  border-start-start-radius: 0;
1197
1201
  border-end-start-radius: 0;
1198
1202
  margin-inline-start: 0;
1199
1203
  }
1200
1204
 
1201
- [role="search"] > :not(:last-child), [role="search"] input:not([type="checkbox"], [type="radio"]):not(:last-child), [role="search"] select:not(:last-child), [role="group"] > :not(:last-child), [role="group"] input:not([type="checkbox"], [type="radio"]):not(:last-child), [role="group"] select:not(:last-child) {
1205
+ [role="search"] > :not(:last-child), [role="search"] input:not([type="checkbox"], [type="radio"]):not(:last-child), [role="search"] select:not(:last-child), [role="group"]:not(fieldset) > :not(:last-child), [role="group"]:not(fieldset) input:not([type="checkbox"], [type="radio"]):not(:last-child), [role="group"]:not(fieldset) select:not(:last-child) {
1202
1206
  border-start-end-radius: 0;
1203
1207
  border-end-end-radius: 0;
1204
1208
  }
1205
1209
 
1206
- [role="search"] > :focus, [role="search"] input:not([type="checkbox"], [type="radio"]):focus, [role="search"] select:focus, [role="group"] > :focus, [role="group"] input:not([type="checkbox"], [type="radio"]):focus, [role="group"] select:focus {
1210
+ [role="search"] > :focus, [role="search"] input:not([type="checkbox"], [type="radio"]):focus, [role="search"] select:focus, [role="group"]:not(fieldset) > :focus, [role="group"]:not(fieldset) input:not([type="checkbox"], [type="radio"]):focus, [role="group"]:not(fieldset) select:focus {
1207
1211
  z-index: 2;
1208
1212
  }
1209
1213
 
1210
- :is([role="search"] > :has( + small:last-child), [role="group"] > :has( + small:last-child)) {
1214
+ [role="search"] > :has( + small:last-child) {
1215
+ border-start-end-radius: var(--cirth-border-radius);
1216
+ border-end-end-radius: var(--cirth-border-radius);
1217
+ }
1218
+
1219
+ [role="group"]:not(fieldset) > :has( + small:last-child) {
1211
1220
  border-start-end-radius: var(--cirth-border-radius);
1212
1221
  border-end-end-radius: var(--cirth-border-radius);
1213
1222
  }
1214
1223
 
1215
- [role="search"] button:not(:first-child), [role="search"] [type="submit"]:not(:first-child), [role="search"] [type="reset"]:not(:first-child), [role="search"] [type="button"]:not(:first-child), [role="search"] [role="button"]:not(:first-child), [role="search"] input:not([type="checkbox"], [type="radio"]):not(:first-child), [role="search"] select:not(:first-child), [role="group"] button:not(:first-child), [role="group"] [type="submit"]:not(:first-child), [role="group"] [type="reset"]:not(:first-child), [role="group"] [type="button"]:not(:first-child), [role="group"] [role="button"]:not(:first-child), [role="group"] input:not([type="checkbox"], [type="radio"]):not(:first-child), [role="group"] select:not(:first-child) {
1224
+ [role="search"] button:not(:first-child), [role="search"] [type="submit"]:not(:first-child), [role="search"] [type="reset"]:not(:first-child), [role="search"] [type="button"]:not(:first-child), [role="search"] [role="button"]:not(:first-child), [role="search"] input:not([type="checkbox"], [type="radio"]):not(:first-child), [role="search"] select:not(:first-child), [role="group"]:not(fieldset) button:not(:first-child), [role="group"]:not(fieldset) [type="submit"]:not(:first-child), [role="group"]:not(fieldset) [type="reset"]:not(:first-child), [role="group"]:not(fieldset) [type="button"]:not(:first-child), [role="group"]:not(fieldset) [role="button"]:not(:first-child), [role="group"]:not(fieldset) input:not([type="checkbox"], [type="radio"]):not(:first-child), [role="group"]:not(fieldset) select:not(:first-child) {
1216
1225
  margin-inline-start: calc(var(--cirth-border-width) * -1);
1217
1226
  }
1218
1227
 
1219
- [role="search"] button, [role="search"] [type="submit"], [role="search"] [type="reset"], [role="search"] [type="button"], [role="search"] [role="button"], [role="group"] button, [role="group"] [type="submit"], [role="group"] [type="reset"], [role="group"] [type="button"], [role="group"] [role="button"] {
1228
+ [role="search"] button, [role="search"] [type="submit"], [role="search"] [type="reset"], [role="search"] [type="button"], [role="search"] [role="button"], [role="group"]:not(fieldset) button, [role="group"]:not(fieldset) [type="submit"], [role="group"]:not(fieldset) [type="reset"], [role="group"]:not(fieldset) [type="button"], [role="group"]:not(fieldset) [role="button"] {
1220
1229
  width: auto;
1221
1230
  }
1222
1231
 
1223
1232
  @supports selector(:has(*)) {
1224
- :is([role="search"]:has(button:focus, [type="submit"]:focus, [type="button"]:focus, [role="button"]:focus), [role="group"]:has(button:focus, [type="submit"]:focus, [type="button"]:focus, [role="button"]:focus)) {
1233
+ [role="search"]:has(button:focus, [type="submit"]:focus, [type="button"]:focus, [role="button"]:focus) {
1234
+ --cirth-group-box-shadow: var(--cirth-group-box-shadow-focus-with-button);
1235
+ }
1236
+
1237
+ [role="group"]:not(fieldset):has(button:focus, [type="submit"]:focus, [type="button"]:focus, [role="button"]:focus) {
1225
1238
  --cirth-group-box-shadow: var(--cirth-group-box-shadow-focus-with-button);
1226
1239
  }
1227
1240
 
1228
- :is([role="search"]:has(button:focus, [type="submit"]:focus, [type="button"]:focus, [role="button"]:focus) input:not([type="checkbox"], [type="radio"], [aria-invalid]), [role="search"]:has(button:focus, [type="submit"]:focus, [type="button"]:focus, [role="button"]:focus) select:not([aria-invalid]), [role="group"]:has(button:focus, [type="submit"]:focus, [type="button"]:focus, [role="button"]:focus) input:not([type="checkbox"], [type="radio"], [aria-invalid]), [role="group"]:has(button:focus, [type="submit"]:focus, [type="button"]:focus, [role="button"]:focus) select:not([aria-invalid])) {
1241
+ [role="search"]:has(button:focus, [type="submit"]:focus, [type="button"]:focus, [role="button"]:focus) input:not([type="checkbox"], [type="radio"], [aria-invalid]) {
1229
1242
  border-color: #0000;
1230
1243
  }
1231
1244
 
1232
- :is([role="search"]:has(input:not([type="submit"], [type="button"]):focus, select:focus), [role="group"]:has(input:not([type="submit"], [type="button"]):focus, select:focus)) {
1245
+ [role="search"]:has(button:focus, [type="submit"]:focus, [type="button"]:focus, [role="button"]:focus) select:not([aria-invalid]) {
1246
+ border-color: #0000;
1247
+ }
1248
+
1249
+ [role="group"]:not(fieldset):has(button:focus, [type="submit"]:focus, [type="button"]:focus, [role="button"]:focus) input:not([type="checkbox"], [type="radio"], [aria-invalid]) {
1250
+ border-color: #0000;
1251
+ }
1252
+
1253
+ [role="group"]:not(fieldset):has(button:focus, [type="submit"]:focus, [type="button"]:focus, [role="button"]:focus) select:not([aria-invalid]) {
1254
+ border-color: #0000;
1255
+ }
1256
+
1257
+ [role="search"]:has(input:not([type="submit"], [type="button"]):focus, select:focus) {
1258
+ --cirth-group-box-shadow: var(--cirth-group-box-shadow-focus-with-input);
1259
+ }
1260
+
1261
+ [role="group"]:not(fieldset):has(input:not([type="submit"], [type="button"]):focus, select:focus) {
1233
1262
  --cirth-group-box-shadow: var(--cirth-group-box-shadow-focus-with-input);
1234
1263
  }
1235
1264
 
@@ -1261,35 +1290,35 @@ article > footer {
1261
1290
  var(--cirth-primary-hover-border);
1262
1291
  }
1263
1292
 
1264
- [role="group"]:has(input:not([type="submit"], [type="button"]):focus, select:focus) button {
1293
+ [role="group"]:not(fieldset):has(input:not([type="submit"], [type="button"]):focus, select:focus) button {
1265
1294
  --cirth-button-box-shadow: 0 0 0 var(--cirth-border-width)
1266
1295
  var(--cirth-primary-border);
1267
1296
  --cirth-button-hover-box-shadow: 0 0 0 var(--cirth-border-width)
1268
1297
  var(--cirth-primary-hover-border);
1269
1298
  }
1270
1299
 
1271
- [role="group"]:has(input:not([type="submit"], [type="button"]):focus, select:focus) [type="submit"] {
1300
+ [role="group"]:not(fieldset):has(input:not([type="submit"], [type="button"]):focus, select:focus) [type="submit"] {
1272
1301
  --cirth-button-box-shadow: 0 0 0 var(--cirth-border-width)
1273
1302
  var(--cirth-primary-border);
1274
1303
  --cirth-button-hover-box-shadow: 0 0 0 var(--cirth-border-width)
1275
1304
  var(--cirth-primary-hover-border);
1276
1305
  }
1277
1306
 
1278
- [role="group"]:has(input:not([type="submit"], [type="button"]):focus, select:focus) [type="button"] {
1307
+ [role="group"]:not(fieldset):has(input:not([type="submit"], [type="button"]):focus, select:focus) [type="button"] {
1279
1308
  --cirth-button-box-shadow: 0 0 0 var(--cirth-border-width)
1280
1309
  var(--cirth-primary-border);
1281
1310
  --cirth-button-hover-box-shadow: 0 0 0 var(--cirth-border-width)
1282
1311
  var(--cirth-primary-hover-border);
1283
1312
  }
1284
1313
 
1285
- [role="group"]:has(input:not([type="submit"], [type="button"]):focus, select:focus) [role="button"] {
1314
+ [role="group"]:not(fieldset):has(input:not([type="submit"], [type="button"]):focus, select:focus) [role="button"] {
1286
1315
  --cirth-button-box-shadow: 0 0 0 var(--cirth-border-width)
1287
1316
  var(--cirth-primary-border);
1288
1317
  --cirth-button-hover-box-shadow: 0 0 0 var(--cirth-border-width)
1289
1318
  var(--cirth-primary-hover-border);
1290
1319
  }
1291
1320
 
1292
- [role="search"] button:focus, [role="search"] [type="submit"]:focus, [role="search"] [type="reset"]:focus, [role="search"] [type="button"]:focus, [role="search"] [role="button"]:focus, [role="group"] button:focus, [role="group"] [type="submit"]:focus, [role="group"] [type="reset"]:focus, [role="group"] [type="button"]:focus, [role="group"] [role="button"]:focus {
1321
+ [role="search"] button:focus, [role="search"] [type="submit"]:focus, [role="search"] [type="reset"]:focus, [role="search"] [type="button"]:focus, [role="search"] [role="button"]:focus, [role="group"]:not(fieldset) button:focus, [role="group"]:not(fieldset) [type="submit"]:focus, [role="group"]:not(fieldset) [type="reset"]:focus, [role="group"]:not(fieldset) [type="button"]:focus, [role="group"]:not(fieldset) [role="button"]:focus {
1293
1322
  box-shadow: none;
1294
1323
  }
1295
1324
  }
@@ -1499,7 +1528,7 @@ nav li :where(a:not([role="button"]), [role="link"]):not(:hover) {
1499
1528
  text-decoration: none;
1500
1529
  }
1501
1530
 
1502
- nav li [role="group"], nav li [role="search"] {
1531
+ nav li [role="group"]:not(fieldset), nav li [role="search"] {
1503
1532
  width: auto;
1504
1533
  margin-bottom: 0;
1505
1534
  }
@@ -2055,7 +2084,7 @@ button, [type="submit"], [type="reset"], [type="button"], [role="button"] {
2055
2084
  --cirth-border-radius: var(--cirth-radius-pill);
2056
2085
  }
2057
2086
 
2058
- [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"] {
2087
+ [role="search"] button, [role="search"] [type="submit"], [role="search"] [type="button"], [role="search"] [role="button"], [role="group"]:not(fieldset) button, [role="group"]:not(fieldset) [type="submit"], [role="group"]:not(fieldset) [type="button"], [role="group"]:not(fieldset) [role="button"] {
2059
2088
  --cirth-form-element-spacing-horizontal: var(--cirth-space-8);
2060
2089
  }
2061
2090
 
@@ -2140,7 +2169,7 @@ details summary[role="button"]:after {
2140
2169
  --cirth-form-element-valid-focus-color: var(--cirth-form-element-valid-active-border-color);
2141
2170
  --cirth-switch-background-color: oklch(61.3% .032 264);
2142
2171
  --cirth-switch-checked-background-color: var(--cirth-primary-background);
2143
- --cirth-switch-color: oklch(100% 0 0);
2172
+ --cirth-switch-color: var(--cirth-primary-inverse);
2144
2173
  --cirth-switch-thumb-box-shadow: 0 0 0 #0000;
2145
2174
  --cirth-range-border-color: oklch(91.7% .006 264);
2146
2175
  --cirth-range-active-border-color: oklch(83% .016 264);
@@ -2248,7 +2277,7 @@ details summary[role="button"]:after {
2248
2277
  --cirth-form-element-valid-focus-color: var(--cirth-form-element-valid-active-border-color);
2249
2278
  --cirth-switch-background-color: oklch(52.7% .032 264);
2250
2279
  --cirth-switch-checked-background-color: var(--cirth-primary-background);
2251
- --cirth-switch-color: oklch(100% 0 0);
2280
+ --cirth-switch-color: var(--cirth-primary-inverse);
2252
2281
  --cirth-switch-thumb-box-shadow: 0 0 0 #0000;
2253
2282
  --cirth-range-border-color: oklch(26.7% .011 264);
2254
2283
  --cirth-range-active-border-color: oklch(31% .016 264);
@@ -2356,7 +2385,7 @@ details summary[role="button"]:after {
2356
2385
  --cirth-form-element-valid-focus-color: var(--cirth-form-element-valid-active-border-color);
2357
2386
  --cirth-switch-background-color: oklch(52.7% .032 264);
2358
2387
  --cirth-switch-checked-background-color: var(--cirth-primary-background);
2359
- --cirth-switch-color: oklch(100% 0 0);
2388
+ --cirth-switch-color: var(--cirth-primary-inverse);
2360
2389
  --cirth-switch-thumb-box-shadow: 0 0 0 #0000;
2361
2390
  --cirth-range-border-color: oklch(26.7% .011 264);
2362
2391
  --cirth-range-active-border-color: oklch(31% .016 264);