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
/// Minimum logical left or right safe-area width in dp that activates a borderless vertical navigation rail inside the safe-area strip (e.g. iPhone Duo right/left signal rail).
pub const CHROME_SIDE_SAFE_RAIL_MIN_WIDTH: f32 = 52.0;

/// Minimum side safe-area asymmetry in dp distinguishing a dedicated left/right hardware strip (e.g. iPhone Duo `84dp` vs `0dp`) from symmetric landscape phone margins (`left=59, right=59`).
pub const CHROME_SIDE_SAFE_RAIL_ASYMMETRY_MIN: f32 = 20.0;

/// Minimum logical height in dp required to dock a vertical navigation rail cleanly inside a side safe-area strip.
pub const CHROME_SIDE_SAFE_RAIL_MIN_HEIGHT: f32 = 320.0;

/// Top signal-cluster clearance in logical dp reserved inside a tall side hardware safe-area strip (clears iPhone Duo camera hole `30..65dp`, clock `87..98dp`, and Wi-Fi ring `110..154dp`).
pub const CHROME_SIDE_RAIL_SIGNAL_CLEARANCE_PORTRAIT: f32 = 156.0;

/// Camera punch-hole and corner-bezel clearance in logical dp reserved inside a folded landscape side hardware safe-area strip (clears `30..65dp` / `400..436dp` camera cutout with breathing margin).
pub const CHROME_SIDE_RAIL_CAMERA_CLEARANCE: f32 = 82.0;

/// Clean hinge-side edge inset in logical dp on the non-camera end of a folded landscape side safe-area strip.
pub const CHROME_SIDE_RAIL_EDGE_INSET: f32 = 12.0;

/// Safety corner-radius clamp in logical dp preventing a vertical side rail from entering curved outer display corners on shorter screens.
pub const CHROME_SIDE_RAIL_BOTTOM_CORNER_GAP: f32 = 24.0;

/// Minimum logical top safe-area height in dp for a wide top hardware strip (e.g. iPhone Duo `82dp` top safe area) to host the page top bar directly inside the safe area.
pub const CHROME_TOP_SAFE_HEADER_MIN_HEIGHT: f32 = 72.0;

/// Minimum logical viewport width in dp required before hosting the page top bar inside a tall top safe-area strip (preserves standard 390px/430px phones and MiniApps).
pub const CHROME_TOP_SAFE_HEADER_MIN_WIDTH: f32 = 440.0;

/// Right-side horizontal avoidance in logical dp for the top-right hardware clock and Wi-Fi cluster (`18:05` starts at `119.3dp` from right edge on unfolded iPhone Duo, leaving a crisp `~15dp` gap).
pub const CHROME_TOP_SAFE_RIGHT_AVOIDANCE: f32 = 134.0;

/// Minimum left corner padding in logical dp protecting the leading top-bar emblem inside large curved display corners when hosted inside a tall top safe-area strip.
pub const CHROME_TOP_SAFE_LEFT_CORNER_PAD: f32 = 16.0;

/// Minimum horizontal corner padding in logical dp protecting leading/trailing top-bar and drawer controls inside large curved display corners (`55..59dp`) during landscape orientation with `safe.top == 0`.
pub const CHROME_LANDSCAPE_CORNER_H_PAD: f32 = 26.0;

/// Minimum horizontal corner padding in logical dp protecting leading/trailing top-bar and drawer controls inside split-screen and cover-display rounded corners when `safe.top == 0` in portrait aspect ratios.
pub const CHROME_SPLIT_CORNER_H_PAD: f32 = 22.0;

/// Minimum horizontal corner clearance floor in logical dp when top controls sit below a shallow top safe inset (`0 < safe.top < 44dp`, e.g. split-screen panes on curved displays).
pub const CHROME_SPLIT_CORNER_MIN_H_PAD: f32 = 14.0;

/// Minimum top padding in logical dp pushing landscape and zero-top-inset split-screen top-bar controls slightly downward away from the upper curved bezel arc when `safe.top == 0`.
pub const CHROME_LANDSCAPE_CORNER_TOP_PAD: f32 = 12.0;

