naive-ui
Version:
A Vue 3 Component Library. Fairly Complete, Theme Customizable, Uses TypeScript, Fast
17 lines (16 loc) • 685 B
TypeScript
import type { ExtractThemeOverrides } from '../../_mixins/use-theme';
import type { ThemeCommonVars } from '../../_styles/common';
import type { GlobalThemeWithoutCommon } from './internal-interface';
export type { ThemeCommonVars };
export interface CustomThemeCommonVars {
}
export interface GlobalTheme extends GlobalThemeWithoutCommon {
name: string;
common?: ThemeCommonVars;
}
export type GlobalThemeOverrides = {
common?: Partial<ThemeCommonVars & CustomThemeCommonVars>;
} & {
[key in keyof GlobalThemeWithoutCommon]?: ExtractThemeOverrides<GlobalThemeWithoutCommon[key]>;
};
export type { GlobalComponentConfig, GlobalIconConfig } from './internal-interface';