Generate a new UI component that follows StyleSeed Toss conventions for structure, tokens, accessibility, and component ergonomics.
Part of StyleSeed, this skill generates components that respect the Toss seed's design language instead of improvising ad hoc markup and styling. It emphasizes semantic tokens, predictable typing, reusable variants, and mobile-friendly accessibility defaults.
Before generating code, inspect the seed's source of truth:
CLAUDE.md for conventionscss/theme.css for semantic tokenscomponents/ui/If the user already has a better local example, follow the local codebase over a generic template.
Place the output where it belongs:
src/components/ui/ for primitives and low-level building blockssrc/components/patterns/ for composed sections or multi-part patternsDo not create a new primitive if an existing one can be extended safely.
Use these defaults unless the host project strongly disagrees:
const componentReact.ComponentProps<> or equivalent native prop typingclassName passthrough supportcn() or the project's standard class mergerdata-slot for component identificationDo not hardcode visual values if the design system has a token for them.
Preferred examples:
bg-cardtext-foregroundtext-muted-foregroundborder-bordershadow-[var(--shadow-card)]aria-* attributes where appropriateProvide: