frontend-design-systems

Build consistent React UI components using design tokens and component patterns.

Updated May 16, 2026
One-click install
npx skills add https://github.com/organvm-i-theoria/_agent-ontology --skill frontend-design-systems-organvm-i-theoria
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: frontend-design-systems
Source: https://github.com/organvm-i-theoria/_agent-ontology/tree/main/.agents/skills/frontend-design-systems
Command: npx skills add https://github.com/organvm-i-theoria/_agent-ontology --skill frontend-design-systems-organvm-i-theoria

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Frontend teams often produce inconsistent UI because colors, spacing, and typography are hardcoded ad hoc across components. This Skill provides a systematic approach to defining design tokens and building reusable component libraries so interfaces stay consistent and maintainable. ## Core Features & Use Cases - Design Token Systems: Define color palettes, spacing scales, and typography systems as reusable TypeScript tokens and CSS custom properties. - Component Patterns: Implement base components, compound components (Card.Header/Card.Body), polymorphic components, and CVA-based variant systems. - Accessibility & State Patterns: Apply focus management, keyboard navigation, and controlled/uncontrolled form state patterns. - Use Case: When starting a new React application, use this Skill to define a complete token set, generate a Button component with variants and sizes, and structure a component library folder hierarchy. ## Quick Start Ask the AI to create a design token system with colors, spacing, and typography, then build a Button component with primary, secondary, and outline variants.

Frequently Asked Questions about frontend-design-systems

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

FAQPage Schema
How do I create a design token system in React?▼

Define tokens as TypeScript objects for colors, spacing, and typography, then expose them as CSS custom properties. Components reference tokens via var(--color-primary-500) or styled utilities, ensuring consistent values across the entire UI.

How to build a Button component with variants in React?▼

Use a variant prop mapped to style classes, or use class-variance-authority (CVA) to define variant and size combinations with default variants. This produces type-safe components like Button with primary, secondary, outline, and destructive styles.

What is the compound component pattern in React?▼

Compound components attach subcomponents to a parent, such as Card.Header, Card.Body, and Card.Footer. This gives consumers flexible composition while the parent controls shared structure and styling.

Should I use controlled or uncontrolled form components?▼

Use controlled components when the parent must manage and validate state, and uncontrolled when the component manages its own state internally. A hybrid pattern checks whether a value prop is defined to support both modes.

How do I make modal dialogs accessible in React?▼

Add role="dialog" and aria-modal="true", move focus into the dialog when it opens, trap focus among focusable elements, and close on the Escape key. Query focusable elements like buttons, inputs, and links to manage the focus order.

When should I not build a custom design system?▼

Avoid building a custom system for small projects or prototypes where an existing library suffices. Custom systems require ongoing token governance, documentation, and dark mode support, which adds maintenance overhead.