UNPKG

ipink-themejs

Version:

Theme for ui, 根据自定义的颜色值导出一套常用的Map合集, 字号、圆角、边框、字色、背景色、...

39 lines (37 loc) 1.08 kB
import { SeedOption } from '../theme/interface/seed'; import { ColorToken, SeedMap } from './interface'; export type ThemeOptions = { themeList?: SeedOption[] | SeedMap[]; useDark?: boolean; platform?: string; useUnit?: boolean; }; export type ThemeStateType = { id: string; themeList: ColorToken[]; modeId?: "dark" | "light"; }; declare abstract class Config { static modeId: "dark" | "light"; static useDark: boolean; static themeId: string; static themeList: SeedOption[]; static setConfig: (options: { themeList: SeedOption[]; modeId?: "dark" | "light"; themeId?: string; }) => void; } export declare class ThemeConfig extends Config { static modeId: "dark" | "light"; static useDark: boolean; static themeId: string; static themeList: SeedOption[]; static setConfig(options: { themeList: SeedOption[]; modeId?: "dark" | "light"; themeId?: string; }): void; } export declare const createThemeList: (options?: ThemeOptions) => ColorToken[]; export {};