design-system

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

Updated Aug 30, 2026
One-click install
npx skills add https://github.com/prasanna591/ProblemSolvingMind --skill design-system-prasanna591
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: design-system
Source: https://github.com/prasanna591/ProblemSolvingMind/tree/main/.opencode/skills/design-system
Command: npx skills add https://github.com/prasanna591/ProblemSolvingMind --skill design-system-prasanna591

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 hard when colors, spacing, and typography are hardcoded everywhere. This Skill establishes a single source of truth with a three-layer token architecture (primitive, semantic, component) and generates token-compliant CSS, component specs, and slide decks. ## 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 the token system. - 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 using design tokens, Chart.js visualizations, BM25 slide search, and a contextual decision system driven by strategy/layout/typography CSVs. - Use Case: A designer needs a 10-slide investor pitch that matches brand guidelines. The Skill selects layouts and emotion arcs from its decision CSVs, generates token-compliant HTML with charts, and validates the output for hardcoded values. ## Quick Start Ask the AI to generate a brand-compliant pitch deck or produce CSS design tokens from the starter JSON template using the design-system skill.

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.

How to create a pitch deck that follows brand design tokens?▼

Use the generate-slide.py script with a JSON file describing each slide type (title, problem, solution, metrics, chart, testimonial, cta). The generated HTML imports design-tokens.css and uses only var() references, then validate it with html-token-validator.py.

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). This structure enables theme switching like light/dark mode by redefining only the semantic layer.

Does the slide generator support charts and background images?▼

Yes. Slides integrate Chart.js 4 for data visualization and the fetch-background.py script provides curated Pexels images per slide type with brand-color overlay gradients. CSS-only bar charts are also available in the template.

Why does token validation fail on my HTML slides?▼

The validator flags hardcoded hex, rgb, or hsl colors and hardcoded fonts outside <script> blocks. Fix errors by replacing them with var(--token) references and ensuring design-tokens.css is imported; brand-color rgba values for transparency are allowed exceptions.