White on the danger fill lands ~3.3:1 against tuned dark-theme danger tokens (e.g. delta's rust at 58% lightness) — below AA for 14px labels. text-bg follows the primary variant's own pattern (bg-brand text-bg) and holds ≥4.5:1 on both the kit default and delta's tokens. Co-Authored-By: Claude Fable 5 <[email protected]>
This commit is contained in:
co-authored by
Claude Fable 5
parent
27d8225369
commit
9d7f593307
@@ -15,7 +15,7 @@ const buttonVariants = cva(
|
||||
secondary: "bg-surface-2 text-text hover:bg-surface-2/70 shadow-sm",
|
||||
outline: "border border-border bg-transparent text-text hover:bg-surface-2/60",
|
||||
ghost: "bg-transparent text-text hover:bg-surface-2/60",
|
||||
danger: "bg-danger text-white hover:bg-danger/90 shadow-sm",
|
||||
danger: "bg-danger text-bg hover:bg-danger/90 shadow-sm",
|
||||
link: "text-brand underline-offset-4 hover:underline",
|
||||
},
|
||||
size: {
|
||||
|
||||
Reference in New Issue
Block a user