UNPKG

@md3tail/theme

Version:

An open source plugin based on tailwindcss built with Material Desing 3

34 lines (33 loc) 1.07 kB
export declare enum ThemeMode { Dark = "dark", Light = "light" } export declare enum CoreColor { Primary = "primary", Secondary = "secondary", Tertiary = "tertiary", Error = "error", Neutral = "neutral", NeutralVariant = "neutralVariant" } export declare enum SurfacesLight { Surface = "", SurfaceContainerHighest = "--md-sys-color-surface-container-highest", SurfaceContainerHigh = "--md-sys-color-surface-container-high", SurfaceContainer = "--md-sys-color-surface-container", SurfaceContainerLow = "--md-sys-color-surface-container-low", SurfaceContainerLowest = "--md-sys-color-surface-container-lowest", SurfaceBright = "--md-sys-color-surface-bright", SurfaceDim = 87 } export type TokensFromSource = { [ThemeMode.Light]: Record<string, string>; [ThemeMode.Dark]: Record<string, string>; palettes: Record<string, string>; }; /** * * @param source hex color * @returns css tokens with dark and light modes */ export declare const tokensFromSource: (source: string) => TokensFromSource;