# Diagram text too small: how to fix it

The message means some text in the picture is smaller than the theme's minimum of 10 px.


```json
{"title": "Weather app",
 "theme": {"tile": 9},
 "columns": [[{"id": "app", "title": "Phone app", "tiles": ["Today, hour by hour, with rain chances"]}]]}

```

![Weather app](https://open-diagram.dev/images/pages/problems-text-too-small-1.svg)

The check: 1 layout problem(s)

```text
smallest text is 9 px; the theme's minimum is 10 px
```


## Why does it happen?

The theme sets a text size under 10 px. The check records the size of every piece of text it draws, then compares the smallest with the theme's minimum, `min_text`.

The default sizes all sit above the minimum: 12 px for tile labels, and 10.5 px for a tile's second line, line labels and footers. Here `"tile": 9` takes tile labels under it. `open-diagram draw` prints the smallest text size on every run, next to the count of layout problems.

## How do I fix it?

Keep the theme's sizes, and shorten the words. At the default size, a long label makes its box wider or wraps onto another line, because each block measures its own words.

1. Remove the size from `theme`, or set it to 10 or more.
2. Shorten the label to four words or fewer.
3. Move the detail into the tile's `sub`, a second line at 10.5 px.
4. Run the check again.

Here `theme` is gone, the label keeps "Today, by the hour", and "with rain chances" moves to `sub`. The check reports 0 layout problems:


```json
{"title": "Weather app",
 "columns": [[{"id": "app", "title": "Phone app", "tiles": [{"label": "Today, by the hour", "sub": "with rain chances"}]}]]}

```

![Weather app](https://open-diagram.dev/images/pages/problems-text-too-small-2.svg)

The check: 0 layout problems


In Python, the same tile is `Tile("Today, by the hour", sub="with rain chances")`.

Updated November 25, 2026. Web page: https://open-diagram.dev/problems/text-too-small.html

See also:

- [Text does not fit in a diagram box: how to fix it](https://open-diagram.dev/problems/text-does-not-fit.md)
- [Diagram boxes too close or overlapping: how to fix it](https://open-diagram.dev/problems/boxes-too-close.md)
