Skip to content

Commit 4c07ce4

Browse files
committed
Cleanup: Remove dark-theme variants in buttonTypes. Really need to migrate this to CVA and setup the right types.
1 parent ec66459 commit 4c07ce4

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

src/types/buttonTypes.ts

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ export const getButtonSizeClasses = (size: ButtonSize = 'md') => {
2525

2626
export const getButtonTypeClasses = (type: ButtonType = 'primary') => {
2727
const baseByType = {
28-
primary:
29-
'bg-neutral-900 border-none text-white dark-theme:bg-white dark-theme:text-neutral-900',
28+
primary: 'bg-base-foreground border-none text-base-background',
3029
secondary: cn(
3130
'bg-secondary-background border-none text-base-foreground hover:bg-secondary-background-hover'
3231
),
@@ -42,10 +41,8 @@ export const getButtonTypeClasses = (type: ButtonType = 'primary') => {
4241

4342
export const getBorderButtonTypeClasses = (type: ButtonType = 'primary') => {
4443
const baseByType = {
45-
primary:
46-
'bg-neutral-900 text-white dark-theme:bg-white dark-theme:text-neutral-900',
47-
secondary:
48-
'bg-white text-neutral-950 dark-theme:bg-zinc-700 dark-theme:text-white',
44+
primary: 'bg-base-background text-base-foreground',
45+
secondary: 'bg-secondary-background text-base-foreground',
4946
transparent: cn(
5047
'bg-transparent text-base-foreground hover:bg-secondary-background-hover'
5148
),
@@ -54,10 +51,9 @@ export const getBorderButtonTypeClasses = (type: ButtonType = 'primary') => {
5451
} as const
5552

5653
const borderByType = {
57-
primary: 'border border-solid border-white dark-theme:border-neutral-900',
58-
secondary: 'border border-solid border-neutral-950 dark-theme:border-white',
59-
transparent:
60-
'border border-solid border-neutral-950 dark-theme:border-white',
54+
primary: 'border border-solid border-base-background',
55+
secondary: 'border border-solid border-base-foreground',
56+
transparent: 'border border-solid border-base-foreground',
6157
accent: 'border border-solid border-primary-background'
6258
} as const
6359

0 commit comments

Comments
 (0)