What problem does it solve?
Building Makepad 2.0 interfaces with hardcoded colors, font sizes, and spacing breaks theme switching and visual consistency. This Skill provides the complete theme.* variable system so UIs automatically support dark/light mode and consistent design tokens.
Core Features & Use Cases
- Theme Variable Reference: Full catalog of color, typography, and spacing variables (
theme.color_*, theme.font_*, theme.space_*, theme.mspace_*) for dark, light, and skeleton themes.
- Theme Setup & Switching: Correct
App::run initialization order (theme_mod before widgets_mod) and runtime theme switching via script_eval! in event handlers.
- State-Aware Styling: Widget state color variants (
_hover, _focus, _down, _disabled) plus bevel, inset/outset, selection, and semantic status colors.
- Use Case: Build a themed card list where backgrounds, text colors, padding, and corner radii all derive from theme variables, then add a toggle button that switches the entire app between dark and light mode at runtime.
Quick Start
Ask the AI to build a Makepad 2.0 themed card component using theme variables for colors, fonts, and spacing with dark/light mode support.