Skip to content

Commit fba895e

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

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
@@ -24,8 +24,7 @@ export const getButtonSizeClasses = (size: ButtonSize = 'md') => {
2424

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

4241
export const getBorderButtonTypeClasses = (type: ButtonType = 'primary') => {
4342
const baseByType = {
44-
primary:
45-
'bg-neutral-900 text-white dark-theme:bg-white dark-theme:text-neutral-900',
46-
secondary:
47-
'bg-white text-neutral-950 dark-theme:bg-zinc-700 dark-theme:text-white',
43+
primary: 'bg-base-background text-base-foreground',
44+
secondary: 'bg-secondary-background text-base-foreground',
4845
transparent: cn(
4946
'bg-transparent text-base-foreground hover:bg-secondary-background-hover'
5047
),
@@ -53,10 +50,9 @@ export const getBorderButtonTypeClasses = (type: ButtonType = 'primary') => {
5350
} as const
5451

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

0 commit comments

Comments
 (0)