From e09effa2cacd5a2a873e42f92d4586060e5e9e7b Mon Sep 17 00:00:00 2001 From: Bjoern Kalkbrenner Date: Thu, 29 Oct 2026 23:01:28 +0100 Subject: [PATCH] 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 --- static/style.css | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/static/style.css b/static/style.css index 7b52fc4..4ac58ac 100644 --- a/static/style.css +++ b/static/style.css @@ -82,8 +82,8 @@ --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-rgb: var(--yw-if-light, 8, 90, 128) var(--yw-if-dark, 129, 212, 250); - --yw-primary: light-dark(#0d6efd, #0d6efd); - --yw-primary-rgb: var(--yw-if-light, 13, 110, 253) var(--yw-if-dark, 13, 110, 253); + --yw-primary: light-dark(#2595c8, #2595c8); + --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-nav-link: light-dark(#0b82b8, #0b82b8); --yw-nav-link-hover-text: light-dark(#0a4f72, #c8d4e4); @@ -246,7 +246,9 @@ } /* 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 { --bs-btn-color: var(--yw-on-primary); --bs-btn-bg: var(--yw-primary);