Skip to main content

euv_ui/theme/token/
enum.rs

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