Skip to content

matlab/matlab-agentic-toolkit / skills-catalog/matlab-app-building/matlab-apply-theme

matlab-apply-theme

Verified

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.

FileKindSize
SKILL.mdskill md8.1 KB
manifest.yamlconfig479 B
references/component-colors.mdexecutablescript2.0 KB
references/external-schemes.mdexecutablescript2.1 KB
references/theme-api.mdexecutablescript1.5 KB

references/component-colors.md

View on GitHub
# Component Colors & uistyle

## Component Color Properties Reference

Only set these on components that need brand customization. Leave everything else to the Theme API.

| Component | BackgroundColor | FontColor | ForegroundColor | Notes |
|---|---|---|---|---|
| `uibutton` | Yes | Yes | — | Most common branded component |
| `uilabel` | Yes | Yes | — | Use for status text color |
| `uipanel` | Yes | — | Yes (title text) | ForegroundColor = title color |
| `uitabgroup` / `uitab` | Yes | — | Yes | — |
| `uieditfield` | Yes | Yes | — | Usually leave auto |
| `uidropdown` | Yes | Yes | — | Usually leave auto |
| `uislider` | — | Yes (label) | — | Limited styling |
| `uitable` | Yes | Yes | — | Prefer uistyle for cells |
| `uitextarea` | Yes | Yes | — | Usually leave auto |
| `uicheckbox` | — | Yes | — | — |
| `uiaxes` | Yes (plot bg) | — | — | Usually leave auto |

## Table/Tree Styling with uistyle

Use `uistyle` for conditional formatting in tables, trees, listboxes, and dropdowns (not for general components).

```matlab
% Highlight error rows
s = uistyle('BackgroundColor', theme.error, 'FontColor', theme.onPrimary);
errorRows = find(tableData.Status == "Error");
addStyle(uit, s, 'row', errorRows);

% Bold header column
s2 = uistyle('FontWeight', 'bold');
addStyle(uit, s2, 'column', 1);

% Status icon in cells
s3 = uistyle('Icon', 'success');
addStyle(uit, s3, 'cell', [successRows, repmat(statusCol, numel(successRows), 1)]);
```

Available `uistyle` properties: `BackgroundColor`, `FontColor`, `FontWeight`, `FontAngle`, `FontSize`, `FontName`, `Icon`, `IconAlignment`, `Interpreter`, `HorizontalAlignment`.

**Managing styles:**
- `addStyle(component, style, targetType, targetIndex)` — targetType: `"row"`, `"column"`, `"cell"`, `"node"`, `"item"`
- `removeStyle(component, styleIndex)` — remove by index
- `getStyle(component)` — list applied styles
- Last style applied wins on overlap

----

Copyright 2026 The MathWorks, Inc.

----
brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).Stars: 322kUpdated Claude CodeCodexVerifiedInstall
brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.Stars: 197kUpdated Claude CodeCodexVerifiedInstall
frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.Stars: 197kUpdated Claude CodeCodexVerifiedInstall
mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).Stars: 197kUpdated Claude CodeCodexVerifiedInstall