fix: use plain CSS class for pill font size instead of Tailwind token

The @theme --text-pill token and text-[8px] arbitrary value both
failed to apply at dev time due to @tailwindcss/vite not generating
the utility rule during HMR. Use a plain .pill-trigger CSS class
in styles.css instead, which is always available regardless of
Tailwind's JIT scanner behavior.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
David Kaya
2026-03-25 20:40:10 +01:00
co-authored by Copilot
parent d6596efc11
commit 4797c9b30c
2 changed files with 12 additions and 7 deletions
+7 -2
View File
@@ -10,8 +10,6 @@
--color-accent: #6366f1;
--color-accent-hover: #818cf8;
--color-accent-muted: rgba(99, 102, 241, 0.15);
--text-pill: 0.5rem;
--text-pill--line-height: 1;
}
:root {
@@ -28,6 +26,13 @@
-moz-osx-font-smoothing: grayscale;
}
/* ── Inline pill trigger buttons ────────────────────────────── */
.pill-trigger {
font-size: 0.5rem;
line-height: 1;
}
/* ── Light mode colour overrides ────────────────────────────── */
[data-theme="light"] {