@duskmoon-dev/core 1.21.2 → 1.21.3

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
@@ -453,4 +453,4 @@ See [specs/004-oklch-color-system/quickstart.md](./specs/004-oklch-color-system/
453
453
 
454
454
  MIT
455
455
 
456
- <!-- release 42407084026 -->
456
+ <!-- release 42974348258 -->
@@ -604,7 +604,7 @@
604
604
  appearance: none;
605
605
  background-color: transparent;
606
606
  border: 2px solid var(--radio-border-color);
607
- border-radius: var(--radius-full);
607
+ border-radius: var(--radius-full, 9999px);
608
608
  transition: border-color 150ms ease-in-out;
609
609
  }
610
610
 
@@ -613,7 +613,7 @@
613
613
  content: "";
614
614
  width: 0.5em;
615
615
  height: 0.5em;
616
- border-radius: var(--radius-full);
616
+ border-radius: var(--radius-full, 9999px);
617
617
  background-color: var(--radio-color);
618
618
  transform: scale(0);
619
619
  transition: transform 150ms ease-in-out;
@@ -1942,7 +1942,7 @@
1942
1942
  appearance: none;
1943
1943
  background-color: transparent;
1944
1944
  border: 2px solid var(--radio-border-color);
1945
- border-radius: var(--radius-full);
1945
+ border-radius: var(--radius-full, 9999px);
1946
1946
  transition: border-color 150ms ease-in-out;
1947
1947
  }
1948
1948
 
@@ -1951,7 +1951,7 @@
1951
1951
  content: "";
1952
1952
  width: 0.5em;
1953
1953
  height: 0.5em;
1954
- border-radius: var(--radius-full);
1954
+ border-radius: var(--radius-full, 9999px);
1955
1955
  background-color: var(--radio-color);
1956
1956
  transform: scale(0);
1957
1957
  transition: transform 150ms ease-in-out;
@@ -19423,7 +19423,7 @@
19423
19423
  padding: 0.5rem;
19424
19424
  gap: 0.125rem;
19425
19425
  font-size: 0.875rem;
19426
- color: var(--color-on-surface);
19426
+ color: var(--nested-menu-fg, var(--color-on-surface));
19427
19427
  }
19428
19428
 
19429
19429
  /* ============================================
@@ -19436,7 +19436,7 @@
19436
19436
  font-weight: 600;
19437
19437
  text-transform: uppercase;
19438
19438
  letter-spacing: 0.05em;
19439
- color: var(--color-on-surface-variant);
19439
+ color: var(--nested-menu-muted, var(--color-on-surface-variant));
19440
19440
  user-select: none;
19441
19441
  }
19442
19442
 
@@ -19452,7 +19452,7 @@
19452
19452
  width: 100%;
19453
19453
  padding: 0.5rem 0.75rem;
19454
19454
  font-size: inherit;
19455
- color: var(--color-on-surface);
19455
+ color: var(--nested-menu-fg, var(--color-on-surface));
19456
19456
  text-decoration: none;
19457
19457
  background-color: transparent;
19458
19458
  border: none;
@@ -19463,7 +19463,7 @@
19463
19463
 
19464
19464
  .nested-menu li > a:hover,
19465
19465
  .nested-menu li > button:hover {
19466
- background-color: var(--color-surface-container);
19466
+ background-color: var(--nested-menu-hover, var(--color-surface-container));
19467
19467
  }
19468
19468
 
19469
19469
  .nested-menu li > a:focus-visible,
@@ -19477,15 +19477,15 @@
19477
19477
  .nested-menu li > button.active,
19478
19478
  .nested-menu li > a[aria-current="page"],
19479
19479
  .nested-menu li > button[aria-current="page"] {
19480
- background-color: var(--color-primary-container);
19481
- color: var(--color-on-primary-container);
19480
+ background-color: var(--nested-menu-active-bg, var(--color-primary-container));
19481
+ color: var(--nested-menu-active-fg, var(--color-on-primary-container));
19482
19482
  }
19483
19483
 
19484
19484
  .nested-menu li > a.active:hover,
19485
19485
  .nested-menu li > button.active:hover,
19486
19486
  .nested-menu li > a[aria-current="page"]:hover,
19487
19487
  .nested-menu li > button[aria-current="page"]:hover {
19488
- background-color: color-mix(in oklch, var(--color-primary-container), var(--color-on-primary-container) 8%);
19488
+ background-color: color-mix(in oklch, var(--nested-menu-active-bg, var(--color-primary-container)), var(--nested-menu-active-fg, var(--color-on-primary-container)) 8%);
19489
19489
  }
19490
19490
 
19491
19491
  /* Disabled state */
