mirror of
https://github.com/bitbaum/orangecat.git
synced 2026-12-05 05:48:12 +01:00
Truth-sweep of the living docs against repo ground truth (pnpm 11.25.0, Node 24, Vitest, zod 4, TS 6, Next 16/React 19, self-hosted Supabase with file-based migrations applied on deploy): - npm/npx commands -> pnpm / pnpm exec / pnpm dlx; `run X -- --flag` loses the `--`; package-lock.json -> pnpm-lock.yaml - jest -> Vitest (config names, vi.fn/vi.spyOn, reporter examples, debug commands, framework mentions) - retired mcp_supabase_* examples -> current mechanisms: PostgREST reads, migrations as supabase/migrations/*.sql applied on deploy, box psql for DDL - version claims: TypeScript 5.x -> 6.x, Node 20 -> 24, Next.js 15 -> 16, React 18 -> 19; CI described as Node 24 + pnpm - nonexistent scripts replaced with real ones (test:comprehensive:* -> test:*, diag:supabase -> scripts/diagnostics/*, db:migrate/test: migration -> deploy-applied migrations / migration-replay.yml) - infrastructure.md deploy claim fixed: cd.yml deploys main after green CI (doc said pushes to main do NOT deploy) - zod 4 API: z.record now takes key+value schemas Claude-Session: https://claude.ai/code/session_01WqKqMnHQHSmkGFfc5t7Rxn Co-authored-by: Georgy Butaev <41178744+g-but@users.noreply.github.com> Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2.5 KiB
2.5 KiB
OrangeCat Design System Standard
The product UI should feel like it belongs beside x.ai: sparse, precise, neutral-first, and calm. OrangeCat keeps its orange and Tiffany colors, but they are accents, not the page background language.
Source of Truth
- Shared visual class tokens live in
src/config/design-system.ts. - Semantic badge and stat colors live in
src/config/badge-colors.ts. - Legacy reusable gradient names live in
src/config/gradients.ts; most should resolve to neutral surfaces. - Global CSS variables and base element rules live in
src/app/globals.css. - Tailwind scale decisions live in
tailwind.config.ts.
Do not create a second local design system inside a page or feature folder. Extend these files when a reusable visual decision is missing.
Run pnpm run design:check before shipping UI changes. The check blocks the
legacy classes that caused the system to drift: page gradients, oversized
radii, heavy shadows, hard-coded white/gray colors, and non-semantic focus
colors.
Visual Rules
- Use neutral backgrounds first:
bg-background,bg-card,bg-muted, borders. - Use orange for OrangeCat/Bitcoin/action emphasis, and Tiffany for primary app accents. Avoid using both in the same small component unless the component is intentionally brand-signaling.
- Prefer borders over shadows. Shadows should be rare and subtle.
- Cards and controls stay at 8px radius or below.
- Avoid decorative gradients, tinted page bands, nested cards, and large rounded marketing panels in app surfaces.
- Use fixed typography sizes from Tailwind tokens. Do not introduce viewport width based font sizing.
- Keep letter spacing at
0.
Component Rules
- Use
src/components/ui/Button.tsxfor buttons and links styled as buttons. - Use
Cardonly for repeated items, modals, and genuinely framed tools. - Use
Input,Textarea, andSelectfor form controls so field styling, focus, error, label, and description states stay aligned. - Use
BadgeplusBADGE_COLORSfor status chips; do not hard-code ad hoc pill colors in page files.
Page Review Checklist
- Page background is neutral and not a gradient.
- Primary action is visually obvious without multiple competing accent colors.
- Repeated surfaces use the shared
Cardtreatment or an unframed layout. - Borders, radius, focus states, and field heights match shared primitives.
- No page-specific shadow scale, radius scale, or custom color ramp was added.
- Empty, loading, error, and disabled states use the same component language as the main state.