Vectra AI · Design system · Webflow variables

Every color, size and shadow, defined once.

Vectra’s brand guide in shadcn/ui’s quiet, precise style, organized as Webflow variables for the four breakpoints vectra.ai uses. Click any name or value to copy it, tick each variable as you add it, and let the tests on this page confirm every color pair still passes.

VECTRAAIDesign system

Start here

Set it up in Webflow

Follow the steps in order: modes must exist before a variable can take per-mode values, and theme tokens point at Brand Colors. Tick each variable as you create it; your progress is saved in this browser.

Your progress

01 · Foundations

Breakpoints, names and units

Four breakpoints, five collections. Typography and Layout take a value per breakpoint, the Base collection takes a value per theme, and Effects needs no modes.

Breakpoints

Collections

Naming and units

What can be a variable in Webflow

Bind a variable wherever Webflow allows one. The last rows can’t take variables, so their standards are typed values (listed in Motion and Component recipes).

02 · Collection: Brand Colors

The brand palette

Every color from the brand guide’s primary and secondary palettes, named by family and step. Four derived colors (marked “derived”) mix a brand color with another brand color or with white. They are added only where a brand color fails contrast or a lighter tint was needed.

Navy first: most surfaces
Blue-to-green gradation
A spark of bright green
White backgrounds

Color usage, as the guide shows it: primarily navy, a blue-to-green gradation, a spark of bright green and white backgrounds. Secondary colors are used sparingly.

03 · Base collection: Light and Dark modes

Theme tokens

The color tokens use shadcn’s names: background, foreground, primary, muted-foreground and so on, each with a Light and a Dark value. Classes bind tokens, never palette colors: muted-foreground, not grey/400. The names have no folder in the Base collection, so Webflow’s CSS names are exactly shadcn’s (--muted-foreground).

Brand tokens sit beside shadcn’s: brand for the green accent, the cta set for the pill button, and the status colors with their -muted backgrounds.

How to switch a section to dark. Create a class theme-dark and, in the Style panel, set its variable mode for the Base collection to Dark. Also bind its text color to foreground and its background to background: inherited text color only switches when the element that changes mode sets it again. Put the class on a wrapper (Webflow applies modes on a primary class). Use theme-light the same way for a light island inside a dark section.

Renamed from v1.0

If you already typed v1.0 color roles into Webflow, rename them as below. Webflow keeps every binding when you rename a variable.

Where shadcn’s defaults were changed for accessibility.
  • Field borders: shadcn’s are 1.2:1 against white. input uses dark-blue/400 (5.7:1), so fields meet the 3:1 WCAG asks of controls.
  • Focus halo: shadcn draws the ring at 50%, about 2.2:1. ring-soft is the ring at 75% (3.3:1 or better), and the control’s border turns ring.
  • Secondary text: shadcn’s grey is 4.7:1. muted-foreground is Grey 400 (6.9:1 or better).
  • Green text on dark: the brand green is 4.0:1 on a card inside a muted dark section, so dark mode uses the derived vectra-green/300 (4.6:1 or better).

04 · Brand gradients

Gradients

The guide’s three background gradients, rebuilt in CSS with color-variable stops. In Webflow: Backgrounds → Gradient, then bind each stop to the Brand Colors variable shown.

Keep text on the navy side. The green glow is for graphics, not copy: white on #1D895E is only 4.38:1, below the 4.5:1 body text needs. Place headlines and paragraphs over the navy part, as the guide’s examples do.

05 · Collection: Typography

Typography

Montserrat for every heading, eyebrow and button; Roboto Flex for paragraphs and UI text. Sizes follow the guide’s web type scale and change at each breakpoint; line heights, letter spacing and weights are the same everywhere.

Type scale by breakpoint

Preview at a breakpoint

Text styles (classes)

Create one class per style and bind these variables. Later, give the same bindings to the tags in the Style panel (Body, All H1 to H6) so plain text follows the system too.

06 · Collection: Layout

Layout and spacing

An 8-point scale (4-point half steps below 24px) for spacing inside components, plus spacing roles for everything that should breathe more on large screens: section padding, gutters, gaps and the space between text blocks.

Spacing at a breakpoint

Margins and paddings: which variable where

Two habits that keep spacing consistent. Space elements with gap on their flex or grid parent where you can (unlink row and column gap in Webflow so each can take a variable), and use only bottom margins for vertical rhythm.

07 · Collection: Effects

Radius, borders and shadows

shadcn’s corner scale (from a 10px base), Tailwind’s shadow ladder, 1px borders and a 3px focus halo. Nothing here changes by breakpoint, so the collection needs no modes.

Webflow binds every part of a shadow: Y offset, blur, spread and color. Shadows sm, md and lg have two layers, as in shadcn, so add two shadows to the class and bind both. The X offset is always 0; shadow colors are theme tokens and get stronger on dark sections.

Radius

Shadow levels

States: rest, hover, pressed, focus, disabled

Hover the live controls to feel each one. Pressed and keyboard focus are shown statically. Focus is the same everywhere: the border turns ring and a 3px ring-soft halo appears.

All Effects variables

08 · Typed constants

Motion

Webflow can’t bind variables to transitions, so motion is a short list of values to type in the Transitions panel. Name the property you animate (color, box-shadow, transform) instead of all, which the live site uses 75 times.

Optional site-wide CSS

Paste into Site settings → Custom code → Head to honor the reduced-motion setting and make the focus ring consistent. It references Base collection names only, which Webflow keeps stable.


      

09 · Iconography

Icons

The brand’s icon set is Phosphor, Regular weight, drawn on a 32px base and exported as SVG. Icons take the color of the text around them (currentColor), as in shadcn. Branded icons add a spot color, brand, with the rest in brand-muted.

10 · Classes

Components

shadcn’s component anatomy with Vectra’s tokens: compact 36px controls, 8px corners, 14px medium labels, 1px borders and soft shadows. The brand’s CTA pill stays for hero and CTA-band buttons. The same set is shown on a light and a dark section.

Recipes

What to bind in the Style panel for each shared class. Anything Webflow can’t bind is listed as a typed value.

11 · Tests

Accessibility and integrity tests

Computed in your browser from the tokens, every time this page loads. WCAG 2.2 AA is the pass line: 4.5:1 for text, 3:1 for large text, borders, icons and focus rings. APCA, the contrast method drafted for WCAG 3, is shown as advice only.

Color roles on every surface

Fixed pairs

Color vision

Each set is simulated for protanopia, deuteranopia and tritanopia (Machado 2009) and compared in OKLab. Status colors are hard to tell apart for some people, which is why every status pairs its color with an icon and a word.

Scale, grid and integrity

12 · Migration

The 40 live variables

The variables in vectra.ai’s Base collection today (Webflow export of Oct 30, 2026). Point each one marked “alias” at its Brand Colors match: the value is identical, so nothing changes on the site, and the brand palette becomes the single source. Keep the others until no class uses them, then delete them.

Never rename these seven. Custom code on live pages reads them by name, and Webflow doesn’t update custom code on rename: .
The “Apps” collection. The site also has a 66-variable “Apps” collection with shadcn-style names (--_apps---colors--card and others). Only 5 classes use it: a paragraph style, get-more-cta_cta-wrapper, event-agenda-separator and two about-timeline_pill styles. Rebind those to the theme tokens, check that the two calculators don’t read it, then delete it, so there is one set of shadcn names.

13 · Export

Export

Webflow has no built-in variable import. Three ways in: type values from this page; paste one collection’s CSS into the Variable Importer app (base values only, so mode cells are still typed by hand; check whether it creates folders); or load tokens.json with the Webflow Designer API or MCP.