Storefront styleguide
Every building block of the storefront on one page. Values are read from the active theme at runtime — nothing is typed by hand.
Colours & tokens
var(--sw-color-brand-primary)
var(--sw-color-brand-secondary)
var(--sw-border-color)
var(--sw-background-color)
var(--sw-color-success)
var(--sw-color-info)
var(--sw-color-warning)
var(--sw-color-danger)
var(--sw-text-color)
var(--sw-headline-color)
var(--sw-color-price)
var(--sw-color-buy-button)
var(--sw-color-buy-button-text)
var(--bs-primary)
var(--bs-secondary)
var(--bs-success)
var(--bs-info)
var(--bs-warning)
var(--bs-danger)
var(--bs-white)
var(--bs-gray-100)
var(--bs-gray-200)
var(--bs-gray-300)
var(--bs-gray-400)
var(--bs-gray-600)
var(--bs-gray-800)
var(--bs-gray-900)
var(--bs-black)
var(--bs-body-bg)
var(--bs-secondary-bg)
var(--bs-tertiary-bg)
var(--bs-primary-bg-subtle)
var(--bs-secondary-bg-subtle)
var(--bs-success-bg-subtle)
var(--bs-info-bg-subtle)
var(--bs-warning-bg-subtle)
var(--bs-danger-bg-subtle)
var(--bs-light-bg-subtle)
var(--bs-dark-bg-subtle)
var(--bs-border-color)
var(--bs-primary-border-subtle)
var(--bs-secondary-border-subtle)
var(--bs-success-border-subtle)
var(--bs-info-border-subtle)
var(--bs-warning-border-subtle)
var(--bs-danger-border-subtle)
var(--bs-body-color)
var(--bs-heading-color)
var(--bs-primary-text-emphasis)
var(--bs-link-color)
var(--bs-link-hover-color)
var(--bs-code-color)
var(--bs-highlight-bg)
var(--bs-focus-ring-color)
var(--bs-gradient)
Typography
Sample product copy — 1234567890. This line uses the body settings of the active theme.
H1
H2
H3
H4
H5
H6
Display headings
Strong, emphasis, mark,
inline code, ⌘K, ABC, small text.
Lead copy for a short introduction above the tabs.
Small, supporting copy.
This is a blockquote.
ul- Sample item one
- Sample item two
- Sample item three
ol- Step one
- Step two
- Step three
dl- Width
- 506 cm
- Depth
- 300 cm
.text-truncate (needs a
fixed width).lh-1Sample paragraph showing the line height of this utility across multiple lines.
.lh-smSample paragraph showing the line height of this utility across multiple lines.
.lh-baseSample paragraph showing the line height of this utility across multiple lines.
.lh-lgSample paragraph showing the line height of this utility across multiple lines.
.text-wrap.text-breakLinks
.link-*
Read the documentation for more information.
- The parent must be
position: relative(e.g..card-body).
Tables
| # | Product | Status | Price |
|---|---|---|---|
| 1 | Cell | Badge success | Cell |
| 2 | Cell | Badge warning | Cell |
| 3 | Cell | Badge secondary | Cell |
| # | Heading | Heading | Heading |
|---|---|---|---|
| 01 | Cell | Cell | Cell end |
| 02 | Cell | Cell | Cell end |
| 03 | Cell | Cell | Cell end |
| Variant | Example |
|---|---|
.table-primary |
Primary row |
.table-secondary |
Secondary row |
.table-success |
Success row |
.table-info |
Info row |
.table-warning |
Warning row |
.table-danger |
Danger row |
.table-light |
Light row |
.table-dark |
Dark row |
| Cell variant | Applied to a single <td> |
Images & figures
Controls
Checks & radios
Input groups
Floating labels
Validation
Accordion
Alerts
- List item 1
- List item 2
Badges
.text-bg-*
.badge-discount, .badge-lg
Cards
Product name
-
Feature list item label 1 Feature value 1
-
Feature list item 2 Feature value 2
-
Feature list item 3 Feature value 3
Info card with header and footer
Variant with .card-header and
.card-footer, for grouped content.
Carousel
Dropdowns
List group
- List item — active
- List item
- List item — disabled
- List item with badge12
Modal
Offcanvas
Shopping cart
Pagination
Progress
Spinners & loaders
Toasts
Tooltips & popovers
Helpers
Utilities
.pt-*
Each bar is an empty element with
.pt-1 … .pt-5, so its height is the spacer itself.