Design tokens, theming and Custom CSS
IvaSure has no template files to override. Everything a merchant would normally fork is exposed as a CSS custom property instead, and the settings screen writes to the same properties - so the fast route and the precise route lead to the same place.
Two colours
On IvaSure → Filters → Design → Theme, the whole palette derives from a primary and an accent.

- Primary is selection, focus and highlights - the colour a shopper sees when something is chosen.
- Accent is text emphasis and secondary detail.
The four small swatches under the Primary picker are not decoration: the first is the colour itself, and the other three are the light, dark and tint steps IvaSure derives from it and then uses throughout the filter. You set one colour and get a coherent set. Accent has no derived steps, so its single swatch is only a preview of the colour you chose.
Type scale
A base size and a ratio generate the whole scale, from the smallest status text to the section headings. The ratio is the step between sizes: Minor Third is restrained, Perfect Fourth is dramatic.
Surface
| Surface | What it draws | Use when |
|---|---|---|
| IvaSure card | A panel with its own background, border and radius. | The filter needs to read as a distinct object. |
| Transparent | No panel at all - just the controls. | It already sits inside a card your theme drew. |
| Inherit theme | Colours taken from the surrounding theme rather than IvaSure’s own. | A dark theme, or a heavily branded storefront. |
Custom CSS
For anything the settings do not cover, Design → Advanced has a Custom CSS field. It is injected on the front end after the plugin stylesheet, and applied live to the design preview as you type.

Set variables rather than overriding rules. A variable is honoured by every rule that reads it, survives an update, and needs no specificity fight.
.ivasure-wrap {
--ff-filter-row-height: 34px;
--ff-filter-swatch-size: 26px;
--ff-filter-card-padding: 20px;
}The variables
These names are a stable contract. They are not renamed between versions, because merchant CSS references them.
| Colour | What it paints |
|---|---|
--ff-primary | The brand colour as a fill: tints, borders, the selected state. |
--ff-primary-ink | The brand colour as text or as a glyph, at the contrast-safe step. |
--ff-text-main | Option labels and headings. |
--ff-text-muted | Counts and secondary text. |
--ff-border | Hairlines and control outlines. |
--ff-surface | The panel background. |
| Spacing and size | What it moves |
|---|---|
--ff-filter-card-padding | Inside the panel. |
--ff-filter-section-gap | Between sections. |
--ff-filter-row-gap | Between option rows. |
--ff-filter-row-height | The height of one option row - and therefore its touch target. |
--ff-filter-swatch-size | Swatch diameter. |
--ff-filter-card-radius | Panel corner radius. |
--ff-filter-sidebar-min | The narrowest the sidebar layout will go before it stacks. |
--ff-filter-sticky-top | Offset for a sticky filter, if your theme has a fixed header. |
--ff-filter-motion | Transition duration. Set it to 0s to remove animation. |
--ff-filter-row-height below 24px puts the option rows under the WCAG 2.2 minimum target size. There is a reason the mobile breakpoint raises it to 42px rather than lowering it.Recipes
Match a dark theme. Set the surface to Inherit theme first - it takes the panel background and text colour from your theme rather than IvaSure’s. Reach for Custom CSS only if individual pieces still need moving.
.ivasure-wrap {
--ff-border: rgba(255, 255, 255, 0.14);
}Clear a sticky header. A filter that sticks while the grid scrolls slides under a fixed header unless it is told how tall that header is.
.ivasure-wrap {
--ff-filter-sticky-top: 88px;
}Turn off animation. Motion already respects prefers-reduced-motion. To remove it for everyone:
.ivasure-wrap {
--ff-filter-motion: 0s;
}Style one placement only. Every filter carries classes describing how it was configured, so a single placement can be targeted without touching the rest.
.ivasure-wrap--compact {
--ff-filter-card-padding: 10px;
}What theming does not cover
- There are no template overrides. Markup is not a public contract; the variables and the class names are.
- Do not restyle by fighting specificity. A rule that wins today by being longer loses the next time the plugin’s own selector grows. Set a variable instead.
- Check contrast after changing a colour. The derived dark step keeps brand-coloured text legible, but a hand-written override in Custom CSS is entirely yours to verify.
Was this page helpful?