UNPKG

igniteui-theming

Version:

A set of Sass variables, mixins, and functions for generating palettes, typography, and elevations used by Ignite UI components.

25 lines (24 loc) 990 B
import { MaterialElevations as materialElevationsData } from 'igniteui-theming'; type StringToNumber<S extends string> = S extends `${infer N extends number}` ? N : never; export type ElevationLevel = StringToNumber<keyof typeof materialElevationsData.elevations>; export type ElevationPreset = "material" | "indigo"; type ElevationMap = Record<string, string>; /** * Material Design elevation definitions loaded from JSON. * Based on the Material Design elevation system with 25 levels (0-24). */ export declare const MATERIAL_ELEVATIONS: ElevationMap; /** * Indigo Design System elevation definitions loaded from JSON. * A custom elevation system with unique shadow definitions. */ export declare const INDIGO_ELEVATIONS: ElevationMap; /** * All elevation presets indexed by design system name. */ export declare const ELEVATION_PRESETS: Record<ElevationPreset, ElevationMap>; /** * Valid elevation levels. */ export declare const ELEVATION_LEVELS: ElevationLevel[]; export {};