mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-08 15:09:27 +08:00
65 lines
1.4 KiB
TypeScript
65 lines
1.4 KiB
TypeScript
/**
|
|
* This file is part of the NocoBase (R) project.
|
|
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
* Authors: NocoBase Team.
|
|
*
|
|
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
*/
|
|
|
|
import { ThemeItem } from '../types';
|
|
|
|
/** antd 默认主题 */
|
|
export const defaultTheme: Omit<ThemeItem, 'id'> = {
|
|
config: {
|
|
name: 'Default',
|
|
},
|
|
optional: true,
|
|
isBuiltIn: true,
|
|
uid: 'default',
|
|
default: process.env.__E2E__ ? true : false,
|
|
};
|
|
|
|
export const dark: Omit<ThemeItem, 'id'> = {
|
|
config: {
|
|
name: 'Dark',
|
|
// @ts-ignore
|
|
algorithm: 'darkAlgorithm',
|
|
},
|
|
optional: true,
|
|
isBuiltIn: true,
|
|
uid: 'dark',
|
|
default: false,
|
|
};
|
|
|
|
export const compact: Omit<ThemeItem, 'id'> = {
|
|
config: {
|
|
name: 'Compact',
|
|
// @ts-ignore
|
|
algorithm: 'compactAlgorithm',
|
|
token: {
|
|
fontSize: 16,
|
|
},
|
|
},
|
|
optional: true,
|
|
isBuiltIn: true,
|
|
uid: 'compact',
|
|
default: process.env.__E2E__ ? false : true,
|
|
};
|
|
|
|
/** 同时包含 `紧凑` 和 `暗黑` 两种模式 */
|
|
export const compactDark: Omit<ThemeItem, 'id'> = {
|
|
config: {
|
|
name: 'Compact dark',
|
|
// @ts-ignore
|
|
algorithm: ['compactAlgorithm', 'darkAlgorithm'],
|
|
token: {
|
|
fontSize: 16,
|
|
},
|
|
},
|
|
optional: true,
|
|
isBuiltIn: true,
|
|
uid: 'compact_dark',
|
|
default: false,
|
|
};
|