Make the glass button variant more transparent and soften accent text
The secondary/glass Button variant used a flat, fairly opaque black or white tint with no blur, so it didn't read as glass and clashed with the hue-shifting hero background. Add a backdrop blur and a hairline border (matching the app's existing glass-bar/glass-panel treatment) and lower the tint opacity. Wire up the already-computed but unused --mf-accent-muted token as --color-accent-muted, and use it for the accent Button variant's text instead of the higher-chroma --color-accent-soft, so it reads softer.
This commit is contained in:
@@ -35,13 +35,14 @@
|
||||
};
|
||||
|
||||
const subtle = 'bg-btn text-fg-2 hover:bg-btn-hover hover:text-fg';
|
||||
const glass = 'font-normal bg-btn-glass text-fg-2 hover:bg-btn-glass-hover hover:text-fg';
|
||||
const glass =
|
||||
'font-normal border border-hairline bg-btn-glass backdrop-blur-md text-fg-2 hover:bg-btn-glass-hover hover:text-fg';
|
||||
|
||||
const variants = {
|
||||
primary: subtle,
|
||||
secondary: subtle,
|
||||
glass,
|
||||
accent: 'bg-accent-btn text-accent-soft hover:bg-accent-btn-hover',
|
||||
accent: 'bg-accent-btn text-accent-muted hover:bg-accent-btn-hover',
|
||||
strong: 'bg-cta-strong text-ink hover:brightness-95',
|
||||
danger: 'bg-danger text-on-art hover:brightness-110'
|
||||
};
|
||||
|
||||
@@ -16,8 +16,8 @@
|
||||
--mf-surface-hover: rgba(255, 255, 255, 0.06);
|
||||
--mf-btn-bg: var(--mf-surface-2);
|
||||
--mf-btn-bg-hover: var(--mf-surface-hover);
|
||||
--mf-btn-secondary-bg: rgba(255, 255, 255, 0.045);
|
||||
--mf-btn-secondary-bg-hover: rgba(255, 255, 255, 0.07);
|
||||
--mf-btn-secondary-bg: rgba(255, 255, 255, 0.03);
|
||||
--mf-btn-secondary-bg-hover: rgba(255, 255, 255, 0.05);
|
||||
|
||||
--mf-border: rgba(255, 255, 255, 0.04);
|
||||
--mf-border-strong: rgba(255, 255, 255, 0.09);
|
||||
@@ -84,8 +84,8 @@
|
||||
--mf-surface-hover: #e8eceb;
|
||||
--mf-btn-bg: var(--mf-surface-2);
|
||||
--mf-btn-bg-hover: var(--mf-surface-hover);
|
||||
--mf-btn-secondary-bg: rgba(0, 0, 0, 0.09);
|
||||
--mf-btn-secondary-bg-hover: rgba(0, 0, 0, 0.14);
|
||||
--mf-btn-secondary-bg: rgba(0, 0, 0, 0.055);
|
||||
--mf-btn-secondary-bg-hover: rgba(0, 0, 0, 0.09);
|
||||
|
||||
--mf-scrollbar: rgba(0, 0, 0, 0.18);
|
||||
--mf-scrollbar-hover: rgba(0, 0, 0, 0.32);
|
||||
|
||||
Reference in New Issue
Block a user