Skip to main content

Module recipe_banner_style

Module recipe_banner_style 

Source
Expand description

Default BannerStyle impl driven by paint-recipe data.

RecipeBannerStyle ships the IntUI banner chrome: a per-severity status-tinted surface (StatusInfo / StatusSuccess / StatusWarning / StatusError) with rounded corners, the content inset by the banner padding, and the leading severity glyph placed to the leading edge of the message/action content.

The SeverityGlyph itself is built by the Banner widget — it is a functional renderer (it draws domain data, the info/warn/error mark), not chrome (principle 6). Apps that want a different banner look (full-bleed strip, bordered callout, icon-free) write their own impl BannerStyle block.

Structs§

BannerRecipe
Dimension recipe for RecipeBannerStyle. All fields default to the corresponding BANNER_* constants so callers can override individual measurements without touching the rest.
RecipeBannerStyle
Default BannerStyle shipped with Teksilo. Surface tint comes from the per-severity SurfaceRole (no border — the status surface tokens already encode contrast with the page background).

Constants§

BANNER_CONTENT_GAP
Horizontal gap between glyph, text column, action widget, and dismiss button.
BANNER_CORNER_RADIUS
BANNER_GLYPH_SIZE
Diameter of the leading severity glyph (info / success / error circle, warning triangle).
BANNER_PADDING_HORIZONTAL
BANNER_PADDING_VERTICAL
BANNER_TITLE_DESCRIPTION_GAP
Vertical gap between the title and the optional description text inside the body column.