ux-theming

Register theme-aware colors and style VS Code widgets with CSS variables.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/THRISHAL12345/Project_X --skill ux-theming
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ux-theming
Source: https://github.com/THRISHAL12345/Project_X/tree/main/apps/vscode-fork/.github/skills/ux-theming
Command: npx skills add https://github.com/THRISHAL12345/Project_X --skill ux-theming

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you create VS Code workbench and widget styling that stays visually consistent across light, dark, and high-contrast themes while meeting focus and accessibility requirements.

Core Features & Use Cases

  • Theme Token Registration: Define new colors with proper defaults for light, dark, hcDark, and hcLight themes.
  • CSS Variable Styling: Apply VS Code theme variables in CSS for backgrounds, borders, text, and focus states.
  • Widget Styling Patterns: Use the correct default style objects and override factories for buttons, inputs, dialogs, lists, and other controls.
  • High-Contrast Compliance: Remove hardcoded visual values, use contrast borders, and ensure focus indicators remain visible in HC modes.
  • Use Case: A developer adding a custom sidebar panel can register its colors, style its controls with theme tokens, and keep it usable for keyboard and high-contrast users.

Quick Start

Use the ux-theming skill to register theme-aware colors and style my custom VS Code widget so it follows focus, contrast, and high-contrast rules.

Frequently Asked Questions about ux-theming

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

FAQPage Schema
How do I style custom VS Code widgets to support dark and high contrast themes?

Register theme tokens with proper defaults for light, dark, hcDark, and hcLight themes, then apply them via CSS variables. This ensures your custom VS Code widgets maintain visual consistency and high-contrast compliance across all themes.

What are VS Code theme tokens and when do I need them for UI development?

VS Code theme tokens are registered color variables providing defaults for light, dark, hcDark, and hcLight modes. You need them when building custom editor controls, sidebar panels, or dialogs to ensure UI adapts automatically to the active workbench theme.

How do I ensure focus indicators remain visible in VS Code high contrast themes?

Remove hardcoded visual values and use contrast borders alongside accessibility-safe defaults to keep focus indicators visible in high contrast themes. Apply the correct focus state CSS variables provided by the VS Code theme token system.

Can I use CSS variables to style a custom VS Code sidebar panel?

Yes, you can use VS Code theme variables in CSS to style custom sidebar panels. This provides correct default style objects for buttons, inputs, and lists, ensuring your panel integrates seamlessly with the workbench UI.

Why do my custom VS Code dialog colors break in high contrast mode?

Custom VS Code dialog colors break in high contrast mode when hardcoded visual values are used instead of theme tokens. Remove hardcoded colors and register proper defaults for hcDark and hcLight themes using CSS variables.