# layout_affinity

URL: /chirp-ui/api/layout_affinity/
Section: api
Description: Layout-affinity vocabulary for recipe-level workspace contracts.

The current layout-affinity contract is intentionally narrow: rendered
templates may emit documented ``data-chirpui-*`` attributes, and parent
primitives may resolve those attributes inside their own scoped CSS. This
module centralizes the allowed vocabulary without projecting it into the public
manifest schema yet.

---

> For a complete page index, fetch /chirp-ui/llms.txt.

# layout_affinity

Layout-affinity vocabulary for recipe-level workspace contracts.

The current layout-affinity contract is intentionally narrow: rendered
templates may emit documented ``data-chirpui-*`` attributes, and parent
primitives may resolve those attributes inside their own scoped CSS. This
module centralizes the allowed vocabulary without projecting it into the public
manifest schema yet.

module

Layout-affinity vocabulary for recipe-level workspace contracts.

The current layout-affinity contract is intentionally narrow: rendered
templates may emit documented ``data-chirpui-*`` attributes, and parent
primitives may resolve those attributes inside their own scoped CSS. This
module centralizes the allowed vocabulary without projecting it into the public
manifest schema yet.

LayoutAffinityResolver

class

Documented parent resolver for layout-affinity attributes.

validate_layout_affinity_values

function

Return invalid layout-affinity tokens in deterministic order.
