From 0d1a0f515817432ecd865dbe9a683f725dc75fc4 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/components/logo.tsx | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/components/logo.tsx b/src/components/logo.tsx index 129adef..a83e6dc 100644 --- a/src/components/logo.tsx +++ b/src/components/logo.tsx @@ -88,6 +88,18 @@ export default function Logo({ ); } + if (!logoVar) { + console.error(`Logo: Could not find logo asset for ${varName}`); + return ( +
+ Error: Logo asset not found. Check console. +
+ ); + } + return (