Cardinal docs/Blocks
Content blocks
Heading, subheading, paragraph, button, icon, image, column, group and Custom Liquid — the pieces every section is built from.
Cardinal uses Shopify's theme blocks, which means one set of content blocks works everywhere. The heading block in a slideshow is the same block as the heading in a rich text section, a banner, or a column. Learn these once and every section is familiar.
Blocks inherit the color scheme of whatever section they sit in, so text on a dark section is light automatically. Heading, subheading and paragraph each have a Text color setting for the times you want to override that deliberately — leave it empty and the block follows the scheme.
Where blocks can go
Heading
The main line of a section. Three sizes map onto the theme's fluid type scale, so a Large heading is large relative to the viewport rather than a fixed pixel value.
H1 · H2 · H3 · H4 · H5 · H6 · Paragraph · Span · Div
Small · Medium · Large
Leave empty to follow the color scheme.
When set, the gradient is applied to the heading text and replaces the text color.
The optional Gradient applies a color gradient across the heading text and replaces the text color. Used once on a page it is striking; used three times it is noise.
Subheading
A smaller line in the heading font, usually above the heading. It is the theme's eyebrow — a category label, a season, a short qualifier. It renders as a paragraph by default; give it a heading tag only when it genuinely heads the content below it.
H2 · H3 · H4 · H5 · H6 · Paragraph · Span
Leave empty to follow the color scheme.
Paragraph
Body copy, with rich text formatting — bold, italic, links, lists. Three sizes are available; Large works well as a lead paragraph directly under a heading. Lines are capped at a comfortable reading length, even in a full-width section.
Small · Medium · Large
Leave empty to follow the color scheme.
Button
Three styles and three sizes, taking their colors from the section's scheme. Multiple buttons in the same section sit side by side and wrap onto a new line when they run out of room.
Fill · Outline · Text
Small · Medium · Large
- Background color and Label color override the scheme for this one button. Background color applies to Fill; on Outline the label color sets both the text and the border. The Text style always uses the scheme's text color.
- A button with no label is not shown at all.
- A button with no link shows in its disabled state — a visible reminder, in the editor, that it goes nowhere yet.
Icon
Seventeen presets covering the usual commerce ideas — truck, shield, refresh, lock, gift, leaf, headphones, clock, star and more — or upload your own. The background shape turns a bare icon into a badge.
Arrow right · Chat · Check · Clock · Coupon · Gift · Headphones · Heart · Leaf · Lock · Music · Refresh · Shield · Sparkles · Star · Tag · Truck
240 x 240px .png recommended. Replaces the preset icon.
None · Circle · Square · Rounded
A custom icon replaces the preset entirely. A 240 × 240px PNG with a transparent background works best; the icon renders at whatever Icon width you set.
Image
An image inside a content flow — a logo, a signature, a small illustration. For a full image-and-text layout, use Image with text, which is built for it.
Describe the image for screen readers. Leave empty if the image is decorative.
Column
A container. Add column blocks to a section and put content blocks inside each one, and they lay out side by side on desktop and stack on mobile. This is how Multicolumn is built, and how Rich text becomes a multi-column layout.
A column accepts icon, heading, subheading, paragraph, button and image blocks. It has no settings of its own — spacing, alignment and column count come from the section around it.
Group
A group holds other blocks and lays them out horizontally or vertically, with its own alignment and padding — useful for putting two small blocks on one row, like a pair of trust badges under the buy button. It is available on the product page and in a Custom section, and groups can nest inside each other.
In the block picker it appears twice, under Layout: Row adds a horizontal group and Column a vertical one. In a Custom section, where the Column content block is listed too, the one under Layout is the group.
Horizontal · Vertical
Left · Center · Right
- Horizontal spreads its blocks across the row, from one edge to the other, and keeps them on one line at every screen size. Keep a row to two or three small blocks, and check it on a phone.
- Vertical stacks its blocks; Alignment lines them up left, center or right, and only shows for vertical groups.
- Padding applies to the sides of a horizontal group and to the top and bottom of a vertical one.
Custom Liquid
Outputs whatever Liquid or HTML you paste into it — an app's install snippet, an embed code, a line of Liquid that shows a metafield. It is available wherever app blocks are. There is a section version too; both are covered in Custom Liquid.
Add app snippets or other code to make advanced customizations.
Still stuck? Contact support and we will help.