@duskmoon-dev/core 1.21.1 → 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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @duskmoon-dev/core v1.21.1
2
+ * @duskmoon-dev/core v1.21.3
3
3
  * Built-in DuskMoonUI themes
4
4
  * https://github.com/duskmoon-dev/duskmoonui
5
5
  * @license MIT
@@ -166,7 +166,7 @@
166
166
  --color-warning-container: oklch(35% 0.06 80);
167
167
  --color-on-warning-container: oklch(90% 0.06 80);
168
168
  --color-error: oklch(46.38% 0.1898 29.17);
169
- --color-error-content: oklch(86.38% 0.298 39.17);
169
+ --color-error-content: oklch(97% 0.01 15);
170
170
  --color-error-container: oklch(30% 0.08 25);
171
171
  --color-on-error-container: oklch(88% 0.06 25);
172
172
 
@@ -333,7 +333,7 @@
333
333
  --color-warning-container: oklch(35% 0.06 80);
334
334
  --color-on-warning-container: oklch(90% 0.06 80);
335
335
  --color-error: oklch(46.38% 0.1898 29.17);
336
- --color-error-content: oklch(86.38% 0.298 39.17);
336
+ --color-error-content: oklch(97% 0.01 15);
337
337
  --color-error-container: oklch(30% 0.08 25);
338
338
  --color-on-error-container: oklch(88% 0.06 25);
339
339
 
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @duskmoon-dev/core v1.21.1
3
- * @duskmoon-dev/css-art v1.21.1
2
+ * @duskmoon-dev/core v1.21.3
3
+ * @duskmoon-dev/css-art v1.21.3
4
4
  * Complete standalone DuskMoonUI styles
5
5
  * https://github.com/duskmoon-dev/duskmoonui
6
6
  * @license MIT
