For developers
Theme architecture
How the theme is put together: the layout, templates, design system and the order assets load in. Useful before editing theme code.
{% sections 'header-group' %}
<main>
{{ content_for_layout }}
</main>
{% sections 'footer-group' %}
{% section 'mobile-tab-bar' %}
{% section 'cart-drawer' %}layout/theme.liquid · how the layout file assembles each page01
Layout
- layout/theme.liquid
- header-group
- footer-group
- cart-drawer
- mobile-tab-bar
- global modals
02
Templates
- index.json → homepage stack
- product.json → main-product + rails
- collection.json / search.json / cart.json
- customers/* account templates
03
Design system
- snippets/css-variables.liquid
- Theme settings: colors, fonts, Comers DS
- comers-ui.css + mobile/desktop layers
- Light/dark via data-theme
04
Key behaviors
- Sticky ATC — CSS fixed bottom (comers-sticky-atc.js hides when cart open)
- Cart drawer — full-bleed mobile, Pay Securely when open
- Size guide — comers-size-guide.js
- Support modals — contact + help center
- Predictive search — predictive-search.js
Asset load order
Files load in this order from layout/theme.liquid. Later stylesheets override earlier ones.
CSS
- base.css
- theme.css
- comers-ui.css
- comers-fixes.css
- comers-mobile.css
- comers-mobile-v3.css
- comers-mobile-v5.css
- comers-mobile-v6.css
- comers-desktop.css
- comers-home.css
- comers-v7-fixes.css
- buy-buttons.css
- cm-builder.css
JavaScript
- theme.js
- cart.js
- predictive-search.js
- comers-ui.js
- comers-size-guide.js
- comers-fixes.js
- comers-mobile.js
- comers-support.js
- cm-builder.js
- comers-v7-fixes.js
- comers-mobile-v5.js
- buy-buttons.js