Skip to content
ss-component logo

UI Component Generator

ss-component

Generate a new UI component following the StyleSeed design conventions

bitjaru/styleseed0installs967stars

SKILL.md

Full skill instructions

UI Component Generator

Registry-first artifact boundary

When .styleseed/​project.json and .styleseed/​artifacts/​index.json exist, resolve the requested artifact ID first, then read only .styleseed/​bundles/<artifact-id>.md and .styleseed/​manifests/<artifact-id>.json. Never fall back to the global legacy bundle for a registry project. Legacy projects may use .styleseed/​effective-rules.md only when no registry exists.

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

  1. First, read the compiled design method:

    • Read .styleseed/​effective-rules.md and .styleseed/​manifest.json; resolve if stale
    • Read css/​theme.css for available design tokens
    • Read css/​recipes.css for morphology variables and helper classes
    • Read components/​ui/​button.tsx as a reference pattern
  2. 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
  3. Design token usage:

    • Colors: text-foreground, bg-card, text-brand, text-muted-foreground, border-border
    • Pattern surfaces: ss-pattern-surface; insets/​controls/​icons use the matching ss-* class
    • Primitives use the project token scale; do not hardcode one radius or shadow personality
    • Spacing follows one repeatable selected-recipe rhythm
    • Motion: duration-[var(--duration-fast)], ease-[var(--ease-default)]
  4. Typography rules:

    • Display (36-48px): leading-none tracking-[-0.02em]
    • Heading (18-24px): leading-snug tracking-[-0.01em]
    • Body (14-17px): leading-normal (default tracking)
    • Caption uppercase (10-13px): tracking-[0.05em]
    • Use size-* shorthand instead of w-* h-*
    • Use ms-*/​me-* instead of ml-*/​mr-* (logical properties)
  5. 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
  6. Export the component as a named export (not default)

  7. Place the file in the appropriate directory:

    • Primitive/​reusable → src/​components/​ui/
    • Composed pattern → src/​components/​patterns/

More skills from bitjaru

ss-copy logo
bitjaru/styleseed

ss-copy

Generate UX microcopy (button labels, error messages, empty states, toasts) following a casual-but-polite voice and tone

967 0
View
ss-lint logo
bitjaru/styleseed

ss-lint

Quick automated lint — detects common design system violations in seconds

967 0
View
ss-feedback logo
bitjaru/styleseed

ss-feedback

Add appropriate user feedback states (loading, success, error, empty) to a component or page

967 0
View
ss-pattern logo
bitjaru/styleseed

ss-pattern

Generate a composed UI pattern (card layout, list, form section, grid, etc.) using design system primitives

967 0
View
ss-audit logo
bitjaru/styleseed

ss-audit

Audit screens for UX issues using Nielsen's heuristics and modern mobile UX best practices

967 0
View
ss-setup logo
bitjaru/styleseed

ss-setup

Interactive setup wizard — guides you step-by-step to configure the design system for your project

967 0
View
ss-a11y logo
bitjaru/styleseed

ss-a11y

Audit a component or page for accessibility issues and fix them

967 0
View
ss-flow logo
bitjaru/styleseed

ss-flow

Design user flows and navigation structure following proven UX patterns

967 0
View
ss-update logo
bitjaru/styleseed

ss-update

Update StyleSeed engine in your project — analyzes what's outdated and updates safely

967 0
View
ss-tokens logo
bitjaru/styleseed

ss-tokens

View, add, or modify design tokens in the StyleSeed design system

967 0
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View