theme.ts 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. import type { ThemeConfig } from 'antd';
  2. export const brandColors = {
  3. primary: '#4F46E5',
  4. primaryHover: '#4338CA',
  5. primarySoft: '#EEF2FF',
  6. ink: '#0F172A',
  7. textSecondary: '#64748B',
  8. textMuted: '#94A3B8',
  9. canvas: '#F4F6FB',
  10. surface: '#FFFFFF',
  11. border: '#E2E8F0',
  12. success: '#16A34A',
  13. warning: '#D97706',
  14. danger: '#DC2626',
  15. chartPrimary: '#4F46E5',
  16. chartSuccess: '#16A34A',
  17. chartDanger: '#DC2626',
  18. chartWarning: '#D97706',
  19. chartTrack: '#DBEAFE'
  20. } as const;
  21. export const mailhubTheme: ThemeConfig = {
  22. token: {
  23. colorPrimary: brandColors.primary,
  24. colorSuccess: brandColors.success,
  25. colorWarning: brandColors.warning,
  26. colorError: brandColors.danger,
  27. colorBgLayout: brandColors.canvas,
  28. colorBgContainer: brandColors.surface,
  29. colorBorderSecondary: brandColors.border,
  30. colorText: brandColors.ink,
  31. colorTextSecondary: brandColors.textSecondary,
  32. borderRadius: 10,
  33. borderRadiusLG: 14,
  34. fontFamily:
  35. 'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif'
  36. },
  37. components: {
  38. Card: {
  39. borderRadiusLG: 14
  40. },
  41. Table: {
  42. cellPaddingBlock: 14,
  43. cellPaddingInline: 16
  44. },
  45. Button: {
  46. controlHeight: 36,
  47. borderRadius: 10
  48. },
  49. Menu: {
  50. darkItemBg: brandColors.ink,
  51. darkSubMenuItemBg: brandColors.ink,
  52. darkItemSelectedBg: 'rgba(79, 70, 229, 0.22)',
  53. darkItemSelectedColor: '#E0E7FF',
  54. darkItemHoverBg: 'rgba(255, 255, 255, 0.06)',
  55. itemBorderRadius: 10
  56. }
  57. }
  58. };