diff --git a/package-lock.json b/package-lock.json index 9608efc..651aa28 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18,6 +18,7 @@ "next": "14.1.4", "react": "^18", "react-dom": "^18", + "tailwind-merge": "^2.2.2", "tailwind-variants": "^0.2.1" }, "devDependencies": { diff --git a/package.json b/package.json index 25fcea8..7b814bf 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,7 @@ "next": "14.1.4", "react": "^18", "react-dom": "^18", + "tailwind-merge": "^2.2.2", "tailwind-variants": "^0.2.1" }, "devDependencies": { diff --git a/src/components/Button.tsx b/src/components/Button.tsx index e1c3dd1..22af1e4 100644 --- a/src/components/Button.tsx +++ b/src/components/Button.tsx @@ -10,7 +10,8 @@ const button = tv({ variants: { variant: { primary: "bg-violet-600 text-white hover:bg-violet-700", - ghost: "rounded-md px-2 hover:bg-zinc-50 shadow-none", + ghost: + "rounded-md px-2 hover:bg-zinc-50 dark:hover:bg-zinc-800 shadow-none text-zinc-500 dark:text-zinc-400", outline: "border border-zinc-300 text-zinc-700 hover:bg-zinc-50", }, }, diff --git a/src/components/Input.tsx b/src/components/Input.tsx index 9045b39..1944a5d 100644 --- a/src/components/Input.tsx +++ b/src/components/Input.tsx @@ -1,4 +1,5 @@ import { ComponentProps } from "react"; +import { twMerge } from "tailwind-merge"; interface InputPrefixProps extends ComponentProps<"div"> {} @@ -11,7 +12,7 @@ interface InputControlProps extends ComponentProps<"input"> {} export function Control(props: InputControlProps) { return ( ); @@ -21,7 +22,12 @@ type InputRootProps = ComponentProps<"div">; export function Root(props: InputRootProps) { return (
); diff --git a/src/components/Sidebar/Logo.tsx b/src/components/Sidebar/Logo.tsx index 9c408fd..c9f4b9c 100644 --- a/src/components/Sidebar/Logo.tsx +++ b/src/components/Sidebar/Logo.tsx @@ -1,6 +1,6 @@ export function Logo() { return ( - +