Skip to content

Supplemental

supplemental.yaml records what a component needs that the spec cannot carry — a press-scale transform, an IntersectionObserver, a conditional aria-hidden. Its audience is whoever builds the component.

Every entry names the schema path that cannot carry it. That is what keeps the file small: anything the schema can carry belongs in the spec, and an entry that cannot name its gap is an entry in the wrong place. What a component’s user must observe is Guidelines’s subject.

Both are authored by hand. No run writes either, so neither carries metadata.source; they carry meta instead, which records authorship and review status rather than Figma provenance. They are siblings with no parent kind above them, so each schema is self-contained and repeats the definitions the other declares.

Scopes

The same shape is written at three scopes. An entry at a broader scope and one at a narrower scope both apply — neither overrides the other, because an entry is a statement about a subject rather than a value at a key.

ScopePath
One componentcomponents/<component>/supplemental.yaml
Every componentcomponents/supplemental.yaml
One foundationfoundations/<concern>/supplemental.yaml

Properties

PropertyTypeRequiredDescription
metaSupplementalMetaNoAuthorship and review status for the document
concern keySupplementalEntry[]NoOne list per concern. At the component scopes: anatomy, props, styles, slotComposition, events, accessibility, behavior, motion, layout, overrides, naming. At the foundation scope: color, typography, layout, space, shape, elevation, motion, brand

A document uses one vocabulary or the other, never both. Only layout and motion are in each. See Guidelines for why they are different vocabularies rather than one with a subset.

A document carrying only a meta block is valid, and so is an empty one.

SupplementalEntry

PropertyTypeRequiredDescription
intentstringYesA testable statement of what the component must do, written to transfer to a test criterion. No rationale prose
schemaGapSchemaGapYesThe surface that would carry this, and why it does not
platformsPlatform[]NoThe platforms this applies to. Absent means every platform
checkedBy'automated' | 'assisted' | 'manual'NoHow this is checked
checksPointer[]NoWhat does the checking. Required when checkedBy is automated

SchemaGap

PropertyTypeRequiredDescription
pathstringYesA JSON Schema pointer, or any workspace-relative target
needstringYesWhat that target cannot express, and why

path admits more than a schema pointer because a gap is sometimes in the library’s own data. A motion token that does not exist is a gap in analysis/foundations.yaml, not in styles.schema.json.

Platform

Each value names an emission target. web is a group covering both web targets, and naming it beside either leaf states one thing twice, so the schema rejects it.

ValueTarget
reactReact, emitted by react-from-specs
webcomponentsLit web components, emitted by webcomponents-from-specs
webBoth web targets; expands to react and webcomponents
iosiOS, as Swift with SwiftUI
androidAndroid, as Kotlin with Jetpack Compose

Example

meta:
concern: button
status: proposed
author: Nathan Curtis
updated: 2026-11-09
sources:
- analysis/foundations.yaml
motion:
- intent: "The hover background fades from transparent to opaque over 160ms, and back out over the same duration."
schemaGap:
path: styles.schema.json#/definitions/Styles
need: "the property set carries no transition, duration or easing key, so no variant delta can state how a style change is traversed"
platforms: [web]
checkedBy: manual
- intent: "Durations and easings resolve from library motion tokens rather than literals."
schemaGap:
path: analysis/foundations.yaml
need: "the library publishes colour, dimension, string and typography tokens only; no duration or easing token exists to reference"

See Also

  • Guidelines — the rules whoever uses a component or foundation must observe
  • Component — the spec these sit beside
  • Specification — document kinds, and the rules a validator applies