design-system-components

Build reusable UI components with Surface primitives, CVA variants, and design tokens.

11|4|Updated Feb 9, 2026
One-click install
npx skills add https://github.com/wpank/ai --skill design-system-components-wpank
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: design-system-components
Source: https://github.com/wpank/ai/tree/main/skills/design-systems/design-system-components
Command: npx skills add https://github.com/wpank/ai --skill design-system-components-wpank

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the creation of consistent, type-safe UI components by providing patterns for leveraging design tokens, CVA variants, and Surface primitives, reducing boilerplate and ensuring design integrity.

Core Features & Use Cases

  • Reusable Component Patterns: Offers pre-built structures for common UI elements like buttons, cards, and metrics.
  • Design Token Integration: Encourages and facilitates the use of design tokens for consistent styling.
  • Variant-based Styling: Implements class-variance-authority (CVA) for managing component variations (size, color, state).
  • Use Case: When building a new feature that requires a set of consistent buttons with different states (hover, disabled) and sizes, use the CVA button pattern to ensure uniformity and maintainability.

Quick Start

Use the design-system-components skill to generate a new button component using the provided CVA variants.

Frequently Asked Questions about design-system-components

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build reusable React UI components with design tokens?

Build reusable React UI components with design tokens by applying Surface primitives and CVA variants to enforce type-safe styling, modularity, and maintainability across your component library.

What is the best way to manage UI component variants like size and state in a design system?

Manage UI component variants by implementing class-variance-authority (CVA) to define type-safe configurations for size, color, and state, ensuring consistent styling and reducing boilerplate.

How do I create type-safe buttons with different states using CVA?

Create type-safe buttons with CVA by defining variant configurations for hover, disabled, and size states, leveraging Surface primitives and design tokens to guarantee uniformity and maintainability.

When do I need design tokens for styling frontend components?

You need design tokens for styling frontend components when requiring consistent visual properties across a design system, integrating them with CVA variants to reduce boilerplate and ensure design integrity.

Does this component pattern work without external dependencies?

Yes, this pattern works without external dependencies, providing pre-built reference structures for buttons, cards, and metrics using Surface primitives and CVA variants to facilitate consistent, type-safe styling.