From 9d7f5933073d40e352526dffa63ad076e4caa741 Mon Sep 17 00:00:00 2001 From: Jason Stedwell Date: Thu, 16 Jul 2026 11:14:47 -0500 Subject: [PATCH] fix: danger Button uses text-bg, not white (v0.4.1) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- package.json | 2 +- src/components/button.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 1a89d00..1686561 100755 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/components/button.tsx b/src/components/button.tsx index 2282acb..7725369 100755 --- a/src/components/button.tsx +++ b/src/components/button.tsx @@ -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: {