shadcn

AI Community

Skill notes

Current Project Context

The JSON above contains the project config and installed components. Use npx shadcn@latest docs <component> to get documentation and example URLs for any component.

Principles

Use existing components first. Use npx shadcn@latest search to check registries before writing custom UI. Check community registries too. Compose, don't reinvent. Settings page = Tabs + Card + form controls. Dashboard = Sidebar + Card + Chart + Table. Use built-in variants before custom styles. variant="outline", size="sm", etc. Use semantic colors. bg-primary, text-muted-foreground — never raw values like bg-blue-500.

Critical Rules

These rules are always enforced. Each links to a file with Incorrect/Correct code pairs.

Styling & Tailwind → styling.md

className for layout, not styling. Never override component colors or typography. No space-x-* or space-y-*. Use flex with gap-*. For vertical stacks, flex flex-col gap-*. Use size-* when width and height are equal. size-10 not w-10 h-10. Use truncate shorthand. Not overflow-hidden text-ellipsis whitespace-nowrap. No manual dark: color overrides. Use semantic tokens (bg-background, text-muted-foreground).

Forms & Inputs → forms.md

Forms use FieldGroup + Field. Never use raw div with space-y-* or grid gap-* for form layout. InputGroup uses InputGroupInput/InputGroupTextarea. Never raw Input/Textarea inside InputGroup. Buttons inside inputs use InputGroup + InputGroupAddon. Option sets (2–7 choices) use ToggleGroup. Don't loop Button with manual active state. FieldSet + FieldLegend for grouping related checkboxes/radios. Don't use a div with a heading.

Fluxly profile Runtime and permissions are inferred by Fluxly static checks, not author declarations or runtime test results.
Domain
AI
Author-declared agents
No explicit declaration found; this is not inferred or tested compatibility
Static check
94 / 100 · heuristic scan, not runtime safety proof
Runtime evidence
Not run; no isolated runtime test evidence is currently recorded
Author / version / license
@remeda · MIT
Token usage
Lean
Setup complexity
Guided setup
External API key
Not required
Operating systems
macOS · Linux · Windows
Runtime requirements
Bun
Detected file/system behavior
  • Read-only
  • Write / modify
Network behavior
External requests
Install commands
None (reference only)

Heads up: Tool permissions are not declared; actual access depends on the runtime.

Output preview shadcn.preview
# Component Docs, Examples, and Usage

npx shadcn@latest docs button dialog select

Discussion

Powered by GitHub Discussions. Sign in with GitHub to comment, react, or subscribe.