1.3 KiB
1.3 KiB
name, description
| name | description |
|---|---|
| design-system-rules | Project design-system rules for AUT Open Education: shadcn/ui + Tailwind only. Use when changing UI, styling, colors, cards, navigation, forms, or loading states. Read docs/design-system-rules.md and skill shadcn-ui before visual work. |
Design System Rules
Instructions
- Before any UI change, read:
docs/design-system-rules.md- skill
shadcn-ui(.agents/skills/shadcn-ui/SKILL.md) - Theme:
src/app/globals.css(shadcn CSS variables only)
- Build from
@/components/ui/*+ Tailwind. Add missing pieces withnpx shadcn@latest add. - Colors:
bg-primary,text-muted-foreground,bg-muted,bg-chart-3— neverds-*or--brand-*. - Extract substantial UI into molecules/organisms; keep pages thin (
.cursor/rules/ui-architecture.mdc). - Material Design skill is methodology only — do not replace AUT colors mapped into shadcn tokens.
- Complete the checklist in §4 of
docs/design-system-rules.mdbefore finishing.
Anti-patterns
- Reviving
.ds-*utilities or--brand-*parallel tokens - Inventing new hex in components (use theme vars / SVG
var(--accent)) - Full section border boxes when
Card/Separator/ spacing suffice - Physical
ml/mr/pl/pron RTL without an LTR island