Help Center › Themes & templates
Theme settings & CSS
Global settings every theme has, and the CSS variables they produce.
Theme settings are global for the whole store. Merchants change them in Customize → Theme settings. In Liquid they're available as settings.<id>, and most become CSS variables, so your section CSS follows the merchant's choices automatically.
| Group | Setting ids |
|---|---|
| Colors | color_bg, color_text, color_text_muted, color_accent, color_accent_fg, color_surface, color_border, color_sale |
| Typography | font_heading, font_body (any Google Font name), font_scale, heading_weight |
| Layout | page_width, radius, button_radius, section_spacing |
| Product cards | card_ratio, card_hover_image, card_style |
| Cart | cart_type (drawer or page), show_free_shipping_bar |
| Social | social_instagram, social_facebook, social_youtube, social_twitter |
| Brand | favicon, custom_css |
CSS variables#
| Variable | From |
|---|---|
--color-bg, --color-text, --color-text-muted | page colors |
--color-accent, --color-accent-fg | buttons and links (-fg = text on accent) |
--color-surface, --color-border, --color-sale | cards, borders, sale price |
--font-heading, --font-body, --font-scale, --heading-weight | typography |
--page-width, --section-spacing, --grid-gap | layout |
--radius, --radius-sm, --radius-lg, --btn-radius | corners |
.promo-box {
background: var(--color-surface);
color: var(--color-text);
border: 1px solid var(--color-border);
border-radius: var(--radius-lg);
padding: calc(var(--section-spacing) / 2);
}
.promo-box a { color: var(--color-accent); }Setting defaults in a template#
A template's settings object sets the starting values when a merchant installs it:
"settings": {
"color_bg": "#fffaf5", "color_text": "#1f1a17", "color_accent": "#b45309", "color_accent_fg": "#ffffff",
"font_heading": "Playfair Display", "font_body": "Inter", "radius": 12, "cart_type": "drawer"
}Any setting you leave out uses the platform default.
Didn’t find what you need?Contact support