---
title: "Compose a theme"
slug: "compose-a-theme"
abstract: "Composing themes is the last step of building an atomic styles library, where themes are made up of a combination of rules."
---
# Compose a theme

Composing themes is the last step of building an atomic styles library in the Component builder.

Themes are made of a combination of pre-created elements and style rules. Their main purpose is to improve the components' styling process by applying multiple styles at once, for example, by applying light sections, dark cards, light text blocks, and specific pill styles in just one click.

## Add a theme

To add a theme to your style library:

1. In the Styles builder, in the left pane, click **Themes**.
2. Click **Add theme**.
3. Enter a name for your theme.
4. On the tabs **Block elements**, **Inline elements**, and **Text elements**, add styles for the various elements. For example, on the **Block elements** tab, click **Add section** to add a new style for sections, then pick the desired rules from the drop-down menu when available.
5. For each element, you can add more than one style. In you do this, choose one of the styles to be the default style.
6. To save the theme to the Styles library, click **Save**.

A theme saved in the Styles library is then available in the [style picker](https://doc.sitecore.com/sai/en/users/sitecoreai/design-components/components/styling-components/style-a-component-with-a-theme.html#UUID-d70ed9ca-1316-3d5b-da01-20189b95b22b_section-idm4589729568736033556843821317 "Pick a theme for the component") of the Component builder. When picking a theme, the default styles selected are automatically applied to all the elements of the component version. You can, however, [style](https://doc.sitecore.com/sai/en/users/sitecoreai/design-components/components/styling-components/style-a-component-with-a-theme.html#UUID-d70ed9ca-1316-3d5b-da01-20189b95b22b_section-idm4585461261646433556844348966 "Customize a theme") or [customize](https://doc.sitecore.com/sai/en/users/sitecoreai/design-components/components/styling-components/customize-an-element.html "Customize an element") any element of the theme directly in the Component builder by choosing one of the predefined alternative styles.