Skip to content

Commit 6f6b7b1

Browse files
committed
Update primary button style
1 parent aeb6884 commit 6f6b7b1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

components/dashboard/src/components/Button.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ export const Button = forwardRef<HTMLButtonElement, ButtonProps>(
5454
spacing === "default" ? ["px-4 py-2"] : null,
5555
type === "primary"
5656
? [
57-
"bg-green-600 dark:bg-green-700 hover:bg-green-700 dark:hover:bg-green-600",
58-
"text-gray-100 dark:text-green-100",
57+
"bg-gray-900 dark:bg-gray-100 hover:bg-gray-800 dark:hover:bg-gray-50",
58+
"text-gray-100 dark:text-gray-900",
5959
]
6060
: null,
6161
type === "secondary"

components/dashboard/src/index.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
@layer components {
5555
/* TODO: deprecate button styles in favor of using <Button> component and handling there */
5656
button {
57-
@apply cursor-pointer px-4 py-2 my-auto bg-green-600 dark:bg-green-700 hover:bg-green-700 dark:hover:bg-green-600 text-gray-100 dark:text-green-100 text-sm font-medium rounded-md focus:outline-none focus:ring transition ease-in-out;
57+
@apply cursor-pointer px-4 py-2 my-auto bg-gray-900 dark:bg-gray-100 hover:bg-gray-800 dark:hover:bg-gray-50 text-gray-100 dark:text-gray-900 text-sm font-medium rounded-xl focus:outline-none focus:ring transition ease-in-out;
5858
}
5959
button.secondary {
6060
@apply bg-gray-100 dark:bg-gray-700 hover:bg-gray-200 dark:hover:bg-gray-600 text-gray-500 dark:text-gray-100 hover:text-gray-600;

0 commit comments

Comments
 (0)