pub struct NeutralRamp {Show 19 fields
pub window: Color,
pub subtle: Color,
pub panel: Color,
pub overlay: Color,
pub control: Color,
pub control_hover: Color,
pub control_active: Color,
pub button: Color,
pub button_hover: Color,
pub button_active: Color,
pub field: Color,
pub border_subtle: Color,
pub border: Color,
pub border_strong: Color,
pub border_control: Color,
pub text: Color,
pub text_secondary: Color,
pub text_tertiary: Color,
pub text_disabled: Color,
}Expand description
Every structural tier of a theme: surfaces, neutral fills, borders, and ink. Built-in themes author these directly so each preset can choose pure or subtly tinted neutrals; widgets never derive structure from the brand color.
Fields§
§window: ColorApplication background behind panels.
subtle: ColorRecessed chrome: sidebars, title bars, table headers.
panel: ColorCards, panes, and other content surfaces.
overlay: ColorFloating chrome that lifts off the panel, such as tooltips. Menus, popovers, and dialogs paint the panel tier with a border and shadow.
control: ColorRecessed neutral fill for tracks, tab strips, chips, and nested areas.
control_hover: Color§control_active: ColorFace of neutral buttons, select triggers, and raised segment thumbs.
field: ColorText input well.
border_subtle: ColorHairlines inside components.
border: ColorDefault separators and container outlines.
border_strong: ColorOutlines of interactive controls such as buttons and fields.
border_control: ColorOutline of unselected checkboxes, radios, and switch tracks; at least 3:1 against the panel so the control boundary stays perceivable.
text: Color§text_secondary: Color§text_tertiary: ColorPlaceholder and tertiary metadata; at least 4.5:1 on the panel.
text_disabled: ColorImplementations§
Source§impl NeutralRamp
impl NeutralRamp
Sourcepub fn dark() -> Self
pub fn dark() -> Self
SUI dark ramp: a constant, faint blue tint (OKLCH hue 258, chroma ~0.016) over evenly spaced lightness steps.
Sourcepub fn neutral_dark() -> Self
pub fn neutral_dark() -> Self
Achromatic twin of Self::dark with identical lightness steps.
Sourcepub fn void() -> Self
pub fn void() -> Self
True-black OLED ramp: window, chrome, and panels stay black and are
separated by borders; only interactive fills lift off black, carrying
the same faint tint as Self::dark. Text is dimmed below pure white.