Skip to content

Commit 386575d

Browse files
committed
fix: (website) improve button styles with shadow and border adjustments
1 parent 7b0c1f6 commit 386575d

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

website/app/components/header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const svgIconSize = {
2626

2727
const linkClasses = buttonVariants({
2828
variant: "outline",
29-
className: "rounded-3xl w-auto group",
29+
className: "rounded-3xl w-auto group shadow-xs",
3030
});
3131

3232
const arrowClasses = cn(

website/app/components/installCommand.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ const InstallCommand = (props: iInstallCommandProps) => {
7474
className={cn(
7575
buttonVariants({
7676
variant: "outline",
77-
className: "cursor-default active:scale-100",
77+
className: "cursor-default shadow-xs active:scale-100",
7878
}),
7979
"space-x-3 rounded-3xl text-zinc-600 select-all hover:bg-transparent dark:text-zinc-400 dark:hover:bg-transparent dark:hover:text-white",
8080
props.className,

website/app/ui/button.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const buttonVariants = cva(
1313
destructive:
1414
"bg-red-500 text-zinc-50 shadow-sm hover:bg-red-500/90 dark:bg-red-900 dark:text-zinc-50 dark:hover:bg-red-900/90",
1515
outline:
16-
"border border-zinc-200 bg-white shadow-sm hover:bg-zinc-100 hover:text-zinc-900 dark:border-zinc-800 dark:bg-zinc-900 dark:hover:bg-zinc-800 dark:hover:text-zinc-50",
16+
"border border-zinc-200 bg-white shadow-sm hover:bg-zinc-100 hover:text-zinc-900 dark:border-zinc-800 dark:bg-zinc-900 dark:hover:bg-zinc-800 dark:hover:text-zinc-50 hover:border-zinc-300 dark:hover:border-zinc-700",
1717
secondary:
1818
"bg-zinc-100 text-zinc-900 shadow-sm hover:bg-zinc-100/80 dark:bg-zinc-800 dark:text-zinc-50 dark:hover:bg-zinc-800/80",
1919
ghost:
@@ -35,7 +35,8 @@ const buttonVariants = cva(
3535
);
3636

3737
export interface ButtonProps
38-
extends React.ButtonHTMLAttributes<HTMLButtonElement>,
38+
extends
39+
React.ButtonHTMLAttributes<HTMLButtonElement>,
3940
VariantProps<typeof buttonVariants> {
4041
asChild?: boolean;
4142
}

0 commit comments

Comments
 (0)