@@ -11,7 +11,7 @@ export const buttonVariants = cva(
11
11
variants : {
12
12
intent : {
13
13
basic :
14
- 'text-black dark:text-white font-semibold py-2 px-4 border border-gray-300 rounded hover:bg-accent' ,
14
+ 'text-foreground font-semibold py-2 px-4 border border-gray-300 rounded hover:bg-accent hover:text-accent-foreground ' ,
15
15
primary : 'bg-primary text-primary-foreground hover:bg-primary/80' ,
16
16
secondary : 'bg-secondary text-secondary-foreground hover:bg-secondary/80' ,
17
17
danger : 'bg-destructive text-destructive-foreground hover:bg-destructive/80' ,
@@ -20,9 +20,9 @@ export const buttonVariants = cva(
20
20
link : `border-transparent bg-transparent text-foreground
21
21
hover:underline hover:bg-transparent shadow-none outline-current` ,
22
22
ghost :
23
- 'border-transparent bg-transparent border hover:bg-accent hover:text-accent-foreground' ,
23
+ 'border-transparent bg-transparent border hover:bg-accent hover:text-accent-foreground' ,
24
24
outline :
25
- 'bg-transparent border border-input hover:bg-accent hover:text-accent-foreground' ,
25
+ 'bg-transparent border border-input hover:bg-accent hover:text-accent-foreground' ,
26
26
} ,
27
27
shape : {
28
28
rounded : 'rounded' ,
@@ -37,7 +37,7 @@ export const buttonVariants = cva(
37
37
} ,
38
38
animation : {
39
39
none : '' ,
40
- bouncy : 'transition duration-300 ease-in-out transform hover :scale-105 ' ,
40
+ bouncy : 'transition active :scale-90 ' ,
41
41
} ,
42
42
size : {
43
43
sm : 'h-8 rounded-md px-3' ,
@@ -50,13 +50,38 @@ export const buttonVariants = cva(
50
50
state : 'enabled' ,
51
51
intent : 'primary' ,
52
52
size : 'md' ,
53
- animation : 'none ' ,
53
+ animation : 'bouncy ' ,
54
54
} ,
55
55
compoundVariants : [
56
56
{
57
57
intent : 'primary' ,
58
58
look : [ 'outline' , 'ghost' ] ,
59
- class : 'text-primary' ,
59
+ class : 'text-primary hover:text-primary' ,
60
+ } ,
61
+ {
62
+ intent : 'secondary' ,
63
+ look : [ 'outline' , 'ghost' ] ,
64
+ class : 'text-secondary hover:text-secondary' ,
65
+ } ,
66
+ {
67
+ intent : 'danger' ,
68
+ look : [ 'outline' , 'ghost' ] ,
69
+ class : 'text-destructive hover:text-destructive' ,
70
+ } ,
71
+ {
72
+ intent : 'primary' ,
73
+ look : [ 'outline' ] ,
74
+ class : 'border-primary' ,
75
+ } ,
76
+ {
77
+ intent : 'secondary' ,
78
+ look : [ 'outline' ] ,
79
+ class : 'border-secondary' ,
80
+ } ,
81
+ {
82
+ intent : 'danger' ,
83
+ look : [ 'outline' ] ,
84
+ class : 'border-destructive' ,
60
85
} ,
61
86
] ,
62
87
} ,
0 commit comments