Luxar Viewer API Documentation - v2026.9.22
    Preparing search index...

    Interface Theme

    Complete theme definition

    A theme controls all visual aspects of the Luxar viewer. Themes can be switched at runtime without reloading.

    const myTheme: Theme = {
    id: 'my-theme',
    name: 'My Custom Theme',
    description: 'A beautiful custom theme',
    colors: { ... },
    typography: { ... },
    spacing: { ... },
    effects: { ... },
    zIndex: { ... },
    };
    interface Theme {
        id: string;
        name: string;
        description?: string;
        colors: ThemeColors;
        typography: ThemeTypography;
        spacing: ThemeSpacing;
        effects: ThemeEffects;
        zIndex: ThemeZIndex;
    }
    Index
    id: string

    Unique theme identifier (kebab-case)

    name: string

    Human-readable theme name

    description?: string

    Optional theme description

    colors: ThemeColors

    Color palette

    typography: ThemeTypography

    Typography settings

    spacing: ThemeSpacing

    Spacing scale

    effects: ThemeEffects

    Visual effects

    zIndex: ThemeZIndex

    Z-index layers