Skip to content

Color & Background

The text-bg-* helpers set a theme background together with a readable, contrasting text colour in one class. Use them for badges, tiles, banners and status labels when you want the pairing to stay accessible in every colour scheme.

1Every theme colour as a badge

One text-bg-* class sets the background and a contrasting text colour together.

primarysecondarysuccessdangerwarninginfolightdark

2Coloured cards

text-bg-* on a card colours the whole card and keeps the copy readable.

30-day returns

Gift wrapping and a handwritten note are free on every order.

30-day returns

Each product is checked by hand before it goes into the box.

Loyalty rewards

Friendly people answer your questions quickly, by phone, chat or email.

3Announcement banner

A full-width strip with text-bg-warning for a time-limited message.

Heads up: scheduled maintenance on Jan 15, 2027 at 07:45. Details

4Status labels in a table

Invoice states shown with text-bg-* badges in a table cell.

InvoiceClientAmountStatus
#PO-3864Noah Moreau$183.35Paid
#PO-2276Freya Carter$68.18Pending
#ORD-5572Lucas Morgan$737.43Overdue
#TX-5958Elena Tanaka$628.26Draft

5Counters on avatars

Small text-bg-danger pills show unread counts on profile pictures.

Ella Novak3 unread messages
Jonah Larsen8 unread messages
Ethan Brennan19 unread messages

6Pricing header

A dark header band with text-bg-dark above a light pricing body.

Team

$75.39
  • Easy exchanges
  • Carbon-neutral delivery

7Calendar day chips

Today in text-bg-primary, a booked day in text-bg-info and free days in text-bg-light.

Oct12
Oct13
Oct14
Oct15
Oct16
Oct17
Oct18

8Checkout steps

Numbered step circles coloured by state: done, current and upcoming.

  1. Cart
  2. Address
  3. 3Payment
  4. 4Review

9Coloured toast

A toast-style message using text-bg-success for the whole box.

Your changes to secure checkout were saved.

10KPI tiles

Dashboard tiles where each metric gets its own theme background.

32.5k
Customers
26.3k
Revenue
34.4k
Waiting
3.5k
Reviews

11Tinted backgrounds

text-bg-* respects --ui-bg-opacity, so one class gives lighter tints of the same colour. Put text on the full colour, labels beside the light tints.

100%
75%
50%
25%
10%

12Profile header

A cover band with text-bg-primary behind a profile name and actions.

Maya Rossi

Maya Rossi

Product Designer · Vancouver

13Keyboard shortcut legend

text-bg-dark and text-bg-light make neat key caps in a help panel.

Ctrl + K
Open search
Esc
Close dialog
?
Show shortcuts

14Sale ribbon on a product

A text-bg-danger label positioned over a product image.

Canvas tote -33%

Canvas tote

$33.00

15Footer strip

A compact text-bg-dark footer with links that inherit the light text.

16Activity timeline dots

Coloured icon dots make each activity type easy to spot.

  • A small guide to a calmer home3 days ago
  • Inside our new autumn collection23 hours ago
  • The small habits that make a big difference1 days ago
  • Five things we learned this year19 hours ago

17Kanban card priorities

Priority labels in text-bg-* on small task cards.

High
Meet the makers behind our ceramics
Medium
How to choose the right product
Low
Looking back at a busy season

18Chat bubbles

Incoming messages in text-bg-light, your own messages in text-bg-primary.

We work directly with makers, so prices stay fair for everyone.
Clear prices, honest advice and no surprises along the way.
Thousands of shoppers already trust us, and we work hard to keep it that way.
Thousands of five-star reviews from customers who came back for more.

19List group highlights

text-bg-* on individual list items to flag the selected and the problem rows.

  • Loyalty rewards
  • Secure checkout (selected)
  • Live order tracking
  • 30-day returns (failed)

20Code chip

Inline file names and commands on a text-bg-dark chip inside running text.

Run npm run build and upload the dist folder to your server.