MyShopy Help Center
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.

GroupSetting ids
Colorscolor_bg, color_text, color_text_muted, color_accent, color_accent_fg, color_surface, color_border, color_sale
Typographyfont_heading, font_body (any Google Font name), font_scale, heading_weight
Layoutpage_width, radius, button_radius, section_spacing
Product cardscard_ratio, card_hover_image, card_style
Cartcart_type (drawer or page), show_free_shipping_bar
Socialsocial_instagram, social_facebook, social_youtube, social_twitter
Brandfavicon, custom_css

CSS variables#

VariableFrom
--color-bg, --color-text, --color-text-mutedpage colors
--color-accent, --color-accent-fgbuttons and links (-fg = text on accent)
--color-surface, --color-border, --color-salecards, borders, sale price
--font-heading, --font-body, --font-scale, --heading-weighttypography
--page-width, --section-spacing, --grid-gaplayout
--radius, --radius-sm, --radius-lg, --btn-radiuscorners
.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