{#- chirp-ui: Surface component Generic container with background. Replaces ad-hoc inline background styles. Usage: from "chirpui/surface.html" import surface call surface(variant="muted")

Content on muted background.

end call surface(variant="elevated", full_width=true) Hero section content. end call surface(variant="default", padding=false, full_width=true, cls="my-card", style="--accent: #0a0; background: linear-gradient(...)") Custom background overrides variant fill (e.g. type-tinted cards). end Optional: style (inline CSS), attrs / attrs_map (extra HTML attributes; same as btn). Variants: default, muted, elevated, accent, gradient-subtle, gradient-accent, gradient-border, gradient-mesh, glass, frosted, smoke -#} {% def surface(variant="default", full_width=false, padding=true, cls="", style="", attrs="", attrs_map=none) %} {% set variant = variant | validate_variant_block("surface", default="default") %}
{% slot %}
{% end %}