Hype Bundles

Style bundles with CSS

Updated Nov 11, 20268 min read

On this page (11)

Use CSS variables and named parts for changes beyond Customize the design.

Add your CSS

  1. Open and save your offer.
  2. On Offer (Bundle for bundles), open Advanced below Design.
  3. Copy the full value under CSS class, including the leading ..
  4. Replace every .hype-offer-YOUR_OFFER_ID in the example with that value.
  5. Paste into Custom CSS and click Save.
.hype-offer-YOUR_OFFER_ID {  --hype-cta-radius: 999px;  --hype-tile-radius: 8px;}.hype-offer-YOUR_OFFER_ID::part(title) {  text-transform: uppercase;}

YOUR_OFFER_ID is a placeholder. Each offer has its own CSS class.

Custom CSS allows up to 20,000 characters, but no </style> tag. Changes preview as you type.

For all offers, set variables on body in Hype: Bundles app-embed Custom CSS.

Variables

The Volume column identifies affected styles. Defaults precede Design overrides; button and badge variables require those elements.

Colors

VariableChangesDefaultVolume
--hype-card-bgCard backgroundtransparentBoth
--hype-card-borderCard border colortransparentBoth
--hype-textMain text#161616Both
--hype-headingBlock title, totals and category namesSame as --hype-textBoth
--hype-text-2Secondary text, such as row prices and notes90% of the text colorTiles
--hype-mutedLabels and hints80% of the text colorBoth
--hype-faintCrossed-out prices and unavailable options66% of the text colorBoth
--hype-borderRow lines and image frames14% of the text colorBoth
--hype-tile-borderOption tile bordersSame as --hype-borderBoth
--hype-border-strongDropdowns, radios, checkboxes and quiet buttons24% of the text colorBoth
--hype-surface-2Neutral badges and quiet buttons5% of the text colorTiles
--hype-surface-3Disabled buttons9% of the text colorBoth
--hype-control-bgTiles, dropdowns, radios and checkboxesSame as --hype-card-bgBoth
--hype-errorError line under the button#b42318Both
--hype-dividerLine between rows and above the total1px solid, in the border colorTiles
--hype-on-accentText and icons on Color#ffffffNeither
--hype-tintSelected tile backgroundA 7% tint of ColorBoth
--hype-tint-strongTinted pillsA 14% tint of ColorNeither
--hype-accent-textColor when used for textColor, mixed with the text colorTiles
--hype-savingsSavings textSame as --hype-accent-textNeither
--hype-badge-bgBadge backgroundA 12% tint of ColorTiles
--hype-badge-colorBadge textSame as --hype-accent-textTiles
--hype-focusKeyboard focus outlineColorBoth
--hype-selectionHighlight on selected textA 30% tint of ColorBoth
--hype-strip-bgBackground of the total linetransparentNeither

Buttons

VariableChangesDefaultVolume
--hype-cta-bgButton backgroundColorBoth
--hype-cta-colorButton text#ffffffBoth
--hype-cta-heightButton height52pxBoth
--hype-cta-radiusButton corners12pxBoth
--hype-cta-font-sizeButton text size1emBoth
--hype-cta-weightButton text weight600Both
--hype-cta-transformButton text casenoneBoth
--hype-cta-trackingButton letter spacing0Both
--hype-cta-shadowButton shadow. Use none for flat buttonsA soft shadow in ColorBoth
--hype-cta-shadow-hoverButton shadow on hoverA deeper shadow in ColorBoth
--hype-cta-disabled-bgDisabled button backgroundSame as --hype-surface-3Both
--hype-cta-disabled-colorDisabled button textSame as --hype-faintBoth
--hype-secondary-bgQuiet button backgroundSame as --hype-surface-2Neither
--hype-secondary-colorQuiet button textSame as --hype-textNeither
--hype-secondary-borderQuiet button borderSame as --hype-border-strongNeither
--hype-pill-radiusCorners of the Mix & match buttons999pxNeither

Shape, spacing and images

VariableChangesDefaultVolume
--hype-card-radiusCard corners18pxBoth
--hype-card-paddingSpace inside the card0pxBoth
--hype-card-shadowCard shadownoneBoth
--hype-tile-radiusOption tile corners14pxBoth
--hype-control-radiusDropdowns, checkboxes and quiet buttons8pxNeither
--hype-badge-radiusBadge corners999pxTiles
--hype-row-gapSpace above and below each row12pxNeither
--hype-block-spacingSpace above and below the block16pxBoth
--hype-block-max-widthWidest the block grows100%Both
--hype-thumb-radiusProduct image corners10pxNeither
--hype-thumb-fitHow images fit their frame. Use cover to fill itcontainNeither
--hype-thumb-paddingSpace between an image and its frame3pxNeither
--hype-thumb-bgImage frame backgroundSame as --hype-control-bgNeither
--hype-thumb-borderImage frame borderSame as --hype-borderNeither
--hype-row-thumb-sizeRow images in Lineup / Routine, Bought together and Add-ons48pxNeither
--hype-lineup-thumb-sizeImages side by side in Showcase72pxNeither

Text

