About building-components
A skill for designing and building UI components, aimed at developers creating accessible, composable component systems. It covers component patterns from API design and state to theming, distribution, and documentation.
Key features
- 01Component taxonomy and design principles
- 02Accessibility and keyboard navigation
- 03Composable APIs and polymorphism
- 04State and TypeScript patterns
- 05Design tokens and styling
- 06Registry, npm, and documentation guidance
Use cases
- 01Building accessible UI primitives and components
- 02Designing controlled or composable component APIs
- 03Creating a token-based theme
- 04Publishing and documenting a component library
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ kokonut-labs/ kokonutui --skill building-componentsAfter installing, type/building-componentsin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
references/accessibility.mdxas-child.mdxcomposition.mdxdata-attributes.mdxdefinitions.mdxdesign-tokens.mdxdocs.mdxmarketplaces.mdxnpm.mdxpolymorphism.mdxprinciples.mdxregistry.mdxstate.mdxstyling.mdxtypes.mdxDetails
From the project READMEBuilding Components
When to use this skill
Use when the user is:
- Building new UI components (primitives, components, blocks, templates)
- Implementing accessibility features (ARIA, keyboard navigation, focus management)
- Creating composable component APIs (slots, render props, controlled/uncontrolled state)
- Setting up design tokens and theming systems
- Publishing components to npm or a registry
- Writing component documentation
- Implementing polymorphism or as-child patterns
- Working with data attributes for styling/state
References
- definitions.mdx - Artifact taxonomy (primitives, components, blocks, templates)
- principles.mdx - Core principles for component design
- accessibility.mdx - ARIA, keyboard navigation, WCAG compliance
- composition.mdx - Composable component patterns
- as-child.mdx - The as-child pattern for element polymorphism
- polymorphism.mdx - Polymorphic component patterns
- types.mdx - TypeScript typing patterns for components
- state.mdx - Controlled vs uncontrolled state management
- data-attributes.mdx - Using data attributes for styling and state
- design-tokens.mdx - Design token systems and theming
- styling.mdx - Component styling approaches
- registry.mdx - shadcn-style registry distribution
- npm.mdx - Publishing components to npm
- marketplaces.mdx - Component marketplace distribution
- docs.mdx - Writing component documentation
Comments
Markdown supported