Skip to main content

Module normalize

Module normalize 

Source
Expand description

Host-side IR normalization (textStyle → points, semantic colors → adaptive hex). Host-side IR normalization before store write.

Renders must not guess defaults: textStyle becomes concrete fontSize, semantic colors become adaptive hex pairs, stack spacing is explicit. Layout (flex, Dynamic Type reflow) stays on the native renderer.

Structs§

NormalizedConfig
Result of normalize: config with resolved defaults + recorded degradations.

Functions§

normalize
Expand semantic typography / colors / spacing so renderers do not guess.