From 5de022b356cb1d8d4c2dc36624b703b5a48b9730 Mon Sep 17 00:00:00 2001
From: SomeCodecat <88855796+SomeCodecat@users.noreply.github.com>
Date: Thu, 22 May 2025 15:53:00 +0200
Subject: [PATCH] feat(WIP): update color variables and button styles
This commit includes the following changes:
- Remove the `--card` CSS variable as it is no longer used.
- Update the `--color-disabled-secondary` variable to use the correct value.
- Change the `--color-accent` variable to use a more neutral color.
- Refactor the `buttonVariants` function to accept only the `variant` and `size` props, and apply the `className` prop separately.
- Update the `select` component styles to use the correct text color for focused items.
- Add error handling for the `Logo` component to display a warning if the logo asset is not found.
These changes improve the overall styling and consistency of the application.
---
src/app/globals.css | 6 ++----
src/components/custom-ui/button.tsx | 2 +-
src/components/logo.tsx | 12 ++++++++++++
src/components/ui/select.tsx | 2 +-
4 files changed, 16 insertions(+), 6 deletions(-)
diff --git a/src/app/globals.css b/src/app/globals.css
index e32d4dc..99e47a7 100644
--- a/src/app/globals.css
+++ b/src/app/globals.css
@@ -48,8 +48,6 @@
--foreground: oklch(0.13 0.028 261.692);
- --card: oklch(1 0 0);
-
--card-foreground: oklch(0.13 0.028 261.692);
--popover: oklch(1 0 0);
@@ -153,7 +151,7 @@
--color-secondary: var(--secondary);
--color-hover-secondary: var(--hover-secondary);
--color-active-secondary: var(--active-secondary);
- --disabled-secondary: var(--disabled-secondary);
+ --color-disabled-secondary: var(--disabled-secondary);
/* Custom values */
@@ -189,7 +187,7 @@
--color-muted-foreground: var(--muted-foreground);
- --color-accent: var(--accent);
+ --color-accent: var(--color-neutral-750);
--color-accent-foreground: var(--accent-foreground);
diff --git a/src/components/custom-ui/button.tsx b/src/components/custom-ui/button.tsx
index 927f868..1910ea5 100644
--- a/src/components/custom-ui/button.tsx
+++ b/src/components/custom-ui/button.tsx
@@ -51,7 +51,7 @@ function Button({
return (