Some checks failed
CI / Test (ubuntu-latest) (push) Has been cancelled
CI / Test (windows-latest) (push) Has been cancelled
CI / Lint (ubuntu-latest) (push) Has been cancelled
CI / Lint (windows-latest) (push) Has been cancelled
CI / Check (ubuntu-latest) (push) Has been cancelled
CI / Check (windows-latest) (push) Has been cancelled
CI / CI OK (push) Has been cancelled
CodeQL / Analyze (javascript-typescript) (push) Has been cancelled
Deploy Website on push / Deploy Push Playground Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Docs Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Antd Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Element Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Naive Ftp (push) Has been cancelled
Deploy Website on push / Rerun on failure (push) Has been cancelled
Release Drafter / update_release_draft (push) Has been cancelled
- 基于 Vben Admin 5.7.0,仅保留 web-antd 版本 - 删除多余 UI 版本(antdv-next/ele/naive/tdesign) - 删除 backend-mock(已对接真实 .NET 后端) - 删除 playground 和 docs - 添加 Jenkinsfile CI/CD
117 lines
2.1 KiB
TypeScript
117 lines
2.1 KiB
TypeScript
import type { BuiltinThemeType, TimezoneOption } from '@vben-core/typings';
|
|
|
|
interface BuiltinThemePreset {
|
|
color: string;
|
|
darkPrimaryColor?: string;
|
|
primaryColor?: string;
|
|
type: BuiltinThemeType;
|
|
}
|
|
|
|
const BUILT_IN_THEME_PRESETS: BuiltinThemePreset[] = [
|
|
{
|
|
color: 'hsl(212 100% 45%)',
|
|
type: 'default',
|
|
},
|
|
{
|
|
color: 'hsl(245 82% 67%)',
|
|
type: 'violet',
|
|
},
|
|
{
|
|
color: 'hsl(347 77% 60%)',
|
|
type: 'pink',
|
|
},
|
|
{
|
|
color: 'hsl(42 84% 61%)',
|
|
type: 'yellow',
|
|
},
|
|
{
|
|
color: 'hsl(231 98% 65%)',
|
|
type: 'sky-blue',
|
|
},
|
|
{
|
|
color: 'hsl(161 90% 43%)',
|
|
type: 'green',
|
|
},
|
|
{
|
|
color: 'hsl(240 5% 26%)',
|
|
darkPrimaryColor: 'hsl(0 0% 98%)',
|
|
primaryColor: 'hsl(240 5.9% 10%)',
|
|
type: 'zinc',
|
|
},
|
|
{
|
|
color: 'hsl(181 84% 32%)',
|
|
type: 'deep-green',
|
|
},
|
|
{
|
|
color: 'hsl(211 91% 39%)',
|
|
type: 'deep-blue',
|
|
},
|
|
{
|
|
color: 'hsl(18 89% 40%)',
|
|
type: 'orange',
|
|
},
|
|
{
|
|
color: 'hsl(0 75% 42%)',
|
|
type: 'rose',
|
|
},
|
|
{
|
|
color: 'hsl(0 0% 25%)',
|
|
darkPrimaryColor: 'hsl(0 0% 98%)',
|
|
primaryColor: 'hsl(240 5.9% 10%)',
|
|
type: 'neutral',
|
|
},
|
|
{
|
|
color: 'hsl(215 25% 27%)',
|
|
darkPrimaryColor: 'hsl(0 0% 98%)',
|
|
primaryColor: 'hsl(240 5.9% 10%)',
|
|
type: 'slate',
|
|
},
|
|
{
|
|
color: 'hsl(217 19% 27%)',
|
|
darkPrimaryColor: 'hsl(0 0% 98%)',
|
|
primaryColor: 'hsl(240 5.9% 10%)',
|
|
type: 'gray',
|
|
},
|
|
{
|
|
color: '',
|
|
type: 'custom',
|
|
},
|
|
];
|
|
|
|
/**
|
|
* 时区选项
|
|
*/
|
|
const DEFAULT_TIME_ZONE_OPTIONS: TimezoneOption[] = [
|
|
{
|
|
offset: -5,
|
|
timezone: 'America/New_York',
|
|
label: 'America/New_York(GMT-5)',
|
|
},
|
|
{
|
|
offset: 0,
|
|
timezone: 'Europe/London',
|
|
label: 'Europe/London(GMT0)',
|
|
},
|
|
{
|
|
offset: 8,
|
|
timezone: 'Asia/Shanghai',
|
|
label: 'Asia/Shanghai(GMT+8)',
|
|
},
|
|
{
|
|
offset: 9,
|
|
timezone: 'Asia/Tokyo',
|
|
label: 'Asia/Tokyo(GMT+9)',
|
|
},
|
|
{
|
|
offset: 9,
|
|
timezone: 'Asia/Seoul',
|
|
label: 'Asia/Seoul(GMT+9)',
|
|
},
|
|
];
|
|
|
|
export const COLOR_PRESETS = [...BUILT_IN_THEME_PRESETS].slice(0, 7);
|
|
|
|
export { BUILT_IN_THEME_PRESETS, DEFAULT_TIME_ZONE_OPTIONS };
|
|
|
|
export type { BuiltinThemePreset };
|