123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- import type {
- BuiltinThemeType,
- SupportedLanguagesType,
- } from '@vben-core/typings';
- interface Language {
- key: SupportedLanguagesType;
- text: string;
- }
- interface BuiltinThemePreset {
- color: string;
- darkPrimaryColor?: string;
- primaryColor?: string;
- type: BuiltinThemeType;
- }
- /**
- * Supported languages
- */
- const SUPPORT_LANGUAGES: Language[] = [
- {
- key: 'zh-CN',
- text: '简体中文',
- },
- {
- key: 'en-US',
- text: 'English',
- },
- ];
- const BUILT_IN_THEME_PRESETS: BuiltinThemePreset[] = [
- {
- color: 'hsl(231 98% 65%)',
- type: 'default',
- },
- {
- color: 'hsl(245 82% 67%)',
- type: 'violet',
- },
- {
- color: 'hsl(347 77% 60%)',
- type: 'pink',
- },
- {
- color: 'hsl(0 75% 42%)',
- type: 'rose',
- },
- {
- color: 'hsl(212 100% 45%)',
- type: 'sky-blue',
- },
- {
- color: 'hsl(211 91% 39%)',
- type: 'deep-blue',
- },
- {
- color: 'hsl(161 90% 43%)',
- type: 'green',
- },
- {
- color: 'hsl(181 84% 32%)',
- type: 'deep-green',
- },
- {
- color: 'hsl(18 89% 40%)',
- type: 'orange',
- },
- {
- color: 'hsl(42 84% 61%)',
- type: 'yellow',
- },
- {
- color: 'hsl(240 5% 26%)',
- darkPrimaryColor: 'hsl(0 0% 98%)',
- primaryColor: 'hsl(240 5.9% 10%)',
- type: 'zinc',
- },
- {
- 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',
- },
- ];
- export const COLOR_PRESETS = [...BUILT_IN_THEME_PRESETS].slice(0, 7);
- export { BUILT_IN_THEME_PRESETS, SUPPORT_LANGUAGES };
- export type { BuiltinThemePreset };
|