Add custom CSS to swatches

Fine-tune how swatches look with CSS for your whole store or for a single group, inside the swatches where your theme's CSS does not reach.

Updated Dec 2, 2026

Templates and global settings cover most designs. When you need something they do not offer, such as a border on the white swatch only, add CSS. Combio has two places for it: the global custom CSS, for every group, and a group's own custom CSS.

Why your theme's CSS does not work here

Swatches are drawn in their own sealed area of the page (a Shadow DOM), so your theme's styles cannot break them. It also means CSS added to your theme files does not reach them. Put swatch CSS in Combio instead.

Global custom CSS

  1. In Combio, open Option display and click Global settings (or Settings → General → Open Global settings).
  2. Open the Custom CSS section.
  3. Type your CSS and watch the preview, on Product page and Product card.
  4. Click Save.

It applies to every group, on product pages and product cards. It can hold up to 10,000 characters.

A group's custom CSS

  1. In Combio, open Product groups and click the group.
  2. In the Appearance card, type your CSS in Custom CSS for this group.
  3. Click Save.

It applies to this group only, on product pages and product cards, and can hold up to 5,000 characters. Use it for exceptions on top of the global CSS.

Selectors you can use

SelectorWhat it matches
.groupOne option's row of swatches, with its label
.group--cardA row on a product card
.labelThe option name and selected value above the swatches (product pages)
.listThe list of values
.tileThe swatch itself, in Circle swatch, Square swatch, Image swatch and similar templates
.faceThe button, in Button templates
[aria-current]The value of the product being shown
[data-option-value="White"]One value, by its name
.is-unavailableValues of sold-out products
.moreThe "+N" after the first values
.categoryCategory headings (outside dropdowns)
.badgeBadge words on buttons and swatch cards
.tipThe tooltip (global CSS only)

Examples

Give the white swatch an edge, so it does not disappear on a white page:

[data-option-value="White"] .tile {
  border-color: #8a8a8a;
}

Make "+N" bolder and fully visible:

.more {
  font-weight: 600;
  opacity: 1;
}

Use a light tooltip instead of the dark one:

.tip {
  background: #ffffff;
  color: #1a1a1a;
}

Dim sold-out values more on product cards only:

.group--card .is-unavailable {
  opacity: 0.3;
}

Badge colors have their own variables; see Show badges on swatches.

Was this article helpful?

Related articles

Still need help?

Our team answers by chat and email, usually within one business day.

Email support