layout_affinity

Page actions AI-ready formats and sharing
Open LLM text
Share with AI
Ask Claude Ask ChatGPT Ask Gemini Ask Copilot

Layout-affinity vocabulary for recipe-level workspace contracts.

The current layout-affinity contract is intentionally narrow: rendered templates may emit documenteddata-chirpui-*attributes, and parent primitives may resolve those attributes inside their own scoped CSS.…

Layout-affinity vocabulary for recipe-level workspace contracts.

The current layout-affinity contract is intentionally narrow: rendered templates may emit documenteddata-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.

layout_affinity

Name Type Default Description
type —
qualified_name —
element_type —
description —
source_file —
line_number —
is_autodoc —
autodoc_element —
_autodoc_template —
_autodoc_url_path —
_autodoc_page_type —
title —
doc_content_hash —

Symbols on this page

LayoutAffinityResolver
class

Documented parent resolver for layout-affinity attributes.

validate_layout_affinity_values
function
def validate_layout_affinity_values(*, role: str | None = None, pressure: str | None = None, affinity: str | None = None) -> tuple[str, ...]

Return invalid layout-affinity tokens in deterministic order.

Parameters

Name Type Default Description
role str | None None
pressure str | None None
affinity str | None None

View source · /home/runner/work/chirp-ui/chirp-ui/site/../src/chirp_ui/layout_affinity.py:1