Reference

Utilities

Single-purpose helper classes for colour, spacing, typography, flex, borders, shadows, and more.

Color Tokens

CSS custom properties defined on :root. Use them in your overrides or components.

--v-accent
--v-accent-2
--v-bg
--v-bg-2
--v-surface
--v-surface-2
--v-success
--v-warning
--v-danger
--v-info

Text Utilities

Colour, size, weight, alignment, and transform helpers.

Colour
v-text-accent v-text-muted v-text-faint v-text-success (custom)
Size
v-text-xs — 0.72 rem v-small — 0.8125 rem body (default) — 0.9375 rem slightly larger
Class reference
ClassProperty
v-text-accentcolor: var(--v-accent)
v-text-mutedcolor: var(--v-text-2)
v-text-faintcolor: var(--v-text-3)
v-text-xsfont-size: .72rem
v-smallfont-size: .8125rem
v-monofont-family: var(--v-mono)

Backgrounds

Surface and semantic background helpers.

ClassValue
v-bgbackground: var(--v-bg)
v-bg-altbackground: var(--v-bg-2)
v-surfacebackground: var(--v-surface)
v-surface-2background: var(--v-surface-2)
v-gradientbackground: var(--v-accent-grad); -webkit-background-clip: text; color: transparent

Spacing

Vectra uses Bootstrap's spacing scale (m-*, p-*, gap-*). Additionally, .v-section provides page-section padding.

ClassValue
v-sectionpadding: 80px 0 (desktop) / 56px 0 (tablet) / 40px 0 (mobile)
v-section-smpadding: 48px 0

For granular control use Bootstrap utilities: mt-3, px-4, gap-2, etc.

Flex Helpers

Shortcuts built on top of Bootstrap's flex utilities.

ClassEquivalent
v-flex-betweendisplay:flex; align-items:center; justify-content:space-between
v-flex-centerdisplay:flex; align-items:center; justify-content:center
v-flex-coldisplay:flex; flex-direction:column
Live example — v-flex-between
Left content

Borders

Consistent border utilities.

ClassValue
v-borderborder: 1px solid var(--v-border)
v-border-tborder-top: 1px solid var(--v-border)
v-border-bborder-bottom: 1px solid var(--v-border)
v-roundedborder-radius: var(--v-r)
v-rounded-lgborder-radius: var(--v-r-lg)
v-rounded-pillborder-radius: var(--v-r-pill)

Shadows

Box-shadow utilities, auto-scaled for light and dark themes.

shadow-xs
shadow-sm
shadow
shadow-lg
TokenUsage
--v-shadow-xsSubtle lift (chips, badges)
--v-shadow-smLow elevation (inputs, inline cards)
--v-shadowCards, panels
--v-shadow-lgModals, dropdowns
--v-shadow-xlFull-screen overlays

Sizing

Width / height helpers. For granular sizing, Bootstrap provides w-25, w-50, w-100, h-100, etc.

ClassValue
v-avatar48×48 px inline circle, uses accent background
v-avatar-lg72×72 px variant
v-icon-box40×40 px soft accent square

Display

Use Bootstrap's d-* and d-{bp}-* utilities. They're already in scope via the Bootstrap CDN link.

ClassCSS
d-nonedisplay: none
d-blockdisplay: block
d-flexdisplay: flex
d-griddisplay: grid
d-lg-nonedisplay: none (≥ 992 px)
d-none d-lg-blockhidden on mobile, visible on desktop

Dividers

Horizontal and labelled dividers.

or
html
<div class="v-divider"></div>

<div class="v-divider-label">or continue with</div>

Labels & Chips

.v-label is an uppercase category tag. Use it above headings to add context.

New feature Deprecated Beta
html
<span class="v-label">New feature</span>

Miscellaneous

Additional single-purpose helpers.

ClassPurpose
v-truncateSingle-line overflow ellipsis
v-cursor-pointercursor: pointer
v-no-selectuser-select: none
v-gradientAccent gradient text (applies background-clip)