Skip to main content

Module defaults

Module defaults 

Source
Expand description

Typed default values for CSS properties (font size, font id, text color). Aggregated default values for typed CSS properties.

Typed wrappers built on top of the raw scalar defaults (e.g. crate::props::basic::pixel::DEFAULT_FONT_SIZE). These exist so consumers that need a StyleFontSize / StyleTextColor value at const-time do not have to reconstruct them locally — and do not duplicate the underlying numbers.

Constants§

DEFAULT_FONT_ID
Default font family identifier used as a fallback.
DEFAULT_FONT_SIZE
Default font size (16px) used when no explicit size is specified.
DEFAULT_TEXT_COLOR
Default text color (opaque black).