2023-07-21 02:42:50 +00:00
|
|
|
import { ThemeItem } from '../types';
|
|
|
|
|
|
|
|
/** antd 默认主题 */
|
2023-10-27 08:55:13 +00:00
|
|
|
export const defaultTheme: Omit<ThemeItem, 'id'> = {
|
2023-07-21 02:42:50 +00:00
|
|
|
config: {
|
2023-10-27 08:55:13 +00:00
|
|
|
name: 'Default',
|
2023-07-21 02:42:50 +00:00
|
|
|
},
|
|
|
|
optional: true,
|
|
|
|
isBuiltIn: true,
|
2023-10-27 08:55:13 +00:00
|
|
|
uid: 'default',
|
2023-07-21 02:42:50 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export const dark: Omit<ThemeItem, 'id'> = {
|
|
|
|
config: {
|
|
|
|
name: 'Dark',
|
|
|
|
// @ts-ignore
|
|
|
|
algorithm: 'darkAlgorithm',
|
|
|
|
},
|
|
|
|
optional: true,
|
|
|
|
isBuiltIn: true,
|
2023-10-27 08:55:13 +00:00
|
|
|
uid: 'dark',
|
2023-07-21 02:42:50 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export const compact: Omit<ThemeItem, 'id'> = {
|
|
|
|
config: {
|
|
|
|
name: 'Compact',
|
|
|
|
// @ts-ignore
|
|
|
|
algorithm: 'compactAlgorithm',
|
|
|
|
},
|
|
|
|
optional: true,
|
|
|
|
isBuiltIn: true,
|
2023-10-27 08:55:13 +00:00
|
|
|
uid: 'compact',
|
2023-07-21 02:42:50 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/** 同时包含 `紧凑` 和 `暗黑` 两种模式 */
|
|
|
|
export const compactDark: Omit<ThemeItem, 'id'> = {
|
|
|
|
config: {
|
|
|
|
name: 'Compact dark',
|
|
|
|
// @ts-ignore
|
|
|
|
algorithm: ['compactAlgorithm', 'darkAlgorithm'],
|
|
|
|
},
|
|
|
|
optional: true,
|
|
|
|
isBuiltIn: true,
|
2023-10-27 08:55:13 +00:00
|
|
|
uid: 'compact_dark',
|
2023-07-21 02:42:50 +00:00
|
|
|
};
|