constants.ts 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. import type { BuiltinThemeType } from '@vben-core/typings';
  2. interface BuiltinThemePreset {
  3. color: string;
  4. darkPrimaryColor?: string;
  5. primaryColor?: string;
  6. type: BuiltinThemeType;
  7. }
  8. const BUILT_IN_THEME_PRESETS: BuiltinThemePreset[] = [
  9. {
  10. color: 'hsl(212 100% 45%)',
  11. type: 'default',
  12. },
  13. {
  14. color: 'hsl(245 82% 67%)',
  15. type: 'violet',
  16. },
  17. {
  18. color: 'hsl(347 77% 60%)',
  19. type: 'pink',
  20. },
  21. {
  22. color: 'hsl(42 84% 61%)',
  23. type: 'yellow',
  24. },
  25. {
  26. color: 'hsl(231 98% 65%)',
  27. type: 'sky-blue',
  28. },
  29. {
  30. color: 'hsl(161 90% 43%)',
  31. type: 'green',
  32. },
  33. {
  34. color: 'hsl(240 5% 26%)',
  35. darkPrimaryColor: 'hsl(0 0% 98%)',
  36. primaryColor: 'hsl(240 5.9% 10%)',
  37. type: 'zinc',
  38. },
  39. {
  40. color: 'hsl(181 84% 32%)',
  41. type: 'deep-green',
  42. },
  43. {
  44. color: 'hsl(211 91% 39%)',
  45. type: 'deep-blue',
  46. },
  47. {
  48. color: 'hsl(18 89% 40%)',
  49. type: 'orange',
  50. },
  51. {
  52. color: 'hsl(0 75% 42%)',
  53. type: 'rose',
  54. },
  55. {
  56. color: 'hsl(0 0% 25%)',
  57. darkPrimaryColor: 'hsl(0 0% 98%)',
  58. primaryColor: 'hsl(240 5.9% 10%)',
  59. type: 'neutral',
  60. },
  61. {
  62. color: 'hsl(215 25% 27%)',
  63. darkPrimaryColor: 'hsl(0 0% 98%)',
  64. primaryColor: 'hsl(240 5.9% 10%)',
  65. type: 'slate',
  66. },
  67. {
  68. color: 'hsl(217 19% 27%)',
  69. darkPrimaryColor: 'hsl(0 0% 98%)',
  70. primaryColor: 'hsl(240 5.9% 10%)',
  71. type: 'gray',
  72. },
  73. {
  74. color: '',
  75. type: 'custom',
  76. },
  77. ];
  78. export const COLOR_PRESETS = [...BUILT_IN_THEME_PRESETS].slice(0, 7);
  79. export { BUILT_IN_THEME_PRESETS };
  80. export type { BuiltinThemePreset };