Platform Mappings
A platform mapping is a one page per platform declaration of how a platform implements
every part of the spec – styles, props, anatomy, slots and more – based on the schema.
Each declared unit carries one of four dispositions (bound, approximated,
unsupported, unverified), and completeness is enforced by the docs build: a unit
in the schema with no row in a binding fails it.
Some keys resolve jointly — no single key determines any single output. Those rules are ordered case tables, each on its own page.
Supported Platforms
| Binding | Role | Rules |
|---|---|---|
| Figma | Transforms specs to and from Figma assets | 10 |
| CSS | Declares every style key as CSS; shared by the web platforms | 8 |
| React | Emits React components and stories; styling delegated to CSS | 4 |
| Web Components | Emits Lit custom elements; styling delegated to CSS | 4 |
React and Web Components inherit styles from CSS and declare only overrides. Props and anatomy are never inherited: how a prop becomes a parameter or an element becomes a tag is each platform’s own fact.
Specifications and Mappings
The specification defines what a binding owes: a disposition for every unit of every surface, declared handling of each value form, and case tables rather than prose for jointly resolved rules. The mappings answer as data — one JSON file per platform in the schema package, with the format documented beside it. Every page in this section is generated from those files, and the same declarations feed each style key’s, prop kind’s, and element type’s own reference page. Edit the data, never a page.
Absent keys
What an absent style key means is a property of the document, not a platform choice.
Every Styles property declares a default in the schema, each key’s page marks it,
and a consumer applies it rather than substituting its own. A declared default answers
only one of three reasons a key can be absent:
| Reason | Recoverable by a consumer? |
|---|---|
| The value equalled the default and was dropped at generation | Yes — the schema’s declared default is the value |
A variant inherits it from default under layering | Partly — by reading default, if it knows the run used layered details |
| The element type cannot carry it | No — needs the per-type key tables, published on each element type’s page |
Nothing in a document marks which applies. Each binding declares what it does on absence in its own Defaults section, where anything other than the declared default is visible as a decision rather than an accident.