1 Commits

Author SHA1 Message Date
Jason Stedwell 9d7f593307 fix: danger Button uses text-bg, not white (v0.4.1)
ci / build-and-design (push) Failing after 10s
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>
2026-07-16 11:14:47 -05:00
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@jason/ui-kit", "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.", "description": "Shared design foundation \u2014 branded tokens, Tailwind preset, shadcn-style components, motion, app shell + marketing blocks. Guarded by Impeccable.",
"type": "module", "type": "module",
"license": "MIT", "license": "MIT",
+1 -1
View File
@@ -15,7 +15,7 @@ const buttonVariants = cva(
secondary: "bg-surface-2 text-text hover:bg-surface-2/70 shadow-sm", 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", outline: "border border-border bg-transparent text-text hover:bg-surface-2/60",
ghost: "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", link: "text-brand underline-offset-4 hover:underline",
}, },
size: { size: {