# Recoloring a template

1. Identify the text, background, surface, border, accent and status colors in the existing template.
2. Give colors with a shared role the same token. Pair an accent with the text used on it, for example `--accent` and `--on-accent`. Give success and error states distinct labels and treatments.
3. Check text on its actual background. The minimum contrast ratios for regular and large text are 4.5:1 and 3:1 respectively. Inspect links, focus indicators, disabled states and legends in each theme.

**Example request**

> Keep the layout. Change the accent and cover to indigo, then check contrast in the body text, buttons and tables.

[Palette playground](../tools/style.en.html#palette) · [W3C minimum contrast guidance](https://www.w3.org/WAI/WCAG22/Understanding/contrast-minimum.html) · [Radix Colors license](https://github.com/radix-ui/colors/blob/main/LICENSE)
