Skip to content

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

BindingRoleRules
FigmaTransforms specs to and from Figma assets10
CSSDeclares every style key as CSS; shared by the web platforms8
ReactEmits React components and stories; styling delegated to CSS4
Web ComponentsEmits Lit custom elements; styling delegated to CSS4

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:

ReasonRecoverable by a consumer?
The value equalled the default and was dropped at generationYes — the schema’s declared default is the value
A variant inherits it from default under layeringPartly — by reading default, if it knows the run used layered details
The element type cannot carry itNo — 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.