design-system

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

Updated Sep 10, 2026
One-click install
npx skills add https://github.com/longqt321/Rendez --skill design-system-longqt321
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: design-system
Source: https://github.com/longqt321/Rendez/tree/main/.agent/skills/design-system
Command: npx skills add https://github.com/longqt321/Rendez --skill design-system-longqt321

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (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) as a single source of truth and generates token-compliant CSS and HTML slides. ## Core Features & Use Cases - Token Generation & Validation: Convert JSON token configs into CSS variables or Tailwind config, and scan codebases for hardcoded values that violate token usage. - Component Specifications: Reference detailed specs for buttons, inputs, cards, badges, alerts, dialogs, and tables with states, variants, and sizing. - Slide Deck Generation: Build brand-compliant HTML presentations with Chart.js charts, BM25 slide search, decision-system CSVs for layout/typography/color, and automated token compliance validation. - Use Case: A team needs a 10-slide investor pitch deck that matches their brand. The Skill queries strategy and layout CSVs, generates HTML slides importing design-tokens.css, and validates the output for hardcoded colors. ## Quick Start Ask the AI to generate a brand-compliant pitch deck or generate CSS variables from your design tokens JSON config.

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 and outputs primitive, semantic, and component layers as CSS custom properties, with optional Tailwind format output.

What is a three-layer design token architecture?

It separates tokens into primitive (raw values like hex colors), semantic (purpose aliases like --color-primary), and component layers (like --button-bg). Each layer references the one below, enabling theme switching and per-component customization.

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, with exceptions for Chart.js scripts and brand rgba transparency.

Can I generate slide decks that follow my brand guidelines?

Yes. The slide system generates HTML decks importing design-tokens.css, using Chart.js for charts and decision CSVs for layout, typography, and color logic. Generated slides are validated for token compliance to prevent hardcoded values.

Does the token system support dark mode?

Yes. The starter JSON includes a dark section overriding semantic color tokens, and generate-tokens.cjs outputs these under a .dark class selector. The semantic layer structure makes theme switching possible without changing component code.