Mixins / API

foldkit-mixins/layers

Cascade layers as a value. define names an order; the result declares it (declare) and places a piece in one of its layers (in), typed to those names so a misspelled layer is a type error. standard is the order a design system built on the /theme, /layout, /defaults, and /prose subpaths expects; the pieces those ship are unlayered until a page wraps them, so a different order needs no different generators.

Namespaces

Functions

Values

standardThe shipped order. reset normalizes; tokens holds the scales that do not change per theme; theme the knobs and what derives from them, plus scoped…

Interfaces

PlacementOne layer of one order, for Style.forSlots(S)(pieces, { layer }): every piece is placed before it is compiled, so the style a view attaches and the style a…