fix(plugin-kit): resolve the --secondary text/surface collision in theme.css (0.1.2)

@unom/ui reads --secondary as muted TEXT; this palette (like the console's) uses
it as a dark SURFACE, so EmptyState captions, badge text and table headers
rendered dark-on-dark. Tailwind derives both utilities from one token, so the
text lane is re-pointed at --muted-foreground here — once, for every plugin,
instead of in each plugin's stylesheet.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-20 19:44:01 +02:00
co-authored by Claude Fable 5
parent 34ec57cb52
commit d833cff470
2 changed files with 12 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@punktfunk/plugin-kit",
"version": "0.1.1",
"version": "0.1.2",
"description": "Effect-based framework for punktfunk plugins: lifecycle runtime, config/state, sync engine, UI serving, CLI scaffold, and browser helpers.",
"type": "module",
"license": "MIT OR Apache-2.0",
+11
View File
@@ -239,3 +239,14 @@
"calt" 1;
}
}
/* ── One vocabulary collision, resolved ──────────────────────────────────────
@unom/ui reads `--secondary` as muted TEXT (its own theme sets a mid-grey, used
for EmptyState captions, badge text, table headers); this palette — like the
console's — uses `--secondary` as a dark SURFACE (`bg-secondary`). Tailwind
derives both utilities from the same `--color-secondary`, so the text lane has
to be re-pointed here or every caption renders dark-on-dark. Unlayered on
purpose: unlayered rules beat Tailwind's layered utility of equal specificity. */
.text-secondary {
color: var(--muted-foreground);
}