VariableChangesDefaultVolume
--hype-fontFontinheritBoth
--hype-font-headingBlock title fontinheritBoth
--hype-title-sizeBlock title size1.35emBoth
--hype-title-weightBlock title weight600Both
--hype-title-transformBlock title casenoneBoth
--hype-title-trackingBlock title letter spacing-0.015emBoth
--hype-eyebrow-sizeSmall line above the title: sizeSame as --hype-label-sizeBoth
--hype-eyebrow-weightSmall line above the title: weight600Both
--hype-eyebrow-transformSmall line above the title: caseuppercaseBoth
--hype-eyebrow-trackingSmall line above the title: letter spacing0.08emBoth
--hype-eyebrow-colorSmall line above the title: colorSame as --hype-mutedBoth
--hype-body-sizeBase text size1emBoth
--hype-small-sizeNotes and fine printSame as --hype-body-sizeBoth
--hype-strong-sizeCurrent prices1.125emBoth
--hype-total-sizeThe total, and the quantity in Tiles1.35emTiles
--hype-price-weightCurrent price weight600Both
--hype-label-sizeSmall labels, badges and default eyebrow size0.75emBoth
--hype-label-trackingSmall label letter spacing0.06emTiles
--hype-numeralsNumber style in prices"tnum" 1, "lnum" 1Both

Options popup

VariableChangesDefaultVolume
--hype-modal-widthPopup width560pxNeither
--hype-modal-bgPopup background--hype-card-bg, or #ffffff if unsetNeither
--hype-modal-radiusPopup cornersSame as --hype-card-radiusNeither
--hype-modal-paddingSpace inside the popup22pxNeither
--hype-modal-shadowPopup shadow0 24px 60px -12px rgba(0, 0, 0, 0.45)Neither
--hype-backdropColor behind the popuprgba(24, 23, 22, 0.55)Neither

Parts

Use ::part() after the offer's class, .hype-block for all blocks, or hype-bundle-options-modal for popups.

PartWhat it is
card, head, titleThe outer card, the header and the block title
eyebrowThe small line above the title, and section labels
cta, cta-wrap, footnoteThe add to cart button, the area around it and the fine print under it
badgeBadges, including Sold out
thumbProduct images
strip, strip-labelThe total line and its label
amounts, was, nowA pair of prices, the crossed-out price and the current price
savingsThe savings text
option, option-selectedA selectable row or tile, and the selected one
option-title, option-noteThe title and note inside a selectable tile
radio, checkboxThe selection controls
rows, rowA list of products and one row in it
row-title, row-price, row-noteA row's product name, price and note
product-linkA product name that links to its page
variant-select, variant-chipThe variant dropdown and the read-only variant label
choice, choice-option, option-bodyThe Just this item or bundle chooser, each option in it and the option's contents
min-extras-hintFrequently bought together: the button text while too few extras are ticked
rating, lineupShowcase: the rating and the row of images
grid, save-badgeTiles: the row of tiers and a tier's savings badge
progress, progress-label, slots, slot, slot-filledMix & match: the progress area, its text, the row of slots, one slot and a filled slot
categories, category, category-openMix & match: the list of categories, one category and an open one
category-head, category-title, markerMix & match: a category's header, its name and its number or check mark
pick-buttonMix & match: the button that picks a product
quantity-control, quantity-minus, quantity, quantity-plusMix & match, with Allow multiple units of the same product: the quantity control and its parts
option-pill, secondaryOptions popup: a variant choice and the back button

Volume block parts

Tiles and Stacked list with their CSS parts labeled

All volume parts, including those not displayed:

PartTilesStacked
cardOuter cardOuter card
headHeaderHeader
eyebrowSmall line above the title, when nonemptySame
titleBlock titleBlock title
gridOptions container; wraps at 80 px minimum per option, 8 px gapAbsent; options sit in card
optionEvery option buttonEvery option button
option-selectedSelected option button, also has optionSame
option-titleQuantity numberQuantity and item label
option-noteItem labelNot displayed by current offer settings
nowEach option's total AND the selected summary totalEach option's total
save-badgeSavings text on positive percentage-discount optionsAbsent
stripSelected summaryAbsent
strip-labelPer-unit text in summary, for quantities greater than 1Absent
amountsSummary price containerPrice container on discounted options
wasSummary's regular selling total, when discountedEach discounted option's regular selling total
radioAbsentSelection circle
ctaBlock button, when enabledSame
cta-wrapAbsentButton, error and footnote container
footnoteAbsentFootnote, when filled
badgeNot displayed by current offer settingsSame
No named partError text; use --hype-errorSame
No rendered elementPer-option original/unit prices, savings amountsPer-option unit prices, savings amounts

Replace every .hype-offer-YOUR_OFFER_ID below with your Advanced > CSS class value. This changes corners, selected borders and Tiles spacing:

.hype-offer-YOUR_OFFER_ID::part(option) {  border-radius: 8px;}.hype-offer-YOUR_OFFER_ID::part(option-selected) {  border-color: #087f5b;  box-shadow: inset 0 0 0 1px #087f5b;}.hype-offer-YOUR_OFFER_ID::part(grid) {  gap: 12px;  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));}@media (max-width: 420px) {  .hype-offer-YOUR_OFFER_ID::part(grid) {    grid-template-columns: 1fr;  }}

::part(now) also affects the Tiles summary; there are no separate price parts. ::part(option) .now cannot select a child. CSS cannot create missing dynamic prices.

Products in Fixed bundle, Frequently bought together and Mix & match expose data-product-handle inside the block. After loading, app-embed Custom JS can read it through shadowRoot; CSS cannot select it.

Good to know

  • A value set in Design, or by a Theme, wins over the same variable in Custom CSS. Clear the setting, or add !important to your CSS.
  • CSS selectors can't reach inside a block. Use the variables and ::part().
  • Change the accent with Color, not --hype-ac: its tints won't follow.
  • The options popup sits outside the block, so set its variables on body.
  • Use Placement to choose add-to-cart buttons. Hiding cta with CSS does not connect your theme's button.

Related articles

Still stuck?

Ask a follow-up and we'll see it came from “Style bundles with CSS”.

Opens chat with your question and a link to this article.