shadcn-ui-best-practices
SKILL.md
shadcn-ui Best Practices
This guide covers best practices for working with shadcn-ui components in this Vite + React + TypeScript boilerplate.
Core Principles
1. Never Modify components/ui/ Directly
CRITICAL RULE: Components in src/components/ui/ are base primitives generated by shadcn-ui CLI. Never edit these files directly.
Why?
- These files can be regenerated or updated by the CLI
- Manual changes will be lost when updating components
- Breaking the abstraction makes maintenance difficult
What to do instead: Compose new components in src/components/shared/ that use these primitives.