theme-consistency

Enforce theme values from theme.yaml in prototype screens.

Updated Jan 5, 2026
One-click install
npx skills add https://github.com/Marcus-Mok-GH/Claude-code-conductor --skill theme-consistency-marcus-mok-gh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: theme-consistency
Source: https://github.com/Marcus-Mok-GH/Claude-code-conductor/tree/main/.claude/skills/theme-consistency
Command: npx skills add https://github.com/Marcus-Mok-GH/Claude-code-conductor --skill theme-consistency-marcus-mok-gh

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Ensures a unified visual design in prototype screens, reducing style drift and promoting consistency.

Core Features & Use Cases

  • Theme Enforcement: Enforces theme values from theme.yaml.
  • Validation: Prevents hardcoded values and validates CSS variable usage.
  • Consistency Locking: Locks theme after first screen approval to maintain visual consistency.

Quick Start

Automatically invoke this skill when creating new screens with /prototype create [screen].

Frequently Asked Questions about theme-consistency

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

FAQPage Schema
How do I maintain visual consistency across multiple prototype screens?

To maintain visual consistency across prototype screens, you need to enforce theme values from a configuration file. This approach prevents style drift by validating CSS variable usage and locking the theme after the first screen approval.

How do I prevent hardcoded CSS values in my mockup generation?

Preventing hardcoded CSS values in mockup generation requires validating styles against established patterns. The system automatically checks your prototype screens to ensure all visual properties use defined CSS variables instead of static values.

How does locking a theme after first screen approval work?

Locking a theme after first screen approval freezes the established design patterns to maintain visual consistency. Once the initial mockup is approved, subsequent screens are validated against these locked theme values to prevent style drift.

Do I need a specific theming configuration file to enforce CSS variable validation?

Yes, enforcing CSS variable validation requires a theming configuration file, specifically named `theme.yaml`. This file stores the theme values that the system loads and applies to ensure visual consistency across all generated prototype screens.

What is the best way to automate style enforcement when creating new prototype screens?

The best way to automate style enforcement when creating new prototype screens is to use a command that triggers theme validation automatically. This ensures every new mockup validates against established patterns without manual checks.

Why does my prototype mockup have style drift between different screens?

Style drift in prototype mockups occurs when visual consistency is not enforced through a centralized configuration. Without loading and validating theme values from a file, hardcoded values bypass established patterns and cause visual discrepancies.