@@ -19498,7 +19498,7 @@
19498
19498
  .nested-menu li.disabled > button,
19499
19499
  .nested-menu li > button:disabled,
19500
19500
  .nested-menu li > a[aria-disabled="true"] {
19501
- color: var(--color-on-surface-variant);
19501
+ color: var(--nested-menu-muted, var(--color-on-surface-variant));
19502
19502
  opacity: 0.5;
19503
19503
  cursor: not-allowed;
19504
19504
  }
@@ -19519,7 +19519,7 @@
19519
19519
  width: 100%;
19520
19520
  padding: 0.5rem 0.75rem;
19521
19521
  font-size: inherit;
19522
- color: var(--color-on-surface);
19522
+ color: var(--nested-menu-fg, var(--color-on-surface));
19523
19523
  background-color: transparent;
19524
19524
  border: none;
19525
19525
  border-radius: var(--radius-field, 0.375rem);
@@ -19538,7 +19538,7 @@
19538
19538
  }
19539
19539
 
19540
19540
  .nested-menu summary:hover {
19541
- background-color: var(--color-surface-container);
19541
+ background-color: var(--nested-menu-hover, var(--color-surface-container));
19542
19542
  }
19543
19543
 
19544
19544
  .nested-menu summary:focus-visible {
@@ -19647,12 +19647,83 @@
19647
19647
 
19648
19648
  /* Bordered — sidebar panel look */
19649
19649
  .nested-menu-bordered {
19650
- background-color: var(--color-surface);
19650
+ background-color: var(--nested-menu-bg, var(--color-surface));
19651
19651
  border: 1px solid var(--color-outline-variant);
19652
19652
  border-radius: var(--radius-card, 0.75rem);
19653
19653
  box-shadow: var(--shadow-sm);
19654
19654
  }
19655
19655
 
19656
+ /* Filled color variants for sidebar navigation. */
19657
+ .nested-menu-primary {
19658
+ --nested-menu-bg: var(--color-primary);
19659
+ --nested-menu-fg: var(--color-primary-content);
19660
+ --nested-menu-muted: var(--color-primary-content);
19661
+ --nested-menu-hover: color-mix(in oklch, var(--color-primary-content) 8%, var(--color-primary));
19662
+ --nested-menu-active-bg: var(--color-primary-content);
19663
+ --nested-menu-active-fg: var(--color-primary);
19664
+ background-color: var(--nested-menu-bg);
19665
+ }
19666
+
19667
+ .nested-menu-secondary {
19668
+ --nested-menu-bg: var(--color-secondary);
19669
+ --nested-menu-fg: var(--color-secondary-content);
19670
+ --nested-menu-muted: var(--color-secondary-content);
19671
+ --nested-menu-hover: color-mix(in oklch, var(--color-secondary-content) 8%, var(--color-secondary));
19672
+ --nested-menu-active-bg: var(--color-secondary-content);
19673
+ --nested-menu-active-fg: var(--color-secondary);
19674
+ background-color: var(--nested-menu-bg);
19675
+ }
19676
+
19677
+ .nested-menu-tertiary {
19678
+ --nested-menu-bg: var(--color-tertiary);
19679
+ --nested-menu-fg: var(--color-tertiary-content);
19680
+ --nested-menu-muted: var(--color-tertiary-content);
19681
+ --nested-menu-hover: color-mix(in oklch, var(--color-tertiary-content) 8%, var(--color-tertiary));
19682
+ --nested-menu-active-bg: var(--color-tertiary-content);
19683
+ --nested-menu-active-fg: var(--color-tertiary);
19684
+ background-color: var(--nested-menu-bg);
19685
+ }
19686
+
19687
+ .nested-menu-info {
19688
+ --nested-menu-bg: var(--color-info);
19689
+ --nested-menu-fg: var(--color-info-content);
19690
+ --nested-menu-muted: var(--color-info-content);
19691
+ --nested-menu-hover: color-mix(in oklch, var(--color-info-content) 8%, var(--color-info));
19692
+ --nested-menu-active-bg: var(--color-info-content);
19693
+ --nested-menu-active-fg: var(--color-info);
19694
+ background-color: var(--nested-menu-bg);
19695
+ }
19696
+
19697
+ .nested-menu-success {
19698
+ --nested-menu-bg: var(--color-success);
19699
+ --nested-menu-fg: var(--color-success-content);
19700
+ --nested-menu-muted: var(--color-success-content);
19701
+ --nested-menu-hover: color-mix(in oklch, var(--color-success-content) 8%, var(--color-success));
19702
+ --nested-menu-active-bg: var(--color-success-content);
19703
+ --nested-menu-active-fg: var(--color-success);
19704
+ background-color: var(--nested-menu-bg);
19705
+ }
19706
+
19707
+ .nested-menu-warning {
19708
+ --nested-menu-bg: var(--color-warning);
19709
+ --nested-menu-fg: var(--color-warning-content);
19710
+ --nested-menu-muted: var(--color-warning-content);
19711
+ --nested-menu-hover: color-mix(in oklch, var(--color-warning-content) 8%, var(--color-warning));
19712
+ --nested-menu-active-bg: var(--color-warning-content);
19713
+ --nested-menu-active-fg: var(--color-warning);
19714
+ background-color: var(--nested-menu-bg);
19715
+ }
19716
+
19717
+ .nested-menu-error {
19718
+ --nested-menu-bg: var(--color-error);
19719
+ --nested-menu-fg: var(--color-error-content);
19720
+ --nested-menu-muted: var(--color-error-content);
19721
+ --nested-menu-hover: color-mix(in oklch, var(--color-error-content) 8%, var(--color-error));
19722
+ --nested-menu-active-bg: var(--color-error-content);
19723
+ --nested-menu-active-fg: var(--color-error);
19724
+ background-color: var(--nested-menu-bg);
19725
+ }
19726
+
19656
19727
  /* Compact — tighter padding throughout */
19657
19728
  .nested-menu-compact {
19658
19729
  padding: 0.25rem;
@@ -16,7 +16,7 @@
16
16
  padding: 0.5rem;
17
17
  gap: 0.125rem;
18
18
  font-size: 0.875rem;
19
- color: var(--color-on-surface);
19
+ color: var(--nested-menu-fg, var(--color-on-surface));
20
20
  }
21
21
 
22
22
  /* ============================================
@@ -29,7 +29,7 @@
29
29
  font-weight: 600;
30
30
  text-transform: uppercase;
31
31
  letter-spacing: 0.05em;
32
- color: var(--color-on-surface-variant);
32
+ color: var(--nested-menu-muted, var(--color-on-surface-variant));
33
33
  user-select: none;
34
34
  }
35
35
 
@@ -45,7 +45,7 @@
45
45
  width: 100%;
46
46
  padding: 0.5rem 0.75rem;
47
47
  font-size: inherit;
48
- color: var(--color-on-surface);
48
+ color: var(--nested-menu-fg, var(--color-on-surface));
49
49
  text-decoration: none;
50
50
  background-color: transparent;
51
51
  border: none;
@@ -56,7 +56,7 @@
56
56
 
57
57
  .nested-menu li > a:hover,
58
58
  .nested-menu li > button:hover {
59
- background-color: var(--color-surface-container);
59
+ background-color: var(--nested-menu-hover, var(--color-surface-container));
60
60
  }
61
61
 
62
62
  .nested-menu li > a:focus-visible,
@@ -70,15 +70,15 @@
70
70
  .nested-menu li > button.active,
71
71
  .nested-menu li > a[aria-current="page"],
72
72
  .nested-menu li > button[aria-current="page"] {
73
- background-color: var(--color-primary-container);
74
- color: var(--color-on-primary-container);
73
+ background-color: var(--nested-menu-active-bg, var(--color-primary-container));
74
+ color: var(--nested-menu-active-fg, var(--color-on-primary-container));
75
75
  }
76
76
 
77
77
  .nested-menu li > a.active:hover,
78
78
  .nested-menu li > button.active:hover,
79
79
  .nested-menu li > a[aria-current="page"]:hover,
80
80
  .nested-menu li > button[aria-current="page"]:hover {
81
- background-color: color-mix(in oklch, var(--color-primary-container), var(--color-on-primary-container) 8%);
81
+ background-color: color-mix(in oklch, var(--nested-menu-active-bg, var(--color-primary-container)), var(--nested-menu-active-fg, var(--color-on-primary-container)) 8%);
82
82
  }
83
83
 
84
84
  /* Disabled state */
@@ -91,7 +91,7 @@
91
91
  .nested-menu li.disabled > button,
92
92
  .nested-menu li > button:disabled,
93
93
  .nested-menu li > a[aria-disabled="true"] {
94
- color: var(--color-on-surface-variant);
94
+ color: var(--nested-menu-muted, var(--color-on-surface-variant));
95
95
  opacity: 0.5;
96
96
  cursor: not-allowed;
97
97
  }
@@ -112,7 +112,7 @@
112
112
  width: 100%;
113
113
  padding: 0.5rem 0.75rem;
114
114
  font-size: inherit;
115
- color: var(--color-on-surface);
115
+ color: var(--nested-menu-fg, var(--color-on-surface));
116
116
  background-color: transparent;
117
117
  border: none;
118
118
  border-radius: var(--radius-field, 0.375rem);
@@ -131,7 +131,7 @@
131
131
  }
