Skip to main content

Module status

Module status 

Source
Expand description

StatusPalette: success/warning/info color roles as a crate::extensions::ThemeExtensions consumer.

crate::color::ColorScheme’s 46 roles carry no success/warning/info at all — only error. This extension is that gap’s typed filler: crate::theme::Theme::neutral attaches StatusPalette::neutral, and a design system attaches its own table the same way.

Community-approximate (neutral’s values): they apply the same tone-relationship Material 3’s error roles use (light: base/on/container/on-container ≈ tone 40/100/90/10; dark: ≈ tone 80/20/30/90) to green (success), amber (warning), and blue (info) seed hues, chosen for conventional semantic association and AA contrast against surface/on_surface, not measured against a specific published export — Material 3 has no fixed status-role table to cite (its Theme Builder covers the gap with per-seed HCT “custom colors” instead).

Structs§

StatusColors
One brightness’s worth of success/warning/info color roles, mirroring ColorScheme’s error/on_error/error_container/on_error_container shape for each of the three statuses.
StatusPalette
The success/warning/info extension a crate::theme::Theme carries via crate::extensions::ThemeExtensions — recovered with theme.extension::<StatusPalette>().