1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
/// Semantic surface role pairing a background with its guaranteed-readable foreground and border. #[derive(Clone, Copy, Debug, Default, Eq, Hash, PartialEq)] pub enum SurfaceRole { /// Application canvas (`background` / `foreground`). #[default] Background, /// Elevated card / popover surface (`card` / `card_foreground`). Card, /// Brand / active / selected surface (`primary` / `primary_foreground`). Primary, /// Secondary button surface (`secondary` / `secondary_foreground`). Secondary, /// Muted track / subtle fill (`muted` / `foreground`). Muted, /// Neutral hover / highlight surface (`accent` / readable foreground). Accent, /// Destructive surface (`destructive` / `destructive_foreground`). Destructive, /// Success surface (`success` / `success_foreground`). Success, /// Warning surface (`warning` / `warning_foreground`). Warning, }