design-system

Define design tokens, component architecture, and accessibility standards for web applications.

1|Updated Jul 4, 2023
One-click install
npx skills add https://github.com/alkalisummer/nextjs-keylog --skill design-system-alkalisummer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: design-system
Source: https://github.com/alkalisummer/nextjs-keylog/tree/main/.claude/skills/design-system
Command: npx skills add https://github.com/alkalisummer/nextjs-keylog --skill design-system-alkalisummer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a comprehensive framework for establishing and implementing robust design systems, ensuring visual consistency, scalability, and accessibility across applications.

Core Features & Use Cases

  • Design Token System: Define and manage foundational design elements like colors, spacing, typography, and elevation.
  • Component Architecture: Guide the creation of reusable UI components with clear patterns and APIs.
  • Dark Mode & Theming: Implement seamless light and dark mode switching.
  • Accessibility Standards: Ensure components meet accessibility requirements for focus, contrast, and touch targets.
  • Use Case: A team is building a new web application and needs to establish a consistent visual language and reusable UI components. This Skill provides the guidelines and examples to create a design system from scratch, including tokens, component structure, and theming.

Quick Start

Use the design-system skill to generate CSS variables for a spacing scale starting with 4px and increasing by 4px increments.

Frequently Asked Questions about design-system

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

FAQPage Schema
How do I build a scalable design system with React and CSS custom properties?

To build a scalable design system, this framework provides guidelines for defining design tokens via CSS custom properties and structuring React components with clear variant and state APIs. It ensures visual consistency and reusability across modern web applications.

What is the best way to define design tokens for UI consistency and theming?

Defining design tokens establishes foundational UI elements like colors, spacing, typography, and elevation as variables. This approach enables seamless light and dark mode theming while maintaining strict visual consistency across your application.

How do I integrate Storybook documentation into a UI component architecture?

Integrating Storybook documentation is achieved by following the component architecture patterns provided for React implementation. The framework guides you in creating reusable UI components with clear APIs and demonstrates how to document them effectively for team scalability.

Does this design system framework cover accessibility standards for UI components?

Yes, the design system framework covers accessibility standards by providing specific guidelines for component focus, color contrast, and touch targets. These standards ensure that your reusable UI components meet modern accessibility requirements.

Can I use this design system approach to implement dark mode and light mode switching?

Yes, you can implement dark mode and light mode switching using the design token system provided. It leverages CSS custom properties for theming, allowing your application to seamlessly transition between visual modes without altering component architecture.

How do I generate a spacing scale for design tokens using CSS variables?

You can generate a spacing scale for design tokens by using the framework's scripts to create CSS variables. For example, the quick start allows you to generate a spacing scale starting at 4px with 4px increments, establishing a consistent spatial foundation.