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§
- Status
Colors - One brightness’s worth of success/warning/info color roles, mirroring
ColorScheme’serror/on_error/error_container/on_error_containershape for each of the three statuses. - Status
Palette - The success/warning/info extension a
crate::theme::Themecarries viacrate::extensions::ThemeExtensions— recovered withtheme.extension::<StatusPalette>().