Skip to content
12 changes: 6 additions & 6 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ cd src-tauri && cargo clippy # lint Rust code

All UI work **must** follow `DESIGN_SYSTEM.md`. Key rules:

- **Colors**: Use the documented palette tokens — warm ink tones (`#10212e` base) with teal accent (`#2e6b63`). Do not introduce new brand colors.
- **Buttons**: Three variants only — `primary-button` (gradient CTA), `ghost-button` (secondary), `danger-button` (destructive). One primary button per visible form section. Pill radius (`999px`) for all standard buttons.
- **Inputs**: Always use `<Input>`, `<Textarea>`, `<Select>` from `FormControls.tsx`. Radius `14px`, focus ring teal. Never use native elements directly.
- **Colors**: Use the documented palette tokens — warm ink tones (`#1c1917` base) with teal accent (`#2e7a6e`). Do not introduce new brand colors.
- **Buttons**: Three variants only — `primary-button` (solid flat teal), `ghost-button` (secondary), `danger-button` (destructive). One primary button per visible form section. Pill radius (`999px`) for all standard buttons.
- **Inputs**: Always use `<Input>`, `<Textarea>`, `<Select>` from `FormControls.tsx`. Focus ring teal. Never use native elements directly.
- **Toast**: Bottom-right, one at a time, auto-dismiss 3s. Two variants: `toast-success` / `toast-error`. Prefix with `✓` / `✗`.
- **Typography**: Serif (`Iowan Old Style`) for feature headings, sans-serif (`Avenir Next`) for UI, monospace (`SF Mono`) for code/paths. Do not add new font stacks.
- **Cards**: Semi-transparent white (`rgba(255,255,255,0.74)`), radius `20px`. Glass-morphism (`backdrop-filter: blur`) only on the topbar.
- **Modals**: Use `ModalShell` component. Radius `24px`, warm off-white surface. Dismiss via Escape + backdrop click.
- **Typography**: Sans-serif (`Avenir Next`) for all text, monospace (`SF Mono`) for code/paths. No serif fonts. Do not add new font stacks.
- **Cards**: Warm white (`#fefdfb`), radius `12px`, border only, no shadow. No glass-morphism, no `backdrop-filter`.
- **Modals**: Use `ModalShell` component. Radius `12px`, minimal shadow. Dismiss via Escape + backdrop click.
- **Spacing**: 2px base grid. Common stops: 6, 8, 10, 12, 14, 20, 24px. Follow existing patterns.
- **Transitions**: Buttons `140ms ease`, list items `100ms ease`, slide-out `180ms ease-out`.
- **Dark mode**: Supports Light / Dark / System. All colors use CSS custom properties (`var(--token)`). When adding new UI, always use existing tokens from `:root` — never hardcode colors. Verify new pages/components look correct in both light and dark mode.
Expand Down
Loading
Loading