@skirbi/pinta 0.0.41 → 0.0.42

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/Changes CHANGED
@@ -1,5 +1,10 @@
1
1
  Revision history for @skirbi/pinta
2
2
 
3
+ 0.0.42 2026-09-17 00:55:12Z
4
+
5
+ * Button color recipes ([lead], [support], [extra], [antagonist],
6
+ [herald]) now also apply to `button` elements, not just `a`.
7
+
3
8
  0.0.41 2026-09-16 05:32:35Z
4
9
 
5
10
  * semtic-nav-page: fixed the flex recipe to target semtic-nav-page-item
package/lib/index.mjs CHANGED
@@ -2,4 +2,4 @@
2
2
  //
3
3
  // SPDX-License-Identifier: MIT
4
4
 
5
- const VERSION = "0.0.41";
5
+ const VERSION = "0.0.42";
@@ -3554,7 +3554,12 @@
3554
3554
  a[support],
3555
3555
  a[extra],
3556
3556
  a[antagonist],
3557
- a[herald] {
3557
+ a[herald],
3558
+ button[lead],
3559
+ button[support],
3560
+ button[extra],
3561
+ button[antagonist],
3562
+ button[herald] {
3558
3563
  display: inline-flex;
3559
3564
  align-items: center;
3560
3565
  justify-content: center;
@@ -3633,7 +3638,8 @@
3633
3638
  pointer-events: none;
3634
3639
  }
3635
3640
 
3636
- a[lead] {
3641
+ a[lead],
3642
+ button[lead] {
3637
3643
  background: var(--skirbi-button-lead-bg, var(--skirbi-primary-main));
3638
3644
  /*
3639
3645
  * This leaves some weird ass artifact, fix it and enable gradient
@@ -3655,7 +3661,8 @@
3655
3661
  }
3656
3662
  }
3657
3663
 
3658
- a[support] {
3664
+ a[support],
3665
+ button[support] {
3659
3666
  background: var(--skirbi-button-support-bg, transparent);
3660
3667
  color: var(--skirbi-button-support-color, var(--skirbi-primary-main));
3661
3668
  border-color: var(--skirbi-button-support-border,
@@ -3669,7 +3676,8 @@
3669
3676
  }
3670
3677
  }
3671
3678
 
3672
- a[extra] {
3679
+ a[extra],
3680
+ button[extra] {
3673
3681
  background: var(--skirbi-button-extra-bg, transparent);
3674
3682
  color: var(--skirbi-button-extra-color, var(--skirbi-primary-main));
3675
3683
  border-color: var(--skirbi-button-extra-border,
@@ -3685,7 +3693,8 @@
3685
3693
  }
3686
3694
  }
3687
3695
 
3688
- a[antagonist] {
3696
+ a[antagonist],
3697
+ button[antagonist] {
3689
3698
  background: var(--skirbi-button-antagonist-bg, transparent);
3690
3699
  color: var(--skirbi-button-antagonist-color,
3691
3700
  var(--skirbi-error-base, #b91c1c));
@@ -3701,7 +3710,8 @@
3701
3710
  }
3702
3711
  }
3703
3712
 
3704
- a[antagonist][lead] {
3713
+ a[antagonist][lead],
3714
+ button[antagonist][lead] {
3705
3715
  background: var(--skirbi-button-antagonist-strong-bg,
3706
3716
  var(--skirbi-error-base, #b91c1c));
3707
3717
  color: var(--skirbi-on-dark, white);
@@ -3714,7 +3724,8 @@
3714
3724
  }
3715
3725
  }
3716
3726
 
3717
- a[herald] {
3727
+ a[herald],
3728
+ button[herald] {
3718
3729
  background: var(--skirbi-button-herald-bg, transparent);
3719
3730
  color: var(--skirbi-button-herald-color,
3720
3731
  var(--skirbi-warn-base, #d97706));
@@ -3728,7 +3739,8 @@
3728
3739
  var(--skirbi-warn-base, #d97706));
3729
3740
  }
3730
3741
  }
3731
- a[herald][lead] {
3742
+ a[herald][lead],
3743
+ button[herald][lead] {
3732
3744
  background: var(--skirbi-button-herald-strong-bg,
3733
3745
  var(--skirbi-warn-base, #d97706));
3734
3746
  color: var(--skirbi-on-dark, white);
package/package.json CHANGED
@@ -32,5 +32,5 @@
32
32
  },
33
33
  "sideEffects": false,
34
34
  "type": "module",
35
- "version": "0.0.41"
35
+ "version": "0.0.42"
36
36
  }