Stop Tailwind scanning ref strings, colour links in the user bubble

Tailwind read ref literals like [file:12] in prompts and docs as arbitrary-property utilities and emitted invalid CSS; those files hold no className, so they are excluded from the scan. Links in the user's ink bubble get a readable blue instead of the bubble's own ink, and the bubble no longer needs its own CSS class.
This commit is contained in:
2026-10-21 19:03:24 +01:00
parent d17a4a7bdd
commit f644772944
3 changed files with 20 additions and 3 deletions
+13
View File
@@ -1,5 +1,18 @@
@import "@moduletrace/twui/base.css";
/* Doc and prompt strings mention refs like `[file:12]`, which Tailwind would
read as an arbitrary-property utility and emit as `file: 12` (esbuild then
warns it is not a CSS property). None of these files holds a className. */
@source not "../../AGENTS.md";
@source not "../../db/**";
@source not "../**/*.test.ts";
@source not "../**/*.test.tsx";
@source not "../data/harness-prompts.ts";
@source not "../utils/file-ref.ts";
@source not "../utils/link-computer-refs.ts";
@source not "../harness/tools/storage/list-files-tool.ts";
@source not "../harness/tools/storage/storage-tool-context.ts";
/* Cobble design tokens (handoff `tokens/tokens.css`). Light on `:root`, dark
on `.dark` (twui's dark variant). Exposed to Tailwind in `@theme inline`. */
:root {