From 269782f72f4d198c2c6acd7dc12a55efcaadc80d Mon Sep 17 00:00:00 2001 From: Flegma Date: Thu, 18 Jun 2026 12:08:55 +0200 Subject: [PATCH 1/2] bug: tactical-amber CTA gradient now follows branding color The tactical-amber CTA gradient (Play button, match/tournament submit, join-match, lobby play, settings save bar, veto pills, clip action tile) hardcoded its two gradient endpoints: hsl(36 100% 65%) and hsl(28 90% 52%). Only the middle stop, border and glow used --tac-amber, so a non-amber "Tactical Accent" branding color produced an orange-to-accent-to-orange gradient instead of a cohesive branded button. Derive both endpoints from --tac-amber with color-mix (a lighter tint and a darker shade) so the whole gradient tracks the Tactical Accent color. With the default amber the gradient is visually unchanged; a custom accent (e.g. blue) now yields a clean single-hue gradient. Also points the dark-mode topo background tint at --tac-amber for consistency. --- assets/css/tailwind.css | 12 ++++++++++-- components/MatchTableRow.vue | 2 +- components/clips/ClipDetailModal.vue | 8 ++++---- components/match/MatchForm.vue | 4 ++-- components/tournament/TournamentForm.vue | 2 +- layouts/components/MatchLobbies.vue | 2 +- layouts/components/TopoBackground.vue | 4 ++-- pages/players/[id].vue | 2 +- 8 files changed, 22 insertions(+), 14 deletions(-) diff --git a/assets/css/tailwind.css b/assets/css/tailwind.css index ebb702ae..8bd94abf 100644 --- a/assets/css/tailwind.css +++ b/assets/css/tailwind.css @@ -78,6 +78,11 @@ --tac-amber: 33 94% 58%; --tac-amber-foreground: 0 0% 10%; + + /* CTA gradient endpoints derived from --tac-amber so the whole gradient + follows branding (lighter tint -> base -> darker shade). */ + --tac-amber-cta-from: color-mix(in hsl, hsl(var(--tac-amber)), white 15%); + --tac-amber-cta-to: color-mix(in hsl, hsl(var(--tac-amber)), black 12%); } .dark { @@ -146,6 +151,9 @@ --tac-amber: 33 94% 58%; --tac-amber-foreground: 0 0% 10%; + + --tac-amber-cta-from: color-mix(in hsl, hsl(var(--tac-amber)), white 15%); + --tac-amber-cta-to: color-mix(in hsl, hsl(var(--tac-amber)), black 12%); } } @@ -288,9 +296,9 @@ mark { border-color: hsl(var(--tac-amber)); background: linear-gradient( 135deg, - hsl(36 100% 65%) 0%, + var(--tac-amber-cta-from) 0%, hsl(var(--tac-amber)) 50%, - hsl(28 90% 52%) 100% + var(--tac-amber-cta-to) 100% ); box-shadow: 0 0 0 1px hsl(var(--tac-amber) / 0.35), diff --git a/components/MatchTableRow.vue b/components/MatchTableRow.vue index c528e3df..11c4ce7c 100644 --- a/components/MatchTableRow.vue +++ b/components/MatchTableRow.vue @@ -144,7 +144,7 @@ import MatchOverviewDrawer from "~/components/match/MatchOverviewDrawer.vue";