class

CSS class variants available across VB elements — buttons, navigation, forms, tables, lists, headers, and footers.

Overview

The class attribute is how you opt in to VB's element-scoped style variants. Rather than utility classes that describe appearance (.text-center, .mt-4), VB classes describe what the element is or how it behaves within its context.

Each class is scoped to the element it applies to. .striped only works on <table>, .pills only works on <nav>. This keeps the API small and predictable.

Button

Style variants for <button> and button-like <a> elements.

ClassEffect
.secondaryBordered outline style with transparent background
.ghostText-only, background appears on hover
.smallSmaller padding and font size
.largeLarger padding and font size
.full-width100% width, block-level button

Navigation

Style variants for <nav> elements.

ClassEffect
.horizontalFlex layout with wrapping for inline link lists
.verticalFlex column layout for sidebar-style navigation
.pillsRounded background highlighting on active items
.tabsBorder-bottom indicator, tab-bar style
.breadcrumbHorizontal chain with separator characters
.minimalText-only links, no background or border
.paginationCentered numbered page buttons
.treeHierarchical disclosure tree with indentation
.stepsMulti-step progress indicator with numbered circles

Form

Layout variants for <form> and form-related elements.

ClassElementEffect
.stackedformVertical layout with labels above inputs
.inlineformHorizontal layout with wrapping
.gridformTwo-column grid layout
.actionsfooterButton row container inside a form
.actions.endfooterRight-aligned button row
.actions.betweenfooterSpace-between button row
.groupfieldsetField grouping with visual container
.minimalfieldsetFieldset with no border
.helpsmallHelper text styling beneath inputs
.errorsmallError message styling

Table

Style variants for <table> elements. Classes can be combined.

ClassEffect
.stripedAlternating row background colors
.compactReduced cell padding for dense data
.borderedBorders on all cells

Lists

Style variants for <ul> and <ol> elements.

ClassEffect
.inlineFlex layout with wrapping, no bullets
.unstyledNo bullets, no padding

Header & Footer

Style variants for <header> and <footer> elements.

Header

ClassEffect
.siteFull-width header with flex layout and bottom border
.pagePage-level header with bottom border
.cardCard header with bottom border
.stickySticks to top on scroll
.transparentPositioned over content (hero overlays)
.centeredText-centered with auto margins
.compactReduced padding and font size

Footer

ClassEffect
.siteFull-width site footer with top border
.articleArticle footer with top border
.cardCard footer with top border
.minimalCentered, small text
.columnsMulti-column grid layout
.stickySticks to bottom

Utility Classes

A small set of global helpers available on any element.

ClassEffect
.visually-hiddenHidden visually but accessible to screen readers
.flowVertical rhythm spacing between child elements
.leadLarger introductory paragraph text

Design Philosophy

VB classes are element-scoped, not generic utilities. .compact on a <table> reduces cell padding. .compact on a <header> reduces header padding. Same word, appropriate behavior for each context.

This means you can read the HTML and understand the intent: <nav class="pills"> is a pill navigation. No need to decode a chain of utility classes.