Skip to main content

baseline

Function baseline 

Source
pub fn baseline() -> Theme
Expand description

The Material 3 baseline theme: baseline light/dark color schemes, the M3 type scale (built from TextStyle::default()), the M3 shape scale, the M3 elevation table, and the M3 Expressive motion scheme. Starts in Brightness::Light. Attaches status_palette, MaterialTokens::material, and [native_typefaces] as pre-populated extensions (see Theme::extension), so extension::<StatusPalette>(), extension::<MaterialTokens>(), and extension::<NativeTypefaces>() are always Some on this baseline. See module docs’s “Two semantic vocabularies” section for why the first two both carry info/success/ warning fields at different values — that is by design, not a conflict.