theme-var

Manage CSS custom properties across themes and modes in globals.css.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/ebenfc/bird-photo-gallery --skill theme-var
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: theme-var
Source: https://github.com/ebenfc/bird-photo-gallery/tree/main/.claude/skills/theme-var
Command: npx skills add https://github.com/ebenfc/bird-photo-gallery --skill theme-var

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers manage CSS custom properties (variables) for theming, ensuring consistency across multiple themes and modes, and streamlining the process of adding new variables.

Core Features & Use Cases

  • Find Existing Variables: Quickly identify the correct CSS variable for a specific color need (e.g., page background, primary text).
  • Add New Variables: Guides the process of adding new CSS variables consistently across all 14 theme blocks (7 themes x 2 modes).
  • Understand Theming Principles: Provides insights into color design principles for each theme and dark mode rules.
  • Use Case: When a designer requests a new accent color for the "bold" theme's dark mode, this Skill can help find the appropriate variable name and ensure it's added correctly to all relevant CSS blocks.

Quick Start

Use the theme-var skill to find the CSS variable for a card background.

Frequently Asked Questions about theme-var

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

FAQPage Schema
How do I manage CSS variables across multiple themes and dark mode?

Manage CSS variables across multiple themes by referencing `globals.css` to discover existing color variables and systematically add new custom properties across all defined theme blocks and dark mode rules. This ensures consistency for multi-theme web applications.

How do I find the right CSS custom property for a specific color in my design system?

Find the right CSS custom property for a specific color by querying the existing variables mapped within `globals.css`. The Skill identifies the correct variable name for needs like page backgrounds or primary text, ensuring you reuse existing design system tokens.

What is the best way to add a new CSS color variable to all theme blocks?

The best way to add a new CSS color variable to all theme blocks is to follow a systematic process that updates all 14 theme blocks (7 themes x 2 modes) at once. This enforces consistency and adheres to specific theme design principles and dark mode rules.

Does this theming approach work with existing globals.css files?

Yes, this theming approach works directly with existing `globals.css` files. It references the file to enforce consistency, discover current color variables, and ensure any new custom properties adhere to the established dark mode rules and design principles.

Can I use this to understand dark mode rules and color design principles for my themes?

Yes, you can use this to understand dark mode rules and color design principles for your themes. It provides insights into the specific design principles governing each theme, helping you apply appropriate color variables for dark mode.

Why do my CSS variables look inconsistent across different theme modes?

CSS variables look inconsistent across different theme modes when they are not systematically added to all defined blocks. Enforcing consistency by referencing `globals.css` and adhering to dark mode rules ensures custom properties match across all 7 themes and 2 modes.