---
title: "Custom CSS: classes and variables"
description: "The 29 class names and 78 CSS variables Swatchfy exposes, why overriding a variable needs !important, and recipes for the common asks."
url: https://help.kiteapps.co/en/articles/23-custom-css-classes-and-variables
collection: "Developers"
updated: 2026-11-12
language: en
---

# Custom CSS: classes and variables

The 29 class names and 78 CSS variables Swatchfy exposes, why overriding a variable needs !important, and recipes for the common asks.

Almost everything about how swatches look is a control on the **Appearance** page, and that is the right place to change it — those settings survive updates and apply per look and per surface.

This page is for the rest: the times you need something the controls do not offer. Swatchfy exposes **29 stable class names** and **78 CSS custom properties** for exactly that.

Put your rules in Swatchfy → **Settings → Custom CSS**. They are injected on the storefront after the app's own stylesheet.

![](https://staticfiles.gleap.io/ghelparticle/3Hei1ul9J0WMutdzU3szcCEKwAxRK4fQ8WfvJO03m4O3FI1U6naCfjK2Rx0uVvreZyOzfKZEXym.png)

## ⚠ **Read this first: you will usually need** `!important`

Swatchfy writes its variables **inline on each swatch row**, from Liquid at page render and again from JavaScript after the config loads. Inline styles beat stylesheet rules, so this does nothing:

```javascript
/* Does not work — the inline value wins */
.swatchfy-swatches { --kx-bc: #000; }
```

and this works:

```javascript
.swatchfy-swatches { --kx-bc: #000 !important; }
```

Rules that target ordinary properties rather than the variables behave normally and need no `!important`:

```javascript
.swatchfy-swatch-item { box-shadow: 0 1px 3px rgba(0,0,0,.15); }
```

Prefer that second form when you can. Overriding a variable fights the app's own settings; adding a property the app does not set does not.

## **The classes**

### **Row structure**

<table data-id="b4a509a0-23ac-4781-bd51-c3a425aae318" style="min-width: 50px;"><colgroup><col style="min-width: 25px;"><col style="min-width: 25px;"></colgroup><tbody><tr><td colspan="1" rowspan="1"><p data-id="da20d7c0-5c69-4b23-ab05-7fb88ca4d00f"><strong>Class</strong></p></td><td colspan="1" rowspan="1"><p data-id="09fe8b28-7767-4c57-9fef-e1354a09e231"><strong>What it is</strong></p></td></tr><tr><td colspan="1" rowspan="1" style="box-sizing: border-box; margin: 0px; padding: 6px; outline-color: rgb(37, 106, 191); scrollbar-width: thin; scrollbar-color: rgba(30, 30, 29, 0.35) rgba(0, 0, 0, 0); text-rendering: optimizelegibility; border-radius: 3px; text-align: left; vertical-align: top; overflow-wrap: break-word; background: none 0% 0% / auto repeat scroll border-box border-box rgba(11, 11, 11, 0.04);"><p data-id="6e059569-365c-43ce-83b1-9063471397b6"><code>.swatchfy-swatches</code></p></td><td colspan="1" rowspan="1" style="box-sizing: border-box; margin: 0px; padding: 6px; outline-color: rgb(37, 106, 191); scrollbar-width: thin; scrollbar-color: rgba(30, 30, 29, 0.35) rgba(0, 0, 0, 0); text-rendering: optimizelegibility; border-radius: 3px; text-align: left; vertical-align: top; overflow-wrap: break-word; background: none 0% 0% / auto repeat scroll border-box border-box rgba(11, 11, 11, 0.04);"><p data-id="f96744cf-e69d-4ae3-af68-563371ef7150">The row container, one per option. Carries <code>data-swatchfy-option</code>, <code>data-swatchfy-option-index</code> and <code>data-swatchfy-slug</code>.</p></td></tr><tr><td colspan="1" rowspan="1" style="box-sizing: border-box; margin: 0px; padding: 6px; outline-color: rgb(37, 106, 191); scrollbar-width: thin; scrollbar-color: rgba(30, 30, 29, 0.35) rgba(0, 0, 0, 0); text-rendering: optimizelegibility; border-radius: 3px; text-align: left; vertical-align: top; overflow-wrap: break-word; background: none 0% 0% / auto repeat scroll border-box border-box rgba(11, 11, 11, 0.04);"><p data-id="a65804db-28fd-4d48-b003-03542085f1de"><code>.swatchfy-swatches__optlabel</code></p></td><td colspan="1" rowspan="1" style="box-sizing: border-box; margin: 0px; padding: 6px; outline-color: rgb(37, 106, 191); scrollbar-width: thin; scrollbar-color: rgba(30, 30, 29, 0.35) rgba(0, 0, 0, 0); text-rendering: optimizelegibility; border-radius: 3px; text-align: left; vertical-align: top; overflow-wrap: break-word; background: none 0% 0% / auto repeat scroll border-box border-box rgba(11, 11, 11, 0.04);"><p data-id="acfd3dfb-b837-45b2-b124-70b9fb3b5cb3">The label line above the swatches</p></td></tr><tr><td colspan="1" rowspan="1" style="box-sizing: border-box; margin: 0px; padding: 6px; outline-color: rgb(37, 106, 191); scrollbar-width: thin; scrollbar-color: rgba(30, 30, 29, 0.35) rgba(0, 0, 0, 0); text-rendering: optimizelegibility; border-radius: 3px; text-align: left; vertical-align: top; overflow-wrap: break-word; background: none 0% 0% / auto repeat scroll border-box border-box rgba(11, 11, 11, 0.04);"><p data-id="00389bf2-2f9c-4cd3-adff-0cacb6a10fcf"><code>.swatchfy-swatches__optcaption</code></p></td><td colspan="1" rowspan="1" style="box-sizing: border-box; margin: 0px; padding: 6px; outline-color: rgb(37, 106, 191); scrollbar-width: thin; scrollbar-color: rgba(30, 30, 29, 0.35) rgba(0, 0, 0, 0); text-rendering: optimizelegibility; border-radius: 3px; text-align: left; vertical-align: top; overflow-wrap: break-word; background: none 0% 0% / auto repeat scroll border-box border-box rgba(11, 11, 11, 0.04);"><p data-id="e0c376b3-2c87-4e0f-a0ba-75d6588ed92c">Name and value welded together as one flex item</p></td></tr><tr><td colspan="1" rowspan="1" style="box-sizing: border-box; margin: 0px; padding: 6px; outline-color: rgb(37, 106, 191); scrollbar-width: thin; scrollbar-color: rgba(30, 30, 29, 0.35) rgba(0, 0, 0, 0); text-rendering: optimizelegibility; border-radius: 3px; text-align: left; vertical-align: top; overflow-wrap: break-word; background: none 0% 0% / auto repeat scroll border-box border-box rgba(11, 11, 11, 0.04);"><p data-id="3ad3f000-a903-4ced-9376-bb765606c660"><code>.swatchfy-swatches__optname</code> · <code>__optvalue</code></p></td><td colspan="1" rowspan="1" style="box-sizing: border-box; margin: 0px; padding: 6px; outline-color: rgb(37, 106, 191); scrollbar-width: thin; scrollbar-color: rgba(30, 30, 29, 0.35) rgba(0, 0, 0, 0); text-rendering: optimizelegibility; border-radius: 3px; text-align: left; vertical-align: top; overflow-wrap: break-word; background: none 0% 0% / auto repeat scroll border-box border-box rgba(11, 11, 11, 0.04);"><p data-id="b18a713c-bf6b-4aa9-836b-bba92a7d859b">The name, and the selected value</p></td></tr><tr><td colspan="1" rowspan="1" style="box-sizing: border-box; margin: 0px; padding: 6px; outline-color: rgb(37, 106, 191); scrollbar-width: thin; scrollbar-color: rgba(30, 30, 29, 0.35) rgba(0, 0, 0, 0); text-rendering: optimizelegibility; border-radius: 3px; text-align: left; vertical-align: top; overflow-wrap: break-word; background: none 0% 0% / auto repeat scroll border-box border-box rgba(11, 11, 11, 0.04);"><p data-id="05019502-3254-49f8-b794-b5a2c51b8461"><code>.swatchfy-swatches__optslot</code></p></td><td colspan="1" rowspan="1" style="box-sizing: border-box; margin: 0px; padding: 6px; outline-color: rgb(37, 106, 191); scrollbar-width: thin; scrollbar-color: rgba(30, 30, 29, 0.35) rgba(0, 0, 0, 0); text-rendering: optimizelegibility; border-radius: 3px; text-align: left; vertical-align: top; overflow-wrap: break-word; background: none 0% 0% / auto repeat scroll border-box border-box rgba(11, 11, 11, 0.04);"><p data-id="2da87a14-fc5b-43bb-8a75-6ffe787b6e66">The empty box at the end of the label row, for your own content — see <em>Swatch events and the JavaScript API</em></p></td></tr><tr><td colspan="1" rowspan="1" style="box-sizing: border-box; margin: 0px; padding: 6px; outline-color: rgb(37, 106, 191); scrollbar-width: thin; scrollbar-color: rgba(30, 30, 29, 0.35) rgba(0, 0, 0, 0); text-rendering: optimizelegibility; border-radius: 3px; text-align: left; vertical-align: top; overflow-wrap: break-word; background: none 0% 0% / auto repeat scroll border-box border-box rgba(11, 11, 11, 0.04);"><p data-id="48e073d2-2648-46a8-88a1-5ef4e57a8644"><code>.swatchfy-swatches__row</code></p></td><td colspan="1" rowspan="1" style="box-sizing: border-box; margin: 0px; padding: 6px; outline-color: rgb(37, 106, 191); scrollbar-width: thin; scrollbar-color: rgba(30, 30, 29, 0.35) rgba(0, 0, 0, 0); text-rendering: optimizelegibility; border-radius: 3px; text-align: left; vertical-align: top; overflow-wrap: break-word; background: none 0% 0% / auto repeat scroll border-box border-box rgba(11, 11, 11, 0.04);"><p data-id="24c41836-b159-4322-bebf-c12b6a040e90">The swatches themselves</p></td></tr></tbody></table>

### **Product page and product cards are two namespaces**

Everything in this section is the **product page**. Card swatches render under their own names, so a rule written for one does not reach the other:

<table data-id="5e04476a-891b-4433-b865-077b79748640" style="min-width: 159px;"><colgroup><col style="width: 15.4%;"><col style="min-width: 25px;"><col style="min-width: 25px;"></colgroup><tbody><tr><td colspan="1" rowspan="1"><p data-id="26b4d633-a015-4254-905a-769c525241a4"></p></td><td colspan="1" rowspan="1"><p data-id="12afb9ef-719b-41fb-8232-6dc016b78ca6"><strong>Product page</strong></p></td><td colspan="1" rowspan="1"><p data-id="e57a866f-3908-4cea-8f19-36eea9ca3a3e"><strong>Product card</strong></p></td></tr><tr><td colspan="1" rowspan="1" style="box-sizing: border-box; margin: 0px; padding: 6px; outline-color: rgb(37, 106, 191); scrollbar-width: thin; scrollbar-color: rgba(30, 30, 29, 0.35) rgba(0, 0, 0, 0); text-rendering: optimizelegibility; border-radius: 3px; text-align: left; vertical-align: top; overflow-wrap: break-word; background: none 0% 0% / auto repeat scroll border-box border-box rgba(11, 11, 11, 0.04);"><p data-id="39b49b25-fa09-4d2c-8ef0-34ef65036872">Row container</p></td><td colspan="1" rowspan="1" style="box-sizing: border-box; margin: 0px; padding: 6px; outline-color: rgb(37, 106, 191); scrollbar-width: thin; scrollbar-color: rgba(30, 30, 29, 0.35) rgba(0, 0, 0, 0); text-rendering: optimizelegibility; border-radius: 3px; text-align: left; vertical-align: top; overflow-wrap: break-word; background: none 0% 0% / auto repeat scroll border-box border-box rgba(11, 11, 11, 0.04);"><p data-id="e495d1ea-e4f1-4b58-9041-95ec78f1f3fb"><code>.swatchfy-swatches</code></p></td><td colspan="1" rowspan="1" style="box-sizing: border-box; margin: 0px; padding: 6px; outline-color: rgb(37, 106, 191); scrollbar-width: thin; scrollbar-color: rgba(30, 30, 29, 0.35) rgba(0, 0, 0, 0); text-rendering: optimizelegibility; border-radius: 3px; text-align: left; vertical-align: top; overflow-wrap: break-word; background: none 0% 0% / auto repeat scroll border-box border-box rgba(11, 11, 11, 0.04);"><p data-id="8b10f4c4-baa4-4e77-a063-22f8f7c5c444"><code>.swatchfy-card-swatches</code></p></td></tr><tr><td colspan="1" rowspan="1" style="box-sizing: border-box; margin: 0px; padding: 6px; outline-color: rgb(37, 106, 191); scrollbar-width: thin; scrollbar-color: rgba(30, 30, 29, 0.35) rgba(0, 0, 0, 0); text-rendering: optimizelegibility; border-radius: 3px; text-align: left; vertical-align: top; overflow-wrap: break-word; background: none 0% 0% / auto repeat scroll border-box border-box rgba(11, 11, 11, 0.04);"><p data-id="5f31f416-9a08-4a6f-b6e5-307ac1eab088">One swatch</p></td><td colspan="1" rowspan="1" style="box-sizing: border-box; margin: 0px; padding: 6px; outline-color: rgb(37, 106, 191); scrollbar-width: thin; scrollbar-color: rgba(30, 30, 29, 0.35) rgba(0, 0, 0, 0); text-rendering: optimizelegibility; border-radius: 3px; text-align: left; vertical-align: top; overflow-wrap: break-word; background: none 0% 0% / auto repeat scroll border-box border-box rgba(11, 11, 11, 0.04);"><p data-id="2c16cc9e-335f-4215-960d-db7dc8972aa1"><code>.swatchfy-swatch-item</code> (also carries <code>.swatchfy-swatch</code>)</p></td><td colspan="1" rowspan="1" style="box-sizing: border-box; margin: 0px; padding: 6px; outline-color: rgb(37, 106, 191); scrollbar-width: thin; scrollbar-color: rgba(30, 30, 29, 0.35) rgba(0, 0, 0, 0); text-rendering: optimizelegibility; border-radius: 3px; text-align: left; vertical-align: top; overflow-wrap: break-word; background: none 0% 0% / auto repeat scroll border-box border-box rgba(11, 11, 11, 0.04);"><p data-id="70fd01b4-7e5b-4354-aaae-6f72e005c4c6"><code>.swatchfy-card-swatch</code></p></td></tr></tbody></table>

The state and look modifiers below — `--pill`, `.swatchfy-selected`, `.swatchfy-soldout` and the rest — are shared.

### **One swatch**

<table data-id="b36dd3de-91de-4263-8cec-94ea29ae9217" style="min-width: 50px;"><colgroup><col style="min-width: 25px;"><col style="min-width: 25px;"></colgroup><tbody><tr><td colspan="1" rowspan="1"><p data-id="767fb287-b20c-4e1e-8406-b6f03ea53030"><strong>Class</strong></p></td><td colspan="1" rowspan="1"><p data-id="0e30b7cc-1966-4ec9-91ae-426e08791055"><strong>What it is</strong></p></td></tr><tr><td colspan="1" rowspan="1" style="box-sizing: border-box; margin: 0px; padding: 6px; outline-color: rgb(37, 106, 191); scrollbar-width: thin; scrollbar-color: rgba(30, 30, 29, 0.35) rgba(0, 0, 0, 0); text-rendering: optimizelegibility; border-radius: 3px; text-align: left; vertical-align: top; overflow-wrap: break-word; background: none 0% 0% / auto repeat scroll border-box border-box rgba(11, 11, 11, 0.04);"><p data-id="c6dacbf7-364e-48cd-a1fe-43d3dff558f7"><code>.swatchfy-swatch-item</code></p></td><td colspan="1" rowspan="1" style="box-sizing: border-box; margin: 0px; padding: 6px; outline-color: rgb(37, 106, 191); scrollbar-width: thin; scrollbar-color: rgba(30, 30, 29, 0.35) rgba(0, 0, 0, 0); text-rendering: optimizelegibility; border-radius: 3px; text-align: left; vertical-align: top; overflow-wrap: break-word; background: none 0% 0% / auto repeat scroll border-box border-box rgba(11, 11, 11, 0.04);"><p data-id="8f5906b6-cf5c-4f40-9267-2a3f520facd3">One swatch on a product page. It also carries the shorter <code>.swatchfy-swatch</code>, and every modifier below sits on this element.</p></td></tr><tr><td colspan="1" rowspan="1" style="box-sizing: border-box; margin: 0px; padding: 6px; outline-color: rgb(37, 106, 191); scrollbar-width: thin; scrollbar-color: rgba(30, 30, 29, 0.35) rgba(0, 0, 0, 0); text-rendering: optimizelegibility; border-radius: 3px; text-align: left; vertical-align: top; overflow-wrap: break-word; background: none 0% 0% / auto repeat scroll border-box border-box rgba(11, 11, 11, 0.04);"><p data-id="a22fdcfb-1ddf-4341-9f72-6bb78ed5cf3d"><code>.swatchfy-swatch__visual</code></p></td><td colspan="1" rowspan="1" style="box-sizing: border-box; margin: 0px; padding: 6px; outline-color: rgb(37, 106, 191); scrollbar-width: thin; scrollbar-color: rgba(30, 30, 29, 0.35) rgba(0, 0, 0, 0); text-rendering: optimizelegibility; border-radius: 3px; text-align: left; vertical-align: top; overflow-wrap: break-word; background: none 0% 0% / auto repeat scroll border-box border-box rgba(11, 11, 11, 0.04);"><p data-id="3235333f-a369-4907-941a-3ba4ae17359d">The colour or image inside it</p></td></tr><tr><td colspan="1" rowspan="1" style="box-sizing: border-box; margin: 0px; padding: 6px; outline-color: rgb(37, 106, 191); scrollbar-width: thin; scrollbar-color: rgba(30, 30, 29, 0.35) rgba(0, 0, 0, 0); text-rendering: optimizelegibility; border-radius: 3px; text-align: left; vertical-align: top; overflow-wrap: break-word; background: none 0% 0% / auto repeat scroll border-box border-box rgba(11, 11, 11, 0.04);"><p data-id="a7c21c6b-c64a-496e-bfe9-04cf7c7ecb78"><code>.swatchfy-swatch__label</code></p></td><td colspan="1" rowspan="1" style="box-sizing: border-box; margin: 0px; padding: 6px; outline-color: rgb(37, 106, 191); scrollbar-width: thin; scrollbar-color: rgba(30, 30, 29, 0.35) rgba(0, 0, 0, 0); text-rendering: optimizelegibility; border-radius: 3px; text-align: left; vertical-align: top; overflow-wrap: break-word; background: none 0% 0% / auto repeat scroll border-box border-box rgba(11, 11, 11, 0.04);"><p data-id="ae36037e-e4fa-441f-b31a-9c3c91888c0e">The text under an image or colour swatch</p></td></tr><tr><td colspan="1" rowspan="1" style="box-sizing: border-box; margin: 0px; padding: 6px; outline-color: rgb(37, 106, 191); scrollbar-width: thin; scrollbar-color: rgba(30, 30, 29, 0.35) rgba(0, 0, 0, 0); text-rendering: optimizelegibility; border-radius: 3px; text-align: left; vertical-align: top; overflow-wrap: break-word; background: none 0% 0% / auto repeat scroll border-box border-box rgba(11, 11, 11, 0.04);"><p data-id="4276c8ad-3012-487d-ae7e-18d08928ce91"><code>.swatchfy-swatch__pilltext</code></p></td><td colspan="1" rowspan="1" style="box-sizing: border-box; margin: 0px; padding: 6px; outline-color: rgb(37, 106, 191); scrollbar-width: thin; scrollbar-color: rgba(30, 30, 29, 0.35) rgba(0, 0, 0, 0); text-rendering: optimizelegibility; border-radius: 3px; text-align: left; vertical-align: top; overflow-wrap: break-word; background: none 0% 0% / auto repeat scroll border-box border-box rgba(11, 11, 11, 0.04);"><p data-id="54aec35e-1099-488b-9c82-85165e71551d">The text inside a button or pill</p></td></tr><tr><td colspan="1" rowspan="1" style="box-sizing: border-box; margin: 0px; padding: 6px; outline-color: rgb(37, 106, 191); scrollbar-width: thin; scrollbar-color: rgba(30, 30, 29, 0.35) rgba(0, 0, 0, 0); text-rendering: optimizelegibility; border-radius: 3px; text-align: left; vertical-align: top; overflow-wrap: break-word; background: none 0% 0% / auto repeat scroll border-box border-box rgba(11, 11, 11, 0.04);"><p data-id="4017aaa5-0b35-455c-af0c-9c45677e5fb1"><code>.swatchfy-swatch__price</code></p></td><td colspan="1" rowspan="1" style="box-sizing: border-box; margin: 0px; padding: 6px; outline-color: rgb(37, 106, 191); scrollbar-width: thin; scrollbar-color: rgba(30, 30, 29, 0.35) rgba(0, 0, 0, 0); text-rendering: optimizelegibility; border-radius: 3px; text-align: left; vertical-align: top; overflow-wrap: break-word; background: none 0% 0% / auto repeat scroll border-box border-box rgba(11, 11, 11, 0.04);"><p data-id="eba614c1-91fa-4ddb-933f-9d98dad84495">The price under a swatch</p></td></tr><tr><td colspan="1" rowspan="1" style="box-sizing: border-box; margin: 0px; padding: 6px; outline-color: rgb(37, 106, 191); scrollbar-width: thin; scrollbar-color: rgba(30, 30, 29, 0.35) rgba(0, 0, 0, 0); text-rendering: optimizelegibility; border-radius: 3px; text-align: left; vertical-align: top; overflow-wrap: break-word; background: none 0% 0% / auto repeat scroll border-box border-box rgba(11, 11, 11, 0.04);"><p data-id="3e9dc8a1-c458-4b97-a83a-1934401e0a92"><code>.swatchfy-swatch__so</code></p></td><td colspan="1" rowspan="1" style="box-sizing: border-box; margin: 0px; padding: 6px; outline-color: rgb(37, 106, 191); scrollbar-width: thin; scrollbar-color: rgba(30, 30, 29, 0.35) rgba(0, 0, 0, 0); text-rendering: optimizelegibility; border-radius: 3px; text-align: left; vertical-align: top; overflow-wrap: break-word; background: none 0% 0% / auto repeat scroll border-box border-box rgba(11, 11, 11, 0.04);"><p data-id="86757d73-ef8c-429d-beee-9a7fe60012b4">The sold-out marker</p></td></tr><tr><td colspan="1" rowspan="1" style="box-sizing: border-box; margin: 0px; padding: 6px; outline-color: rgb(37, 106, 191); scrollbar-width: thin; scrollbar-color: rgba(30, 30, 29, 0.35) rgba(0, 0, 0, 0); text-rendering: optimizelegibility; border-radius: 3px; text-align: left; vertical-align: top; overflow-wrap: break-word; background: none 0% 0% / auto repeat scroll border-box border-box rgba(11, 11, 11, 0.04);"><p data-id="9f8e06f2-3b53-4e24-a3cb-fedc9291bd22"><code>.swatchfy-swatch__zoom</code></p></td><td colspan="1" rowspan="1" style="box-sizing: border-box; margin: 0px; padding: 6px; outline-color: rgb(37, 106, 191); scrollbar-width: thin; scrollbar-color: rgba(30, 30, 29, 0.35) rgba(0, 0, 0, 0); text-rendering: optimizelegibility; border-radius: 3px; text-align: left; vertical-align: top; overflow-wrap: break-word; background: none 0% 0% / auto repeat scroll border-box border-box rgba(11, 11, 11, 0.04);"><p data-id="74a164b3-1ed8-4441-8bd6-ace5b1bdfb65">The hover-zoom wrapper</p></td></tr></tbody></table>

### **Which look is rendering**

`.swatchfy-swatch--bare` · `--framed` · `--frameddot` · `--pill` · `--swatchpill` · `--priced` · `--more`

`--more` is the "+3" counter when an option has more values than fit.

### **State**

<table data-id="050c93b5-d178-43dd-8790-041b5b3bd011" style="min-width: 50px;"><colgroup><col style="min-width: 25px;"><col style="min-width: 25px;"></colgroup><tbody><tr><td colspan="1" rowspan="1"><p data-id="99c5fe3d-f5be-4f57-b8ed-44dcebdebd8c"><strong>Class</strong></p></td><td colspan="1" rowspan="1"><p data-id="32538ca6-41a2-49f6-ba67-e321a28ccc96"><strong>Meaning</strong></p></td></tr><tr><td colspan="1" rowspan="1" style="box-sizing: border-box; margin: 0px; padding: 6px; outline-color: rgb(37, 106, 191); scrollbar-width: thin; scrollbar-color: rgba(30, 30, 29, 0.35) rgba(0, 0, 0, 0); text-rendering: optimizelegibility; border-radius: 3px; text-align: left; vertical-align: top; overflow-wrap: break-word; background: none 0% 0% / auto repeat scroll border-box border-box rgba(11, 11, 11, 0.04);"><p data-id="4390d3a3-b6d7-4bf5-9bcd-53554a59f07a"><code>.swatchfy-selected</code></p></td><td colspan="1" rowspan="1" style="box-sizing: border-box; margin: 0px; padding: 6px; outline-color: rgb(37, 106, 191); scrollbar-width: thin; scrollbar-color: rgba(30, 30, 29, 0.35) rgba(0, 0, 0, 0); text-rendering: optimizelegibility; border-radius: 3px; text-align: left; vertical-align: top; overflow-wrap: break-word; background: none 0% 0% / auto repeat scroll border-box border-box rgba(11, 11, 11, 0.04);"><p data-id="786ace66-2e5a-41b1-94f4-9627178d77e3">The value the shopper has chosen</p></td></tr><tr><td colspan="1" rowspan="1" style="box-sizing: border-box; margin: 0px; padding: 6px; outline-color: rgb(37, 106, 191); scrollbar-width: thin; scrollbar-color: rgba(30, 30, 29, 0.35) rgba(0, 0, 0, 0); text-rendering: optimizelegibility; border-radius: 3px; text-align: left; vertical-align: top; overflow-wrap: break-word; background: none 0% 0% / auto repeat scroll border-box border-box rgba(11, 11, 11, 0.04);"><p data-id="68ea547a-479e-49e3-bccf-3e043fe7fecf"><code>.swatchfy-soldout</code></p></td><td colspan="1" rowspan="1" style="box-sizing: border-box; margin: 0px; padding: 6px; outline-color: rgb(37, 106, 191); scrollbar-width: thin; scrollbar-color: rgba(30, 30, 29, 0.35) rgba(0, 0, 0, 0); text-rendering: optimizelegibility; border-radius: 3px; text-align: left; vertical-align: top; overflow-wrap: break-word; background: none 0% 0% / auto repeat scroll border-box border-box rgba(11, 11, 11, 0.04);"><p data-id="aa0d75dd-8c69-4fab-88a6-55f847fde7dd">Out of stock</p></td></tr><tr><td colspan="1" rowspan="1" style="box-sizing: border-box; margin: 0px; padding: 6px; outline-color: rgb(37, 106, 191); scrollbar-width: thin; scrollbar-color: rgba(30, 30, 29, 0.35) rgba(0, 0, 0, 0); text-rendering: optimizelegibility; border-radius: 3px; text-align: left; vertical-align: top; overflow-wrap: break-word; background: none 0% 0% / auto repeat scroll border-box border-box rgba(11, 11, 11, 0.04);"><p data-id="1faa5501-2c27-417a-9aeb-551a88d47968"><code>.swatchfy-hidden</code></p></td><td colspan="1" rowspan="1" style="box-sizing: border-box; margin: 0px; padding: 6px; outline-color: rgb(37, 106, 191); scrollbar-width: thin; scrollbar-color: rgba(30, 30, 29, 0.35) rgba(0, 0, 0, 0); text-rendering: optimizelegibility; border-radius: 3px; text-align: left; vertical-align: top; overflow-wrap: break-word; background: none 0% 0% / auto repeat scroll border-box border-box rgba(11, 11, 11, 0.04);"><p data-id="36e28679-1691-4ee9-9988-876c85cc919e">Hidden by the app</p></td></tr><tr><td colspan="1" rowspan="1" style="box-sizing: border-box; margin: 0px; padding: 6px; outline-color: rgb(37, 106, 191); scrollbar-width: thin; scrollbar-color: rgba(30, 30, 29, 0.35) rgba(0, 0, 0, 0); text-rendering: optimizelegibility; border-radius: 3px; text-align: left; vertical-align: top; overflow-wrap: break-word; background: none 0% 0% / auto repeat scroll border-box border-box rgba(11, 11, 11, 0.04);"><p data-id="6226155f-6b6e-4870-9311-2ae82196aafc"><code>.swatchfy-adv-hidden</code></p></td><td colspan="1" rowspan="1" style="box-sizing: border-box; margin: 0px; padding: 6px; outline-color: rgb(37, 106, 191); scrollbar-width: thin; scrollbar-color: rgba(30, 30, 29, 0.35) rgba(0, 0, 0, 0); text-rendering: optimizelegibility; border-radius: 3px; text-align: left; vertical-align: top; overflow-wrap: break-word; background: none 0% 0% / auto repeat scroll border-box border-box rgba(11, 11, 11, 0.04);"><p data-id="cfbc2ef2-eaf7-467d-bd23-6f7edaa7928e">Hidden by an advanced setting — sold-out or deleted combinations</p></td></tr></tbody></table>

### **Overflow**

`.swatchfy-swatches--slides` · `.swatchfy-swatches__slider` · `.swatchfy-swatches__arrow` appear when the row is set to carousel.

## **The variables**

The names are terse but systematic. Read them as **group + property**, and two suffixes mean state: `h` **= hover**, `s` **= selected**.

<table data-id="42a2e4ce-4283-4308-a67d-40a360a55899" style="min-width: 50px;"><colgroup><col style="min-width: 25px;"><col style="min-width: 25px;"></colgroup><tbody><tr><td colspan="1" rowspan="1"><p data-id="e9bfdb19-0c18-42f0-8101-764ad6356cc9"><strong>Prefix</strong></p></td><td colspan="1" rowspan="1"><p data-id="007a0cec-b000-42cf-a326-586a40355d71"><strong>Group</strong></p></td></tr><tr><td colspan="1" rowspan="1" style="box-sizing: border-box; margin: 0px; padding: 6px; outline-color: rgb(37, 106, 191); scrollbar-width: thin; scrollbar-color: rgba(30, 30, 29, 0.35) rgba(0, 0, 0, 0); text-rendering: optimizelegibility; border-radius: 3px; text-align: left; vertical-align: top; overflow-wrap: break-word; background: none 0% 0% / auto repeat scroll border-box border-box rgba(11, 11, 11, 0.04);"><p data-id="c1e1f046-54ab-49fb-a09a-165b4f0ed956"><em>(none)</em></p></td><td colspan="1" rowspan="1" style="box-sizing: border-box; margin: 0px; padding: 6px; outline-color: rgb(37, 106, 191); scrollbar-width: thin; scrollbar-color: rgba(30, 30, 29, 0.35) rgba(0, 0, 0, 0); text-rendering: optimizelegibility; border-radius: 3px; text-align: left; vertical-align: top; overflow-wrap: break-word; background: none 0% 0% / auto repeat scroll border-box border-box rgba(11, 11, 11, 0.04);"><p data-id="6fbbb574-d159-45c0-b984-33a6a34ebba8">The swatch itself — <code>size</code>, <code>h</code> (height), <code>radius</code>, <code>fit</code>, <code>zoom</code>, <code>gap</code>, <code>align</code>, <code>mt</code>, <code>mb</code>, <code>mbetween</code></p></td></tr><tr><td colspan="1" rowspan="1" style="box-sizing: border-box; margin: 0px; padding: 6px; outline-color: rgb(37, 106, 191); scrollbar-width: thin; scrollbar-color: rgba(30, 30, 29, 0.35) rgba(0, 0, 0, 0); text-rendering: optimizelegibility; border-radius: 3px; text-align: left; vertical-align: top; overflow-wrap: break-word; background: none 0% 0% / auto repeat scroll border-box border-box rgba(11, 11, 11, 0.04);"><p data-id="b177274e-d932-407e-8e9e-bff108545f38"><code>b</code></p></td><td colspan="1" rowspan="1" style="box-sizing: border-box; margin: 0px; padding: 6px; outline-color: rgb(37, 106, 191); scrollbar-width: thin; scrollbar-color: rgba(30, 30, 29, 0.35) rgba(0, 0, 0, 0); text-rendering: optimizelegibility; border-radius: 3px; text-align: left; vertical-align: top; overflow-wrap: break-word; background: none 0% 0% / auto repeat scroll border-box border-box rgba(11, 11, 11, 0.04);"><p data-id="d023c6a4-ad46-4b67-8e3f-6a100712ff7b">Borders and backgrounds — <code>bw</code>, <code>bc</code>, <code>bg</code>, and <code>bch</code>/<code>bgh</code>/<code>bws</code>/<code>bcs</code>/<code>bgs</code></p></td></tr><tr><td colspan="1" rowspan="1" style="box-sizing: border-box; margin: 0px; padding: 6px; outline-color: rgb(37, 106, 191); scrollbar-width: thin; scrollbar-color: rgba(30, 30, 29, 0.35) rgba(0, 0, 0, 0); text-rendering: optimizelegibility; border-radius: 3px; text-align: left; vertical-align: top; overflow-wrap: break-word; background: none 0% 0% / auto repeat scroll border-box border-box rgba(11, 11, 11, 0.04);"><p data-id="005394b6-b5aa-4097-b002-b89ed0a34a37"><code>ol</code></p></td><td colspan="1" rowspan="1" style="box-sizing: border-box; margin: 0px; padding: 6px; outline-color: rgb(37, 106, 191); scrollbar-width: thin; scrollbar-color: rgba(30, 30, 29, 0.35) rgba(0, 0, 0, 0); text-rendering: optimizelegibility; border-radius: 3px; text-align: left; vertical-align: top; overflow-wrap: break-word; background: none 0% 0% / auto repeat scroll border-box border-box rgba(11, 11, 11, 0.04);"><p data-id="43921560-252f-4c5b-9856-5f317b220f31">Option label — <code>olfs</code>, <code>olc</code>, <code>olvc</code>, <code>olmt</code>, <code>olmb</code></p></td></tr><tr><td colspan="1" rowspan="1" style="box-sizing: border-box; margin: 0px; padding: 6px; outline-color: rgb(37, 106, 191); scrollbar-width: thin; scrollbar-color: rgba(30, 30, 29, 0.35) rgba(0, 0, 0, 0); text-rendering: optimizelegibility; border-radius: 3px; text-align: left; vertical-align: top; overflow-wrap: break-word; background: none 0% 0% / auto repeat scroll border-box border-box rgba(11, 11, 11, 0.04);"><p data-id="93e9db4c-136d-4a04-9162-29b63aaa4199"><code>l</code></p></td><td colspan="1" rowspan="1" style="box-sizing: border-box; margin: 0px; padding: 6px; outline-color: rgb(37, 106, 191); scrollbar-width: thin; scrollbar-color: rgba(30, 30, 29, 0.35) rgba(0, 0, 0, 0); text-rendering: optimizelegibility; border-radius: 3px; text-align: left; vertical-align: top; overflow-wrap: break-word; background: none 0% 0% / auto repeat scroll border-box border-box rgba(11, 11, 11, 0.04);"><p data-id="5ec5f56c-580a-44e5-80a4-641d3e5dd14b">The text label under a swatch — <code>lfs</code>, <code>lc</code>, <code>lweight</code>, <code>lalign</code>, <code>lbg</code>, <code>lph</code>, <code>lpv</code>, <code>lmt</code>, <code>lmb</code>, <code>lch</code>, <code>lcs</code></p></td></tr><tr><td colspan="1" rowspan="1" style="box-sizing: border-box; margin: 0px; padding: 6px; outline-color: rgb(37, 106, 191); scrollbar-width: thin; scrollbar-color: rgba(30, 30, 29, 0.35) rgba(0, 0, 0, 0); text-rendering: optimizelegibility; border-radius: 3px; text-align: left; vertical-align: top; overflow-wrap: break-word; background: none 0% 0% / auto repeat scroll border-box border-box rgba(11, 11, 11, 0.04);"><p data-id="24085e8f-4345-4782-9466-a7543c120f15"><code>pl</code></p></td><td colspan="1" rowspan="1" style="box-sizing: border-box; margin: 0px; padding: 6px; outline-color: rgb(37, 106, 191); scrollbar-width: thin; scrollbar-color: rgba(30, 30, 29, 0.35) rgba(0, 0, 0, 0); text-rendering: optimizelegibility; border-radius: 3px; text-align: left; vertical-align: top; overflow-wrap: break-word; background: none 0% 0% / auto repeat scroll border-box border-box rgba(11, 11, 11, 0.04);"><p data-id="77acb45b-9529-402d-89c8-dc637565deff">The pill or button box — <code>plbw</code>, <code>plbc</code>, <code>plbg</code>, <code>plradius</code>, <code>plfs</code>, <code>plfw</code>, <code>plminw</code>, <code>plph</code>, <code>plpv</code>, <code>pltc</code>, <code>pltt</code>, and their <code>h</code>/<code>s</code> forms</p></td></tr><tr><td colspan="1" rowspan="1" style="box-sizing: border-box; margin: 0px; padding: 6px; outline-color: rgb(37, 106, 191); scrollbar-width: thin; scrollbar-color: rgba(30, 30, 29, 0.35) rgba(0, 0, 0, 0); text-rendering: optimizelegibility; border-radius: 3px; text-align: left; vertical-align: top; overflow-wrap: break-word; background: none 0% 0% / auto repeat scroll border-box border-box rgba(11, 11, 11, 0.04);"><p data-id="75152046-6363-4ee6-a350-25e36081daa2"><code>pr</code></p></td><td colspan="1" rowspan="1" style="box-sizing: border-box; margin: 0px; padding: 6px; outline-color: rgb(37, 106, 191); scrollbar-width: thin; scrollbar-color: rgba(30, 30, 29, 0.35) rgba(0, 0, 0, 0); text-rendering: optimizelegibility; border-radius: 3px; text-align: left; vertical-align: top; overflow-wrap: break-word; background: none 0% 0% / auto repeat scroll border-box border-box rgba(11, 11, 11, 0.04);"><p data-id="7ecedb9c-9cde-4411-8cde-f2d3bfe61068">Price — <code>prc</code>, <code>prfs</code>, <code>prfw</code>, <code>prmt</code>, <code>prmb</code>, <code>prpv</code>, <code>prch</code>, <code>prcs</code></p></td></tr><tr><td colspan="1" rowspan="1" style="box-sizing: border-box; margin: 0px; padding: 6px; outline-color: rgb(37, 106, 191); scrollbar-width: thin; scrollbar-color: rgba(30, 30, 29, 0.35) rgba(0, 0, 0, 0); text-rendering: optimizelegibility; border-radius: 3px; text-align: left; vertical-align: top; overflow-wrap: break-word; background: none 0% 0% / auto repeat scroll border-box border-box rgba(11, 11, 11, 0.04);"><p data-id="cecb3fce-713a-4e10-bd95-68a49774e3f3"><code>so</code></p></td><td colspan="1" rowspan="1" style="box-sizing: border-box; margin: 0px; padding: 6px; outline-color: rgb(37, 106, 191); scrollbar-width: thin; scrollbar-color: rgba(30, 30, 29, 0.35) rgba(0, 0, 0, 0); text-rendering: optimizelegibility; border-radius: 3px; text-align: left; vertical-align: top; overflow-wrap: break-word; background: none 0% 0% / auto repeat scroll border-box border-box rgba(11, 11, 11, 0.04);"><p data-id="890a39ee-5fae-40fc-b74d-fb4cd7911889">Sold-out treatment — <code>soline</code>, <code>solw</code>, <code>soimgop</code>, <code>sopillop</code>, <code>sopline</code></p></td></tr><tr><td colspan="1" rowspan="1" style="box-sizing: border-box; margin: 0px; padding: 6px; outline-color: rgb(37, 106, 191); scrollbar-width: thin; scrollbar-color: rgba(30, 30, 29, 0.35) rgba(0, 0, 0, 0); text-rendering: optimizelegibility; border-radius: 3px; text-align: left; vertical-align: top; overflow-wrap: break-word; background: none 0% 0% / auto repeat scroll border-box border-box rgba(11, 11, 11, 0.04);"><p data-id="88483c98-b23b-4b33-a6e1-52c210795aeb"><code>tip</code></p></td><td colspan="1" rowspan="1" style="box-sizing: border-box; margin: 0px; padding: 6px; outline-color: rgb(37, 106, 191); scrollbar-width: thin; scrollbar-color: rgba(30, 30, 29, 0.35) rgba(0, 0, 0, 0); text-rendering: optimizelegibility; border-radius: 3px; text-align: left; vertical-align: top; overflow-wrap: break-word; background: none 0% 0% / auto repeat scroll border-box border-box rgba(11, 11, 11, 0.04);"><p data-id="448a48e8-c53a-4551-97ef-db431bb86820">Tooltip — <code>tipbg</code>, <code>tipc</code>, <code>tipfs</code>, <code>tipradius</code></p></td></tr><tr><td colspan="1" rowspan="1" style="box-sizing: border-box; margin: 0px; padding: 6px; outline-color: rgb(37, 106, 191); scrollbar-width: thin; scrollbar-color: rgba(30, 30, 29, 0.35) rgba(0, 0, 0, 0); text-rendering: optimizelegibility; border-radius: 3px; text-align: left; vertical-align: top; overflow-wrap: break-word; background: none 0% 0% / auto repeat scroll border-box border-box rgba(11, 11, 11, 0.04);"><p data-id="1c99963f-55a9-4af3-8f58-97f1d1254f44"><code>dot</code>, <code>i</code></p></td><td colspan="1" rowspan="1" style="box-sizing: border-box; margin: 0px; padding: 6px; outline-color: rgb(37, 106, 191); scrollbar-width: thin; scrollbar-color: rgba(30, 30, 29, 0.35) rgba(0, 0, 0, 0); text-rendering: optimizelegibility; border-radius: 3px; text-align: left; vertical-align: top; overflow-wrap: break-word; background: none 0% 0% / auto repeat scroll border-box border-box rgba(11, 11, 11, 0.04);"><p data-id="38a9f3db-17c0-4df8-b433-dd9549cbb16a">The inline colour dot and its gap — <code>dotsize</code>, <code>dotradius</code>, <code>igap</code></p></td></tr><tr><td colspan="1" rowspan="1" style="box-sizing: border-box; margin: 0px; padding: 6px; outline-color: rgb(37, 106, 191); scrollbar-width: thin; scrollbar-color: rgba(30, 30, 29, 0.35) rgba(0, 0, 0, 0); text-rendering: optimizelegibility; border-radius: 3px; text-align: left; vertical-align: top; overflow-wrap: break-word; background: none 0% 0% / auto repeat scroll border-box border-box rgba(11, 11, 11, 0.04);"><p data-id="317ad0b4-afd3-4055-bb53-fe41f980dd33"><code>more</code></p></td><td colspan="1" rowspan="1" style="box-sizing: border-box; margin: 0px; padding: 6px; outline-color: rgb(37, 106, 191); scrollbar-width: thin; scrollbar-color: rgba(30, 30, 29, 0.35) rgba(0, 0, 0, 0); text-rendering: optimizelegibility; border-radius: 3px; text-align: left; vertical-align: top; overflow-wrap: break-word; background: none 0% 0% / auto repeat scroll border-box border-box rgba(11, 11, 11, 0.04);"><p data-id="49e66d3d-73bd-49a1-bd3a-ccb5f1fd5615">The overflow counter — <code>morec</code>, <code>morefs</code></p></td></tr><tr><td colspan="1" rowspan="1" style="box-sizing: border-box; margin: 0px; padding: 6px; outline-color: rgb(37, 106, 191); scrollbar-width: thin; scrollbar-color: rgba(30, 30, 29, 0.35) rgba(0, 0, 0, 0); text-rendering: optimizelegibility; border-radius: 3px; text-align: left; vertical-align: top; overflow-wrap: break-word; background: none 0% 0% / auto repeat scroll border-box border-box rgba(11, 11, 11, 0.04);"><p data-id="d7853570-510e-4cb3-98c4-d932f30959ed"><code>img</code></p></td><td colspan="1" rowspan="1" style="box-sizing: border-box; margin: 0px; padding: 6px; outline-color: rgb(37, 106, 191); scrollbar-width: thin; scrollbar-color: rgba(30, 30, 29, 0.35) rgba(0, 0, 0, 0); text-rendering: optimizelegibility; border-radius: 3px; text-align: left; vertical-align: top; overflow-wrap: break-word; background: none 0% 0% / auto repeat scroll border-box border-box rgba(11, 11, 11, 0.04);"><p data-id="4532466c-1737-431e-ac04-a79b580efb85">Padding inside an image swatch — <code>imgph</code>, <code>imgpv</code></p></td></tr></tbody></table>

So `--kx-plbcs` is _pill · border colour · selected_, and `--kx-bgh` is _background · hover_.

To read the exact current value for any of them, inspect a swatch row in your browser's dev tools — every variable in play is printed on the row element.

## **Recipes**

**A thicker ring on the selected swatch**

```javascript
.swatchfy-swatches { --kx-bws: 3px !important; --kx-bcs: #111 !important; }
```

**Square swatches on collection cards only**

```javascript
.swatchfy-card-swatches .swatchfy-card-swatch { border-radius: 2px; }
```

**Dim sold-out values further than the setting allows**

```javascript
.swatchfy-swatch-item.swatchfy-soldout { opacity: .35; }
```

**Style one option only** — use the row's own data attribute rather than a class, and prefer the index, which survives translation:

```javascript
.swatchfy-swatches[data-swatchfy-option-index="0"] .swatchfy-swatch-item {  
border-radius: 50%;
}
```

## **Stability**

The class names and data attributes above are treated as public and are kept stable across updates.

The `--kx-*` variables are also stable, but their **values** move whenever a merchant changes a setting on the Appearance page — that is what they are for. If a rule must hold regardless of the settings, target the property directly rather than the variable.
