Default primary #2595c8, the family's button color
Every consumer styled .btn-primary as #2595c8 (hover #1d7baa) in its own stylesheet; with that as the default palette's --yw-primary the template's Bootstrap bridge matches it, and the consumers' hard-coded rules can go so that the other palettes reach their buttons too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
148062ec28
commit
91a3d3ac1e
1 file changed
+5
-3
+5
-3
@@ -82,8 +82,8 @@
|
|||||||
--yw-link-rgb: var(--yw-if-light, 10, 114, 163) var(--yw-if-dark, 79, 195, 247);
|
--yw-link-rgb: var(--yw-if-light, 10, 114, 163) var(--yw-if-dark, 79, 195, 247);
|
||||||
--yw-link-hover: light-dark(#085a80, #81d4fa);
|
--yw-link-hover: light-dark(#085a80, #81d4fa);
|
||||||
--yw-link-hover-rgb: var(--yw-if-light, 8, 90, 128) var(--yw-if-dark, 129, 212, 250);
|
--yw-link-hover-rgb: var(--yw-if-light, 8, 90, 128) var(--yw-if-dark, 129, 212, 250);
|
||||||
--yw-primary: light-dark(#0d6efd, #0d6efd);
|
--yw-primary: light-dark(#2595c8, #2595c8);
|
||||||
--yw-primary-rgb: var(--yw-if-light, 13, 110, 253) var(--yw-if-dark, 13, 110, 253);
|
--yw-primary-rgb: var(--yw-if-light, 37, 149, 200) var(--yw-if-dark, 37, 149, 200);
|
||||||
--yw-on-primary: light-dark(#ffffff, #ffffff);
|
--yw-on-primary: light-dark(#ffffff, #ffffff);
|
||||||
--yw-nav-link: light-dark(#0b82b8, #0b82b8);
|
--yw-nav-link: light-dark(#0b82b8, #0b82b8);
|
||||||
--yw-nav-link-hover-text: light-dark(#0a4f72, #c8d4e4);
|
--yw-nav-link-hover-text: light-dark(#0a4f72, #c8d4e4);
|
||||||
@@ -246,7 +246,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Bootstrap writes its primary blue straight into these components
|
/* Bootstrap writes its primary blue straight into these components
|
||||||
rather than reading --bs-primary, so they get the palette's here. */
|
rather than reading --bs-primary, so they get the palette's here.
|
||||||
|
The default palette's #2595c8 is the button color every consumer's
|
||||||
|
own stylesheet used (as yasta), so those rules can go. */
|
||||||
.btn-primary {
|
.btn-primary {
|
||||||
--bs-btn-color: var(--yw-on-primary);
|
--bs-btn-color: var(--yw-on-primary);
|
||||||
--bs-btn-bg: var(--yw-primary);
|
--bs-btn-bg: var(--yw-primary);
|
||||||
|
|||||||
Reference in new issue
Block a user