From 791d7e2f696e6f33e3be7039a54b31580ad0ede8 Mon Sep 17 00:00:00 2001 From: limiteinductive Date: Sun, 29 Mar 2026 19:50:04 +0200 Subject: [PATCH] fix: Dockerfile stub binary not replaced, design system rules - remove stub colony binary after dep cache so cargo rebuilds with real source - expand .claude/rules/frontend.md with full design system enforcement - mandatory: semantic tokens, shadcn components, Tailwind only, mobile-first - forbidden: inline styles, custom CSS, arbitrary colors, raw HTML elements Co-Authored-By: Claude Opus 4.6 (1M context) --- .claude/rules/frontend.md | 40 ++++++++++++++++++++++++++++++++++++++- infra/colony/Dockerfile | 3 ++- 2 files changed, 41 insertions(+), 2 deletions(-) diff --git a/.claude/rules/frontend.md b/.claude/rules/frontend.md index 327ca4d..93b6c7e 100644 --- a/.claude/rules/frontend.md +++ b/.claude/rules/frontend.md @@ -3,4 +3,42 @@ paths: - "ui/**" --- -When working on frontend code, always use the `/frontend-design` skill for component design, layout decisions, and UI implementation. +## Design System Rules + +**Stack:** React + Tailwind CSS + shadcn/ui. No exceptions. + +**Use the `/frontend-design` skill** for all component design and layout decisions. + +### Mandatory +- All styling via Tailwind utility classes +- Use shadcn/ui components from `@/components/ui/` — run `npx shadcn@latest add ` to install new ones +- Use semantic color tokens: `bg-background`, `text-foreground`, `bg-card`, `text-muted-foreground`, `border-border`, etc. +- Use theme spacing: Tailwind's default scale (p-2, p-3, p-4, gap-2, etc.) +- Mobile-first: base classes for mobile, `md:` for desktop overrides +- Touch targets: min 44px on mobile (`min-h-[44px] min-w-[44px]`) +- Use `cn()` from `@/lib/utils` for conditional classes + +### Forbidden +- No `style={}` JSX props +- No `