Appearance
Custom CSS
Restyle any part of your public site with your own CSS, beyond what Settings → Appearance offers: a darker basket, a branded Lucky Dip card, a different look for the menu link of the page you're on. You write the rules once, they apply on every customer-facing page, and the admin area is never affected.
Where to find it: Settings → Appearance → Custom CSS (/admin/settings/appearance).
Try the Appearance settings first
Colours, fonts, card style, button style, border radius, the header and your logo size all have settings of their own. Those also reach your emails, which custom CSS can't. Use custom CSS for what the settings can't do.
Add your CSS
- Go to Settings → Appearance and find the Custom CSS card.
- Turn on Enable custom CSS.
- Write or paste your CSS in the box.
- Click Save settings in the bar at the bottom of the page.
- Open your site and check the result. Your rules apply straight away.
Enable custom CSS is also your kill switch. If a rule ever breaks your layout, turn it off and save: all your styling is switched off instantly, and your code is kept so you can fix it and switch it back on.
Find the part you want to style
Every part of the site you're likely to restyle carries a hook: a stable name for your CSS to target. Hooks are part of what we promise you. They aren't renamed or removed without notice, so a rule written against a hook keeps working as the site is updated. Other class names on the page change without warning, so don't style with them.
- Under the CSS box, open Available hooks.
- Type what you're after in the filter, such as
lucky dip,basketorfooter link. You can also type the words you see on the screen, such astickets reservedorpayment cancelled, or an everyday name, such asbanner,alertorprogress bar. - Copy the selector it shows into your CSS.
Not sure what something is called? Inspect it
In Chrome, Edge or Firefox on a computer, right-click the part of your site you want to change and choose Inspect. The panel that opens highlights it in the page's code. Look on that line, or the lines just above it, for a data-comps="…" name or a class starting pb-, then type that name into the Available hooks filter. If it's listed there, it's a hook and safe to style. Some data-comps names are only used inside the site and aren't listed, and the other class names you'll see (such as flex or bg-blue-100) can change in any update, so don't build rules on those.
Hooks come in three shapes:
[data-comps="basket-drawer"]: most parts of the site, such as the header, footer, basket, pop-ups, checkout, My Account and the winners page..pb-lucky-dip__heading: the parts of a block on your pages. Each block has its own name (.pb-lucky-dip), and each of its parts adds a name after two underscores (__heading).[data-comps-role="basket-checkout"]: a button that does one particular job. Every button is also[data-comps="button"], so rules for all buttons still reach it.
One plain class is a hook too: .card, the box most cards and notices are drawn in. On its own it reaches every card on the site, so put a hook or a page in front of it to narrow it down.
One hook comes in two shapes: the winners page tabs are buttons, so they are [data-comps-role="tab"] while every other tab is [data-comps="tab"]. To style all tabs, write both: [data-comps="tab"], [data-comps-role="tab"].
Many hooks have an extra attribute that says which kind or which state, such as [data-comps-state="active"] on the menu link for the page you're on. Add it to the hook to narrow a rule down. The full list of hooks is in the reference at the end of this page.
Examples
Make the draw date stand out on cards ending today (on a changed card):
css
.cd-ends-today [data-comps-block="draw-date"] {
background: #e11d48;
color: #fff;
font-weight: 800;
}A branded Lucky Dip block:
css
.pb-lucky-dip { background: #12005e; }
.pb-lucky-dip__heading { color: #ffd166; }
.pb-lucky-dip__note { opacity: 0.8; }Underline the menu link for the page you're on:
css
[data-comps="nav-link"][data-comps-state~="active"] {
text-decoration: underline;
text-underline-offset: 6px;
}Make the current page stand out in the My Account menu:
css
[data-comps="account-nav-link"][data-comps-state="active"] {
box-shadow: inset 4px 0 0 #ffd166;
}Hide the withdrawal line on the My Wallet cash card (it repeats your withdrawal message, which the withdrawal form shows anyway):
css
[data-comps="wallet-line"][data-comps-line="withdrawal-timing"] { display: none; }A pulsing reservation timer when a competition is about to close:
css
@keyframes timer-pulse { 50% { opacity: 0.6; } }
[data-comps="checkout-timer"][data-comps-state="urgent"] { animation: timer-pulse 1s infinite; }Match your notices to your site colours. The checkout's Tickets Reserved timer and your checkout notice come in blue and yellow, and the payment cancelled, payment failed and unsubscribe messages follow your card colour. To give them all your own colours, paste this and change the three colours at the top:
css
/* Your colours: change these three */
:root {
--notice-background: #fff8e6;
--notice-text: #3d2c00;
--notice-accent: #d48a00;
}
/* Checkout: the Tickets Reserved timer and your notice */
[data-comps="checkout-timer"],
[data-comps="checkout-notice"] {
background: var(--notice-background);
border-color: var(--notice-accent);
}
[data-comps="checkout-timer-icon"],
[data-comps="checkout-timer-countdown"],
[data-comps="checkout-notice-icon"] {
color: var(--notice-accent);
}
[data-comps="checkout-timer-title"],
[data-comps="checkout-timer-text"],
[data-comps="checkout-notice-title"],
[data-comps="checkout-notice-text"] {
color: var(--notice-text);
}
/* The timer's bar: its track, then the fill, which turns amber
under 3 minutes and red under 1 minute so customers notice */
[data-comps="checkout-timer-bar"] {
background: color-mix(in srgb, var(--notice-accent) 20%, transparent);
}
[data-comps="checkout-timer-bar-fill"] {
background: var(--notice-accent);
}
[data-comps="checkout-timer-bar-fill"][data-comps-state="low"] {
background: #f59e0b;
}
[data-comps="checkout-timer-bar-fill"][data-comps-state="critical"],
[data-comps="checkout-timer-bar-fill"][data-comps-state="urgent"] {
background: #dc2626;
}
/* Payment cancelled, payment failed, unsubscribe and the other message pages */
[data-comps="status-card"] {
background: var(--notice-background);
border-color: var(--notice-accent);
border-radius: 12px;
padding: 24px;
}
[data-comps="status-card-icon"] {
color: var(--notice-accent);
}
[data-comps="status-card-title"],
[data-comps="status-card-text"] {
color: var(--notice-text);
}
[data-comps="status-card-note"] {
background: color-mix(in srgb, var(--notice-accent) 12%, transparent);
}The timer's urgent step is the orange bar shown when a competition in the basket is about to close. To keep the built-in amber and red steps, delete the last two fill rules.
A green checkout button in the basket only:
css
[data-comps-role="basket-checkout"] { background: #16a34a; }A shadow behind your header logo:
css
[data-comps="header-logo-img"] { filter: drop-shadow(0 2px 6px rgb(0 0 0 / 0.5)); }One amount on the Lucky Dip buttons stands out:
css
[data-comps="lucky-dip-picker"] [data-comps-amount="10"] { outline: 2px solid #ffd166; }Hide the "fewer than last week" lines on a Winning Numbers block, and colour cash won:
css
.pb-winning-numbers__delta[data-direction="down"] { display: none; }
.pb-winning-numbers__figure[data-metric="cashWon"] .pb-winning-numbers__value { color: #16a34a; }Tone down the floating inbox button's motion (stops the slide-in, pulse ring, wiggle, hop and hover lift while keeping the button and badge working; to stop only the pulse ring, switch Pulse to Off under Marketing → Inbox):
css
[data-comps="inbox-fab"],
[data-comps="inbox-fab"] * {
animation: none !important;
transition: none !important;
}
[data-comps="inbox-fab-button"]:hover,
[data-comps="inbox-fab-button"]:focus-visible {
transform: none !important;
}Style one page only
Put one of these in front of a rule:
body[data-page-path="/about"]reaches one page by its address. The homepage is/, and a trailing slash makes no difference. Error pages don't carry it, so a page-specific rule never reaches them.body[data-comps-page="…"]reaches every page of one kind by its route name, for examplecompetitions-idfor every competition page orwinnersfor the winners page.
css
body[data-page-path="/about"] [data-comps="prose"] { max-width: 60ch; }
body[data-comps-page="competitions-id"] [data-comps="competition-title"] { letter-spacing: -0.02em; }To style the error page, use [data-comps="error-page"], with [data-comps-status="404"] for page-not-found.
When a rule doesn't take
Most hooks only need a plain rule. A few parts have strong built-in styling of their own: the hero layouts, the Winner Wall, the Live Feed and Jackpot Feed, and the instant win games and reveal (the reveal-* hooks). If a rule seems to do nothing there, make it stronger in one of two ways:
- Repeat the hook:
.pb-hero__title.pb-hero__title { … } - Add
!important:.pb-hero__title { color: #fff !important; }
If it still does nothing, check the hook is spelled the same as in Available hooks, and that Enable custom CSS is on and saved.
A rule for one header stat badge, such as [data-comps-metric="winners_today"], stops matching if you pick that badge's figure again. Badges set up before figures had periods carry the old names in the list; a figure picked now carries its live figure name, such as winnersToday or wonThisMonth, the same name you'd write in your copy. Write both if you're not sure: [data-comps-metric="winners_today"], [data-comps-metric="winnersToday"].
Warnings under the CSS box
As you type or paste, the admin checks your CSS for six mistakes that are easy to miss, because nothing looks broken straight away. A warning appears under the box saying what it found and where. A warning never stops you saving, and your CSS is never changed for you. Fix the problem when you're ready and the warning goes away.
- Incomplete file address in your CSS. An image or font address that doesn't start with
https://or/, such asurl("images/bg.png")or a placeholder left over from a template likeurl("LEFT-CHARACTER-URL"), is read from each page's own address. It loads a different file, or nothing, depending on the page. On a larger stylesheet it also stops your CSS being cached, so customers download all of it again with every page they open. Use the full address (startinghttps://), or remove the line, so your CSS can be cached. That may change how some of your rules apply, so check your site after saving. - An @import is being ignored.
@importonly works at the very top of your CSS, before any other rule. Anywhere lower down, browsers skip it, so the fonts or styles it loads never arrive. The warning gives the line number: move every@importto the top. - A block is never closed. Somewhere a
{has no matching}. Everything after it is treated as part of that block, so later rules may only apply some of the time, or not at all. The warning shows the line where the open block starts: add the missing}at the end of that block. - Files embedded in your CSS slow down the first visit. Images or fonts pasted in as
data:addresses make your CSS much bigger, and a new visitor has to download all of it before the page appears. Upload images (JPEG, PNG, GIF or WebP) to your Media Library and use their address instead. For fonts or SVGs, use a fullhttps://address where they're hosted. - A rule targets a hook that doesn't exist. A
[data-comps="…"]or[data-comps-role="…"]name that isn't anywhere on your site, often a typo, so that part of the rule never matches anything. The warning lists each one with its line number. Check the name against Available hooks. - A rule relies on a class name that can change. Your CSS uses a class name from the site's own design that isn't a hook, such as
.bg-blue-100,.text-centeror.winner-card. These can be renamed or removed in any update without notice, and the rule then quietly stops working. The warning counts them, lists the first few with their line numbers (open Show more for the rest), and names the hook to use instead where it knows one, for example.winner-card: use[data-comps="winner-card"]. Class names of your own, such as ones you added in a Custom HTML block, never raise it.
What custom CSS can't reach
- Emails. Email programs can't load your stylesheet. Customise email colours, banner, logo, corners and footer under Email design instead.
- The admin area. This is deliberate: a bad rule can never stop you reaching the kill switch.
- The livestream draw screen. It has a stylesheet of its own, so a storefront rule can't break a draw on camera. See Livestream draw screen.
Your CSS does apply to every customer-facing page, including the maintenance / coming-soon page and error pages.
Some read-only signals are exposed too, such as [data-comps-offscreen] on a block scrolled out of view. Don't restyle those. They're there so a rule can avoid them.
Every hook
Each table lists a hook, what it is, any parts it has (for blocks), and any extra attribute you can add to it.
Site header
| Hook | What it is |
|---|---|
[data-comps="site-header"] | The whole header |
[data-comps="header-mobile-bar"] | The header bar on phones |
[data-comps="header-zone"] | Each desktop zone of the header Add: [data-comps-zone="left|center|right"] |
[data-comps="header-nav-band"] | The full-width navigation strip under the header bar |
[data-comps="header-mobile-strip"] | The strip of Row below widgets under the header bar on phones |
[data-comps="header-logo"] | The logo link |
[data-comps="header-logo-img"] | The logo image |
[data-comps="header-logo-text"] | The site name shown when there is no logo image |
[data-comps="header-menu-toggle"] | The menu (hamburger) button |
[data-comps="header-menu-toggle-badge"] | The badge on the menu button: prizes to choose, or an envelope for unread messages Add: [data-comps-state="prize|message"] (prize = a number of prizes to choose; message = an envelope for unread messages) |
[data-comps-role="header-account"] | The My Account button (signed in) |
[data-comps="header-account-badge"] | The badge on the My Account button: prizes to choose, or an envelope for unread messages Add: [data-comps-state="prize|message"] (prize = a number of prizes to choose; message = an envelope for unread messages) |
[data-comps-role="header-login"] | The Log in button (signed out) |
[data-comps-role="header-register"] | The Register button (signed out) |
[data-comps="header-wallet"] | The wallet balance Add: [data-comps-variant="pill|card"] |
[data-comps="header-wallet-balance"] | The balance figure |
[data-comps="header-wallet-cash"] | The cash line under the balance |
[data-comps="header-basket"] | The basket button |
[data-comps="header-basket-count"] | The number of items on the basket button Add: [data-comps-state="syncing"] (the spinner shown in its place while the basket updates) |
[data-comps="header-inbox-bell"] | The Messages envelope next to the basket (desktop, when the inbox is on and the header has no My Account button) |
[data-comps="header-inbox-bell-count"] | The unread dot on the Messages envelope |
[data-comps="header-jackpot"] | The jackpot widget Add: [data-comps-state="active|won|disabled"] |
[data-comps="header-jackpot-amount"] | The jackpot figure |
[data-comps="header-jackpot-label"] | The jackpot wording |
[data-comps="header-stat-badge"] | A stat badge Add: [data-comps-metric="winners_today|winners_total|instant_wins_today_count|instant_wins_today_value|prizes_won_value|live_competitions|customers|jackpots_won_value|jackpots_won_count"] (the figure chosen: one of these, or a live figure name such as wonThisMonth) |
[data-comps="header-stat-badge-value"] | The stat figure |
[data-comps="header-stat-badge-label"] | The stat wording |
[data-comps="header-contact-button"] | A contact button Add: [data-comps-channel="whatsapp|phone|email"] |
[data-comps="header-link-button"] | A link button Add: [data-comps-variant], [data-comps-shape] |
[data-comps="header-lucky-dip"] | The Lucky Dip widget Add: [data-comps-surface="bar|mobile-bar|menu"] |
[data-comps="header-lucky-dip-trigger"] | The Lucky Dip pill that opens the amounts |
[data-comps="header-lucky-dip-panel"] | The pop-over listing the amounts |
Navigation
| Hook | What it is |
|---|---|
[data-comps="nav-link"] | Every menu link, in the header and the slide-out menu Add: [data-comps-level="top|child"] (child = inside a dropdown or section), [data-comps-state="active"] (the link for the page you are on, or its parent), [data-comps-surface="menu"] (links in the slide-out menu), [data-comps-item="messages"] (the Messages row, when the inbox is on) |
[data-comps="nav-dropdown-trigger"] | A menu item that opens a dropdown Add: [data-comps-state="open|active"] (can be both, so match with ~=) |
[data-comps="nav-dropdown"] | The dropdown panel |
Slide-out menu and app bar
| Hook | What it is |
|---|---|
[data-comps="mobile-menu-overlay"] | The dimmed backdrop behind the menu |
[data-comps="mobile-menu-panel"] | The slide-out menu |
[data-comps="mobile-menu-header"] | The top row of the menu |
[data-comps="mobile-menu-title"] | The menu title |
[data-comps="mobile-menu-close"] | The close button |
[data-comps="mobile-menu-nav"] | The list of links |
[data-comps="mobile-menu-section"] | A section heading in the menu Add: [data-comps-state="open|closed"] (collapsible sections only) |
[data-comps="mobile-menu-app-link"] | The Get the App links |
[data-comps="mobile-menu-messages-count"] | The unread count on the Messages row |
[data-comps="mobile-menu-footer"] | The note at the foot of the menu |
[data-comps="pwa-bottom-nav"] | The bottom bar in the installed app |
[data-comps="pwa-bottom-nav-item"] | Each bottom-bar button Add: [data-comps-item="back|competitions|account"], [data-comps-state="active"] |
Announcement bar
| Hook | What it is |
|---|---|
[data-comps="announcement-bar"] | The bar above the header |
[data-comps="announcement-inner"] | Its coloured box |
[data-comps="announcement-text"] | Its text |
[data-comps="announcement-action"] | Its optional link or button |
Site footer
| Hook | What it is |
|---|---|
[data-comps="site-footer"] | The whole footer |
[data-comps="footer-brand"] | The logo and tagline column |
[data-comps="footer-logo"] | The footer logo |
[data-comps="footer-tagline"] | The tagline under the logo |
[data-comps="footer-column"] | Each link column Add: [data-comps-column="explore|quick-links|legal|contact"] |
[data-comps="footer-heading"] | A column heading |
[data-comps="footer-section-label"] | A small label inside a column |
[data-comps="footer-link"] | Every footer link, including Cookie Settings and the email address |
[data-comps="footer-contact"] | The phone number |
[data-comps="footer-social"] | The row of social icons |
[data-comps="footer-social-link"] | Each social icon Add: [data-comps-network] (facebook, x, instagram, tiktok, youtube…) |
[data-comps="footer-legal"] | The bottom strip |
[data-comps="footer-responsible-play"] | The age badge and responsible play link |
[data-comps="footer-age-badge"] | The circular 18+ badge |
[data-comps="footer-copyright"] | The copyright line |
[data-comps="footer-disclaimer"] | The 18+ line |
[data-comps="footer-badge"] | The small pills in the bottom strip Add: [data-comps-badge="powered-by|security"] |
Basket
| Hook | What it is |
|---|---|
[data-comps="basket-overlay"] | The dimmed backdrop behind the basket |
[data-comps="basket-drawer"] | The basket panel |
[data-comps="basket-header"] | Its top row |
[data-comps="basket-title"] | The Basket title |
[data-comps="basket-timer"] | The reservation countdown Add: [data-comps-state="urgent"] |
[data-comps="basket-close"] | The close button |
[data-comps="basket-loading"] | Shown while the basket loads |
[data-comps="basket-empty"] | The empty basket message |
[data-comps="basket-items"] | The list of items |
[data-comps="basket-item"] | Each item |
[data-comps="basket-item-image"] | The item image |
[data-comps="basket-item-title"] | The competition name |
[data-comps="basket-item-price"] | The ticket price |
[data-comps="basket-qty"] | The quantity stepper |
[data-comps="basket-qty-input"] | The quantity box |
[data-comps="basket-item-remove"] | The remove button |
[data-comps="basket-item-total"] | The item total |
[data-comps="basket-upsell"] | The suggested competition card |
[data-comps="basket-footer"] | The totals area |
[data-comps="basket-wallet"] | The use-my-balance option Add: [data-comps-state="applied"] |
[data-comps="basket-promo-discount"] | The promo code discount line |
[data-comps="basket-total"] | The total |
[data-comps="basket-warning"] | A warning above the checkout button Add: [data-comps-tone="warning"], [data-comps-reason="verify-email|min-spend"] |
[data-comps-role="basket-checkout"] | The checkout button |
[data-comps="promo-code"] | The promo code box |
[data-comps="promo-code-input"] | The promo code field |
[data-comps="promo-code-apply"] | The Apply button |
[data-comps="promo-code-applied"] | The applied code |
[data-comps="promo-code-error"] | The error message |
Pop-overs and notices
| Hook | What it is |
|---|---|
[data-comps="modal"] | Every dialog (the dimmed layer) |
[data-comps="modal-panel"] | The dialog box itself. A few dialogs carry their own name instead: roundup-dialog and main-prize-boost-dialog. complete-profile-dialog and reality-check-dialog name the card inside modal-panel, so rules on modal-panel still reach them. |
[data-comps="confirm-dialog"] | Yes/no confirmation dialogs |
[data-comps="complete-profile-dialog"] | The Complete Your Profile dialog |
[data-comps="reality-check-dialog"] | The Reality Check dialog |
[data-comps="toast-stack"] | Where pop-up messages appear |
[data-comps="toast"] | Each pop-up message Add: [data-comps-tone="success|error|info|warning"] |
[data-comps="toast-close"] | Its close button |
[data-comps="cookie-banner"] | The cookie banner |
[data-comps="cookie-banner-card"] | Its card |
[data-comps="cookie-banner-offer"] | The offer line, when there is one |
[data-comps="cookie-banner-title"] | Its title |
[data-comps="cookie-banner-text"] | Its text |
[data-comps-role="cookie-accept"] | Accept |
[data-comps-role="cookie-reject"] | Reject |
[data-comps="verification-banner"] | The verify-your-email banner |
[data-comps="verification-banner-text"] | Its text |
[data-comps="verification-banner-resend"] | The resend button |
[data-comps="verification-banner-close"] | The dismiss button |
[data-comps="inbox-fab"] | The floating inbox button in the corner, with its card Add: [data-comps-side="left|right"], [data-comps-visitor="member|guest"] (guest = signed out), [data-comps-unread="true"] (there are unread messages), [data-comps-new="true"] (for a moment, as a new message arrives), [data-comps-pulse="few|always"] (the pulse is on for this visitor), [data-comps-label="text|icon"] (icon = no button text) |
[data-comps="inbox-fab-button"] | The button itself |
[data-comps="inbox-fab-badge"] | Its unread count or dot Add: [data-comps-style="count|dot"] |
[data-comps="inbox-fab-card"] | The join or sign-in card a signed-out visitor sees after a tap |
[data-comps="players-chat-pill"] | The Players' chat button in the corner Add: [data-comps-side="left|right"] |
[data-comps="players-chat-badge"] | The unread count on the Players' chat button |
[data-comps="players-chat-panel"] | The open Players' chat panel (a bottom sheet on phones) |
[data-comps="players-chat-message"] | Each chat message Add: [data-comps-author="player|team"] (team = posted by the site), [data-comps-mine="true"] (the visitor's own message) |
[data-comps="players-chat-composer"] | Where players type, or the note that says why they can't post yet |
[data-comps="confetti"] | The confetti burst |
[data-comps="winner-lightbox"] | The full-size winner photo viewer |
[data-comps="winner-lightbox-image"] | The photo |
[data-comps="winner-lightbox-title"] | The caption title |
[data-comps="winner-lightbox-description"] | The caption text |
[data-comps="winner-lightbox-close"] | Close |
[data-comps="winner-lightbox-prev"] | Previous |
[data-comps="winner-lightbox-next"] | Next |
Buttons
| Hook | What it is |
|---|---|
[data-comps="button"] | Every site button, including pop-up buttons Add: [data-comps-variant="primary|secondary|outline|ghost|gradient|destructive|danger|warning"] |
Lists, tabs and notices
Shared by the account area, the winners page, checkout and the other customer pages.
| Hook | What it is |
|---|---|
[data-comps="tabs"] | A row of tabs: the winners page categories, and the tabs on My Wallet and the profile editor |
[data-comps="tab"] | Each tab Add: [data-comps-state="active"] (the tab that is showing) |
[data-comps-role="tab"] | Each winners page tab. They are buttons, so match both: [data-comps="tab"], [data-comps-role="tab"] Add: [data-comps-state="active"] (the tab that is showing) |
[data-comps="filter-pill"] | The status and category filters on My Entries and My Prizes Add: [data-comps-state="active"] |
[data-comps="status-pill"] | A status label on an entry, order, prize, withdrawal, commission or membership payment Add: [data-comps-status] (the status in lower case, e.g. completed, pending, paid, past_due) |
[data-comps="alert"] | An error, success or warning message on a form or page Add: [data-comps-tone="success|error|info|warning"] |
[data-comps="empty-state"] | The message shown when a list has nothing in it |
[data-comps="loading"] | Shown while a list or page loads |
[data-comps="pagination"] | The Previous / Next row under a list, including the entries list on a competition |
.card | The box most cards and notices are drawn in: checkout notices, the status card, account panels. It takes the card colour from Settings → Appearance. Scope it with a hook or a page, e.g. [data-comps="checkout-timer"].card, or it reaches every card. |
Competition cards
| Hook | What it is |
|---|---|
[data-comps="competition-card"] | Each competition card |
[data-comps="card-title"] | The card title |
[data-comps="card-price"] | The ticket price |
[data-comps="card-price-unit"] | The words "per entry" after the price (when the card design's price wording has them) |
[data-comps="card-progress"] | The tickets-sold bar |
[data-comps="card-progress-fill"] | The filled part of the bar (the arc, on a ring; each lit segment, on a segmented bar). Recolour a bar with background, a ring with stroke. |
[data-comps="card-badge"] | Each badge Add: [data-comps-badge="early-bird|discount|app-exclusive|locked|members-only|sold-out|max-reached|instant-wins|selling-fast|main-prize-boost|instant-win-boost|cashback|cash-alternative|credit-alternative|auto-draw|timer|ended"] |
[data-comps="card-cta-winner"] | The winner line on an ended card |
[data-comps="card-image"] | The image area of a changed card |
[data-comps="card-scrim"] | The fade over a card image (when the card design has one) |
[data-comps="card-status"] | The Sold Out / Ended status of a changed card |
[data-comps="card-buttons"] | The button row of a changed card |
[data-comps="card-block"] | The extra parts a changed card can show Add: [data-comps-block="summary|category-tag|tickets-left|max-per-person|prize-value|draw-date|opens-in|boost|cashback|ends-today"], [data-boost-display="chip|band|panel|ticker"] (boost only), [data-cashback-display="chip|band|ticker"] (cashback only), [data-ends-today-display="band|pill|sash|stamp|ticker"] (the Ends today banner only) |
.cd-ends-today | On a changed card whose competition ends today (UK time), until it ends or sells out. Style anything on that card, e.g. .cd-ends-today [data-comps-block="draw-date"] for the draw date. |
Pop-ups
| Hook | What it is |
|---|---|
[data-comps="popup"] | Each pop-up's outer shell Add: [data-comps-frame="modal|corner|bar"], [data-comps-popup-id] (the last part of the pop-up's editor address; the Sign-up Popup is signup), [data-comps-popup-style="wheel|form"] (the Sign-up Popup only: wheel is the spin-to-win version) |
[data-comps="popup-card"] | The card |
[data-comps="popup-close"] | Its close button |
[data-comps="popup-block"] | Each content block; on the spin-to-win pop-up, its headline and subhead Add: [data-comps-type="heading|text|image|button|countdown|competition"] |
[data-comps="popup-wheel"] | The spin-to-win wheel on the Sign-up Popup |
[data-comps="popup-wheel-pointer"] | The pointer above the wheel |
[data-comps="popup-wheel-disc"] | The spinning disc |
[data-comps="popup-wheel-wedge"] | Each slice of the wheel: style its path for the colour and its text for the label Add: [data-comps-wedge] (the slice number, from 1) |
[data-comps="popup-wheel-hub"] | The centre circle of the wheel |
Competition page
| Hook | What it is |
|---|---|
[data-comps="competition-hero"] | The hero section; a hero designed in Site, Pages, Competition page adds its layout and marks each of its parts Add: [data-comps-style="cinematic|split|stage|banner"] (the hero layout: Full image, Split, Centred or Banner; designed hero only), [data-comps-hero-part] (on each part: title, summary, status, badges, countdown, price, progress, enter, share or image; designed hero only) |
[data-comps="competition-hero-backdrop"] | The hero backdrop (target img inside it to hide just the photo) |
[data-comps="competition-hero-badges"] | The status pill and prize badges |
[data-comps="competition-hero-content"] | The hero text block |
[data-comps="competition-hero-scroll-cue"] | The Scroll indicator |
[data-comps="competition-hero-blend"] | The fade from the hero into the page |
[data-comps="competition-ended-cta"] | The ended message in the hero |
[data-comps="competition-title"] | The competition title |
[data-comps="competition-summary"] | The summary under the title |
[data-comps="competition-countdown"] | The countdown |
[data-comps="competition-countdown-digit"] | Each countdown number |
[data-comps="competition-progress"] | The tickets-sold bar |
[data-comps="competition-progress-fill"] | The filled part of the bar (the arc, on a ring). Recolour a bar with background, a ring with stroke. |
[data-comps="competition-early-bird"] | The early bird banner |
[data-comps="competition-cashback"] | The cashback banner |
[data-comps="competition-boost"] | The instant win boost banner |
[data-comps="competition-stats"] | Price, total tickets, max per order and draw date |
[data-comps="competition-video"] | The video section |
[data-comps="competition-gallery"] | The gallery section |
[data-comps="competition-gallery-grid"] | The gallery thumbnails |
[data-comps="competition-gallery-item"] | Each thumbnail (use :first-child for the lead image) |
[data-comps="competition-about"] | About This Prize |
[data-comps="competition-details"] | The details grid |
[data-comps="competition-place-prizes"] | The place-by-place prize list, on a competition with a different prize per place |
[data-comps="competition-bundle-offers"] | Bundle offers |
[data-comps="competition-instant-wins"] | The instant win prizes |
[data-comps="instant-win-group"] | The Available Now and Already Won lists of instant win prizes (the heading is the h3 inside) Add: [data-comps-state="available|won"] |
[data-comps="instant-win-prize"] | Each prize row in those lists Add: [data-comps-state="available|won"] |
[data-comps="instant-win-boosted-ticket"] | An instant win ticket number that is boosted |
[data-comps="instant-win-alternative"] | The cash and credit alternative chips on an instant win prize Add: [data-comps-alternative="cash|credit"] |
[data-comps="competition-entry-list"] | All entries |
[data-comps="competition-entry-table"] | The entries table |
[data-comps="competition-related"] | More Competitions |
[data-comps="competition-custom"] | A section you added in Site, Pages, Competition page Add: [data-comps-type="text|image|banner|points"], [data-comps-design="plain|card|callout|expandable|full|framed|small|behind|beside|band|tiles|list|strip"] (its design: plain, card, callout or expandable (text); full, framed or small (image); behind, beside or band (banner); tiles, list or strip (points)) |
[data-comps="competition-custom-toggle"] | The heading bar of an expandable text section; it has aria-expanded="true" while open |
[data-comps="competition-custom-panel"] | What an expandable text section shows when opened |
[data-comps="competition-custom-body"] | The text of a text section you added |
[data-comps="competition-purchase"] | The purchase panel (desktop, and in the page on phones); a buy box layout other than Slider and stepper adds data-comps-style Add: [data-comps-style="stepper|tiles"] |
[data-comps="members-only-pitch"] | The join pitch a non-member sees on a members-only competition |
[data-comps="member-entry-chip"] | The Member entry tag a member sees on a members-only competition |
[data-comps="competition-main-prize-boost"] | The main prize boost panel Add: [data-comps-state="earned|nudge"] |
[data-comps="competition-mobile-purchase"] | The sticky purchase bar (phones); the slim one-row tray adds data-comps-style Add: [data-comps-style="slim"] |
[data-comps="competition-enter-now"] | The floating Enter now button (phones, with the buy box in the page) |
[data-comps="competition-results"] | The results panel on an ended competition |
[data-comps="winner-place-label"] | The place and prize above each winner in the results panel |
[data-comps="winner-selection-method"] | How a winner was chosen (live draw or picked), beside them in the results panel |
[data-comps="competition-my-tickets"] | The You already have X tickets banner |
[data-comps="competition-app-install"] | The app-exclusive install prompt |
[data-comps="competition-main-content"] | The left column |
[data-comps="competition-sidebar"] | The right column |
[data-comps="competition-skeleton"] | The loading placeholder |
A section you give its own colours, type and spacing in Site → Pages → Competition page also carries [data-comps-section-style] on its root, beside its usual hook. Its value is a space-separated list of what was set, so match one word of it with ~=: bg-none, bg-surface, bg-tint, bg-primary or bg-custom (the background), ink (its own text colour), on-primary (text worked out for the primary colour), heading-smaller, heading-larger, heading-largest, heading-regular, heading-heavy, heading-centre and heading-font. A section with none of them set has no attribute. For example, [data-comps="competition-about"][data-comps-section-style~="bg-tint"] reaches the About section only while it has the tint background.
The hero's parts ([data-comps-hero-part]) and its layout ([data-comps-style] on the hero) are only there once the hero has been designed in the editor. The hero every site starts with keeps the hooks above it, without them.
Checkout
| Hook | What it is |
|---|---|
[data-comps="checkout-notice"] | The notice you set in Settings, at the top of checkout |
[data-comps="checkout-notice-icon"] | Its icon |
[data-comps="checkout-notice-title"] | Its title (Notice) |
[data-comps="checkout-notice-text"] | Its text |
[data-comps="checkout-timer"] | The reservation countdown Add: [data-comps-state="urgent"] (a competition in the basket is about to close) |
[data-comps="checkout-timer-icon"] | Its icon |
[data-comps="checkout-timer-title"] | Its title (Tickets Reserved) |
[data-comps="checkout-timer-text"] | The Complete your payment within… line, and the ends-soon line under it |
[data-comps="checkout-timer-countdown"] | The large countdown figure |
[data-comps="checkout-timer-bar"] | The bar along the bottom (its track) |
[data-comps="checkout-timer-bar-fill"] | The filled part of the bar, which shrinks as time runs out Add: [data-comps-state="normal|low|critical|urgent"] (normal = blue; low = yellow, under 3 minutes left; critical = red, under 1 minute; urgent = orange, a competition in the basket is about to close) |
[data-comps="checkout-block"] | A message that stops or holds the payment Add: [data-comps-type="verify-email|min-spend|self-excluded|account-blocked|spending-limit|error|payment-stalled|payment-waiting"] |
[data-comps="checkout-block-icon"] | Its icon |
[data-comps="checkout-block-title"] | Its title |
[data-comps="checkout-block-text"] | Its text |
[data-comps="checkout-summary"] | The Order Summary card |
[data-comps="checkout-item"] | Each competition in the summary |
[data-comps="checkout-total"] | The Total (or Amount to Pay) line |
[data-comps="checkout-payment"] | The payment card |
[data-comps="checkout-mobile-footer"] | The sticky total and pay bar on phones |
[data-comps="roundup-dialog"] | The Add a little more? dialog |
[data-comps="roundup-basket-total"] | Its basket total line |
[data-comps="roundup-section"] | Each group of options |
[data-comps="roundup-option"] | Each option |
[data-comps="roundup-option-hero"] | The option's big figure |
[data-comps="roundup-option-title"] | The option's title |
[data-comps="roundup-option-caption"] | The option's small print |
[data-comps="roundup-decline"] | The No thanks button |
[data-comps="main-prize-boost-dialog"] | The main prize boost dialog |
[data-comps="checkout-boosted"] | The boost note on a checkout line |
[data-comps="checkout-boost-kept"] | The boost row in the checkout totals |
Payment success page
| Hook | What it is |
|---|---|
[data-comps="order-result"] | The main card Add: [data-comps-state="processing|complete|refunded|failed"] |
[data-comps="order-result-title"] | Its title (Order Complete, Processing Order…) |
[data-comps="order-summary"] | The summary of what was bought Add: [data-comps-kind="order|top-up|membership"] |
[data-comps="ticket-chip"] | Each ticket number, here and on My Entries Add: [data-comps-state="won|boosted|plain"] (won = an instant win; boosted = a boosted instant win, on this page only (My Entries shows a boosted win as won)) |
[data-comps="order-actions"] | The buttons at the bottom of the card |
[data-comps="play-again-bar"] | The Play again bar on phones |
[data-comps="instant-win-cta"] | The Reveal / Replay instant wins buttons, here, on My Orders and on shared wins |
[data-comps="instant-win-badge"] | The Winner pill on a shared instant win |
[data-comps="prizes-checking"] | The checking-for-prizes message after payment |
[data-comps="prizes-progress"] | Its progress counter |
[data-comps="prizes-halted"] | The message when the prize check pauses |
[data-comps="instant-wins-summary"] | The instant wins you won |
[data-comps="instant-win-row"] | Each instant win |
[data-comps="instant-wins-wallet"] | The credit-added line |
[data-comps="order-line-boosted"] | The boost note on an order line |
[data-comps="ticket-wall-toggle"] | The show-all-tickets button |
[data-comps="ticket-wall-checking"] | The checking-tickets note |
[data-comps="order-cashback"] | The cashback line |
[data-comps="jackpot-contributed"] | The jackpot contribution line |
Instant win reveal
The reveal sets its own styles strongly, so rules here may need !important. See "When a rule doesn't take" in the docs.
| Hook | What it is |
|---|---|
[data-comps="reveal-shell"] | The full-screen layer behind the reveal |
[data-comps="reveal-modal"] | The reveal box |
[data-comps="reveal-header"] | Its title and subtitle |
[data-comps="reveal-summary"] | The results at the end Add: [data-comps-state="won|lost"] |
[data-comps="reveal-tally-chip"] | Each ticket in the strip of results Add: [data-comps-state="pending|won|lost"] (pending = not revealed yet) |
[data-comps="reveal-boost-card"] | The boost card in the reveal |
My Account
| Hook | What it is |
|---|---|
[data-comps="account-nav"] | The menu down the side |
[data-comps="account-nav-link"] | Each menu link Add: [data-comps-state="active"] (the page you are on) |
[data-comps="account-nav-messages-count"] | The unread count on the Messages link |
[data-comps="account-back-link"] | The My Account link above Messages on phones |
[data-comps="inbox-thread"] | The Messages thread |
[data-comps="inbox-header"] | The site name and logo at the top of the thread |
[data-comps="inbox-scroller"] | The scrolling list of messages |
[data-comps="inbox-empty"] | What shows before any messages arrive |
[data-comps="inbox-day"] | A day separator (Today, Yesterday, Wed 28 Oct) |
[data-comps="inbox-new-divider"] | The "Seen before" line between new messages and ones already read |
[data-comps="inbox-message"] | Each message bubble Add: [data-comps-state="highlight|expired"] (highlight = just opened from a link; expired = the offer has ended) |
[data-comps="inbox-message-video"] | A message's video: its poster and play button |
[data-comps="inbox-message-ended"] | The "This offer has ended" line on an expired message |
[data-comps-role="inbox-message-button"] | A message's button |
[data-comps="account-page-title"] | The title of each account page |
[data-comps="entry-row"] | Each competition on My Entries |
[data-comps="entry-boosted-chip"] | The Boosted chip on My Entries |
[data-comps="order-row"] | Each order on Order History |
[data-comps="wallet-txn"] | Each transaction on My Wallet Add: [data-comps-direction="in|out"], [data-comps-wallet="credit|cash|points"] (which tab it is on) |
[data-comps="wallet-card"] | The balance cards at the top of My Wallet Add: [data-comps-wallet="credit|cash|points"] |
[data-comps="wallet-card-header"] | The icon and name at the top of a balance card |
[data-comps="wallet-card-icon"] | The icon tile on a balance card |
[data-comps="wallet-card-balance"] | The balance figure on a balance card |
[data-comps="wallet-info"] | The explainer cards under the balances Add: [data-comps-wallet="credit|cash|points"] |
[data-comps="wallet-line"] | Each bullet on an explainer card Add: [data-comps-line="top-up|expiry|withdrawal-timing|daily-visit|conversion|store|points-expiry"] (the lines the site adds itself; lines you wrote in Page Copy carry no data-comps-line) |
[data-comps="prize-row"] | Each win on My Prizes |
[data-comps="prize-choice"] | A prize waiting for you to choose how to take it |
[data-comps="membership-status"] | The status card on the membership page Add: [data-comps-state] (e.g. active, cancelling, past_due, ended) |
Winners page and gallery
| Hook | What it is |
|---|---|
[data-comps="winner-card"] | Each winner Add: [data-comps-type="main|jackpot|instant"] |
[data-comps="winner-name"] | The winner's name |
[data-comps="winner-prize-badge"] | The prize-type badge beside the name |
[data-comps="winner-boosted-chip"] | The Boosted chip on a main prize or instant win winner |
[data-comps="winner-backdrop"] | The dark layers behind a winner card Add: [data-comps-layer="base|hover"] (hover is the glow that fades in on hover) |
[data-comps="winner-image"] | The prize or competition thumbnail |
[data-comps="winner-prize"] | The prize wording under the name |
[data-comps="winner-meta"] | The ticket number and date row |
[data-comps="gallery-item"] | Each photo in the winner gallery |
Log in, register and password pages
| Hook | What it is |
|---|---|
[data-comps="auth-logo"] | The logo on these pages |
[data-comps="auth-logo-text"] | The site name shown there when there is no logo image |
[data-comps="auth-title"] | The page title |
[data-comps="auth-card"] | The form card |
[data-comps="field-label"] | Each field label, including the date of birth Day / Month / Year labels |
[data-comps="field-input"] | Each field, including each date of birth box |
[data-comps="password-rules"] | The password checklist on register, reset password and change password |
[data-comps="password-rule"] | Each rule in the checklist Add: [data-comps-state="met|unmet"] |
Jackpot
| Hook | What it is |
|---|---|
[data-comps="jackpot-amount"] | The figure on the Jackpot block Add: [data-comps-state="active|won|disabled"] |
[data-comps="jackpot-feed-amount"] | The figure on the Jackpot Feed block Add: [data-comps-state="active|won|disabled"] |
[data-comps="jackpot-won-so-far"] | The "won so far" line on the Jackpot block |
[data-comps="jackpot-feed-won-so-far"] | The "won so far" line on the Jackpot Feed block |
[data-comps="jackpot-feed-pulse"] | The live contribution line on the Jackpot Feed |
[data-comps="jackpot-feed-row"] | Each Jackpot Feed row |
[data-comps="jackpot-win-popup"] | The jackpot win pop-up |
[data-comps="jackpot-win-popup-card"] | Its card |
[data-comps="jackpot-win-panel"] | The jackpot win panel after payment |
Pages and text
| Hook | What it is |
|---|---|
[data-comps="prose"] | Long-form text (policy and information pages). Paragraphs and lists take a colour set here; target headings, links and quotes directly, e.g. [data-comps="prose"] :is(h1,h2,h3). |
[data-comps="error-page"] | The error page Add: [data-comps-status] (the error code, e.g. 404 or 500) |
[data-comps="error-card"] | Its card |
[data-comps="error-code"] | The big error code |
[data-comps="error-title"] | The error message |
[data-comps="error-links"] | The links under it |
[data-comps="status-card"] | The message on single-message pages: email verification, unsubscribe, text opt-out, payment cancelled or failed, a shared win that can't load Add: [data-comps-state="loading|success|error|info"] |
[data-comps="status-card-icon"] | Its icon |
[data-comps="status-card-title"] | Its heading (Payment Cancelled, Email Verified…) |
[data-comps="status-card-text"] | Its text |
[data-comps="status-card-note"] | The inset box with a note, on the payment cancelled and failed pages |
[data-comps="status-card-actions"] | The row of buttons or links under it |
[data-comps="replay-card"] | The card on the replay page and on a shared win |
[data-comps="profile-header"] | The top of a public profile |
[data-comps="profile-win-card"] | Each win on a public profile Add: [data-comps-type="main|jackpot|instant"], [data-comps-featured="true"] (the featured win) |
[data-comps="points-balance"] | Your balance on the points store |
[data-comps="points-expiry"] | The points expiry notice on the store and My Wallet |
[data-comps="points-store-item"] | Each item in the points store |
[data-comps="membership-card"] | The membership join page card |
Page-builder blocks
Every block sits in a wrapper you can target by type. The block's own parts are the classes in the groups below.
| Hook | What it is |
|---|---|
[data-comps="page-block"] | Every block's wrapper Add: [data-comps-type] (the block type: hero, text, lucky-dip, card-grid…), [data-comps-nested="true"] (inside a Two Columns block), [data-comps-empty="true"] (has nothing to show), [data-comps-offscreen="true"] (scrolled out of view (read only: don't restyle)), [data-comps-unsized="true"] (sizes itself (read only)) |
Hero block
Every hero layout uses the same part names, wherever it has that part.
| Hook | What it is |
|---|---|
.pb-hero | The hero block Parts: .pb-hero__header, .pb-hero__live, .pb-hero__headline, .pb-hero__tagline, .pb-hero__actions, .pb-hero__loading, .pb-hero__featured, .pb-hero__empty, .pb-hero__empty-title, .pb-hero__empty-text, .pb-hero__empty-cta, .pb-hero__card, .pb-hero__image, .pb-hero__badges, .pb-hero__badge, .pb-hero__timer, .pb-hero__title, .pb-hero__summary, .pb-hero__price, .pb-hero__progress, .pb-hero__sold, .pb-hero__cta, .pb-hero__prev, .pb-hero__next, .pb-hero__dots, .pb-hero__dot, .pb-hero__scrubber, .pb-hero__frame-label, .pb-hero__scrim, .pb-hero__reel-labelAdd: [data-layout="bento|carousel|classic-grid|cover-flow|infinite-reel|diagonal|filmstrip|masonry|minimal|scroll|split|spotlight|stacked"] (on __featured), [data-featured="true"] (on the large lead __card), [data-badge="featured|app-exclusive|instant-wins"] (on __badge), [data-state="active"] (on the current __dot) |
Lucky Dip block
| Hook | What it is |
|---|---|
.pb-lucky-dip | The Lucky Dip block (also [data-comps="lucky-dip"]) Parts: .pb-lucky-dip__icon, .pb-lucky-dip__heading, .pb-lucky-dip__subheading, .pb-lucky-dip__picker, .pb-lucky-dip__note |
[data-comps="lucky-dip"] | The Lucky Dip block card |
[data-comps="lucky-dip-picker"] | The amount buttons, on the block and in the header Add: [data-comps-source="block|header"], [data-comps-amount] (on each button, e.g. [data-comps-amount="10"]) |
Heading, Text and Divider blocks
| Hook | What it is |
|---|---|
.pb-heading | Heading block Parts: .pb-heading__title, .pb-heading__gradient, .pb-heading__subtitle |
.pb-text | Text block Parts: .pb-text__body |
.pb-divider | Divider block Parts: .pb-divider__line, .pb-divider__text |
Image, Image Row, Video and Embed blocks
| Hook | What it is |
|---|---|
.pb-image | Image block Parts: .pb-image__link, .pb-image__img, .pb-image__caption |
.pb-image-row | Image Row block Parts: .pb-image-row__item, .pb-image-row__img |
.pb-video | Video block Parts: .pb-video__player, .pb-video__embed, .pb-video__placeholder, .pb-video__caption |
.pb-video-bg | Video block with Play as background ticked Parts: .pb-video-bg__cover, .pb-video-bg__frameAdd: [data-fit="fill|fit"], [data-state="loading|playing|stopped|static"] |
.pb-embed | Embed block Parts: .pb-embed__frame, .pb-embed__placeholder |
.pb-custom-html | Custom HTML block: the box your pasted code goes into. Its placeholder part is the card shown in its place in page-builder previews only, never on the live site. Parts: .pb-custom-html__placeholder |
Two Columns, Button Row, Card and Card Grid blocks
| Hook | What it is |
|---|---|
.pb-columns | Two Columns block Parts: .pb-columns__column |
.pb-button-row | Button Row block (its buttons are [data-comps="button"]) |
.pb-card | Card block Parts: .pb-card__panel, .pb-card__media, .pb-card__image, .pb-card__icon, .pb-card__title, .pb-card__description, .pb-card__cta |
.pb-card-grid | Card Grid block Parts: .pb-card-grid__card, .pb-card-grid__media, .pb-card-grid__image, .pb-card-grid__icon, .pb-card-grid__title, .pb-card-grid__description, .pb-card-grid__cta |
.pb-accordion | Accordion block Parts: .pb-accordion__heading, .pb-accordion__list, .pb-accordion__item, .pb-accordion__trigger, .pb-accordion__question, .pb-accordion__chevron, .pb-accordion__answerAdd: [data-state="open|closed"] (on __item) |
Trust block
| Hook | What it is |
|---|---|
.pb-trust | Trust block. __eyebrow is the small line (the Heading setting); __heading is the big title (the Subheading setting). Parts: .pb-trust__glow, .pb-trust__eyebrow, .pb-trust__heading, .pb-trust__grid, .pb-trust__card, .pb-trust__icon, .pb-trust__title, .pb-trust__description |
Competitions Grid and Ending Soon blocks
The cards inside are competition cards, so the card hooks reach them too.
| Hook | What it is |
|---|---|
.pb-competitions-grid | Competitions Grid block Parts: .pb-competitions-grid__header, .pb-competitions-grid__eyebrow, .pb-competitions-grid__heading, .pb-competitions-grid__controls, .pb-competitions-grid__chip, .pb-competitions-grid__sort, .pb-competitions-grid__filter-heading, .pb-competitions-grid__clear, .pb-competitions-grid__tile, .pb-competitions-grid__tile-image, .pb-competitions-grid__tile-label, .pb-competitions-grid__rail, .pb-competitions-grid__active-chip, .pb-competitions-grid__filter-toggle, .pb-competitions-grid__panel, .pb-competitions-grid__panel-done, .pb-competitions-grid__count, .pb-competitions-grid__grid, .pb-competitions-grid__skeleton, .pb-competitions-grid__empty, .pb-competitions-grid__empty-title, .pb-competitions-grid__empty-text, .pb-competitions-grid__empty-cta, .pb-competitions-grid__moreAdd: [data-tag-slug] (on each __chip), [aria-pressed="true|false"] (on a chip: the selected filter) |
.pb-ending-soon | Ending Soon block Parts: .pb-ending-soon__header, .pb-ending-soon__eyebrow, .pb-ending-soon__eyebrow-dot, .pb-ending-soon__heading, .pb-ending-soon__subheading, .pb-ending-soon__placeholder, .pb-ending-soon__rail, .pb-ending-soon__track, .pb-ending-soon__item, .pb-ending-soon__prev, .pb-ending-soon__next |
Next Draw, Countdown and stats blocks
| Hook | What it is |
|---|---|
.pb-next-draw | Next Draw block Parts: .pb-next-draw__heading, .pb-next-draw__link, .pb-next-draw__card, .pb-next-draw__badge, .pb-next-draw__title, .pb-next-draw__title-link, .pb-next-draw__countdown, .pb-next-draw__unit, .pb-next-draw__unit-value, .pb-next-draw__unit-label, .pb-next-draw__ctaAdd: [data-state="loading"] (on __card while it loads) |
.pb-countdown | Countdown block Parts: .pb-countdown__heading, .pb-countdown__expired, .pb-countdown__units, .pb-countdown__unit, .pb-countdown__unit-value, .pb-countdown__unit-label, .pb-countdown__inlineAdd: [data-state="running|expired"] |
.pb-stats-row | Stats Row block Parts: .pb-stats-row__panel, .pb-stats-row__stat, .pb-stats-row__value, .pb-stats-row__labelAdd: [data-stat="live|winners|prizes|custom"] (on __stat) |
.pb-stat-tiles | Stat Tiles block, Tiles layout Parts: .pb-stat-tiles__card, .pb-stat-tiles__value, .pb-stat-tiles__labelAdd: [data-state="loading"] (on __value while it loads), [data-metric="winners|mainPrizeWinners|instantWins|won|cashWon|siteCreditWon|mainPrizesWon|biggestWin|instantWinsValue|physicalPrizesWon|freeTicketsGiven|instantWinsAvailable|prizesToBeWon|jackpot|competitionsDrawn|newCompetitions|soldOutCompetitions|competitionsEndingToday|winningStreak|liveCompetitions|players|jackpotsWon|jackpotWins|customers"] (on __card: the figure it shows), [data-period="today|week|last7|month|last30|year|all"] (on __card, for a figure with a period) |
.pb-stat-hero | Stat Tiles block, Hero layout Parts: .pb-stat-hero__badge, .pb-stat-hero__heading, .pb-stat-hero__value, .pb-stat-hero__label, .pb-stat-hero__textAdd: [data-metric="winners|mainPrizeWinners|instantWins|won|cashWon|siteCreditWon|mainPrizesWon|biggestWin|instantWinsValue|physicalPrizesWon|freeTicketsGiven|instantWinsAvailable|prizesToBeWon|jackpot|competitionsDrawn|newCompetitions|soldOutCompetitions|competitionsEndingToday|winningStreak|liveCompetitions|players|jackpotsWon|jackpotWins|customers"] (the figure it shows), [data-period="today|week|last7|month|last30|year|all"] (for a figure with a period) |
.pb-winning-numbers | Winning Numbers block Parts: .pb-winning-numbers--panel, .pb-winning-numbers--cards, .pb-winning-numbers--strip, .pb-winning-numbers__header, .pb-winning-numbers__eyebrow, .pb-winning-numbers__heading, .pb-winning-numbers__subheading, .pb-winning-numbers__tabs, .pb-winning-numbers__tab, .pb-winning-numbers__figures, .pb-winning-numbers__figure, .pb-winning-numbers__value, .pb-winning-numbers__label, .pb-winning-numbers__deltaAdd: [data-period="today|week|last7|month|last30|year|all"] (on the block: the tab showing; on __tab and __figure: their own period), [data-state="active"] (on the __tab showing), [data-metric="winners|mainPrizeWinners|instantWins|won|cashWon|siteCreditWon|mainPrizesWon|biggestWin|physicalPrizesWon|freeTicketsGiven|competitionsDrawn"] (on __figure), [data-value] (on __figure: the plain number, e.g. 12480), [data-state="loading|zero"] (on __figure), [data-direction="up|down|same"] (on __delta) |
Jackpot and Jackpot Feed blocks
| Hook | What it is |
|---|---|
.pb-jackpot | Jackpot block Parts: .pb-jackpot__card, .pb-jackpot__heading, .pb-jackpot__subheading, .pb-jackpot__amount, .pb-jackpot__caption, .pb-jackpot__cause, .pb-jackpot__winner, .pb-jackpot__won-so-far, .pb-jackpot__odds, .pb-jackpot__cta |
.pb-jackpot-feed | Jackpot Feed block Parts: .pb-jackpot-feed__pot, .pb-jackpot-feed__heading, .pb-jackpot-feed__subheading, .pb-jackpot-feed__amount, .pb-jackpot-feed__caption, .pb-jackpot-feed__cause, .pb-jackpot-feed__won-so-far, .pb-jackpot-feed__list, .pb-jackpot-feed__pulse, .pb-jackpot-feed__empty, .pb-jackpot-feed__view-all, .pb-jackpot-feed__wins, .pb-jackpot-feed__footer, .pb-jackpot-feed__row, .pb-jackpot-feed__row-icon, .pb-jackpot-feed__name, .pb-jackpot-feed__row-amount, .pb-jackpot-feed__row-cause, .pb-jackpot-feed__timeAdd: [data-fresh="true"] (briefly, on a row that has just arrived) |
Live Feed, Winner Ticker, Winner Wall and Social Follow blocks
| Hook | What it is |
|---|---|
.pb-live-feed | Live Feed block Parts: .pb-live-feed__header, .pb-live-feed__live-dot, .pb-live-feed__heading, .pb-live-feed__subheading, .pb-live-feed__view-all, .pb-live-feed__skeleton, .pb-live-feed__empty, .pb-live-feed__list, .pb-live-feed__row, .pb-live-feed__row-icon, .pb-live-feed__kicker, .pb-live-feed__time, .pb-live-feed__name, .pb-live-feed__headline, .pb-live-feed__supporting, .pb-live-feed__thumb, .pb-live-feed__chevronAdd: [data-type] (on __row: what happened, e.g. instant_win), [data-fresh="true"] (briefly, on a row that has just arrived) |
[data-comps="live-feed"] | The Live Feed block |
[data-comps="live-feed-row"] | Each Live Feed row |
.pb-winner-ticker | Winner Ticker block Parts: .pb-winner-ticker__track, .pb-winner-ticker__item, .pb-winner-ticker__badge, .pb-winner-ticker__name, .pb-winner-ticker__prize, .pb-winner-ticker__separator, .pb-winner-ticker__empty, .pb-winner-ticker__fadeAdd: [data-type="main_prize|instant_win|jackpot"] (on __item) |
.pb-winner-wall | Winner Wall block Parts: .pb-winner-wall--carousel, .pb-winner-wall--strip, .pb-winner-wall--masonry, .pb-winner-wall--mosaic, .pb-winner-wall--grid, .pb-winner-wall__header, .pb-winner-wall__heading, .pb-winner-wall__subheading, .pb-winner-wall__stage, .pb-winner-wall__frame, .pb-winner-wall__media, .pb-winner-wall__photo, .pb-winner-wall__caption, .pb-winner-wall__title, .pb-winner-wall__context, .pb-winner-wall__description, .pb-winner-wall__prev, .pb-winner-wall__next, .pb-winner-wall__thumbs, .pb-winner-wall__thumb, .pb-winner-wall__marquee, .pb-winner-wall__track, .pb-winner-wall__track--scrollable, .pb-winner-wall__rail, .pb-winner-wall__masonry, .pb-winner-wall__mosaic, .pb-winner-wall__grid, .pb-winner-wall__tile, .pb-winner-wall__tile-inner |
.pb-social-follow | Social Follow block Parts: .pb-social-follow__header, .pb-social-follow__heading, .pb-social-follow__subheading, .pb-social-follow__grid, .pb-social-follow__link, .pb-social-follow__card, .pb-social-follow__icon, .pb-social-follow__name, .pb-social-follow__tagline, .pb-social-follow__arrow |
Livestream draw screen
The livestream draw screen has its own stylesheet, separate from your site's custom CSS: your storefront rules never reach it, and its rules never reach your storefront.
Where to find it: Site → Livestream Stage (/admin/appearance/livestream-stage). You need the Admin role; Draw Hosts can't change it, and sites with their own custom livestream screen see a note instead of the editor.
- Go to Site → Livestream Stage. The page opens with a Preview of the livestream screen on sample data beside the Stage style card. On a phone, the preview sits above the editor. Nothing here draws a real competition.
- Choose how to style it in the Stage style card:
- Looks: pick a ready-made look. Standard is the screen as it comes, in your theme colours.
- Compy: describe the look you want ("Make it like a 90s TV gameshow", "Our brand: black and lime green, bold and sporty") and click Style it (or Try again for another take). Compy starts from your current look and CSS, and explains what it changed. Undo puts back what you had. Needs the AI content permission.
- CSS: write or paste your own stage CSS. It goes on top of the look, so you can recolour or tweak any of them. Compy's work shows up here too.
- Under Preview, use Sample draw (Same prize, Prize per place, Standalone) and the phase buttons (Idle, Drawing, Landing, Winner, Unsold) to see each moment of a draw, or click Play a draw to run one through. (Unsold is off for Standalone, as standalone numbers aren't tickets.)
- Click Apply in the save bar at the bottom of the page. The preview first checks every phase with your style on, then saves it. The livestream screen uses it from the next time it opens.
Discard in the save bar resets your draft to the saved style. To leave, click anywhere else in the sidebar; if you have unapplied changes, an Unsaved changes prompt asks you to Stay or Leave without saving. To go back to the screen as it comes, pick Standard, clear the CSS box and click Apply.
What the stage stylesheet allows
Your stage CSS (written by you or by Compy) is checked when you apply it, and refused with the line number of each problem. The ready-made looks follow the same rules, and one stricter one: they use hooks only, no class or element names.
- Every selector starts with a hook below, usually
[data-comps="draw-stage"], so a rule can't drift onto the rest of the page. After a hook you can narrow it with class or element names, such as[data-comps="draw-stage"] h3, but those aren't hooks: they can change in any update, so use a hook wherever there is one. pointer-eventsisn't allowed. The screen uses it to check nothing is drawn over the result.- No
::before,::afteror other pseudo-elements on the number, the winner or the proof, or on anything inside them: the screen can't tell whether those cover the result. Put decoration on a container such as[data-comps="draw-result"]instead, behind the content. - The stage keeps scrolling.
overflowcan't be set on[data-comps="draw-stage"], so a result below the fold can always be reached. - No files from elsewhere. No
@importor@font-face, and the only web addresses allowed are images from your own media library (https://imagedelivery.net/…). Images pasted in asdata:image/…work too. Fonts must be ones from the font list under Settings → Appearance; name them withfont-family. - The result stays readable. The winning number, the winner's name and the draw proof (the Draw ID and the verification link) can be restyled, but not hidden, faded below half, shrunk, clipped, covered or moved off screen, in any phase. An entrance animation may start hidden as long as it ends visible.
- Input boxes take their colours from the tokens. Set
--draw-input-bg,--draw-input-textand--draw-input-borderrather than styling[data-comps="draw-input"]'s colours directly, which the screen's own input styling overrides. - **All motion goes inside
@media (prefers-reduced-motion: no-preference). - Up to 64 KB.
The screen checks again while it runs, including things one rule can't show: text the same colour as what's behind it (a shadow or outline only helps if it hugs the letters and its own colour stands out), a filter that changes the text's colours, a filter that fades or blurs it, or something drawn over the result. If a draw ever lands with the number, winner or proof unreadable, the stage style switches itself off for that browser tab, the stock screen comes back, and a notice says why. It stays off in that tab until the style changes, even if the next draw would show it fine. Opening the screen in a new tab tries it again.
Colour tokens
Set these on [data-comps="draw-stage"] to recolour the whole screen in one rule. Anything you don't set follows your site's theme.
| Token | What it colours |
|---|---|
--draw-bg | Stage background. Defaults to your theme background colour. |
--draw-surface | Panel and card background. Defaults to your theme card colour. |
--draw-text | Text on panels. Defaults to black or white, whichever reads on the panel colour. |
--draw-heading | The site name when there is no logo. Defaults to black or white against the stage background. |
--draw-accent | Highlights and glows, and the winning ticket tile on Standard. A ready-made look may paint its tile in its own colours: restyle [data-comps="draw-number"] to change it. Defaults to your theme accent colour. |
--draw-accent-text | Text on the accent colour, such as the winning number. Defaults to black or white against the accent. |
--draw-button | Main draw buttons. Defaults to your theme button colour. |
--draw-button-text | Text on the main draw buttons. Defaults to black or white against the button colour. |
--draw-input-bg | Ticket number, source and standalone boxes, and the place picker. Defaults to your theme background colour. |
--draw-input-text | Text in those boxes. Defaults to white. |
--draw-input-border | Their border. Defaults to a faint white. |
--draw-miss-bg | The unsold-ticket notice. Defaults to a pale amber. |
--draw-miss-text | Text and icon on that notice. Defaults to a dark amber. |
--draw-miss-border | That notice's border. Defaults to a faint dark amber. |
css
[data-comps="draw-stage"] {
--draw-bg: radial-gradient(circle at 50% 0%, #3a0a0a, #0d0202 70%);
--draw-surface: #1a0606;
--draw-text: #fff4d6;
--draw-accent: #ffd166;
--draw-accent-text: #1a0606;
font-family: "Montserrat", sans-serif;
}Phases
The stage carries data-comps-phase, which changes as a draw runs. Use it to style one moment, for example a bigger number on a win: [data-comps="draw-stage"][data-comps-phase="winner"] [data-comps="draw-number"].
| Value | When |
|---|---|
"idle" | Nothing is being drawn and no result is on screen. |
"drawing" | A draw is in flight: the request is out, usually 1 to 3 seconds. |
"landing" | The result is in and about to replace the spinner: a fixed half second. |
"winner" | The latest result is a winner: a competition winner or a standalone draw's numbers. Stays until the operator moves on. |
"miss" | The latest result is an unsold ticket. Stays until a redraw or the panel closes. |
The number tiles appear fresh when a result lands, so an animation on [data-comps="draw-number"] plays exactly then.
Stage hooks
Protected hooks must stay readable; see the rules above.
| Hook | What it is | Extra attributes |
|---|---|---|
[data-comps="draw-stage"] | The whole livestream screen. Set the tokens here. | data-comps-phase="idle" data-comps-phase="drawing" data-comps-phase="landing" data-comps-phase="winner" data-comps-phase="miss" |
[data-comps="draw-header"] | The strip at the top holding your logo or site name | |
[data-comps="draw-logo"] | Your logo image | |
[data-comps="draw-site-name"] | Your site name, shown when there is no logo | |
[data-comps="draw-toolbar"] | The row with Exit livestream | |
[data-comps="draw-queue"] | The Select competition card | |
[data-comps="draw-queue-item"] | Each competition waiting to be drawn | data-comps-state="selected" |
[data-comps="draw-panel"] | The open competition's draw panel | |
[data-comps="draw-competition"] | The competition title in the draw panel | |
[data-comps="draw-status"] | The line under the title: which winner or place is being drawn, tickets sold, the ticket range | |
[data-comps="draw-now-drawing"] | The Now drawing banner on a competition with a prize per place | |
[data-comps="draw-place"] | The place and prize in the Now drawing banner, e.g. 3rd place: £20 voucher | |
[data-comps="draw-methods"] | The Sold only / Full range / Manual entry bar | |
[data-comps="draw-method"] | Each draw method button | data-comps-method="sold-only" data-comps-method="full-range" data-comps-method="manual"data-comps-state="active" |
[data-comps="draw-form"] | The manual entry form | |
[data-comps="draw-input"] | The ticket number, source and standalone draw boxes, and the place picker | |
[data-comps-role="draw-action"] | The Draw, Assign and Generate buttons | |
[data-comps-role="draw-redraw"] | The Redraw button after an unsold ticket | |
[data-comps="draw-reveal"] | The card shown while a draw is in flight | |
[data-comps="draw-reveal-spinner"] | The spinner in that card | |
[data-comps="draw-reveal-message"] | Drawing winner… in that card | |
[data-comps="draw-reveal-detail"] | The smaller line under Drawing winner… | |
[data-comps="draw-result"] | A drawn result: the number tiles, the winner and the badge | data-comps-state="winner" data-comps-state="miss"data-comps-source="rng" data-comps-source="manual" |
[data-comps="draw-prize"] | The place and prize above the winning number, on a competition with a prize per place | |
[data-comps="draw-result-label"] | Winning ticket, above the number | |
[data-comps="draw-number"] | Each winning number tile. It must stay readable. Protected. | |
[data-comps="draw-winner"] | The winner's name. It must stay readable. Protected. | |
[data-comps="draw-winner-badge"] | The Winner Assigned badge | |
[data-comps="draw-miss"] | The notice that a ticket wasn't sold | |
[data-comps="draw-source"] | The Source line under a manual entry | |
[data-comps="draw-proof"] | The proof under a Comps.gg RNG result: Draw ID, verification link and signature Protected. | |
[data-comps="draw-proof-id"] | The Draw ID. It must stay readable. Protected. | |
[data-comps="draw-proof-link"] | The link to the public verification page. It must stay visible. Protected. | |
[data-comps="draw-proof-signature"] | The signature. It may be restyled or hidden. | |
[data-comps="draw-standalone"] | The Standalone draw card |