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.
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 and the secondary CTA, and the status colors with their -muted backgrounds.
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.
- Field borders: shadcn’s are 1.2:1 against white.
inputuses 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-softis the ring at 75% (3.3:1 or better), and the control’s border turnsring. - Secondary text: shadcn’s grey is 4.7:1.
muted-foregroundis 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.
foreground: muted-foreground passes on flat navy but dropped to 4.4:1 where this page’s hero lede met the glow. Section 11 recomputes these numbers.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
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. It honors the reduced-motion setting, makes the focus ring consistent, keeps focused items clear of the sticky navbar and shows the skip link only when it is focused. It references Base collection names only, which Webflow keeps stable.
09 · Iconography
Icons
The brand’s icon set is Phosphor (opens in a new tab), 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.
--_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 (opens in a new tab) 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.