Reuse™¶
Reuse™ helps when a card repeats the same visual idea: several similar tools, one shared style, a regular row of items, or the same card design for several rooms. Define the shared part once, then change only what is different.
Start with normal YAML for the first item. Add reuse when copying that item would make the card harder to read or maintain.
Reuse one layout item¶
Use same_as when the next item should look like an earlier item but appears elsewhere on the card.
The second circle keeps the first circle's size and styling while using its own position. The Reuse reference lists the available settings when a copied item needs a different position, size, entity, or nested block.
Build a regular row¶
Use same_as_d... when each next item should keep the same design but move by a fixed amount. This is useful for room buttons, sensor icons, repeated gauges, or any row where the next item also uses the next entity.
room_column_width defines the spacing once. same_as_dxpos uses that shared value for every next icon, while same_as_dentity_index makes every icon use the next entity in the card’s entity list. The same pattern works for vertical spacing, size changes, radii, and line lengths.

This card shows one fully configured Total horseshoe and three phase horseshoes that reuse it with calculated horizontal offsets. Open the complete Card 32 example for the full configuration.
Choose the right approach¶
| You want to... | Use |
|---|---|
| Show another tool that is almost the same | same_as |
| Build a regular row, column, or entity sequence from one base item | same_as_d... |
| Use one color, size, style, or configuration block in several places | constants and ref() |
| Keep positions, sizes, or spacing visibly related | calc() |
| Build a regular pattern from one item and calculated offsets | same_as with calc() |
| Use the same complete card design more than once | Card templates |
Reuse a shared value or style¶
Changing status_style updates every item that uses it. The Reuse reference lists the available syntax for shared values, styles, and calculations.
Continue with complete examples¶
Use the Reusable YAML card examples to see these features combined in complete cards. Keep the Reuse reference nearby when you need an exact field or syntax reminder.