In the Skill's Own Terms
Generates three-layer design token architectures (primitive → semantic → component), component specifications, and brand-compliant presentation slides. Primitive tokens define raw values like --color-blue-600. Semantic tokens alias them by purpose (--color-primary). Component tokens specify per-component usage (--button-bg).
The skill provides generation and validation scripts for CSS variables, Tailwind theme integration, and a contextual slide system that uses BM25 search across 15 deck structures, 25 layouts, and Duarte sparkline emotion arcs. All slides must import design-tokens.css and use CSS variables exclusively. Chart.js is required for data visualization. Supports Pexels and Unsplash image fetching.
What it produces
- Token validation report identifying hardcoded values in source code that should reference tokens
How It Works
- 01Load Token Architecture Reference
The skill loads references/token-architecture.md to establish the three-layer token structure before generating or validating tokens.
- 02Generate CSS from JSON Config
Run generate-tokens.cjs with a JSON config file to output a CSS file with the three-layer token structure as CSS variables.
- 03Search Slide Strategies by Goal
Use BM25 search via search-slides.py to find matching deck structures, emotion arcs, and sparkline beats from slide-strategies.csv, optionally filtering by domain (copy or chart) and contextual position.
- 04Apply Contextual Decision Flow
Parse the goal, query slide-layout-logic.csv for layout and break_pattern flag, slide-typography.csv for type scale, slide-color-logic.csv for color treatment, and slide-backgrounds.csv for image category.
- 05Generate HTML with Design Tokens
Create slide HTML that imports assets/design-tokens.css, uses var() for all styling, includes Chart.js for charts, and adds navigation and animation classes from slide-animations.css.
- 06Validate Token Compliance
Run slide-token-validator.py to check that the generated slide HTML uses CSS variables exclusively and contains no hardcoded color, font, or spacing values.