Skip to main content

Module recipe_card_style

Module recipe_card_style 

Source
Expand description

Default CardStyle impl driven by paint-recipe data.

RecipeCardStyle ships the IntUI card chrome — variant-driven background / shadow / border defaults, with caller overrides winning when set. Custom styles compose freely (glassmorphism card, brutalist box, neumorphic raised surface, etc.) by writing their own impl CardStyle block.

Like RecipePanelStyle, the body is a single CardFrame container widget that paints the chrome AND positions the content with padding inset (one widget so the proposal-resolve / intrinsic-size logic mirrors the pre-refactor Card exactly — splitting into a ZStack would break proposal propagation).

Structs§

CardRecipe
Dimension recipe for RecipeCardStyle. Mirrors the pub const defaults and allows per-instance overrides without a custom CardStyle impl.
RecipeCardStyle
Default CardStyle shipped with Teksilo. Honours all four CardVariant values via background / shadow / border defaults.

Constants§

CARD_BORDER_WIDTH
CARD_CORNER_RADIUS
CARD_PADDING
CARD_SHADOW_DENSITY
0..=1 multiplier on shape.shadow_inner_md.color.a at paint time.