fix(header): use design system css variable text-foreground for dynamic contrast in light and dark mode
Deploy Frontend / deploy (push) Successful in 1m11s

This commit is contained in:
Parsa Aghayi committed 2026-11-02 07:55:43 +00:00
1 parent aae13b259c
commit dc3be0aa7b
1 file changed
+2 -2
@@ -46,7 +46,7 @@ export default function Header() {
<header
className={`fixed top-0 left-0 z-50 flex h-20 w-full items-center justify-between px-6 py-4 transition-all duration-300 xl:px-12 ${
scrolled
? "backdrop-blur-md bg-white/80 dark:bg-zinc-950/80 border-b border-zinc-200/50 dark:border-zinc-800/50 shadow-sm"
? "backdrop-blur-md bg-background/80 border-b border-border shadow-sm"
: "bg-transparent"
}`}
id="header"
@@ -68,7 +68,7 @@ export default function Header() {
<li key={link.href}>
<Link
href={link.href}
className="px-4 py-2 text-sm font-medium text-zinc-800 dark:text-zinc-100 transition-all duration-300 hover:text-primary dark:hover:text-primary rounded-full hover:bg-primary/10"
className="px-4 py-2 text-sm font-medium text-foreground/85 hover:text-primary transition-all duration-300 rounded-full hover:bg-primary/10"
>
{link.label}
</Link>