managarten/.claude/guidelines
Till JS fc028fa8f0 chore(lint): audit:theme-tokens guard against bare --muted / --theme-* drift
Three naming conventions had drifted through the monorepo (--muted, --theme-*,
--color-*). Only the last is defined in the Mana theme; the others silently
fell back to nothing and stopped tracking theme variants. Today's cleanup
migrated ~100 files, but nothing stopped the drift from creeping back.

- scripts/audit-theme-tokens.mjs scans ~3k source files and fails if any
  references a bare shadcn token or a --theme-* prefix, with an allowlist
  for known-literal module brand colors (news-research, agent templates)
- wire into pnpm script and lint-staged (runs once per commit touching
  *.{svelte,css}, ignores per-file args)
- design-ux.md guideline: fix stale --color-destructive entry (Mana uses
  --color-error), add explicit "never bare tokens" warning with examples

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-16 00:58:13 +02:00
..
authentication.md docs(auth): add Auth UX Patterns section with email verification rules 2026-03-31 18:51:04 +02:00
code-style.md chore: remove all NestJS backend references, replace with Hono/Bun 2026-03-31 16:52:25 +02:00
database.md fix(todo): use TEXT for user_id columns (Better Auth compatibility) 2025-12-09 16:24:22 +01:00
design-ux.md chore(lint): audit:theme-tokens guard against bare --muted / --theme-* drift 2026-04-16 00:58:13 +02:00
error-handling.md 💄 style: apply prettier formatting across codebase 2025-12-03 02:02:09 +01:00
expo-mobile.md 💄 style: apply prettier formatting across codebase 2025-12-03 02:02:09 +01:00
hono-server.md refactor: rename nutriphi module to food (Essen) 2026-04-14 15:30:07 +02:00
sveltekit-web.md refactor: rename zitare -> quotes (Zitate) 2026-04-14 20:59:16 +02:00
testing.md chore: remove all NestJS backend references, replace with Hono/Bun 2026-03-31 16:52:25 +02:00