Theme block and styling
Add the builder to your theme, use the block settings, CSS tokens and stable class names.
The builder is a theme app block. It works with Online Store 2.0 themes and takes its font and text color from your theme unless you change them.
Add the block
- In Shopify Admin, go to Online Store, Themes, Customize.
- Open a product template used by your customizable products.
- Add a block or section, choose Apps, then Moddify Studio.
- Save.
The block finds the customizer published for the product on its own. Fill in Customizer ID only to show a different customizer.
Prefer not to touch templates? Turn on the Moddify Studio app embed under App embeds and enable Show the builder on customizable products without an app block. The embed does nothing on product pages that already have the block.
Block settings
| Setting | Options |
|---|---|
| Layout | Gallery (the default), Compact card, Full width, Full screen (opens from a button) |
| Product photos selector | Gallery only: where the preview goes, if your theme's photos aren't found on their own |
| Price bar | Sticky at the bottom on mobile, or inline |
| Show step numbers | On or off |
| Accent color, Background, Text color | Background matters on dark themes |
| Corner radius, Image tile size | Sizes in pixels |
| Font | Same as theme, or a custom font from the font picker |
| Choices shown in the cart | None, Short (one line), Full (one line per option) |
| After add to cart | Go to cart, or stay on the page |
| Starting preset ID | See Presets and saved designs |
| Mount selector | Move the builder into another element, for themes that need it |
| Custom CSS | Anything the settings do not cover |
Layouts
Gallery (the default) keeps your theme's product page and swaps the product photos for the live preview. The preview stays in view while buyers scroll; on phones it sits where the photo would. The steps open one at a time as an accordion in the product info column, each closed step showing what was picked, and the price bar sticks to the bottom with a small copy of the design once the preview is out of view. The builder finds the photos in Dawn and most Online Store 2.0 themes. If yours isn't found, enter its CSS selector under Product photos selector; with no photo area the preview stays inside the block.
Compact card leaves your theme's photos alone. Everything sits in one card in the product info column: a small preview, the step name with a progress bar (tap a segment to jump to that step), one step at a time with Back and Next, and the total with Add to cart at the bottom of the card.
Full width works like a dedicated configurator page. Once the builder has loaded, it moves to the top of the product section, hides the theme's own product media, title, price and buttons, and shows the product title itself. A large preview sits beside the steps (on phones it stays at the top of the screen while the options scroll), and Your build lists the base price and every option that changes it, above Add to cart.
Full screen puts a small card in the product info column: a thumbnail of the design, the number of steps and a Start designing button with the price. The button opens the builder over the whole window. On desktop the steps are listed down the left with what was picked in each, the preview fills the middle, the options are on the right with Back and Next below them, and the total and Add to cart sit in the top bar. On phones the preview is at the top and the options slide up as a sheet, with Back, Next and Add to cart at the bottom. Esc, the close button or the phone's Back gesture closes it.
In every layout, if the builder can't load, the theme's product page stays as it was. Blocks set to the older Split or Stacked layouts now open as Gallery.
CSS tokens
All styling runs through CSS custom properties on the builder root (.cmz). Set them in Custom CSS:
.cmz {
--cmz-radius: 4px;
--cmz-tile: 104px;
--cmz-accent: #b5246e;
}
| Token | Default | Notes |
|---|---|---|
--cmz-text, --cmz-bg |
theme text, Canvas |
Text and background |
--cmz-accent, --cmz-on-accent |
text, background | The on-accent color is chosen for contrast |
--cmz-surface, --cmz-border, --cmz-border-subtle, --cmz-muted |
mixed from text and background | Work on light and dark backgrounds |
--cmz-error, --cmz-focus |
red, accent | Error text and focus ring |
--cmz-radius, --cmz-radius-sm, --cmz-radius-pill |
12px, half, 999px | Corners |
--cmz-space-1 to --cmz-space-6 |
4 to 32px | Spacing scale |
--cmz-font, --cmz-font-heading |
inherit |
Fonts |
--cmz-fs-xs to --cmz-fs-xl |
0.8125 to 1.375rem | Type scale |
--cmz-tile, --cmz-swatch, --cmz-target |
88px, 36px, 44px | Tile and swatch size, minimum touch target |
--cmz-preview-max |
48vh | Largest preview height where the layout doesn't set its own |
Class names
These class names are stable between releases, so overrides keep working:
| Part | Classes |
|---|---|
| Root | cmz, cmz--gallery, cmz--card, cmz--takeover, cmz--fullscreen |
| Preview | cmz-preview, cmz-preview__stage, cmz-preview__layer, cmz-views, cmz-view--active |
| Steps | cmz-steps, cmz-step, cmz-step--active, cmz-step--done, cmz-step--error |
| Gallery | cmz-slot (the preview in your theme's photo area), cmz-acc, cmz-acc__item--active, cmz-acc__head, cmz-acc__summary, cmz-acc__panel, cmz-acc__next |
| Compact card | cmz-card, cmz-card__steps, cmz-card__seg, cmz-card__seg--on |
| Full screen | cmz-launchcard, cmz-launch, cmz-full, cmz-full__rail, cmz-full__step, cmz-full__panel, cmz-full__pager |
| Full width | cmz-studio, cmz-studio__panel, cmz-title, cmz-build, cmz-build__line |
| Questions | cmz-question, cmz-question--{type}, cmz-question__title, cmz-question__help, cmz-question__error |
| Answers | cmz-answers--swatch, --tiles, --buttons, --list, cmz-answer, cmz-answer--selected, cmz-answer--soldout, cmz-answer__label, cmz-answer__price |
| Price bar | cmz-pricebar, cmz-pricebar__amount, cmz-pricebar__add, cmz-pricebar__message |
Example: a heavier outline on selected answers.
.cmz-answer--selected .cmz-answer__body { box-shadow: none; outline: 3px solid var(--cmz-accent); }
Accessibility
Answers are real radio buttons and checkboxes, focus is always visible, price changes are announced to screen readers and touch targets are at least 44 px. If you change colors, check that text and the accent keep enough contrast against your background.