# Changing the Theme

To keep on adjusting the style of the app, we’ll change the styling of some Variants so that they better match our new logo.

<details>

<summary>What is a Variant?</summary>

**Variants**

A Variant is a set of styling properties for a specific [Web Control](../../web-controls/web-controls-overview), similar to a class in CSS. If you're not familiar with CSS classes, you might compare Web Controls and Variants to dinnerware. Plates, cups, and forks are all like different web controls: they each have a particular function, and this is reflected in aspects of their appearance. However, not all plates look the same. A square red plate and a round blue plate are both capable of serving as plates and are simply styled differently. If you are deciding whether to set your table with your blue plates or your red plates, this is like choosing between different Variants of plates.

Every Web Control has associated Variants: cosmetic variations that appear differently but function identically. Variants can be edited in [Theme Builder](../../../studio/builder-bar/theme-builder#theme) and then used as defaults when adding new Web Controls. For instance, within a single application, you might create two Variants of button: a rectangular one in red, and a round one in blue. Any changes made to existing Variants also apply retroactively: existing Web Controls previously styled according to the old default will immediately take the form specified by the new default. This allows for consistent branding throughout the entirety of each user's Journey, and it also makes it easy to see how different combinations of colors, fonts, and graphics look together.

</details>

## Changing the Default Color Palette

These are the Hex codes for the colors we are going to use:

* Orange: E36127
* Blue: 007A78

1. Go to **Theme** Builder.
2. Click on **brandPrimary** and change the default Hex color to E36127.

![](https://3088276961-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC6qMwMGWBgxnN70QsDuH%2Fuploads%2Fgit-blob-078ed34efcf752e90987aea4688ef6b2f4aaa06e%2Fchanging-the-theme-v182-0.png?alt=media)

3. Click on **textPrimary** and change the default Hex color to 007A78.

![](https://3088276961-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC6qMwMGWBgxnN70QsDuH%2Fuploads%2Fgit-blob-9839f40e7f2e3bd306a5d643f03d2c02d37e7c08%2Fchanging-the-theme-v182-1.png?alt=media)

Additionally, you can change some of tints and secondary colors so that they all look good in combination:

![](https://3088276961-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC6qMwMGWBgxnN70QsDuH%2Fuploads%2Fgit-blob-58989460aa089fbf577d73e2ca717045ac6e8faa%2Fchanging-the-theme-v182-2.png?alt=media)

## Changing an Individual Variant

1. Click on **Button Variant > Default** to make some changes to this Variant of this Control.
2. Change the bottom and top padding to 15px for a larger margin.

![](https://3088276961-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC6qMwMGWBgxnN70QsDuH%2Fuploads%2Fgit-blob-bd800bf9d079463cf40613c5389e728028ab8a1c%2Fchanging-the-theme-v182-3.png?alt=media)

3. Change the border for a double one, pick a different color and choose 4px to make it little thicker:

![](https://3088276961-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC6qMwMGWBgxnN70QsDuH%2Fuploads%2Fgit-blob-26ad0a0bede6bfb6940bbc778e71802c73a57ebc%2Fchanging-the-theme-v182-4.png?alt=media)

4. Save the app and go to **App Preview** to see the changes reflected:

![](https://3088276961-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC6qMwMGWBgxnN70QsDuH%2Fuploads%2Fgit-blob-42236628c9007627a2a934eaf9431f3ccc2270be%2Fchanging-the-theme-v182-5.png?alt=media)

<details>

<summary>What other styling changes can be made to individual Variants?</summary>

**Styling Variants**

The same styling properties that apply to individual Web Controls apply to their Variants. Their height, shape, and color are all among the common customizable properties, although the details depend the specifics of the Web Control. For a deeper dive into the available customizations, see [Common Styling Properties of Web Controls](../../web-controls/web-controls-overview/common-style-properties-of-web-controls).

</details>
