Skip to main content

page_theme

Function page_theme 

Source
pub fn page_theme(name: &str) -> Option<Theme>
Expand description

The iced theme matching the page theme name; None for any name not in PAGE_THEMES.

For rustdoc’s themes, background, text, primary and warning come from the page theme’s --main-background-color, --main-color, --link-color and --warning-border-color. Rustdoc has no success or danger colours, so those are iced’s own for the matching brightness. phosphor is the site’s storage-tube faceplate: a dark green-grey background with phosphor-green text and accents.