use theme::{AppExt as _, Brand, Tint};
cx.set_brand(Brand {
tint: Tint::new(257.417, 0.046), // Slate, from theme::BASE_COLORS
accent: Tint::new(276.935, 0.182),
radius: 10.0,
..Brand::default()
});Brand::default()reproduces the shipped palette exactly; aTintat chroma0.0is the shipped neutral.- A brand rotates hue only. Tokens that carry their own hue (
danger,warning,success), translucent ink, and palettes from aThemeFamilykeep theirs. - An accent with chroma also moves
accent_strong, andon_accentbecomes whichever label holds on that plate. - Every corner radius is a ratio of
radius.