New: Ask Axiom answers your Radian questions, right in the docs.Try it

Variants and swatches

Variant options (size, color, material) show as buttons or swatches in the product form, Quick view and product cards. Theme settings > Variants and swatches sets how they look, and which option holds colors.

How to set it up

Step 1: Style the option buttons

  1. Go to Theme settings > Variants and swatches.
  2. Turn on Show swatches (1) to show color options as swatches, and Show variant image to use the variant's image in the swatch.
  3. Set the Variant option size, Shape and Corner radius, and the Details style (how the option label and selected value sit).
  4. Under Variant borders, set the border and the outline of the selected option.
Theme settings > Variants and swatches.
Theme settings > Variants and swatches.

Step 2: List sold out options last (optional)

  1. Under Variant options, turn on Show sold out options last (1).
  2. Option values with no variant in stock move to the end of the list on product pages, quick view and product cards. Values in stock keep the order set in Shopify Admin.
Show sold out options last.
Show sold out options last.

Step 3: Shape the swatches

  1. Under Swatch appearance, choose a circle, square, 4:3 or 3:4 swatch and its corner radius.

Step 4: Map your colors

  1. In Color options name, enter the option names that hold colors, for example Color, Colour.
  2. In Custom color codes/images, add colors Shopify doesn't know, separated by commas or new lines, as Name: #hex or Name: image URL, for example Oxblood: #4a0d12.

Step 5: Show icons on option values (optional)

  1. Under Color mapping, fill in Option value icons, one per line as Value: image URL, for example Round: shopify://shop_images/round.png.
  2. Upload the icons in Content > Files in Shopify admin first. Write shopify://shop_images/ followed by the file name, or paste the file's full link. Small square PNGs on a transparent background work best.
  3. The icon shows before the value on option buttons and in Accordion headers, on product pages, in Featured product and in Quick add. Use it for shapes, cuts or carat sizes.

Step 6: Give metal swatches a brushed look (optional)

  1. Under Swatch appearance, set Swatch finish to Brushed metal. Color swatches get a fine circular grain and a soft light, so gold and silver look like metal rather than flat color.
  2. Keep Flat for fabric, paint or any other plain colors.

Settings reference

Variants and swatches

Variant options
Show swatches Turns this on or off.
Show variant image Turns this on or off.
Variant option size Applies to swatches and text options in product forms. Options: Extra small, Small, Medium, Large, Extra large.
Shape Options: Square, Rounded, Pill.
Corner radius Slider.
Details style Controls how option labels and selected values are arranged across product forms. Options: Option name only, Option name and selected value.
Show sold out options last Options with no variant in stock move to the end on product pages, quick view and product cards.
Parallax cursor movement Turns this on or off.
Apply to product cards Turns this on or off.
Variant borders
Border Options: None, Solid.
Border thickness Slider.
Border opacity Slider.
Active border thickness Slider.
Active border padding Gap between the selected option and its outline.
Inner border on selected option When off, the selected option keeps its normal border and background, and only the outer active border marks it.
Swatch appearance
Shape Options: Circle, Square, 4:3, 3:4.
Swatch finish Brushed metal adds a fine circular grain and a soft light to color swatches, for metals. Options: Flat, Brushed metal.
Corner radius Slider.
Color mapping
Color options name The option name that holds color values. E.g. Color, Colour, Shade, etc.
Custom color codes/images Enter custom color codes or image URLs for the color swatches. Use the format 'Color Name: #HexCode' or 'Color Name: link'. Separate multiple entries with a comma or a new line. E.g. 'Red: #FF0000, Blue: #0000FF, Green: https://example.com/green.png'
Option value icons Icons shown before option values such as shapes or carats, one per line: Round: shopify://shop_images/round.png. A value's own swatch image in Shopify admin comes first.

How it works

  • A swatch uses, in order: the variant image (when Show variant image is on), your custom color codes, Shopify's own swatch set on the color option in Shopify Admin, then the color name itself (for example "Navy").
  • The color option names are also used by variant media groups when you group media by color in alt text. See Variant media groups.
  • With Show sold out options last, a value moves to the end only when every variant that has it is sold out, for example a color whose sizes are all sold out. The order stays put while shoppers change other options: a size sold out only in the selected color keeps its place and shows as unavailable.
  • Product cards show up to five options, so values in stock come first there too.
  • When Corner style in Theme settings > Shape is Sharp, Soft or Round, it sets the option and swatch corners instead of the radius here.
  • When a value has its own swatch image in Shopify admin, that image is used before the icon from Option value icons.
  • Under Variant borders, turn Inner border on selected option off to mark the selected option with the outer active border only, and keep its normal border and background inside.

Related

Still stuck?

Include your store URL and theme version — we'll get back to you.

Contact support