What problem does it solve?
Centralizes theming for Unity App UI by managing USS variables, design tokens, and theme metadata to ensure consistent branding and faster UI iteration across projects.
Core Features & Use Cases
- Theme File Structure and Tokens: define and override primary colors, spacing, typography, and semantic tokens across light/dark and scaled variants.
- Runtime Theme Switching: switch themes at runtime via ThemeContext, enabling dynamic branding and accessibility adjustments.
- PanelSettings Integration: pair a .tss theme file with a UI Toolkit PanelSettings to apply themes to the UIDocument root.
- Design Tokens & BEM: enforce a consistent naming convention (appui-- prefix) and a robust set of tokens for color, spacing, and typography.
- Use Cases: create brand themes, support dark/light modes, and implement scalable UI for multiple devices and contexts.
Quick Start
Create a custom theme by exporting a USS stylesheet and a matching Theme file (.tss), then attach it to PanelSettings and switch using ThemeContext at runtime.