How a block is styled
Which blocks take your store's design, how to match your store design to your storefront, why an injectable that uses a block has no design choice, and how to see a block before it goes live.
Your store's design is set under Storefront › Design: colours, spacing, corners, shadows and type. This page explains which blocks take that design, and how to make one use of a block look different from another.
Match the store design to your storefront
Two choices on Storefront › Design help the design line up with the rest of your storefront:
- The Font control has a Same as my storefront choice. Pick it and your widgets use whatever font your theme already loads, so they match your pages. The preview shows a stand-in font. Your storefront uses its own.
- Import a scanned design, in the quick-start area, loads a design file StoreSpan made from your storefront. StoreSpan scans your storefront and sends you the file; choose it here, check the preview, and press Save. Nothing changes on your shop until you press Save. If you have unsaved edits, importing asks before it replaces them. A file that is not a StoreSpan design is refused with a short message and changes nothing.
A scanned design matches your storefront's colours, fonts, text size and corners. It does not copy a button's text style, such as capital letters, weight or letter spacing — that is planned for a later release.
Which blocks take the store design
| Kind of block | Takes the store design |
|---|---|
| Custom HTML & CSS | Yes. Its CSS can use the store's values. |
| Design preset | Yes. |
| HTML, Template, Script | No. It shows as you wrote it. |
| Countdown | No. It shows as you set it up. |
Why the injectable has no design choice
An injectable with content of its own has a Design card with three choices: use the store design, use no styling, or change values for that injectable only.
An injectable that uses a block shows a note instead: This injectable renders a block, so whether a store design applies is governed by that block’s content kind — not by a source chosen here.
So the block decides. A block has no Design card of its own either. The table above is the whole rule.
Make one use of a block look different
Give the block a variable for what should differ, and use it in the block's CSS.
- In the block, add a Colour variable, such as
accent. See Variables. - In the block's HTML, pass it to the CSS as a
--style value:style="--accent: {{accent}}". - In the block's CSS, read it with
var(--accent). - In a Blocks injectable, set
accentto the colour you want there. See Give a block its own values.
A Number variable works the same way for a size or a spacing.
See a block before it goes live
The block form has no preview. To see a block as shoppers will:
- Create a Blocks injectable and leave it as a draft.
- Add the block to its stack.
- Look at the live preview next to the stack.

While the stack is empty the preview says Add a visible block or write wrapper HTML to preview it here.
The controls above the picture of the content let you pretend to be a shopper from another country or on another page.
The preview shows the injectable on its own, without your theme. To check it on your storefront, publish the injectable as Preview only. See Preview.
An injectable that uses a single block as its content has no live preview.