132
132
 
133
133
  .nested-menu summary:hover {
134
- background-color: var(--color-surface-container);
134
+ background-color: var(--nested-menu-hover, var(--color-surface-container));
135
135
  }
136
136
 
137
137
  .nested-menu summary:focus-visible {
@@ -240,12 +240,83 @@
240
240
 
241
241
  /* Bordered — sidebar panel look */
242
242
  .nested-menu-bordered {
243
- background-color: var(--color-surface);
243
+ background-color: var(--nested-menu-bg, var(--color-surface));
244
244
  border: 1px solid var(--color-outline-variant);
245
245
  border-radius: var(--radius-card, 0.75rem);
246
246
  box-shadow: var(--shadow-sm);
247
247
  }
248
248
 
249
+ /* Filled color variants for sidebar navigation. */
250
+ .nested-menu-primary {
251
+ --nested-menu-bg: var(--color-primary);
252
+ --nested-menu-fg: var(--color-primary-content);
253
+ --nested-menu-muted: var(--color-primary-content);
254
+ --nested-menu-hover: color-mix(in oklch, var(--color-primary-content) 8%, var(--color-primary));
255
+ --nested-menu-active-bg: var(--color-primary-content);
256
+ --nested-menu-active-fg: var(--color-primary);
257
+ background-color: var(--nested-menu-bg);
258
+ }
259
+
260
+ .nested-menu-secondary {
261
+ --nested-menu-bg: var(--color-secondary);
262
+ --nested-menu-fg: var(--color-secondary-content);
263
+ --nested-menu-muted: var(--color-secondary-content);
264
+ --nested-menu-hover: color-mix(in oklch, var(--color-secondary-content) 8%, var(--color-secondary));
265
+ --nested-menu-active-bg: var(--color-secondary-content);
266
+ --nested-menu-active-fg: var(--color-secondary);
267
+ background-color: var(--nested-menu-bg);
268
+ }
269
+
270
+ .nested-menu-tertiary {
271
+ --nested-menu-bg: var(--color-tertiary);
272
+ --nested-menu-fg: var(--color-tertiary-content);
273
+ --nested-menu-muted: var(--color-tertiary-content);
274
+ --nested-menu-hover: color-mix(in oklch, var(--color-tertiary-content) 8%, var(--color-tertiary));
275
+ --nested-menu-active-bg: var(--color-tertiary-content);
276
+ --nested-menu-active-fg: var(--color-tertiary);
277
+ background-color: var(--nested-menu-bg);
278
+ }
279
+
280
+ .nested-menu-info {
281
+ --nested-menu-bg: var(--color-info);
282
+ --nested-menu-fg: var(--color-info-content);
283
+ --nested-menu-muted: var(--color-info-content);
284
+ --nested-menu-hover: color-mix(in oklch, var(--color-info-content) 8%, var(--color-info));
285
+ --nested-menu-active-bg: var(--color-info-content);
286
+ --nested-menu-active-fg: var(--color-info);
287
+ background-color: var(--nested-menu-bg);
288
+ }
289
+
290
+ .nested-menu-success {
291
+ --nested-menu-bg: var(--color-success);
292
+ --nested-menu-fg: var(--color-success-content);
293
+ --nested-menu-muted: var(--color-success-content);
294
+ --nested-menu-hover: color-mix(in oklch, var(--color-success-content) 8%, var(--color-success));
295
+ --nested-menu-active-bg: var(--color-success-content);
296
+ --nested-menu-active-fg: var(--color-success);
297
+ background-color: var(--nested-menu-bg);
298
+ }
299
+
300
+ .nested-menu-warning {
301
+ --nested-menu-bg: var(--color-warning);
302
+ --nested-menu-fg: var(--color-warning-content);
303
+ --nested-menu-muted: var(--color-warning-content);
304
+ --nested-menu-hover: color-mix(in oklch, var(--color-warning-content) 8%, var(--color-warning));
305
+ --nested-menu-active-bg: var(--color-warning-content);
306
+ --nested-menu-active-fg: var(--color-warning);
307
+ background-color: var(--nested-menu-bg);
308
+ }
309
+
310
+ .nested-menu-error {
311
+ --nested-menu-bg: var(--color-error);
312
+ --nested-menu-fg: var(--color-error-content);
313
+ --nested-menu-muted: var(--color-error-content);
314
+ --nested-menu-hover: color-mix(in oklch, var(--color-error-content) 8%, var(--color-error));
315
+ --nested-menu-active-bg: var(--color-error-content);
316
+ --nested-menu-active-fg: var(--color-error);
317
+ background-color: var(--nested-menu-bg);
318
+ }
319
+
249
320
  /* Compact — tighter padding throughout */
250
321
  .nested-menu-compact {
251
322
  padding: 0.25rem;
@@ -99,7 +99,7 @@
99
99
  appearance: none;
100
100
  background-color: transparent;
101
101
  border: 2px solid var(--radio-border-color);
102
- border-radius: var(--radius-full);
102
+ border-radius: var(--radius-full, 9999px);
103
103
  transition: border-color 150ms ease-in-out;
104
104
  }
105
105
 
@@ -108,7 +108,7 @@
108
108
  content: "";
109
109
  width: 0.5em;
110
110
  height: 0.5em;
111
- border-radius: var(--radius-full);
111
+ border-radius: var(--radius-full, 9999px);
112
112
  background-color: var(--radio-color);
113
113
  transform: scale(0);
114
114
  transition: transform 150ms ease-in-out;
@@ -605,7 +605,7 @@ export const css = `/**
605
605
  appearance: none;
606
606
  background-color: transparent;
607
607
  border: 2px solid var(--radio-border-color);
608
- border-radius: var(--radius-full);
608
+ border-radius: var(--radius-full, 9999px);
609
609
  transition: border-color 150ms ease-in-out;
610
610
  }
611
611
 
@@ -614,7 +614,7 @@ export const css = `/**
614
614
  content: "";
615
615
  width: 0.5em;
616
616
  height: 0.5em;
617
- border-radius: var(--radius-full);
617
+ border-radius: var(--radius-full, 9999px);
618
618
  background-color: var(--radio-color);
619
619
  transform: scale(0);
620
620
  transition: transform 150ms ease-in-out;
@@ -17,7 +17,7 @@ export const css = `/**
17
17
  padding: 0.5rem;
18
18
  gap: 0.125rem;
19
19
  font-size: 0.875rem;
20
- color: var(--color-on-surface);
20
+ color: var(--nested-menu-fg, var(--color-on-surface));
21
21
  }
22
22
 
23
23
  /* ============================================
@@ -30,7 +30,7 @@ export const css = `/**
30
30
  font-weight: 600;
31
31
  text-transform: uppercase;
32
32
  letter-spacing: 0.05em;
33
- color: var(--color-on-surface-variant);
33
+ color: var(--nested-menu-muted, var(--color-on-surface-variant));
34
34
  user-select: none;
35
35
  }
36
36
 
@@ -46,7 +46,7 @@ export const css = `/**
46
46
  width: 100%;
47
47
  padding: 0.5rem 0.75rem;
48
48
  font-size: inherit;
49
- color: var(--color-on-surface);
49
+ color: var(--nested-menu-fg, var(--color-on-surface));
50
50
  text-decoration: none;
51
51
  background-color: transparent;
52
52
  border: none;
@@ -57,7 +57,7 @@ export const css = `/**
57
57
 
58
58
  .nested-menu li > a:hover,
59
59
  .nested-menu li > button:hover {
60
- background-color: var(--color-surface-container);
60
+ background-color: var(--nested-menu-hover, var(--color-surface-container));
61
61
  }
62
62
 
63
63
  .nested-menu li > a:focus-visible,
@@ -71,15 +71,15 @@ export const css = `/**
71
71
  .nested-menu li > button.active,
72
72
  .nested-menu li > a[aria-current="page"],
73
73
  .nested-menu li > button[aria-current="page"] {
74
- background-color: var(--color-primary-container);
75
- color: var(--color-on-primary-container);
74
+ background-color: var(--nested-menu-active-bg, var(--color-primary-container));
75
+ color: var(--nested-menu-active-fg, var(--color-on-primary-container));
76
76
  }
77
77
 
78
78
  .nested-menu li > a.active:hover,
79
79
  .nested-menu li > button.active:hover,
80
80
  .nested-menu li > a[aria-current="page"]:hover,
81
81
  .nested-menu li > button[aria-current="page"]:hover {
82
- background-color: color-mix(in oklch, var(--color-primary-container), var(--color-on-primary-container) 8%);
82
+ background-color: color-mix(in oklch, var(--nested-menu-active-bg, var(--color-primary-container)), var(--nested-menu-active-fg, var(--color-on-primary-container)) 8%);
83
83
  }
84
84
 
85
85
  /* Disabled state */
@@ -92,7 +92,7 @@ export const css = `/**
92
92
  .nested-menu li.disabled > button,
93
93
  .nested-menu li > button:disabled,
94
94
  .nested-menu li > a[aria-disabled="true"] {
95
- color: var(--color-on-surface-variant);
95
+ color: var(--nested-menu-muted, var(--color-on-surface-variant));
96
96
  opacity: 0.5;
97
97
  cursor: not-allowed;
98
98
  }
@@ -113,7 +113,7 @@ export const css = `/**
113
113
  width: 100%;
114
114
  padding: 0.5rem 0.75rem;
115
115
  font-size: inherit;
116
- color: var(--color-on-surface);
116
+ color: var(--nested-menu-fg, var(--color-on-surface));
117
117
  background-color: transparent;
118
118
  border: none;
119
119
  border-radius: var(--radius-field, 0.375rem);
@@ -132,7 +132,7 @@ export const css = `/**
132
132
  }
133
133
 
134
134
  .nested-menu summary:hover {
135
- background-color: var(--color-surface-container);
135
+ background-color: var(--nested-menu-hover, var(--color-surface-container));
136
136
  }
137
137
 
138
138
  .nested-menu summary:focus-visible {
@@ -241,12 +241,83 @@ export const css = `/**
241
241
 
242
242
  /* Bordered — sidebar panel look */
243
243
  .nested-menu-bordered {
244
- background-color: var(--color-surface);
244
+ background-color: var(--nested-menu-bg, var(--color-surface));
245
245
  border: 1px solid var(--color-outline-variant);
246
246
  border-radius: var(--radius-card, 0.75rem);
247
247
  box-shadow: var(--shadow-sm);
248
248
  }
249
249
 
250
+ /* Filled color variants for sidebar navigation. */
251
+ .nested-menu-primary {
252
+ --nested-menu-bg: var(--color-primary);
253
+ --nested-menu-fg: var(--color-primary-content);
254
+ --nested-menu-muted: var(--color-primary-content);
255
+ --nested-menu-hover: color-mix(in oklch, var(--color-primary-content) 8%, var(--color-primary));
256
+ --nested-menu-active-bg: var(--color-primary-content);
257
+ --nested-menu-active-fg: var(--color-primary);
258
+ background-color: var(--nested-menu-bg);
259
+ }
260
+
261
+ .nested-menu-secondary {
262
+ --nested-menu-bg: var(--color-secondary);
263
+ --nested-menu-fg: var(--color-secondary-content);
264
+ --nested-menu-muted: var(--color-secondary-content);
265
+ --nested-menu-hover: color-mix(in oklch, var(--color-secondary-content) 8%, var(--color-secondary));
266
+ --nested-menu-active-bg: var(--color-secondary-content);
267
+ --nested-menu-active-fg: var(--color-secondary);
268
+ background-color: var(--nested-menu-bg);
269
+ }
270
+
271
+ .nested-menu-tertiary {
272
+ --nested-menu-bg: var(--color-tertiary);
273
+ --nested-menu-fg: var(--color-tertiary-content);
274
+ --nested-menu-muted: var(--color-tertiary-content);
275
+ --nested-menu-hover: color-mix(in oklch, var(--color-tertiary-content) 8%, var(--color-tertiary));
276
+ --nested-menu-active-bg: var(--color-tertiary-content);
277
+ --nested-menu-active-fg: var(--color-tertiary);
278
+ background-color: var(--nested-menu-bg);
279
+ }
280
+
281
+ .nested-menu-info {
282
+ --nested-menu-bg: var(--color-info);
283
+ --nested-menu-fg: var(--color-info-content);
284
+ --nested-menu-muted: var(--color-info-content);
285
+ --nested-menu-hover: color-mix(in oklch, var(--color-info-content) 8%, var(--color-info));
286
+ --nested-menu-active-bg: var(--color-info-content);
287
+ --nested-menu-active-fg: var(--color-info);
288
+ background-color: var(--nested-menu-bg);
289
+ }
290
+
291
+ .nested-menu-success {
292
+ --nested-menu-bg: var(--color-success);
293
+ --nested-menu-fg: var(--color-success-content);
294
+ --nested-menu-muted: var(--color-success-content);
295
+ --nested-menu-hover: color-mix(in oklch, var(--color-success-content) 8%, var(--color-success));
296
+ --nested-menu-active-bg: var(--color-success-content);
297
+ --nested-menu-active-fg: var(--color-success);
298
+ background-color: var(--nested-menu-bg);
299
+ }
300
+
301
+ .nested-menu-warning {
302
+ --nested-menu-bg: var(--color-warning);
303
+ --nested-menu-fg: var(--color-warning-content);
304
+ --nested-menu-muted: var(--color-warning-content);
305
+ --nested-menu-hover: color-mix(in oklch, var(--color-warning-content) 8%, var(--color-warning));
306
+ --nested-menu-active-bg: var(--color-warning-content);
307
+ --nested-menu-active-fg: var(--color-warning);
308
+ background-color: var(--nested-menu-bg);
309
+ }
310
+
311
+ .nested-menu-error {
312
+ --nested-menu-bg: var(--color-error);
313
+ --nested-menu-fg: var(--color-error-content);
314
+ --nested-menu-muted: var(--color-error-content);
315
+ --nested-menu-hover: color-mix(in oklch, var(--color-error-content) 8%, var(--color-error));
316
+ --nested-menu-active-bg: var(--color-error-content);
317
+ --nested-menu-active-fg: var(--color-error);
318
+ background-color: var(--nested-menu-bg);
319
+ }
320
+
250
321
  /* Compact — tighter padding throughout */
251
322
  .nested-menu-compact {
252
323
  padding: 0.25rem;
@@ -100,7 +100,7 @@ export const css = `/** Opt-in native presentation. Applications own errors, mes
100
100
  appearance: none;
101
101
  background-color: transparent;
102
102
  border: 2px solid var(--radio-border-color);
103
- border-radius: var(--radius-full);
103
+ border-radius: var(--radius-full, 9999px);
104
104
  transition: border-color 150ms ease-in-out;
105
105
  }
106
106
 
@@ -109,7 +109,7 @@ export const css = `/** Opt-in native presentation. Applications own errors, mes
109
109
  content: "";
110
110
  width: 0.5em;
111
111
  height: 0.5em;
112
- border-radius: var(--radius-full);
112
+ border-radius: var(--radius-full, 9999px);
113
113
  background-color: var(--radio-color);
114
114
  transform: scale(0);
115
115
  transition: transform 150ms ease-in-out;