1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
use *;
/// Universal 4px base spacing step (`xs`).
pub const SPACE_XS: f32 = 4.0;
/// Small spacing step (`sm`).
pub const SPACE_SM: f32 = 8.0;
/// Medium spacing step (`md`).
pub const SPACE_MD: f32 = 12.0;
/// Large spacing step (`lg`).
pub const SPACE_LG: f32 = 16.0;
/// Extra-large spacing step (`xl`).
pub const SPACE_XL: f32 = 20.0;
/// Double extra-large spacing step (`2xl`).
pub const SPACE_2XL: f32 = 24.0;
/// Desktop navigation sidebar width in logical pixels.
pub const NAV_SIDEBAR_WIDTH: f32 = 240.0;
/// Maximum readable content container width in logical pixels.
pub const CONTENT_MAX_WIDTH: f32 = 960.0;
/// Mobile top header bar height in logical pixels.
pub const MOBILE_HEADER_HEIGHT: f32 = 52.0;
/// Z-index layer for normal content.
pub const Z_INDEX_CONTENT: i32 = 1;
/// Z-index layer for sticky app chrome (header / sidebar).
pub const Z_INDEX_CHROME: i32 = 100;
/// Z-index layer for tooltips.
pub const Z_INDEX_TOOLTIP: i32 = 140;
/// Z-index layer for floating popovers and dropdown menus.
pub const Z_INDEX_FLOATING: i32 = 150;
/// Z-index layer for dimmed backdrop overlays.
pub const Z_INDEX_OVERLAY: i32 = 200;
/// Z-index layer for slide-over drawers and sheets.
pub const Z_INDEX_DRAWER: i32 = 201;
/// Z-index layer for modal dialogs.
pub const Z_INDEX_MODAL: i32 = 1000;
/// Z-index layer for toast notifications.
pub const Z_INDEX_TOAST: i32 = 1100;
/// Compile-time lookup table of all 17 schemes x 2 modes (`(scheme_idx << 1) | dark_idx`) semantic palettes.
pub const THEME_PALETTE_LUT: = build_palette_lut;
/// Compile-time lookup table of precomputed `[radius_sm, radius_md, radius_lg, radius_xl, control_sm, control_md, control_lg]` per design scheme.
pub const THEME_GEOMETRY_METRICS_LUT: =
build_geometry_metrics_lut;