# Core

Define styles, recipes, variables, and configuration with the root `zyzz` entrypoint.

## Authoring

[style](/docs/api/core/style)

Define a callable style that compiles to static CSS and returns element
props.

[variants](/docs/api/core/variants)

Define finite style choices, defaults, and compound rules for one element.

[cx](/docs/api/core/cx)

Combine applied styles in order, keeping their variable bindings and recipe
attributes.

[variable](/docs/api/core/variable)

Declare a typed CSS variable that styles read and assign, statically or when
applied.

## Configuration

[defineConfig](/docs/api/core/defineConfig)

Bind style and recipe helpers to a variable set, and return the config
helpers.

[defineVars](/docs/api/core/defineVars)

Define a typed variable set of tokens, color pairs, and conditions without
emitting CSS.

[extendVars](/docs/api/core/extendVars)

Override values in an existing variable set while keeping its paths and
value types.

## Config Helpers

[vars](/docs/api/core/defineConfig/vars)

Reference tokens, and select a variable set or color scheme for a subtree.

[appearance](/docs/api/core/defineConfig/appearance)

Read and persist the document's variable set and color scheme across page
loads.

[script](/docs/api/core/defineConfig/script)

Return an inline script that restores saved preferences before the first
paint.

## Namespaces

[Config](/docs/api/core/namespaces/Config)

Configuration types and errors, plus the create function behind
defineConfig.

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

Type-only helpers that infer a component's props from a variants definition.

[Style](/docs/api/core/namespaces/Style)

Define and validate ordered style data, with the shared style types and
errors.

[Vars](/docs/api/core/namespaces/Vars)

The functions behind defineVars and extendVars, with variable set types.

## Reference

[Values](/docs/api/core/values)

Supported CSS properties and literal values, including fallbacks and
importance.
