Skip to main content

How to change button colors

Change a button's background, text, and hover colors, for one button or for every button that shares a style.

Written by Rob D

Every button in a popup is linked to a shared style from your theme, such as Primary button or Plain button. You can change the colors of just one button, or change the shared style so every button that uses it updates.

Change one button's colors

  1. In the popup editor, select the button.

  2. In the right sidebar, open Styles.

  3. Select Edit just this element. A banner says "Overriding styles for just this element".

  4. Under Background, choose a Color.

  5. Under Text, choose a Text color.

  6. Select Save. If the popup is live, select Publish so visitors see the change.

The canvas updates as you choose each color. Pick a text color that stands out clearly from the background, such as white text on a dark button.

Change every button that shares a style

  1. Select a button that uses the style.

  2. In Styles, select Edit shared style. The card shows how many other elements share it.

  3. Change Background and Text colors as above.

This changes the style in this popup only. To change it for all your popups, edit Button styles on the Theme page, then select Publish.

Change the hover color

  1. Select the button and open Styles.

  2. Open the state menu, which shows Default state, and choose Hovered.

  3. Set the Background and Text colors visitors see when their mouse is over the button.

Hover only happens with a mouse, so it shows on desktop.

💡 Note: Styles start on All screen sizes. To use different colors on desktop, switch to Desktop only before you change them.

💡 Tip: Lia, Alia's built-in AI assistant, can restyle your popup's colors for you. Select the button and ask her in the Lia chat in the popup editor. See Getting started with Lia.

Frequently asked questions

I changed the shared style, but one button didn't change. Why?

That button has its own override. Select it, choose Edit just this element, and change or remove the color there.

I changed one button, and all my buttons changed. Why?

You edited the shared style. Undo the change, then select Edit just this element before changing the color.

How do I add my brand color to the color list?

On the Theme page, under Colors, select Add a color.... The new color can then be picked anywhere in the editor.

Still have questions?

Start a chat from inside the Alia app, or use the chat in our Help Center.

Did this answer your question?