@@ -627,7 +627,7 @@ html {
627
627
  --color-warning-container: oklch(35% 0.06 80);
628
628
  --color-on-warning-container: oklch(90% 0.06 80);
629
629
  --color-error: oklch(46.38% 0.1898 29.17);
630
- --color-error-content: oklch(86.38% 0.298 39.17);
630
+ --color-error-content: oklch(97% 0.01 15);
631
631
  --color-error-container: oklch(30% 0.08 25);
632
632
  --color-on-error-container: oklch(88% 0.06 25);
633
633
 
@@ -794,7 +794,7 @@ html {
794
794
  --color-warning-container: oklch(35% 0.06 80);
795
795
  --color-on-warning-container: oklch(90% 0.06 80);
796
796
  --color-error: oklch(46.38% 0.1898 29.17);
797
- --color-error-content: oklch(86.38% 0.298 39.17);
797
+ --color-error-content: oklch(97% 0.01 15);
798
798
  --color-error-container: oklch(30% 0.08 25);
799
799
  --color-on-error-container: oklch(88% 0.06 25);
800
800
 
@@ -1272,14 +1272,14 @@ html {
1272
1272
 
1273
1273
  .btn-outline.btn-neutral,
1274
1274
  .btn-outlined.btn-neutral {
1275
- --btn-text-color: var(--color-neutral);
1275
+ --btn-text-color: var(--color-on-surface);
1276
1276
  border-color: currentColor;
1277
1277
  }
1278
1278
 
1279
1279
  .btn-outline.btn-neutral:hover,
1280
1280
  .btn-outlined.btn-neutral:hover {
1281
- --btn-text-color: var(--color-neutral-content);
1282
- background-color: var(--color-neutral);
1281
+ --btn-text-color: var(--color-on-surface);
1282
+ background-color: color-mix(in oklch, var(--color-neutral) 15%, var(--color-surface));
1283
1283
  }
1284
1284
 
1285
1285
  .btn-outline.btn-base,
@@ -1386,7 +1386,7 @@ html {
1386
1386
  .btn-ghost.btn-warning { --btn-text-color: var(--color-on-warning-container); }
1387
1387
  .btn-ghost.btn-error { --btn-text-color: var(--color-on-error-container); }
1388
1388
  .btn-ghost.btn-accent { --btn-text-color: light-dark(var(--color-accent-content), var(--color-accent)); }
1389
- .btn-ghost.btn-neutral { --btn-text-color: var(--color-neutral); }
1389
+ .btn-ghost.btn-neutral { --btn-text-color: var(--color-on-surface); }
1390
1390
  .btn-ghost.btn-base { --btn-text-color: var(--color-base-content); }
1391
1391
 
1392
1392
  .btn-ghost.btn-accent:hover {
@@ -1395,7 +1395,7 @@ html {
1395
1395
  }
1396
1396
 
1397
1397
  .btn-ghost.btn-neutral:hover {
1398
- --btn-text-color: var(--color-neutral);
1398
+ --btn-text-color: var(--color-on-surface);
1399
1399
  background-color: color-mix(in oklch, var(--color-neutral) 15%, var(--color-surface));
1400
1400
  }
1401
1401
 
@@ -1468,7 +1468,7 @@ html {
1468
1468
  .btn-text.btn-warning { --btn-text-color: var(--color-on-warning-container); }
1469
1469
  .btn-text.btn-error { --btn-text-color: var(--color-on-error-container); }
1470
1470
  .btn-text.btn-accent { --btn-text-color: light-dark(var(--color-accent-content), var(--color-accent)); }
1471
- .btn-text.btn-neutral { --btn-text-color: var(--color-neutral); }
1471
+ .btn-text.btn-neutral { --btn-text-color: var(--color-on-surface); }
1472
1472
  .btn-text.btn-base { --btn-text-color: var(--color-base-content); }
1473
1473
 
1474
1474
  .btn-text.btn-accent:hover {
@@ -1477,7 +1477,7 @@ html {
1477
1477
  }
1478
1478
 
1479
1479
  .btn-text.btn-neutral:hover {
1480
- --btn-text-color: var(--color-neutral);
1480
+ --btn-text-color: var(--color-on-surface);
1481
1481
  background-color: color-mix(in oklch, var(--color-neutral) 15%, var(--color-surface));
1482
1482
  }
1483
1483
 
@@ -2916,7 +2916,7 @@ html {
2916
2916
  appearance: none;
2917
2917
  background-color: transparent;
2918
2918
  border: 2px solid var(--radio-border-color);
2919
- border-radius: var(--radius-full);
2919
+ border-radius: var(--radius-full, 9999px);
2920
2920
  transition: border-color 150ms ease-in-out;
2921
2921
  }
2922
2922
 
@@ -2925,7 +2925,7 @@ html {
2925
2925
  content: "";
2926
2926
  width: 0.5em;
2927
2927
  height: 0.5em;
2928
- border-radius: var(--radius-full);
2928
+ border-radius: var(--radius-full, 9999px);
2929
2929
  background-color: var(--radio-color);
2930
2930
  transform: scale(0);
2931
2931
  transition: transform 150ms ease-in-out;
@@ -6108,8 +6108,8 @@ html {
6108
6108
 
6109
6109
  .badge-outlined.badge-neutral,
6110
6110
  .badge-outline.badge-neutral {
6111
- color: var(--color-neutral);
6112
- border-color: var(--color-neutral);
6111
+ color: var(--color-on-surface);
6112
+ border-color: currentColor;
6113
6113
  }
6114
6114
 
6115
6115
  .badge-outlined.badge-base,
@@ -8079,7 +8079,8 @@ html {
8079
8079
  }
8080
8080
 
8081
8081
  .chip-outlined.chip-neutral {
8082
- color: var(--color-neutral);
8082
+ color: var(--color-on-surface);
8083
+ border-color: currentColor;
8083
8084
  }
8084
8085
 
8085
8086
  .chip-outlined.chip-neutral:hover {
@@ -8202,7 +8203,7 @@ html {
8202
8203
  .chip-ghost.chip-warning { background-color: transparent; color: var(--color-on-warning-container); }
8203
8204
  .chip-ghost.chip-error { background-color: transparent; color: var(--color-on-error-container); }
8204
8205
  .chip-ghost.chip-accent { background-color: transparent; color: light-dark(var(--color-accent-content), var(--color-accent)); }
8205
- .chip-ghost.chip-neutral { background-color: transparent; color: var(--color-neutral); }
8206
+ .chip-ghost.chip-neutral { background-color: transparent; color: var(--color-on-surface); }
8206
8207
  .chip-ghost.chip-base { background-color: transparent; color: var(--color-base-content); }
8207
8208
 
8208
8209
  .chip-ghost.chip-primary:hover { background-color: var(--color-primary-container); }
@@ -15292,8 +15293,8 @@ html {
15292
15293
  }
15293
15294
 
15294
15295
  .alert-outlined.alert-neutral {
15295
- border-color: var(--color-neutral);
15296
- color: var(--color-neutral);
15296
+ border-color: currentColor;
15297
+ color: var(--color-on-surface);
15297
15298
  }
15298
15299
 
15299
15300
  .alert-outlined.alert-base {
@@ -15315,7 +15316,7 @@ html {
15315
15316
  .alert-ghost.alert-warning { color: var(--color-on-warning-container); }
15316
15317
  .alert-ghost.alert-error { color: var(--color-on-error-container); }
15317
15318
  .alert-ghost.alert-accent { color: light-dark(var(--color-accent-content), var(--color-accent)); }
15318
- .alert-ghost.alert-neutral { color: var(--color-neutral); }
15319
+ .alert-ghost.alert-neutral { color: var(--color-on-surface); }
15319
15320
  .alert-ghost.alert-base { color: var(--color-base-content); }
15320
15321
 
15321
15322
  /* Dismissible */
@@ -20396,7 +20397,7 @@ html {
20396
20397
  padding: 0.5rem;
20397
20398
  gap: 0.125rem;
20398
20399
  font-size: 0.875rem;
20399
- color: var(--color-on-surface);
20400
+ color: var(--nested-menu-fg, var(--color-on-surface));
20400
20401
  }
20401
20402
 
20402
20403
  /* ============================================
@@ -20409,7 +20410,7 @@ html {
20409
20410
  font-weight: 600;
20410
20411
  text-transform: uppercase;
20411
20412
  letter-spacing: 0.05em;
20412
- color: var(--color-on-surface-variant);
20413
+ color: var(--nested-menu-muted, var(--color-on-surface-variant));
20413
20414
  user-select: none;
20414
20415
  }
20415
20416
 
@@ -20425,7 +20426,7 @@ html {
20425
20426
  width: 100%;
20426
20427
  padding: 0.5rem 0.75rem;
20427
20428
  font-size: inherit;
20428
- color: var(--color-on-surface);
20429
+ color: var(--nested-menu-fg, var(--color-on-surface));
20429
20430
  text-decoration: none;
20430
20431
  background-color: transparent;
20431
20432
  border: none;
@@ -20436,7 +20437,7 @@ html {
20436
20437
 
20437
20438
  .nested-menu li > a:hover,
20438
20439
  .nested-menu li > button:hover {
20439
- background-color: var(--color-surface-container);
20440
+ background-color: var(--nested-menu-hover, var(--color-surface-container));
20440
20441
  }
20441
20442
 
20442
20443
  .nested-menu li > a:focus-visible,
@@ -20450,15 +20451,15 @@ html {
20450
20451
  .nested-menu li > button.active,
20451
20452
  .nested-menu li > a[aria-current="page"],
20452
20453
  .nested-menu li > button[aria-current="page"] {
20453
- background-color: var(--color-primary-container);
20454
- color: var(--color-on-primary-container);
20454
+ background-color: var(--nested-menu-active-bg, var(--color-primary-container));
20455
+ color: var(--nested-menu-active-fg, var(--color-on-primary-container));
20455
20456
  }
20456
20457
 
20457
20458
  .nested-menu li > a.active:hover,
20458
20459
  .nested-menu li > button.active:hover,
20459
20460
  .nested-menu li > a[aria-current="page"]:hover,
20460
20461
  .nested-menu li > button[aria-current="page"]:hover {
20461
- background-color: color-mix(in oklch, var(--color-primary-container), var(--color-on-primary-container) 8%);
20462
+ 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%);
20462
20463
  }
20463
20464
 
20464
20465
  /* Disabled state */
@@ -20471,7 +20472,7 @@ html {
20471
20472
  .nested-menu li.disabled > button,
20472
20473
  .nested-menu li > button:disabled,
20473
20474
  .nested-menu li > a[aria-disabled="true"] {
20474
- color: var(--color-on-surface-variant);
20475
+ color: var(--nested-menu-muted, var(--color-on-surface-variant));
20475
20476
  opacity: 0.5;
20476
20477
  cursor: not-allowed;
20477
20478
  }
@@ -20492,7 +20493,7 @@ html {
20492
20493
  width: 100%;
20493
20494
  padding: 0.5rem 0.75rem;
20494
20495
  font-size: inherit;
20495
- color: var(--color-on-surface);
20496
+ color: var(--nested-menu-fg, var(--color-on-surface));
20496
20497
  background-color: transparent;
20497
20498
  border: none;
20498
20499
  border-radius: var(--radius-field, 0.375rem);
@@ -20511,7 +20512,7 @@ html {
20511
20512
  }
20512
20513
 
20513
20514
  .nested-menu summary:hover {
20514
- background-color: var(--color-surface-container);
20515
+ background-color: var(--nested-menu-hover, var(--color-surface-container));
20515
20516
  }
20516
20517
 
20517
20518
  .nested-menu summary:focus-visible {
@@ -20620,12 +20621,83 @@ html {
20620
20621
 
20621
20622
  /* Bordered — sidebar panel look */
20622
20623
  .nested-menu-bordered {
20623
- background-color: var(--color-surface);
20624
+ background-color: var(--nested-menu-bg, var(--color-surface));
20624
20625
  border: 1px solid var(--color-outline-variant);
20625
20626
  border-radius: var(--radius-card, 0.75rem);
20626
20627
  box-shadow: var(--shadow-sm);
20627
20628
  }
20628
20629
 
20630
+ /* Filled color variants for sidebar navigation. */
20631
+ .nested-menu-primary {
20632
+ --nested-menu-bg: var(--color-primary);
20633
+ --nested-menu-fg: var(--color-primary-content);
20634
+ --nested-menu-muted: var(--color-primary-content);
20635
+ --nested-menu-hover: color-mix(in oklch, var(--color-primary-content) 8%, var(--color-primary));
20636
+ --nested-menu-active-bg: var(--color-primary-content);
20637
+ --nested-menu-active-fg: var(--color-primary);
20638
+ background-color: var(--nested-menu-bg);
20639
+ }
20640
+
20641
+ .nested-menu-secondary {
20642
+ --nested-menu-bg: var(--color-secondary);
20643
+ --nested-menu-fg: var(--color-secondary-content);
20644
+ --nested-menu-muted: var(--color-secondary-content);
20645
+ --nested-menu-hover: color-mix(in oklch, var(--color-secondary-content) 8%, var(--color-secondary));
20646
+ --nested-menu-active-bg: var(--color-secondary-content);
20647
+ --nested-menu-active-fg: var(--color-secondary);
20648
+ background-color: var(--nested-menu-bg);
20649
+ }
20650
+
20651
+ .nested-menu-tertiary {
20652
+ --nested-menu-bg: var(--color-tertiary);
20653
+ --nested-menu-fg: var(--color-tertiary-content);
20654
+ --nested-menu-muted: var(--color-tertiary-content);
20655
+ --nested-menu-hover: color-mix(in oklch, var(--color-tertiary-content) 8%, var(--color-tertiary));
20656
+ --nested-menu-active-bg: var(--color-tertiary-content);
20657
+ --nested-menu-active-fg: var(--color-tertiary);
20658
+ background-color: var(--nested-menu-bg);
20659
+ }
20660
+
20661
+ .nested-menu-info {
20662
+ --nested-menu-bg: var(--color-info);
20663
+ --nested-menu-fg: var(--color-info-content);
20664
+ --nested-menu-muted: var(--color-info-content);
20665
+ --nested-menu-hover: color-mix(in oklch, var(--color-info-content) 8%, var(--color-info));
20666
+ --nested-menu-active-bg: var(--color-info-content);
20667
+ --nested-menu-active-fg: var(--color-info);
20668
+ background-color: var(--nested-menu-bg);
20669
+ }
20670
+
20671
+ .nested-menu-success {
20672
+ --nested-menu-bg: var(--color-success);
20673
+ --nested-menu-fg: var(--color-success-content);
20674
+ --nested-menu-muted: var(--color-success-content);
20675
+ --nested-menu-hover: color-mix(in oklch, var(--color-success-content) 8%, var(--color-success));
20676
+ --nested-menu-active-bg: var(--color-success-content);
20677
+ --nested-menu-active-fg: var(--color-success);
20678
+ background-color: var(--nested-menu-bg);
20679
+ }
20680
+
20681
+ .nested-menu-warning {
20682
+ --nested-menu-bg: var(--color-warning);
20683
+ --nested-menu-fg: var(--color-warning-content);
20684
+ --nested-menu-muted: var(--color-warning-content);
20685
+ --nested-menu-hover: color-mix(in oklch, var(--color-warning-content) 8%, var(--color-warning));
20686
+ --nested-menu-active-bg: var(--color-warning-content);
20687
+ --nested-menu-active-fg: var(--color-warning);
20688
+ background-color: var(--nested-menu-bg);
20689
+ }
20690
+
20691
+ .nested-menu-error {
20692
+ --nested-menu-bg: var(--color-error);
20693
+ --nested-menu-fg: var(--color-error-content);
20694
+ --nested-menu-muted: var(--color-error-content);
20695
+ --nested-menu-hover: color-mix(in oklch, var(--color-error-content) 8%, var(--color-error));
20696
+ --nested-menu-active-bg: var(--color-error-content);
20697
+ --nested-menu-active-fg: var(--color-error);
20698
+ background-color: var(--nested-menu-bg);
20699
+ }
20700
+
20629
20701
  /* Compact — tighter padding throughout */
20630
20702
  .nested-menu-compact {
20631
20703
  padding: 0.25rem;