Utilities
Utilities are the final adjustment layer. If you need spacing nudges, text sizing, alignment, color helpers, borders, shadows, or responsive visibility helpers, they live here. If the page becomes a wall of utilities, move the decision back into layout, primitives, or patterns.
Utility families
Common finishing helpers
| Family | Examples | Use them for |
|---|---|---|
| Spacing | wb-mt-4, wb-mb-2, wb-p-4, wb-px-6, wb-py-4 | Small local spacing corrections. |
| Typography | wb-text-sm, wb-text-xl, wb-text-end, wb-font-semibold, wb-mono | Text size, alignment, and weight adjustments that should win over component defaults. |
| Flex and gap | wb-flex, wb-items-center, wb-justify-between, wb-gap-3 | Refine alignment inside an existing primitive. |
| Color | wb-text-muted, wb-text-danger, wb-bg-surface-2 | Small visual emphasis changes without custom CSS. |
| Visibility | wb-hidden, wb-visible-mobile, wb-visible-desktop, wb-sr-only | Hide, reveal, or improve accessibility. |
Healthy utility usage
wb-text-start and wb-text-end for new work. wb-text-left and wb-text-right remain as compatibility aliases. Utility classes are expected to override component defaults in normal usage.<div class="wb-card wb-mt-4">
<div class="wb-card-header wb-flex wb-items-center wb-justify-between wb-gap-3">
<strong class="wb-text-lg">Activity</strong>
<span class="wb-badge wb-badge-success wb-badge-dot">Live</span>
</div>
<div class="wb-card-body wb-p-4">...</div>
</div>
Typography and spacing helpers
Text scale
Weight, color, and truncation
Logical text alignment
Table action alignment
| Page | Status | Actions |
|---|---|---|
| About | Live | Edit |
| Pricing | Draft |
Display, position, and visibility
wb-hidden, wb-block, wb-inline-flex, wb-grid-display
wb-relative, wb-absolute, wb-fixed, wb-sticky, wb-inset-0
wb-visible-mobile, wb-visible-desktop, wb-hidden-sm, wb-hidden-md, wb-hidden-lg