color-system

Define semantic color tokens in OKLCH with WCAG 2.1 AA contrast.

1|Updated Jul 15, 2026
One-click install
npx skills add https://github.com/Dzakiamriz22/frontend-pack --skill color-system-dzakiamriz22
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: color-system
Source: https://github.com/Dzakiamriz22/frontend-pack/tree/main/skills/color-system
Command: npx skills add https://github.com/Dzakiamriz22/frontend-pack --skill color-system-dzakiamriz22

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill solves the challenge of maintaining visual consistency and accessibility in modern web applications by enforcing a structured, semantic approach to color tokens.

Core Features & Use Cases

  • Semantic Tokenization: Replaces hardcoded colors with semantic variables like primary, background, and destructive for easier theming.
  • Accessibility Enforcement: Ensures all color combinations meet WCAG 2.1 AA standards for contrast.
  • Dark Mode Integration: Automatically generates and maps dark mode variants for every semantic token.

Quick Start

Ask the assistant to generate a new semantic color palette for a dashboard using OKLCH values.

Frequently Asked Questions about color-system

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

FAQPage Schema
How do I create a color system that meets WCAG 2.1 AA contrast requirements?

To create a WCAG 2.1 AA compliant color system, you define semantic design tokens using the OKLCH color space to enforce strict contrast ratios across all UI components. This approach systematically replaces hardcoded colors with accessible semantic variables.

What is the best way to implement dark mode using semantic design tokens?

Implementing dark mode with semantic design tokens involves mapping automatic dark mode variants to every defined semantic variable like background or primary. This ensures consistent theming and accessibility across web applications without manually recoding individual color values.

How does OKLCH color space improve UI design accessibility?

OKLCH color space improves UI design accessibility by providing perceptually uniform lightness values, making it easier to generate semantic color palettes that reliably meet WCAG 2.1 AA contrast standards and dark mode requirements.

Can I audit my existing design system for accessibility and contrast compliance?

You can audit existing design systems for accessibility by evaluating current color combinations against WCAG 2.1 AA contrast ratios. This process identifies non-compliant hardcoded values and replaces them with structured semantic design tokens for better maintenance.

When do I need semantic color tokens for a web application dashboard?

You need semantic color tokens for a web application dashboard when you want to maintain visual consistency, enable automatic dark mode switching, and ensure all status indicators like destructive or primary colors meet accessibility standards.

Does this color system generation require predefined UI components or dependencies?

This color system generation does not require predefined UI components or external dependencies. It directly defines professional semantic tokens and dark mode variants using OKLCH values, which you can then apply to any UI component generation workflow.