UNPKG

@lobehub/ui

Version:

Lobe UI is an open-source UI component library for building AIGC web apps

22 lines 905 B
import { ThemeConfig } from "antd"; //#region src/static-css/themeVars.d.ts type ThemeAppearance = 'dark' | 'light'; interface ThemeVarsCssOptions { /** selector activating an appearance; default matches next-themes' data-theme attribute */ appearanceSelector?: (appearance: ThemeAppearance) => string; /** dark fixups for lobe-ui antdOverride primary-on-contrast rules */ compatRules?: boolean; hrefTemplate?: (hash: string) => string; /** same theme factory the app hands to ConfigProvider/ThemeProvider */ theme?: (appearance: ThemeAppearance) => ThemeConfig; } interface ThemeVarsCssPayload { css: string; hash: string; href: string; skippedComponents: string[]; } declare const buildThemeVarsCss: (options?: ThemeVarsCssOptions) => ThemeVarsCssPayload; //#endregion export { ThemeVarsCssOptions, ThemeVarsCssPayload, buildThemeVarsCss }; //# sourceMappingURL=themeVars.d.mts.map