refactor(ui): clarify semantic color roles

This commit is contained in:
Maofeng
2026-09-29 17:08:03 +08:00
parent c39d131a86
commit d5cec8342d
23 changed files with 70 additions and 69 deletions
+2 -2
View File
@@ -9,7 +9,7 @@ const badgeVariants = cva(
{
variants: {
variant: {
default: "bg-primary text-primary-foreground [a]:hover:bg-primary/80",
default: "bg-accent text-accent-foreground [a]:hover:bg-accent/80",
secondary:
"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",
destructive:
@@ -18,7 +18,7 @@ const badgeVariants = cva(
"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",
ghost:
"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",
link: "text-primary underline-offset-4 hover:underline",
link: "text-accent underline-offset-4 hover:underline",
},
},
defaultVariants: {