Theme
An overview of all theming options available in the editor. Learn how to change buttons, colors, typography and container styles.
In this guide, we’ll show you how to edit the global styling of your webstore. We’ll dive into how you can configure the buttons, colors, typography, and container.
At the top left of the editor, you’ll find the “Content” and “Theme” toggle. Click on the “Theme” tab to access the theme editor.
Note the different theming groups available. Clicking on a group will display the options available in that group. Clicking on the “Styles” button will trigger a popup with predefined styling options you can use. All are curated by us and are made to help you save time!
Clicking on any of the styles, will prefill the group with options that are part of that style. You can still customize these options to your liking.
Now let’s go over each one of the groups and explain in sufficient detail what they do.
Button
- Button State — There are two button states “Normal” and “Hover”, for which you can configure styling independently. At the very top of the button theme group, you’ll find two preview buttons to toggle between these two states. When the first is select, you’ll find all styling options when the button is in the normal state. When the second is selected, you’ll find all styling options when the button is in the hover state.
- Padding & Border Radius — Here you can edit the padding (inner spacing) and border radius (roundness) of the button. Typically, you’d have equal spacing in the horizontal direction, and equal spacing in the vertical direction, but you’re free to modify things as you wish.
- Border — The slider can be used to configure border opacity. The numbered button next to the slider indicates the border width. The very last button expresses the location of the border (can be inner, outer or outline).
- Background — The slider can be used to configure background opacity.
- Shadow — The slider can be used to configure shadow opacity. The button next to the slider expresses the location of the shadow (can be inner or outer).
- Transition — This toggle option allows you to enable or disable the transition effect when hovering over the button.
Color
Clicking on any of the colors will open the familiar color picker. The color picker allows you to select any color or gradient you want. We’ll also give you an indicator of the contrast ratio; the contrast ratio is calculated with respect to the primary background color. As a rule of thumb, with text you should not go below 4.5, and with large text, you should not go below 3.
- Primary — Used for primary buttons and some subtitles. This color is the main accent color, should be used sparingly and reflect your brand.
- Secondary — Used for secondary buttons. This color is used for buttons that require less attention.
- Danger — Used for potentially “dangerous” actions (e.g. closing a modal, removing a product from the basket).
- Success — Used for confirmation buttons.
- Background Primary — Used for the background of the body.
- Background Secondary — Used for the background of containerized fragments. This color may also serve as an accent to the main background.
- Foreground Primary — Used for titles and text that needs emphasis. This color should have a high contrast ratio with the primary background color.
- Foreground Secondary — Used for paragraphs, and in some cases subtitles or text that doesn’t require much attention. This color should have a high contrast ratio with the primary background color, and be ever so slightly different from the primary foreground color for better visual hierarchy.
Typography
Clicking on any of the typography buttons will open a popup with available fonts. At the moment, we have a curated list of fonts that are available for you to use. However, if you had a specific Google Font in mind that isn’t available, please reach out to use and we’ll add it for you.
- Heading — Used for titles, headings and buttons.
- Subtitle — Used for subtitles (small headings).
- Paragraph — Used for paragraphs.
Container
- Margin & Border Radius — Here you can edit the margin (outer spacing) and border radius (roundness) of the container.
- Border — The slider can be used to configure border opacity. The numbered button next to the slider indicates the border width.
- Background — The slider can be used to configure background opacity.
- Shadow — The slider can be used to configure shadow opacity. The button next to the slider expresses the location of the shadow (can be inner or outer).
- Spacing — The select option allows you to select a certain spacing measure and edit its value. Spacing measures are used within fragments to ensure that the spacing between elements is consistent. You can configure XS (eXtra Small), SM (SMall), MD (MeDium), LG (LarGe).
Theme Versus Fragment Style
There is an important difference between editing your global theme and local fragment styles. When you edit the global theme, you’re changing the styling for all fragments that use that specific style. However, when you edit the fragment style, you’re changing the styling for that specific fragment only. Fragment styles always have precedence over global theming.
Whenever you are overriding the global theme using fragment styles, an orange dot and “Reset” button will be shown next to the style group. Clicking on the “Reset” button will undo your fragment style overrides for that specific group and revert back to the global theme.
Fragment styles are useful when you want to have a specific fragment look different from the rest of your webstore. For example, you might want to have a specific banner fragment that has a different background color than the rest of your webstore. In that case, you’d edit the fragment style of that specific banner fragment.