design-system

Generate three-layer design tokens, component specifications, and brand-compliant HTML slide decks.

Updated Aug 25, 2026
One-click install
npx skills add https://github.com/KlyrhonMiko/kly-skills --skill design-system-klyrhonmiko
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: design-system
Source: https://github.com/KlyrhonMiko/kly-skills/tree/main/data/skills/ui-ux-pro-max-skill/.claude/skills/design-system
Command: npx skills add https://github.com/KlyrhonMiko/kly-skills --skill design-system-klyrhonmiko

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Maintaining visual consistency across components and presentations is difficult when colors, spacing, and typography are hardcoded. This Skill establishes a three-layer token architecture (primitive, semantic, component) and generates validated, token-compliant CSS and HTML slides. ## Core Features & Use Cases - Token Generation & Validation: Convert JSON token configs into CSS variables or Tailwind theme config, and scan codebases for hardcoded values that violate the token system. - Component Specifications: Reference detailed specs for buttons, inputs, cards, badges, alerts, dialogs, and tables covering variants, sizes, and states. - Slide Deck Generation: Build brand-compliant HTML presentations with Chart.js charts, BM25-based slide search, emotion-arc strategies, and automated token compliance validation. - Use Case: A designer needs a 10-slide investor pitch that matches brand guidelines. The Skill queries decision CSVs for layout, typography, and color logic, generates the HTML deck using design tokens, and validates it for hardcoded values. ## Quick Start Ask the AI to generate a brand-compliant pitch deck using the design-system skill, for example: create a 10-slide investor pitch using design tokens.

Frequently Asked Questions about design-system

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

FAQPage Schema
How do I generate CSS variables from a design tokens JSON file?▼

Run the generate-tokens.cjs script with your JSON config: node generate-tokens.cjs --config tokens.json -o tokens.css. It resolves token references across primitive, semantic, and component layers and can also output a Tailwind color config with --format tailwind.

What is a three-layer design token architecture?▼

It separates raw primitive values (hex colors, spacing) from semantic aliases (primary, muted) and component-specific tokens (button-bg). Each layer references the one below, enabling theme switching and per-component customization without touching raw values.

How do I check my code for hardcoded colors instead of design tokens?▼

Use the validate-tokens.cjs script against your source directory, or run html-token-validator.py on HTML assets. The validator flags hex, rgb, and hsl values in style blocks and inline styles while allowing Chart.js colors inside script tags.

Can I generate slide decks that follow brand guidelines automatically?▼

Yes. The generate-slide.py script builds HTML decks from JSON slide data using only CSS variables from design-tokens.css. It supports title, problem, solution, metrics, chart, testimonial, and CTA slide types with a --demo flag for a sample deck.

Does the slide generator support charts and background images?▼

Slides integrate Chart.js 4.4.1 for data visualization, and fetch-background.py provides curated Pexels images per slide type with brand-color overlay gradients. All generated slides must import design-tokens.css and pass token validation.

What are the limitations of the token validation approach?▼

The HTML validator relies on regex pattern matching, so it may miss obfuscated values or flag false positives in var() fallbacks. It also requires assets/design-tokens.css to exist at the project root and only checks HTML files in configured asset directories.