Skip to content

Swatches Styling

Style every visual detail of Swatch options — Swatch (Single) and Swatch (Multi) — using per-type templates. Both share the same "Swatches" templates.

Overview

Read Types Settings first if you haven't created a template before. This page covers every setting available once you're editing a Swatches template, grouped the same way they appear in the editor's left navigation.

Two element layers are styled separately:

  • Swatch — the visual circle/square itself (color or image)
  • Item — the whole clickable container around a swatch (swatch + label + price)

Layout

Controls the swatch grid as a whole.

SettingWhat it controlsDefaultOptions / Range
DirectionWhether swatches flow in a row or a columnHorizontalHorizontal, Vertical
AlignmentHow swatches align within their row/columnStretchStretch, Left, Center, Right
Item SpacingGap between swatches12px0–40px
Items Per RowFixed column count, or automatic wrappingAutoAuto, 2, 3, 4, 5, 6

Stretch alignment

Stretch makes each row fill the full width of its container — this is what makes the swatch and label alignment fields below actually have a visible effect. With Left/Center/Right, items shrink to their content size instead.

Swatch (Media Element)

Shape & Size:

SettingWhat it controlsDefaultRange
Swatch SizeWidth and height of the swatch48px24–120px
Swatch Margin (per side)Space around the swatch0px0–20px
Swatch ShadowDrop shadow on the swatch itselfNo ShadowNo Shadow, Subtle, Medium, Strong

Image Settings (for image swatches):

SettingWhat it controlsDefaultOptions
Image PositionWhere the image is anchored if it's croppedCenterCenter, Top, Bottom

Multi-Color Settings (for swatches showing more than one color):

SettingWhat it controlsDefaultOptions / Range
Multi-Color LayoutHow multiple colors are arranged within one swatchVerticalVertical, Horizontal, Diagonal, Quadrant
Multi-Color DividerColor of the line separating each colorTransparent
Multi-Color Divider ThicknessThickness of that line1px0–8px

Border & States:

SettingWhat it controlsDefaultRange
Swatch Border RadiusCorner rounding — 50% makes it a circle, 0% a square50%0–50%
Swatch Border WidthBorder thickness1px0–6px

Per state (Idle / Hover / Selected):

SettingWhat it controlsDefaultRange
OpacitySwatch opacity in that state100%0–100%
Border Color (Idle, Hover)Border color in that stateLight gray
Auto Color from Swatch (Idle, Hover)Derives the border color from the swatch's own color instead of a fixed colorOff
Auto Color Shade (if Auto Color on)How much lighter/darker than the swatch color-20 (idle), -10 (hover)-100 to 100
Hover Scale (Hover only)How much the swatch grows on hover100%100–120%

Selected state additionally has a Selection Style picker that changes which fields appear:

Selection StyleWhat it controlsExtra fields
Ring (default)A ring drawn outside the swatchRing Width (1–5px), Ring Offset (1–6px), Ring Color
BorderA thicker border on the swatch itselfSelection Width (1–8px), Selection Color
ShadowA soft glow around the swatchShadow Spread (2–12px), Shadow Color
NoneNo selection indicator at all

Ring, Border, and Shadow styles also get the Auto Color from Swatch toggle (with a shade slider) to derive the selection color from the swatch itself.

Label

Display Mode:

SettingWhat it controlsDefaultOptions
Label ModeWhen/whether the value name showsOn HoverOn Hover (tooltip), Always Show, Hide Labels

The remaining Label subsections only apply when Label Mode is Always Show (except Tooltip Appearance, which only applies to On Hover).

Label Position (Always Show only):

SettingWhat it controlsDefaultOptions
Label PositionWhere the label sits relative to the swatchBelowBelow, Above, Right, Left

Typography (Always Show only):

SettingWhat it controlsDefaultOptions / Range
Font SizeSize of the label text13px8–30px
Font WeightWeight of the label text400300, 400, 500, 600, 700
Text TransformCase transformationNoneNone, Uppercase, Capitalize

Label States (Always Show only) — per state (Idle / Hover / Selected):

SettingWhat it controlsDefault
Text ColorLabel text color in that stateDark gray
BackgroundLabel background color in that stateTransparent
Auto Color from Swatch (if desired)Derives the label background from the swatch colorOff (shade default 80)

Set Background before Label Area

Label Area's padding, radius, and margin below only become visible once a state has a non-transparent Background color.

Label Area (Always Show only):

