pub struct UiTheme {Show 34 fields
pub background: [f32; 4],
pub surface: [f32; 4],
pub surface_elevated: [f32; 4],
pub surface_interactive: [f32; 4],
pub surface_active: [f32; 4],
pub separator: [f32; 4],
pub border: [f32; 4],
pub border_strong: [f32; 4],
pub text: [f32; 4],
pub text_dim: [f32; 4],
pub text_muted: [f32; 4],
pub text_disabled: [f32; 4],
pub text_inverse: [f32; 4],
pub primary: [f32; 4],
pub primary_dim: [f32; 4],
pub accent_a: [f32; 4],
pub accent_b: [f32; 4],
pub accent_c: [f32; 4],
pub success: [f32; 4],
pub warning: [f32; 4],
pub error: [f32; 4],
pub axis_x: [f32; 4],
pub axis_y: [f32; 4],
pub axis_z: [f32; 4],
pub radius_sm: f32,
pub radius_md: f32,
pub radius_lg: f32,
pub radius_xl: f32,
pub font_size_caption: f32,
pub font_size_body: f32,
pub font_size_title: f32,
pub font_size_display: f32,
pub pad_row: f32,
pub pad_card: f32,
}Expand description
Color palette and sizing tokens for any Khora UI surface.
Fields§
§background: [f32; 4]Outermost background (empty regions, behind everything).
surface: [f32; 4]Default panel surface.
surface_elevated: [f32; 4]Slightly elevated surface (e.g. tab bar, card body).
surface_interactive: [f32; 4]Interactive surface (buttons, combo boxes).
surface_active: [f32; 4]Hovered or active surface highlight.
separator: [f32; 4]Subtle separator (between items inside a panel).
border: [f32; 4]Default panel border.
border_strong: [f32; 4]Stronger border (used for emphasis around modals, popups).
text: [f32; 4]Primary text color.
text_dim: [f32; 4]Secondary text (labels, sub-titles).
text_muted: [f32; 4]Tertiary text (hints, captions).
text_disabled: [f32; 4]Disabled text.
text_inverse: [f32; 4]Dark “inverse” ink for text sitting on a filled brand (primary)
surface — e.g. the label of a solid silver primary button.
primary: [f32; 4]Primary brand color (selection rings, focus highlights).
primary_dim: [f32; 4]Dimmed primary (backgrounds of selected rows, etc.).
accent_a: [f32; 4]Accent A — secondary brand color.
accent_b: [f32; 4]Accent B — tertiary brand color.
accent_c: [f32; 4]Accent C — quaternary brand color (warnings of-emphasis, special states).
success: [f32; 4]Success indicator (green-family).
warning: [f32; 4]Warning indicator (amber-family).
error: [f32; 4]Error indicator (red-family).
axis_x: [f32; 4]Color for the X axis (typically red-orange).
axis_y: [f32; 4]Color for the Y axis (typically green).
axis_z: [f32; 4]Color for the Z axis (typically blue).
radius_sm: f32Small corner radius (chips, badges).
radius_md: f32Medium corner radius (default for buttons / inputs).
radius_lg: f32Large corner radius (panels, cards).
radius_xl: f32Extra-large corner radius (modal dialogs, palettes).
font_size_caption: f32Caption / metadata font size in logical points.
font_size_body: f32Body / default font size.
font_size_title: f32Section title font size.
font_size_display: f32Display heading font size.
pad_row: f32Default vertical padding for a row of content.
pad_card: f32Default inner padding for a card.