Start a fresh conversation. Replace the highlighted placeholders.
Use ui-component to implement [component name] in the StyleSeed project at [project path] with [required behavior and variants], following its existing design-system conventions and accessibility requirements.
Required inputs
[component name]
[project path]
[required behavior and variants]
User-approved starter prompt based on a pinned source version; check current skill requirements before running. Task evidence ↗
SKILL.md
name: ui-componentdescription: Generate a new UI component following the StyleSeed design conventionsrisk: criticalsource: https://github.com/bitjaru/styleseed/tree/main/engine/.claude/skills/ss-componentsource_repo: bitjaru/styleseedsource_type: communitydate_added: 2026-07-01license: MITlicense_source: https://github.com/bitjaru/styleseed/blob/main/LICENSE
UI Component Generator
When to Use
Use this skill when you need generate a new UI component following the StyleSeed design conventions.
When NOT to use
For full-page scaffolding → use /ss-page
For composed multi-component patterns → use /ss-pattern
For tweaking an existing component — just edit the file directly
For non-StyleSeed projects (no components/ui/ directory or no Tailwind v4)
Generate a new component: $0
Description: $ARGUMENTS
Instructions
First, read the design system seed for context:
Read CLAUDE.md for component conventions
Read css/theme.css for available design tokens
Read components/ui/button.tsx as a reference pattern
Follow these conventions strictly:
Use function declaration (not const)
Add data-slot="component-name" attribute
Use cn() from @/components/ui/utils for all className merging
Use React.ComponentProps<> for prop typing
Always support className prop for overrides
Use CVA (class-variance-authority) if the component has variants
Use semantic color tokens (bg-card, text-foreground) — never inline hex
Use ms-*/me-* instead of ml-*/mr-* (logical properties)
Accessibility requirements:
Minimum touch target: 44x44px (min-h-11 min-w-11)
Support aria-* attributes passthrough
Use focus-visible:ring-2 focus-visible:ring-ring for keyboard focus
Respect prefers-reduced-motion for animations
Export the component as a named export (not default)
Place the file in the appropriate directory:
Primitive/reusable → src/components/ui/
Composed pattern → src/components/patterns/
Example
User request:
Generate a new UI component following the StyleSeed design conventions.
Limitations
Use this skill only when the task clearly matches its upstream source and local project context.
Verify commands, generated code, dependencies, credentials, and external service behavior before applying changes.
Do not treat examples as a substitute for environment-specific tests, security review, or user approval for destructive or costly actions.
Execution boundaries
This guide targets an existing StyleSeed project. The listed project paths, components, tokens and /ss-* commands are not bundled in this single-file entrypoint. Discover the actual project root and verify those prerequisites before edits; report absent resources instead of inventing them. Use host-supported invocation and existing project conventions. Layout numbers are design-system choices, not universal usability guarantees. Test keyboard access, responsive overflow and reduced motion on the actual interface.