SettingWhat it controlsDefaultRange
Label Area Padding (per side)Inner padding around the label text4px all sides0–24px
Label Area Radius (per corner)Corner rounding of the label's background0px0–16px
Label Margin (per side)Space between the swatch and the label0px0–24px

Tooltip Appearance (On Hover only):

SettingWhat it controlsDefaultRange
Tooltip PositionWhere the tooltip appears relative to the swatchBottomTop, Bottom
Font SizeTooltip text size13px10–18px
Max WidthMaximum tooltip width300px100–400px
BackgroundTooltip background colorNear-black
Text ColorTooltip text colorWhite
Border Radius (per corner)Corner rounding6px0–16px
Padding (per side)Inner padding8px top/bottom, 12px left/right0–24px
ShadowDrop shadow styleSoftNone, Soft, Medium

Item Container

The whole clickable wrapper around a swatch (and its label/price).

Structure:

SettingWhat it controlsDefaultRange
Item Padding (per side)Padding inside the item wrapper0px0–32px
Item Border Radius (per corner)Corner rounding of the wrapper0px0–999px
Item Min Width (Always Show label only)Minimum width of the item0px (auto)0–200px
Item Inner Gap (Always Show label only)Gap between the swatch and the label inside the item8px0–20px

Border & States:

SettingWhat it controlsDefaultRange
Item Border WidthBorder thickness of the item wrapper0px0–6px

Per state (Idle / Hover / Selected):

SettingWhat it controlsDefault
BackgroundItem background color in that stateTransparent
Auto Color from SwatchDerives the item background from the swatch colorOff (shade default 80)
Border ColorItem border color in that stateTransparent
Auto Color from SwatchDerives the item border color from the swatch colorOff (shade default -20)
ShadowDrop shadow on the itemNone (None, Soft, Medium)

Quantity Input

Only relevant for swatch values that have a price and quantity input enabled.

Style:

SettingWhat it controlsDefaultOptions
Quantity Input StyleOverall visual style of the quantity stepperFloating PillFloating Pill, Classic Stepper, Connected Stepper, Vertical Arrows, Corner Badge

Appearance (which fields apply depends on the style chosen):

SettingWhat it controlsDefaultApplies to
Text ColorQuantity number colorDark grayAll styles
BackgroundSurface color behind the stepperWhiteFloating Pill, Connected Stepper, Vertical Arrows
Border ColorOutline colorLight grayAll styles
Accent ColorColor of the +/- affordance or badge fillBlackClassic Stepper, Corner Badge
Badge Text ColorColor of the number on the badge fillWhiteCorner Badge only
Button StyleSolid or outlined +/- buttonsSolidClassic Stepper only
UnderlineAdds an underline beneath the countOffClassic Stepper only
Font SizeSize of the quantity number14px (10–20px)All styles
Font WeightWeight of the quantity number500All styles

Disabled State

Applied to swatch values that are out of stock or otherwise unavailable.

SettingWhat it controlsDefaultOptions / Range
Disabled OpacityOpacity of a disabled swatch40%0–100%
Overlay StyleVisual treatment layered on top of a disabled swatchNoneNone, Diagonal, Cross, Fade
Overlay Color (Diagonal/Cross only)Color of that overlayGray
Click BehaviorWhat happens if a customer clicks a disabled swatchPreventPrevent, Allow with Warning

Animation

SettingWhat it controlsDefaultOptions
Hover TransitionMicro-interaction when hovering a swatchNoneNone, Scale Up, Lift, Glow
Animation Target (if not None)Whether the whole item or just the swatch animatesContainerContainer, Swatch
Transition Duration (if not None)Speed of the animation300ms150ms, 300ms, 500ms

Responsive

SettingWhat it controlsDefaultRange
Mobile Swatch SizeOverrides swatch size on small screensUses desktop size16–80px
Mobile Items Per RowOverrides column count on small screensAutoAuto, 2, 3, 4, 5

Advanced

SettingWhat it controlsDefaultRange
Focus Outline ColorKeyboard-focus outline color, for accessibilityBlue
Focus Outline WidthThickness of that outline2px1–4px

How to Style Swatches

  1. Open the Style Settings modal (see Customization Overview)
  2. Click TypesSwatches
  3. Create a new template or click an existing one to edit it
  4. Use the left navigation to jump between Layout, Swatch, Label, Item Container, Quantity Input, Disabled State, Animation, Responsive, and Advanced
  5. Watch the Live Preview update as you change settings
  6. Click Save in the contextual save bar