Skip to content

Commit 269bda5

Browse files
committed
style(button): primary/ai 变体挂载双光源材质类,文字色变量化
1 parent 45cfd0d commit 269bda5

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

‎client/src/components/ui/Button.tsx‎

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,7 @@ const buttonVariants = cva(
2020
variants: {
2121
variant: {
2222
primary: [
23-
'bg-brand-600 text-white',
24-
'hover:bg-brand-700 hover:shadow-md hover:shadow-brand-600/20',
25-
'active:bg-brand-800',
26-
'shadow-kb-sm',
23+
'kb-btn-primary-material text-[var(--primary-foreground)]',
2724
].join(' '),
2825
secondary: [
2926
'bg-bg-tertiary text-text-primary',
@@ -43,10 +40,7 @@ const buttonVariants = cva(
4340
'shadow-kb-sm',
4441
].join(' '),
4542
ai: [
46-
'bg-gradient-to-r from-accent-500 to-brand-500 text-white',
47-
'hover:from-accent-600 hover:to-brand-600',
48-
'hover:shadow-md hover:shadow-accent-500/20',
49-
'shadow-kb-sm',
43+
'kb-btn-ai-material text-[var(--primary-foreground)]',
5044
].join(' '),
5145
},
5246
size: {

0 commit comments

Comments
 (0)