# Runtime

Apply compiled class names, variant attributes, theme scopes, and native tables without generating CSS.

The compiler rewrites definitions into calls to these helpers, imported from `zyzz/runtime`. Web compilation inlines equivalent functions for callback styles instead, while native compilation calls `NativeDynamic`. Applications normally do not import them. They author with [`style`](/docs/api/core/style), [`variants`](/docs/api/core/variants), and [`defineConfig`](/docs/api/core/defineConfig) instead.

## Web

[Props](/docs/api/runtime/namespaces/Props)

Bind compiled class names to the className, style, and vars overrides of a
static style.

[Dynamic](/docs/api/runtime/namespaces/Dynamic)

Assign required callback values to fixed private custom properties on each
application.

[Recipe](/docs/api/runtime/namespaces/Recipe)

Serialize finite variant selections as data attributes beside compiled class
names.

[ConditionalRecipe](/docs/api/runtime/namespaces/ConditionalRecipe)

Add scoped attributes for variant selections that apply only inside a named
condition.

[PayloadRecipe](/docs/api/runtime/namespaces/PayloadRecipe)

Bind the values of dynamic variant choices to precompiled private custom
properties.

[Composition](/docs/api/runtime/namespaces/Composition)

Merge applied props over one precompiled class list for a statically
resolved composition.

## HTML

[Html](/docs/api/runtime/namespaces/Html)

Convert applied props to class, style, and data attributes, and escape them
for markup.

[CompositionHtml](/docs/api/runtime/namespaces/CompositionHtml)

Keep the canonical props behind HTML attributes, so a composition serializes
them once.

## Themes

[Selection](/docs/api/runtime/namespaces/Selection)

Select a compiled variable set and an optional color scheme for one
element's subtree.

[Appearance](/docs/api/runtime/namespaces/Appearance)

Restore the saved root selection before paint, and read or persist it
afterwards.

[Variable](/docs/api/runtime/namespaces/Variable)

Bind a compiler-assigned custom property name to a reference with a typed
setter.

## Native

[Native](/docs/api/runtime/namespaces/Native)

Select one precompiled native style per variant combination, and compose
native style props.

[NativeStatic](/docs/api/runtime/namespaces/NativeStatic)

Merge ordered native fragments for finite variant selections and cache each
result.

[NativeDynamic](/docs/api/runtime/namespaces/NativeDynamic)

Convert callback values and variant payloads to native styles with compiled
binding rules.

[NativeContext](/docs/api/runtime/namespaces/NativeContext)

Defer the choice between compiled set, scheme, and media alternatives until
a view renders.

[NativeVars](/docs/api/runtime/namespaces/NativeVars)

Hold compiled native variable values for every set and scheme, and read one
profile.
