nocobase/packages/plugins/@nocobase/plugin-theme-editor/src/server/builtinThemes.ts

42 lines
815 B
TypeScript
Raw Normal View History

import { ThemeItem } from '../types';
/** antd 默认主题 */
export const antd: Omit<ThemeItem, 'id'> = {
config: {
name: 'Default theme of antd',
},
optional: true,
isBuiltIn: true,
};
export const dark: Omit<ThemeItem, 'id'> = {
config: {
name: 'Dark',
// @ts-ignore
algorithm: 'darkAlgorithm',
},
optional: true,
isBuiltIn: true,
};
export const compact: Omit<ThemeItem, 'id'> = {
config: {
name: 'Compact',
// @ts-ignore
algorithm: 'compactAlgorithm',
},
optional: true,
isBuiltIn: true,
};
/** 同时包含 `紧凑` 和 `暗黑` 两种模式 */
export const compactDark: Omit<ThemeItem, 'id'> = {
config: {
name: 'Compact dark',
// @ts-ignore
algorithm: ['compactAlgorithm', 'darkAlgorithm'],
},
optional: true,
isBuiltIn: true,
};