From a2d08719f9a1d77ff26da4eb07159ff8700ec408 Mon Sep 17 00:00:00 2001 From: Maze Winther Date: Wed, 4 Mar 2026 17:16:01 +0100 Subject: [PATCH] refactor: remove foreground variant from button, make it default --- apps/web/src/app/projects/page.tsx | 1 - apps/web/src/components/editor/mobile-gate.tsx | 2 +- apps/web/src/components/gitHub-contribute-section.tsx | 2 +- apps/web/src/components/header.tsx | 2 +- apps/web/src/components/landing/hero.tsx | 7 +------ apps/web/src/components/ui/button.tsx | 3 +-- 6 files changed, 5 insertions(+), 12 deletions(-) diff --git a/apps/web/src/app/projects/page.tsx b/apps/web/src/app/projects/page.tsx index b21c8dd0..c25d75b9 100644 --- a/apps/web/src/app/projects/page.tsx +++ b/apps/web/src/app/projects/page.tsx @@ -514,7 +514,6 @@ function NewProjectButton() { return ( diff --git a/apps/web/src/components/header.tsx b/apps/web/src/components/header.tsx index a32d5d6d..e24486b4 100644 --- a/apps/web/src/components/header.tsx +++ b/apps/web/src/components/header.tsx @@ -124,7 +124,7 @@ export function Header() { - diff --git a/apps/web/src/components/landing/hero.tsx b/apps/web/src/components/landing/hero.tsx index a8f3f70d..355bbc81 100644 --- a/apps/web/src/components/landing/hero.tsx +++ b/apps/web/src/components/landing/hero.tsx @@ -29,12 +29,7 @@ export function Hero() {
- diff --git a/apps/web/src/components/ui/button.tsx b/apps/web/src/components/ui/button.tsx index 1143b142..aa52e228 100644 --- a/apps/web/src/components/ui/button.tsx +++ b/apps/web/src/components/ui/button.tsx @@ -8,9 +8,8 @@ const buttonVariants = cva( { variants: { variant: { - default: "bg-primary text-primary-foreground hover:bg-primary/90", + default: "bg-foreground text-background hover:bg-foreground/90", background: "bg-background text-foreground hover:bg-background/90", - foreground: "bg-foreground text-background hover:bg-foreground/90", destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/80", "destructive-foreground":