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 <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@jason/ui-kit",
|
||||
"version": "0.4.0",
|
||||
"version": "0.4.1",
|
||||
"description": "Shared design foundation \u2014 branded tokens, Tailwind preset, shadcn-style components, motion, app shell + marketing blocks. Guarded by Impeccable.",
|
||||
"type": "module",
|
||||
"license": "MIT",
|
||||
|
||||
@@ -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