Style MATLAB charts and figures. colororder palettes for chart series colors, colormap selection, brand color organization, and the R2025a Theme API for uifigure apps (dark mode with fliplightness, ThemeChangedFcn, uistyle, component colors). Use when customizing chart colors, applying a color palette, organizing brand colors, implementing dark mode, or importing an external color scheme. Triggers: theme, dark mode, brand colors, colororder, colormap, palette, fliplightness, color scheme, styling, chart colors.
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Une commande directe contourne le prompt de vérification. Examinez la source avant de l'exécuter.
Style MATLAB charts and figures. colororder palettes for chart series colors, colormap selection, brand color organization, and the R2025a Theme API for uifigure apps (dark mode with fliplightness, ThemeChangedFcn, uistyle, component colors). Use when customizing chart colors, applying a color palette, organizing brand colors, implementing dark mode, or importing an external color scheme. Triggers: theme, dark mode, brand colors, colororder, colormap, palette, fliplightness, color scheme, styling, chart colors.
allowed-tools
["Read","Write","Edit","Bash"]
MATLAB Theming
Style MATLAB charts with color palettes and — for uifigure apps — apply the R2025a Theme API for brand colors, dark mode, and component styling.
When to Use This Skill
Use this skill when:
Setting colororder for chart series colors (any context)
Choosing or importing a color palette for plots
Organizing brand colors into a reusable struct
Applying a custom colormap for continuous data
Implementing dark mode with fliplightness() (uifigure)
Wiring ThemeChangedFcn to react to OS/user theme changes (uifigure)
Using uistyle for conditional formatting in tables/trees (uifigure)
Importing an external color scheme (Material Design, Adobe Color, Tailwind)
When NOT to Use This Skill
Choosing chart types or building charts from scratch (use matlab-build-chart)
Building a full app layout (use matlab-build-app — it invokes this skill for theming sub-steps)
Setting colors on individual plot elements as a one-off (just use the Color property directly)
Non-MATLAB styling (CSS, HTML themes for web apps)
Critical Rules
Universal (all contexts)
MUST centralize brand/palette colors in a struct — never scatter RGB values
ALWAYS use colororder() for categorical chart series colors
ALWAYS use colormap() for continuous scalar-mapped colors
NEVER confuse colororder (categorical series) with colormap (continuous gradient)
Additional rules for uifigure apps (R2025a Theme API)
MUST use R2025a Theme API — do NOT manually set figure background or standard component colors
MUST use fliplightness() to derive dark variants unless explicitly designing custom dark colors
NEVER set a component's color explicitly unless branding requires it — breaks theme adaptation
ALWAYS use the semantic token vocabulary defined below for cross-path consistency
Semantic Token Vocabulary
Both MATLAB and web implementations map to these common tokens. When importing an external color scheme, map its colors to these tokens once.
Token
Purpose
MATLAB (struct field)
Web (CSS variable)
primary
Brand/action color (buttons, links, active states)
theme.primary
--accent
onPrimary
Text/icon on primary background
theme.onPrimary
--accent-text
secondary
Secondary brand color (less prominent actions)
theme.secondary
--secondary
error
Error/destructive state
theme.error
--error
success
Success/confirmation state
theme.success
--success
warning
Warning/caution state
theme.warning
--warning
border
Custom borders and dividers
theme.border
--border
plotColors
Chart series colors (Nx3 RGB matrix)
theme.plotColors
N/A (use chart library config)
MATLAB note: Surface/text colors (--bg-primary, --text-primary in CSS) are NOT in the MATLAB theme struct. The R2025a Theme API handles those automatically. Only define brand/custom colors.
Quick Start
Color palettes for any figure
colors = [0 0.447 0.741; 0.85 0.33 0.10; 0.93 0.69 0.13; ...
0.49 0.18 0.56; 0.47 0.67 0.19; 0.30 0.75 0.93];
colororder(ax, colors);
% All series in this axes now cycle through these colors