Receber por email
← Voltar para o catálogo

ss-component

Generate a new UI component following the StyleSeed design conventions

555estrelas
Atualizado há 4 meses

Ver no GitHub ↗ Licença: MIT

Como adicionar

/plugin marketplace add bitjaru/styleseed

O comando exato pode variar conforme o repositório. Confira o README no GitHub.

Para o autor da skill

Cole no README do seu repo

Mostra que sua skill está catalogada na Skillteca, gera backlink e tráfego rastreável.

[![Skillteca](https://www.skillteca.com.br/api/badge/ss-component/svg)](https://www.skillteca.com.br/skills/ss-component)

Alerta por categoria

Receba novas skills de Design e Frontend toda segunda

1 email curto, só com as skills novas de Design e Frontend. 4 minutos de leitura, sem spam, cancela com 1 clique.

Você confirma o email no primeiro envio. Sem spam. Cancela com 1 clique.

Ler descrição completa

UI Component Generator

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 design system seed for context:
  2. Read CLAUDE.md for component conventions
  3. Read css/theme.css for available design tokens
  4. Read components/ui/button.tsx as a reference pattern
  1. Follow these conventions strictly:
  2. Use function declaration (not const)
  3. Add data-slot="component-name" attribute
  4. Use cn() from @/components/ui/utils for all className merging
  5. Use React.ComponentProps<> for prop typing
  6. Always support className prop for overrides
  7. Use CVA (class-variance-authority) if the component has variants
  8. Use semantic color tokens (bg-card, text-foreground) — never inline hex
  1. Design token usage:
  2. Colors: text-foreground, bg-card, text-brand, text-muted-foreground, border-border
  3. Shadows: shadow-[var(--shadow-card)], shadow-[var(--shadow-elevated)]
  4. Radius: rounded-md, rounded-lg, rounded-2xl
  5. Spacing: multiples of 6px (p-1.5, p-3, p-6)
  6. Motion: duration-[var(--duration-fast)], ease-[var(--ease-default)]
  1. Typography rules:
  2. Display (36-48px): leading-none tracking-[-0.02em]
  3. Heading (18-24px): leading-snug tracking-[-0.01em]
  4. Body (14-17px): leading-normal (default tracking)
  5. Caption uppercase (10-13px): tracking-[0.05em]
  6. Use size- shorthand instead of w- h-*
  7. Use ms-/me- instead of ml-/mr- (logical properties)
  1. Accessibility requirements:
  2. Minimum touch target: 44x44px (min-h-11 min-w-11)
  3. Support aria-* attributes passthrough
  4. Use focus-visible:ring-2 focus-visible:ring-ring for keyboard focus
  5. Respect prefers-reduced-motion for animations
  1. Export the component as a named export (not default)
  1. Place the file in the appropriate directory:
  2. Primitive/reusable → src/components/ui/
  3. Composed pattern → src/components/patterns/
Compartilhar X LinkedIn