SupaBundles

Custom CSS in SupaBundles

Use CSS to style a single offer. Each offer has a separate stylesheet for its Bundle Builder and its product page. Start with a design control when it already covers the change you want.

Your first rule

  1. Open an offer, select Bundle Builder or Product page, then open Custom CSS at the bottom of the editor sidebar.
  2. In Custom rules, choose an example and click Insert example. It is appended to your current rules. The live preview responds as you type.
  3. Format indents the code. Check CSS validates the rules and takes you to the reported error. Undo reverses an edit in the current code field. Use Ctrl+Space for suggestions, including widget selectors and the current design variables.
  4. Switch Active to Paused to compare the preview with the design controls. You can continue editing paused rules. Save stores the rules and the switch for this surface. Discard restores the last saved design.

Working with design controls

Change the accent under Appearance and open Design CSS. This read-only view updates from the current design controls. Copy an individual declaration into a :scope rule in Custom rules to override it. Remove that declaration to follow the control again. Presets preserve your own rules and their active state. The 4,000-character limit applies to your rules on each surface.

Where a rule applies

Use :scope to select this widget and its own popup roots. A selector such as button matches buttons inside this widget. Other offers and the surrounding shop theme keep their own styles. A widget variable starting with --sb- can override the value installed by a design control. Ordinary properties follow CSS specificity. Keep popup selectors independent of the main widget's HTML ancestry.

Bundle Builder

Selector Element or state
.sb-root Widget root, also selectable with :scope
.sb-heading Offer heading
.sb-filter-toolbar Product filter controls
.sb-grid Product grid
.sb-card Product card
.sb-card__media Image area
.sb-card__title Product name
.sb-card__price-current Current variant price
.sb-card__size-pill--active Selected size
.sb-card__add Add button on a product card
.sb-card__add:disabled Disabled add button
.sb-bar__slots Selected bundle items
.sb-bar__commit Main bundle action
CSS variable What it changes
--sb-card-radius Product card corner radius
--sb-grid-gap Space between cards
--sb-add-bg Add button background
--sb-add-radius Add button corner radius

Round product cards

:scope {
  --sb-card-radius: 18px;
}

Compact mobile grid

@media (max-width: 749px) {
  :scope {
    --sb-grid-gap: 8px;
  }
}

Reward progress

The progress text, fill and milestone markers belong to the bundle bar. In Rewards & add-on → Progress, choose the markers, edit the message or select which tiers are visible. CSS changes their presentation. The offer's discount settings determine when a tier is reached.

Selector Element or state
.sb-bar__progress Entire progress section
.sb-bar__message Message for the next or unlocked reward
.sb-bar__counter Current quantity or value
.sb-bar__track Progress track, including its fill
.sb-bar__milestone Individual milestone
.sb-bar__milestone--reached Reached milestone
CSS variable What it changes
--sb-progress-bg Progress section background
--sb-progress-fill Filled portion of the track
--sb-progress-track Empty track color
--sb-progress-text Message and counter color
--sb-progress-milestone-size Milestone label size

Color the rewards bar

The widget draws the fill on the track. Use the fill and track variables to keep the width in sync with the selection.

:scope {
  --sb-progress-fill: #a7efba;
  --sb-progress-track: #33463b;
}

Emphasize reached milestones

Select Text under the bar in Progress to see the underline on the reached milestone's text.

.sb-bar__milestone--reached {
  text-decoration: underline;
  text-underline-offset: 3px;
}

Product page

Selector Element or state
.sb-pdp Product-page widget, also selectable with :scope
.sb-pdp__heading Offer heading
.sb-pdp__option Quantity card
.sb-pdp__option--selected Selected quantity
.sb-pdp__option-badge Badge on a quantity option
.sb-pdp__option-price Option price
.sb-pdp__option-savings Savings label
.sb-pdp__size-pill Size button when using a shared size selector
.sb-pdp__commit Add-to-cart button
.sb-pdp__commit:disabled Disabled add-to-cart button
.sb-pdp__sheet-body Scrollable body of the open product picker
CSS variable What it changes
--sb-pdp-heading-size Heading font size
--sb-pdp-btn-radius Add-to-cart button corner radius
--sb-pdp-btn-bg Add-to-cart button background
--sb-pdp-price-size Option price font size
--sb-pdp-size-active-bg Selected size background

Round the add-to-cart button

:scope {
  --sb-pdp-btn-radius: 20px;
}

Highlight the selected quantity

.sb-pdp__option--selected {
  outline: 2px solid #23694f;
  outline-offset: 2px;
}

Add space in the product picker

Open the product picker in the preview to see this rule.

.sb-pdp__sheet-body {
  padding-inline: 24px;
}

Checking your changes

What you see What to check
A syntax error Use Check CSS. Check braces, selectors and declarations. Enter CSS directly. The editor accepts nested selectors, @media, @supports and @container. Global directives such as @import, @font-face and @keyframes are unsupported.
A valid rule has no visible effect Check the selected surface, the Active switch and the state of the element. Select a quantity or open the picker to see its active state. A more specific theme or widget rule can take precedence over a simple selector.
A design control seems to have no effect Look for a matching --sb-* declaration in Custom rules. Pause the rules to compare.
The storefront still shows the previous design Save the offer and open Theme & preview → Preview in theme. The embedded editor shows your draft. Theme and standalone previews use the saved design. Storefront updates can take up to a minute.
You want to reuse the CSS Export design and Import design carry the rules and active state with the selected surface.