Compare commits

...

6 commits

Author SHA1 Message Date
Zach Tatman
7c40aad4dc
Merge 68abf52419 into acf44ab67e 2026-08-16 20:06:49 -04:00
ZTatman
68abf52419 fix: use darker danger tokens, replace magic hex values, remove unused CSS tokens
- Set --color-danger to #d93f2d (dark theme), #b01c2a (light theme)
- Added --color-danger-hover with darkened values
- Replaced magic hex in error.html with var() references
- Updated JS glow animation to match new danger color
- Removed unused tokens: primary-foreground, primary-hover, primary-muted, border-subtle
2026-08-16 19:58:06 -04:00
ZTatman
b58750eb7b fix(ui): make primary buttons red by default with darker hover
Changes .btn-primary from dark (#17191c) to red (#c62030) background
with darker red (#a81a27) on hover. Affects Open dashboard, Sign in,
Create share link, and other primary action buttons.
2026-08-16 19:44:16 -04:00
ZTatman
a2d59a9351 fix(ui): reset header borderless button background to transparent
The .app-header .btn-borderless override was missing background:transparent,
so the red bg-danger from the base .btn-borderless leaked into nav buttons.
2026-08-16 19:43:01 -04:00
ZTatman
d772879336 fix(ui): keep nav bar borderless buttons as transparent
Reverts header-specific .btn-borderless override so Dashboard and
Settings nav buttons remain transparent with accent hover. Only
non-header borderless buttons get the red default style.
2026-08-16 19:41:23 -04:00
ZTatman
aa91e1f163 fix(ui): make borderless buttons red by default with darker hover
Changes .btn-borderless from transparent to red (#c62030) background
with darker red (#a81a27) on hover. Updates header-specific overrides
to match the new default style.
2026-08-16 19:40:27 -04:00
2 changed files with 24 additions and 29 deletions

View file

@ -17,15 +17,11 @@
--color-accent-foreground: #17191c; --color-accent-foreground: #17191c;
--color-primary: #2a2d31; --color-primary: #2a2d31;
--color-primary-foreground: #ffffff;
--color-primary-hover: #17191c;
--color-primary-muted: rgb(23 25 28 / 10%);
--color-secondary: #eeeeea; --color-secondary: #eeeeea;
--color-secondary-foreground: #17191c; --color-secondary-foreground: #17191c;
--color-border: #d8d8d2; --color-border: #d8d8d2;
--color-border-subtle: #e9e9e4;
--color-input: #ffffff; --color-input: #ffffff;
--color-ring: #2a2d31; --color-ring: #2a2d31;
--color-ring-muted: rgb(23 25 28 / 12%); --color-ring-muted: rgb(23 25 28 / 12%);
@ -39,9 +35,10 @@
--color-warning-foreground: oklch(54.7% 0.13 65); --color-warning-foreground: oklch(54.7% 0.13 65);
--color-warning-muted: oklch(96.3% 0.052 85); --color-warning-muted: oklch(96.3% 0.052 85);
--color-danger: #c62030; --color-danger: #b01c2a;
--color-danger-foreground: #c62030; --color-danger-foreground: #d94555;
--color-danger-muted: rgb(198 32 48 / 10%); --color-danger-hover: #9a1824;
--color-danger-muted: rgb(176 28 42 / 10%);
--color-expired: #5c5c58; --color-expired: #5c5c58;
--color-expired-foreground: #4b4b47; --color-expired-foreground: #4b4b47;
@ -70,15 +67,11 @@
--color-accent-foreground: #f7f2e8; --color-accent-foreground: #f7f2e8;
--color-primary: #2a2d31; --color-primary: #2a2d31;
--color-primary-foreground: #f7f2e8;
--color-primary-hover: #17191c;
--color-primary-muted: rgb(247 242 232 / 14%);
--color-secondary: #282b30; --color-secondary: #282b30;
--color-secondary-foreground: #f7f2e8; --color-secondary-foreground: #f7f2e8;
--color-border: #34373d; --color-border: #34373d;
--color-border-subtle: #282b30;
--color-input: #1f2226; --color-input: #1f2226;
--color-ring: #f7f2e8; --color-ring: #f7f2e8;
--color-ring-muted: rgb(247 242 232 / 18%); --color-ring-muted: rgb(247 242 232 / 18%);
@ -92,8 +85,9 @@
--color-warning-foreground: oklch(86% 0.13 75); --color-warning-foreground: oklch(86% 0.13 75);
--color-warning-muted: oklch(35% 0.075 75); --color-warning-muted: oklch(35% 0.075 75);
--color-danger: #f04a36; --color-danger: #d93f2d;
--color-danger-foreground: #ff7a66; --color-danger-foreground: #f06a58;
--color-danger-hover: #c23625;
--color-danger-muted: rgb(240 74 54 / 18%); --color-danger-muted: rgb(240 74 54 / 18%);
--color-expired: #bdb8ad; --color-expired: #bdb8ad;
@ -151,7 +145,7 @@
} }
.btn-primary { .btn-primary {
@apply text-primary-foreground bg-primary-hover hover:bg-[#c62030]/90 hover:text-[#f7f2e8]; @apply bg-danger text-white hover:bg-danger-hover;
} }
.btn-secondary { .btn-secondary {
@ -159,7 +153,7 @@
} }
.btn-borderless { .btn-borderless {
@apply bg-transparent text-foreground hover:bg-accent hover:text-accent-foreground; @apply bg-danger text-white hover:bg-danger-hover;
} }
.app-header { .app-header {
@ -173,8 +167,8 @@
.app-header a, .app-header a,
.app-header button, .app-header button,
.app-header nav svg { .app-header nav svg {
color: #f7f2e8; color: var(--color-foreground);
stroke: #f7f2e8; stroke: var(--color-foreground);
} }
.app-header .brand-link svg { .app-header .brand-link svg {
@ -182,28 +176,29 @@
} }
.app-header .brand-link svg path[fill="#17191C"] { .app-header .brand-link svg path[fill="#17191C"] {
fill: #f7f2e8; fill: var(--color-foreground);
} }
.app-header .btn-borderless { .app-header .btn-borderless {
color: #f7f2e8; background: transparent;
color: var(--color-foreground);
} }
.app-header .btn-borderless:hover { .app-header .btn-borderless:hover {
background: rgb(247 242 232 / 10%); background: rgb(247 242 232 / 10%);
color: #fffdf8; color: var(--color-foreground);
} }
.app-header .btn-secondary { .app-header .btn-secondary {
background: rgb(247 242 232 / 8%); background: rgb(247 242 232 / 8%);
border-color: rgb(247 242 232 / 18%); border-color: rgb(247 242 232 / 18%);
color: #f7f2e8; color: var(--color-foreground);
} }
.app-header .btn-secondary:hover { .app-header .btn-secondary:hover {
background: rgb(247 242 232 / 14%); background: rgb(247 242 232 / 14%);
border-color: rgb(247 242 232 / 28%); border-color: rgb(247 242 232 / 28%);
color: #fffdf8; color: var(--color-foreground);
} }
.landing-page .app-header { .landing-page .app-header {
@ -211,7 +206,7 @@
} }
.landing-page { .landing-page {
background: #17191c; background: var(--color-background);
} }
.brand-link svg { .brand-link svg {

View file

@ -78,14 +78,14 @@
90% { transform: translate(-2px, 2px); } 90% { transform: translate(-2px, 2px); }
} }
.btn-zapped { .btn-zapped {
background: #c62030 !important; background: var(--color-danger) !important;
color: #f7f2e8 !important; color: var(--color-foreground) !important;
box-shadow: 0 0 12px 4px rgba(198, 32, 48, 0.5), 0 0 30px 8px rgba(198, 32, 48, 0.25); box-shadow: 0 0 12px 4px color-mix(in srgb, var(--color-danger) 50%, transparent), 0 0 30px 8px color-mix(in srgb, var(--color-danger) 25%, transparent);
animation: rattle 0.15s linear infinite; animation: rattle 0.15s linear infinite;
} }
#go-home-btn:hover { #go-home-btn:hover {
background: #c62030; background: var(--color-danger-hover);
color: #f7f2e8; color: var(--color-foreground);
} }
</style> </style>
{% endif %} {% endif %}
@ -185,7 +185,7 @@
const blur = 30 + t * 40; const blur = 30 + t * 40;
const opacity = 0.5 + t * 0.4; const opacity = 0.5 + t * 0.4;
const scale = 1 + t * 0.06; const scale = 1 + t * 0.06;
btn.style.boxShadow = `0 0 ${spread}px ${spread/3}px rgba(198,32,48,${opacity}), 0 0 ${blur}px ${blur/3}px rgba(198,32,48,${opacity * 0.5})`; btn.style.boxShadow = `0 0 ${spread}px ${spread/3}px rgba(217,63,45,${opacity}), 0 0 ${blur}px ${blur/3}px rgba(217,63,45,${opacity * 0.5})`;
btn.style.scale = scale; btn.style.scale = scale;
if (t < 1) requestAnimationFrame(intensify); if (t < 1) requestAnimationFrame(intensify);
} }