/// Minimum top padding in logical dp protecting the slide-over sidebar drawer logo inside large curved display corners (`55..59dp`) during landscape orientation with `safe.top == 0`.
pub const CHROME_LANDSCAPE_DRAWER_TOP_PAD: f32 = 20.0;

/// Logical viewport axis threshold below which `EuvChromeLayoutPolicy` selects compact smartwatch chrome geometry.
pub const CHROME_WATCH_VIEWPORT_MAX: f32 = 300.0;

/// Compact icon-only floating bottom navigation height in logical dp for smartwatch viewports.
pub const CHROME_WATCH_DOCK_HEIGHT: f32 = 36.0;

/// Minimum vertical clearance in logical dp protecting interactive controls inside large display rounded corners (`55..59dp`) during fullscreen presentation.
pub const CHROME_FULLSCREEN_CORNER_V_MIN: f32 = 28.0;

/// Minimum horizontal clearance in logical dp protecting interactive controls inside large display rounded corners (`55..59dp`) during fullscreen presentation.
pub const CHROME_FULLSCREEN_CORNER_H_MIN: f32 = 28.0;

/// Minimum logical vertical rail height in dp needed to render both icons and text labels comfortably.
pub(crate) const CHROME_VERTICAL_RAIL_LABEL_MIN_HEIGHT: f32 = 248.0;

/// Minimum horizontal padding inset on each side of a docked vertical rail inside a side safe-area strip.
pub(crate) const CHROME_SIDE_RAIL_INSET_PAD: f32 = 6.0;

/// Optical inward horizontal shift in logical dp aligning vertical rail buttons with the `48dp`-from-bezel camera/clock/Wi-Fi optical axis on wide curved side strips (`>= 76dp`).
pub(crate) const CHROME_SIDE_RAIL_OPTICAL_INSET: f32 = 6.0;

/// Minimum width in logical dp for a docked vertical safe-area navigation rail.
pub(crate) const CHROME_SIDE_RAIL_MIN_DOCK_W: f32 = 48.0;

/// Maximum width in logical dp for a docked vertical safe-area navigation rail (sleek `56dp` squircle proportion matching the camera and Wi-Fi ring).
pub(crate) const CHROME_SIDE_RAIL_MAX_DOCK_W: f32 = 56.0;

/// Maximum height in logical dp for a docked portrait/tall vertical safe-area navigation rail so tabs form refined squircle tiles.
pub(crate) const CHROME_SIDE_RAIL_MAX_DOCK_H: f32 = 290.0;

/// Maximum height in logical dp for a docked folded-landscape vertical safe-area navigation rail clearing the camera punch hole.
pub(crate) const CHROME_SIDE_RAIL_LANDSCAPE_MAX_DOCK_H: f32 = 276.0;

/// Minimum usable content width in logical dp preserved for top-bar controls when avoiding the top-right hardware safe-area zone.
pub(crate) const CHROME_TOP_SAFE_MIN_CONTENT_WIDTH: f32 = 220.0;

/// Minimum right-side avoidance floor in logical dp clearing the unfolded top-right clock and Wi-Fi indicator cluster.
pub(crate) const CHROME_TOP_SAFE_MIN_RIGHT_AVOIDANCE: f32 = 128.0;

/// Minimum logical viewport clamp protecting layout math from degenerate zero dimensions.
pub(crate) const CHROME_MIN_VIEWPORT_CLAMP: f32 = 120.0;

/// Reference display corner radius in logical dp (`55dp` continuous corner on modern curved-bezel phones and foldables) used to compute exact chord avoidance for shallow top safe insets.
pub(crate) const CHROME_DISPLAY_CORNER_RADIUS: f32 = 55.0;

/// Visual breathing room in logical dp added beyond the geometric curved-corner chord so brand badges never visually touch the display bezel arc.
pub(crate) const CHROME_CORNER_BREATHING_GAP: f32 = 9.0;

/// Top safe-area threshold in logical dp above which top-bar controls already sit cleanly below the display corner curve (`>= 44dp`, e.g. notch and Dynamic Island portrait phones).
pub(crate) const CHROME_CORNER_CLEAR_TOP_THRESHOLD: f32 = 44.0;