UI Component
Overview
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.
When to Use
- Use when you need a new UI primitive or composed component inside a StyleSeed-based project
- Use when you want a component to match the existing Toss seed conventions
- Use when a component should be reusable, typed, and design-token driven
- Use when the AI might otherwise invent spacing, colors, or interaction patterns
How It Works
Step 1: Read the Local Design Context
Before generating code, inspect the seed's source of truth:
CLAUDE.md for conventions
css/theme.css for semantic tokens
- at least one representative component from
components/ui/
If the user already has a better local example, follow the local codebase over a generic template.
Step 2: Choose the Correct Home
Place the output where it belongs:
src/components/ui/ for primitives and low-level building blocks
src/components/patterns/ for composed sections or multi-part patterns
Do not create a new primitive if an existing one can be extended safely.
Step 3: Follow the Structural Rules
Use these defaults unless the host project strongly disagrees:
- function declaration instead of a
const component
React.ComponentProps<> or equivalent native prop typing
className passthrough support
cn() or the project's standard class merger
data-slot for component identification
- CVA or equivalent only when variants are genuinely needed
Step 4: Use Semantic Tokens Only
Do not hardcode visual values if the design system has a token for them.
Preferred examples:
bg-card
text-foreground
text-muted-foreground
border-border
shadow-[var(--shadow-card)]
Step 5: Preserve StyleSeed Typography and Spacing
- Use the scale already defined by the seed
- Prefer multiples of 6px
- Use logical spacing utilities where supported
- Keep display and heading text tight, body text readable, captions restrained
Step 6: Bake in Accessibility
- Touch targets should be at least 44x44px for interactive elements
- Keyboard focus must be visible
- Pass through
aria-* attributes where appropriate
- Respect reduced-motion preferences for nonessential motion
Output
Provide:
- The generated component
- The target path
- Any required imports or dependencies
- Notes on variants, tokens, or follow-up integration work
Best Practices
- Compose from existing primitives before inventing new ones
- Keep the component API small and predictable
- Prefer semantic layout classes over arbitrary values
- Export named components unless the host project uses another standard consistently
Additional Resources
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
1---2name: ui-component3description: "Generate a new UI component that follows StyleSeed Toss conventions for structure, tokens, accessibility, and component ergonomics."4version: 1.0.05author:6 name: "sickn33 / Antigravity Community"7 github: sickn338tags: [component, design]9category: design10platforms: [macos, linux, windows]11license: MIT12metadata:13 hermes:14 source: https://skillmd.com/skills/nous-hermeshub/ui-component15 upstream: "antigravity-awesome-skills"16 risk: "safe"17 date_added: "2026-04-08"18 original_author: "Antigravity Community"19---2021# UI Component2223## Overview2425Part of [StyleSeed](https://github.com/bitjaru/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.2627## When to Use28- Use when you need a new UI primitive or composed component inside a StyleSeed-based project29- Use when you want a component to match the existing Toss seed conventions30- Use when a component should be reusable, typed, and design-token driven31- Use when the AI might otherwise invent spacing, colors, or interaction patterns3233## How It Works3435### Step 1: Read the Local Design Context3637Before generating code, inspect the seed's source of truth:38- `CLAUDE.md` for conventions39- `css/theme.css` for semantic tokens40- at least one representative component from `components/ui/`4142If the user already has a better local example, follow the local codebase over a generic template.4344### Step 2: Choose the Correct Home4546Place the output where it belongs:47- `src/components/ui/` for primitives and low-level building blocks48- `src/components/patterns/` for composed sections or multi-part patterns4950Do not create a new primitive if an existing one can be extended safely.5152### Step 3: Follow the Structural Rules5354Use these defaults unless the host project strongly disagrees:55- function declaration instead of a `const` component56- `React.ComponentProps<>` or equivalent native prop typing57- `className` passthrough support58- `cn()` or the project's standard class merger59- `data-slot` for component identification60- CVA or equivalent only when variants are genuinely needed6162### Step 4: Use Semantic Tokens Only6364Do not hardcode visual values if the design system has a token for them.6566Preferred examples:67- `bg-card`68- `text-foreground`69- `text-muted-foreground`70- `border-border`71- `shadow-[var(--shadow-card)]`7273### Step 5: Preserve StyleSeed Typography and Spacing7475- Use the scale already defined by the seed76- Prefer multiples of 6px77- Use logical spacing utilities where supported78- Keep display and heading text tight, body text readable, captions restrained7980### Step 6: Bake in Accessibility8182- Touch targets should be at least 44x44px for interactive elements83- Keyboard focus must be visible84- Pass through `aria-*` attributes where appropriate85- Respect reduced-motion preferences for nonessential motion8687## Output8889Provide:901. The generated component912. The target path923. Any required imports or dependencies934. Notes on variants, tokens, or follow-up integration work9495## Best Practices9697- Compose from existing primitives before inventing new ones98- Keep the component API small and predictable99- Prefer semantic layout classes over arbitrary values100- Export named components unless the host project uses another standard consistently101102## Additional Resources103104- [StyleSeed repository](https://github.com/bitjaru/styleseed)105- [Source skill](https://github.com/bitjaru/styleseed/blob/main/seeds/toss/.claude/skills/ui-component/SKILL.md)106107## Limitations108- Use this skill only when the task clearly matches the scope described above.109- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.110- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.