> ## Documentation Index
> Fetch the complete documentation index at: https://iso-topology.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Style labels, icons, and themes

> Create a coherent diagram with a shared palette, reusable presets, and readable labels.

Choose one accent color and one visual focus. Apply shared styles through the theme, then override only the parts that need emphasis.

## Change the whole palette

The [complete starter](../assets/first-diagram.yaml) uses this theme:

```yaml theme={null}
theme:
  palette: {top: "#9ACFBC", left: "#0F766E", right: "#115E59"}
  text: {color: "#17251F", size: 14}
```

Replace those colors together, render, and inspect text contrast. The documentation site's theme does not control the diagram's canvas.

## Reuse a preset

```yaml theme={null}
theme:
  presets:
    service:
      palette: {top: "#FFFFFF", left: "#DCE4DE", right: "#B8CDC1"}
      stroke: {color: "#52635B", width: 1}
```

This is a theme fragment. Reference it on a part with `preset: service`. Use one preset for repeated services and a separate local style for the core component.

## Add a meaningful icon

Set `icon: "iso://glyph/cpu"` on a part, or select a reference from the [icon catalog](https://iso-topology.mintlify.site/agent/ICONS.md). Built-in assets are bundled. Remote image URLs may require network access; local files are embedded during rendering.

Keep labels short. For longer descriptions, use screen-oriented text or annotations rather than shrinking every label. Inspect the exported image at the size readers will actually see.

## Understand overrides

Theme defaults, per-shape defaults, semantic roles, presets, and local styles participate in resolution. Consult the [theme reference](https://iso-topology.mintlify.site/reference/dsl-theme.md) for the full cascade. An unset value can inherit; it does not always mean a feature is disabled.

[Scene design](https://iso-topology.mintlify.site/guides/scene-design.md) explains composition, hierarchy, and restrained effects.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.