lituix 0.1.13 → 0.1.15

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/dist/index.cjs CHANGED
@@ -504,6 +504,25 @@
504
504
  /* Public override for icon glyph size inside prefix / suffix / icon-only.
505
505
  * Falls back to the global --lui-icon-size so existing themes keep working. */
506
506
  --lui-button-icon-size: var(--lui-icon-size, 18px);
507
+ /* Color palette lives on :host (not the inner button) so consumers can
508
+ * theme buttons from the outside via these custom properties. */
509
+ --lui-button-bg: var(--lui-color-bg-subtle);
510
+ --lui-button-border: transparent;
511
+ --lui-button-fg: var(--lui-color-fg);
512
+ --lui-button-hover-bg: color-mix(
513
+ in srgb,
514
+ var(--lui-color-bg-hover) 55%,
515
+ var(--lui-color-bg)
516
+ );
517
+ --lui-button-hover-border: transparent;
518
+ --lui-button-hover-fg: var(--lui-color-fg);
519
+ --lui-button-active-bg: color-mix(
520
+ in srgb,
521
+ var(--lui-color-bg-active) 78%,
522
+ var(--lui-color-bg)
523
+ );
524
+ --lui-button-active-border: var(--lui-button-hover-border);
525
+ --lui-button-active-fg: var(--lui-color-fg);
507
526
  }
508
527
  :host([block]) {
509
528
  display: flex;
@@ -528,23 +547,6 @@
528
547
  --lui-button-radius: 999px;
529
548
  }
530
549
  button {
531
- --lui-button-bg: var(--lui-color-bg);
532
- --lui-button-border: transparent;
533
- --lui-button-fg: var(--lui-color-fg);
534
- --lui-button-hover-bg: color-mix(
535
- in srgb,
536
- var(--lui-color-bg-subtle) 92%,
537
- var(--lui-color-bg)
538
- );
539
- --lui-button-hover-border: transparent;
540
- --lui-button-hover-fg: var(--lui-color-fg);
541
- --lui-button-active-bg: color-mix(
542
- in srgb,
543
- var(--lui-color-bg-active) 78%,
544
- var(--lui-color-bg)
545
- );
546
- --lui-button-active-border: var(--lui-button-hover-border);
547
- --lui-button-active-fg: var(--lui-color-fg);
548
550
  position: relative;
549
551
  display: inline-flex;
550
552
  align-items: center;