Skip to content

Styling overview

Every badge has its own styling fields. Anything you leave empty falls back to the slot, then the placement, then the global defaults. This page documents the available fields and the resolution order.

The same set of fields exists on a badge, a slot, a placement and the global defaults:

FieldEffect
Background colorSolid background fill (any CSS color).
Text colorColor of the text and inline icon.
Font sizeBadge text size.
Line heightVertical spacing of the badge text.
PaddingInner spacing between the text and the badge edge.
MarginOuter spacing around the badge.
GapSpacing between text and icon.
Border radiusCorner rounding (set to 0 for ribbons).
Backdrop filterCSS backdrop-filter (e.g. blur(8px)) for frosted-glass effects.
Icon sizeSize of the SVG icon, if present.
Flex directionOrder of text and icon (row, row-reverse, column, column-reverse).

All values use CSS custom properties internally — they integrate cleanly with any theme.

Styles are resolved from highest priority to lowest. The first level that has a non-empty value wins:

  1. The badge — its own styling overrides everything.
  2. The placement — when the badge uses a non-overlay placement (above/below buy box, above/below product info), the placement defaults apply next.
  3. The slot — when the badge uses image overlay, the Left or Right slot defaults apply next.
  4. The global defaults — the values on the Badge defaults tab of the global configuration apply last.

Setting a value at the badge level overrides everything else — even if the slot and global defaults disagree, the badge wins.

  • Global defaults — choose values that match your store’s visual language. Most badges should look “good enough” without any per-badge styling.
  • Slot defaults — use them when one side of the image needs a distinct style (e.g. ribbons on the right with chunky padding, flat stickers on the left with tight padding).
  • Placement defaults — set them when above-buy-box and below-buy-box badges need different visuals (e.g. larger above, smaller below).
  • Per badge — only override what is genuinely badge-specific (the brand color of a campaign, an oversized font for a hero promotion).

For frosted-glass effects, pair a backdrop filter like blur(8px) with a semi-transparent background such as rgba(255, 255, 255, 0.6). The plugin emits these as CSS custom properties, so the effect works on any background image.

The badge edit form has a Preview panel (toggle in the header). It re-renders in real time as you edit any style field. Switch the preview between placements to verify how the badge looks in each position.

See Live preview tips for more.