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
- In Combio, open Option display and click Global settings (or Settings → General → Open Global settings).
- Open the Custom CSS section.
- Type your CSS and watch the preview, on Product page and Product card.
- 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
- In Combio, open Product groups and click the group.
- In the Appearance card, type your CSS in Custom CSS for this group.
- 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
| Selector | What it matches |
|---|---|
.group | One option's row of swatches, with its label |
.group--card | A row on a product card |
.label | The option name and selected value above the swatches (product pages) |
.list | The list of values |
.tile | The swatch itself, in Circle swatch, Square swatch, Image swatch and similar templates |
.face | The button, in Button templates |
[aria-current] | The value of the product being shown |
[data-option-value="White"] | One value, by its name |
.is-unavailable | Values of sold-out products |
.more | The "+N" after the first values |
.category | Category headings (outside dropdowns) |
.badge | Badge words on buttons and swatch cards |
.tip | The 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
- Customize a templateChange a template's sizes, colors, labels and hover effects once for every option that uses it, with separate product page, card and phone settings.
- Global settings for every templateSet the tooltip, two-color split, swatch order, sold-out products, badges and custom CSS once for every template, on product pages and cards.
- Show badges on swatchesFlag values that are on sale, low in stock or new, and show star ratings from your review app, right on the swatches.