euv-ui 0.51.0

Cross-platform UI component library and 17-scheme design system for the euv framework with pixel-consistent rendering across Web, Android, iOS, iPadOS, macOS, Windows, and Linux.
Documentation
/// 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,
}

/// Canonical interactive state-machine role guaranteeing identical hover/press/active color pairing logic across all 34 themes.
#[derive(Clone, Copy, Debug, Default, Eq, Hash, PartialEq)]
pub enum InteractionRole {
    /// Solid brand-primary action control (`EuvButtonVariant::Primary`).
    #[default]
    SolidPrimary,
    /// Solid destructive action control (`EuvButtonVariant::Destructive`).
    SolidDestructive,
    /// Subtle filled secondary control (`EuvButtonVariant::Secondary`).
    SecondarySurface,
    /// Hairline-bordered card control (`EuvButtonVariant::Outline`, `EuvDocPager`, `EuvToggle`).
    OutlineSurface,
    /// Transparent surface control revealing `Accent` on hover (`EuvButtonVariant::Ghost`, `EuvAccordion` header).
    GhostSurface,
    /// Brand-colored text link control revealing `Accent` pill on hover (`EuvButtonVariant::Link`).
    LinkSurface,
    /// Segmented/tab pill seated inside a `Muted` track (`EuvTabs`, `EuvSegmented`).
    SegmentedPill,
    /// Navigation / TOC / breadcrumb row transitioning `muted_foreground -> accent_fg` on hover (`EuvSidebarNav`, `EuvToc`, `EuvDocToc`, `EuvDocSectionNav`, `EuvBreadcrumb`).
    NavItem,
    /// Select / dropdown / combobox / context-menu option item (`EuvSelect`, `EuvDropdown`, `EuvCombobox`, `EuvContextMenu`).
    OptionItem,
}