V06

Error

Vocabulary

V06 — A design token the theme does not declare

$name compiles to var(--name); a token the theme does not declare is never set, so the property falls back to nothing.

What the compiler said

error[V06]: `$brnad` is no token the theme declares, so it is never set --> src/App.wf:3:17 | 3 | style { color: $brnad } | ^^^^^ = help: Declare it in your `theme { … }`, or use one the theme has = docs: https://webfluent.monzeromer.dev/errors/V06

The fix

Broken

wf

page P(path: "/", title: "T", description: "D") { Heading("Hello") { style { color: $brnad } } }

Fixed

wf

page P(path: "/", title: "T", description: "D") { Heading("Hello").h1 { style { color: $color-primary } } }

A token the theme has — a short name resolves through the property (padding: $lg, border: 1px solid $border) — or declare it in your theme { … }.

Each example is a whole program: it is all of src/App.wf in a project with no other .wf file (trying an example).

lints cannot lower it: it would ship a broken page.