Keyboard shortcut: Ctrl + K
Get started

CSS helper classes

Use v-visually-hidden for text intended for screen readers. Customise component styles with CSS variables and unlayered overrides.

v-visually-hidden

Hides text visually while keeping it available to assistive technology. The class is included in vectis-ui/styles.css.

html
<span class="v-visually-hidden">Notifications</span>

CSS layers

The library declares its layers in this order:

css
@layer vectis.reset, vectis.tokens, vectis.components, vectis.utilities;

/* Unlayered CSS overrides the library's normal declarations. */
.checkout-cta { border-radius: var(--vectis-radius-pill); }

Write overrides outside layers to take precedence over the library’s normal declarations. If your application uses layers, declare its override layer after the library’s layers.

Internal classes

Classes such as .v-control, .v-panel and .v-tone support component styles and may change. Prefer public CSS variables for customisation.

CSS variables

Override the token for the style you want to change, such as --vectis-color-accent, --vectis-radius-interactive or --vectis-text-family-heading. Use --vectis-icon-size for icon dimensions and --vectis-focus-ring-color for focus outlines.