theming-context

Override Optics tokens in a custom theme file for design system theming.

6|1|Updated Feb 4, 2026
One-click install
npx skills add https://github.com/RoleModel/rolemodel-skills --skill theming-context
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: theming-context
Source: https://github.com/RoleModel/rolemodel-skills/tree/main/skills/theming-context
Command: npx skills add https://github.com/RoleModel/rolemodel-skills --skill theming-context

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Theming and color token customization is complex and error-prone; this Skill helps teams implement consistent design system theming using optics tokens, enabling safe overrides and scalable color scales.

Core Features & Use Cases

  • Override tokens via custom theme files to change colors, radii, fonts, and other tokens.
  • Ensure overrides take precedence by importing after the main Optics styles.
  • Support light/dark modes and brand-specific color adjustments with a scalable color system.

Quick Start

Create a custom theme file that overrides token values, then import it after the main Optics CSS. Ensure the file defines tokens such as --op-color-primary-*, --op-font-family, and similar, so overrides apply across light/dark modes.

Frequently Asked Questions about theming-context

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

FAQPage Schema
How do I override design tokens for dark mode and brand-specific color adjustments?

To override design tokens for dark mode, create a custom theme file defining CSS variables like --op-color-primary-* and import it after the main Optics styles. This ensures your token overrides take precedence and apply consistently across light and dark modes.

What are design tokens and how do they work with CSS variables for theming?

Design tokens are CSS variables representing visual design attributes like colors, fonts, and radii. This skill uses them to implement scalable theming by allowing teams to override Optics tokens in a custom theme file, ensuring consistent UI styling across different applications.

How do I create a custom theme file that overrides Optics tokens?

Create a custom CSS file that defines token overrides such as --op-color-primary-*, --op-font-family, and similar variables. Import this file after the main Optics CSS to ensure your custom theme values take precedence and apply across your application.

Can I use this theming approach for scalable color systems across multiple apps?

Yes, this skill is designed for UI projects requiring scalable theming across apps. By overriding Optics tokens in a dedicated theme file, teams can implement consistent design system theming, supporting brand-specific color adjustments and color scales across multiple applications.

Why are my CSS variable token overrides not taking effect in the UI?

Token overrides may not take effect if the custom theme file is not imported after the main Optics CSS. Ensure your theme file is loaded after the main stylesheets so that your CSS variable overrides for colors, fonts, and radii take precedence.

What's the best way to manage color scales and token overrides for design systems?

The best way to manage color scales is by creating a dedicated theme file that overrides Optics tokens. This approach enables safe, scalable color system customization for light and dark modes while maintaining design system consistency across applications.