naive-theme.ts 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. import { GlobalThemeOverrides } from 'naive-ui'
  2. const themeOverrides: GlobalThemeOverrides = {
  3. common: {
  4. primaryColor: '#2791FEFF',
  5. primaryColorHover: '#67B2FEFF',
  6. primaryColorPressed: '#1F74CBFF',
  7. primaryColorSuppl: '#93C8FEFF',
  8. errorColorHover: '#EC787BFF',
  9. errorColor: '#E8575AFF',
  10. errorColorPressed: '#B94548FF',
  11. errorColorSuppl: '#EE898BFF',
  12. warningColor: '#FAAD38FF',
  13. warningColorPressed: '#C88A2CFF',
  14. textColorBase: '#17233EFF',
  15. textColor1: 'rgba(80, 90, 110, 1)',
  16. textColor2: 'rgba(128, 134, 148, 1)',
  17. textColor3: 'rgba(196, 200, 206, 1)',
  18. placeholderColor: 'rgba(196, 200, 206, 1)',
  19. iconColor: 'rgba(196, 200, 206, 1)',
  20. iconColorHover: 'rgba(103, 178, 254, 1)',
  21. iconColorPressed: 'rgba(31, 116, 203, 1)',
  22. iconColorDisabled: 'rgba(196, 200, 206, 1)',
  23. dividerColor: 'rgba(220, 222, 226, 1)',
  24. borderColor: 'rgba(196, 200, 206, 1)',
  25. closeIconColor: 'rgba(80, 90, 110, 1)',
  26. closeIconColorHover: 'rgba(103, 178, 254, 1)',
  27. closeIconColorPressed: 'rgba(31, 116, 203, 1)',
  28. closeColorHover: 'rgba(0, 0, 0, 0.1)',
  29. closeColorPressed: 'rgba(0, 0, 0, 0.15)',
  30. scrollbarColor: 'rgba(126, 133, 160, 1)',
  31. scrollbarColorHover: 'rgba(103, 178, 254, 1)',
  32. tagColor: '#F5F5F5FF',
  33. inputColorDisabled: 'rgba(233, 234, 236, 1)',
  34. fontSize: '14px',
  35. fontSizeMini: '12px',
  36. fontSizeTiny: '12px',
  37. fontSizeSmall: '14px',
  38. fontSizeMedium: '14px',
  39. fontSizeLarge: '15px',
  40. fontSizeHuge: '16px'
  41. },
  42. DatePicker: {
  43. panelColor: 'rgba(3,20,26,0.95)',
  44. panelTextColor: 'rgba(255,255,255,0.8)',
  45. calendarDaysTextColor: 'rgba(255,255,255,0.8)',
  46. calendarTitleTextColor: 'rgba(255,255,255,0.8)',
  47. calendarTitleColorHover: '#183742',
  48. panelHeaderDividerColor: '#164352',
  49. calendarDaysDividerColor: '#164352',
  50. panelActionDividerColor: '#164352',
  51. itemColorActive: '#1AB99B',
  52. itemColorHover: '#146371'
  53. },
  54. TimePicker: {
  55. panelColor: 'rgba(3, 20, 26, 0.95)',
  56. panelDividerColor: 'rgb(239, 239, 245)',
  57. itemTextColor: 'rgba(255, 255, 255, 0.8)',
  58. itemTextColorActive: '#1AB99B',
  59. itemColorHover: '#146371'
  60. },
  61. Checkbox: {
  62. colorChecked: '#1ab99bFF',
  63. textColor: '#fff'
  64. },
  65. Notification: {
  66. iconColorSuccess: '#1AB99BFF',
  67. iconColorError: '#E8575AFF',
  68. color: '#12363FFF',
  69. textColor: 'rgba(255, 255, 255, 1)',
  70. descriptionTextColor: 'rgba(255, 255, 255, 1)',
  71. closeIconColor: 'rgba(255, 255, 255, 1)',
  72. borderRadius: '0'
  73. },
  74. Progress: {
  75. fillColor: 'linear-gradient(to right, #5ad8a6, rgba(0,212,255,1));'
  76. },
  77. Table: {
  78. thColor: '#1f426b',
  79. thTextColor: '#fff',
  80. tdColor: '#07132b',
  81. tdPaddingLarge: '10px',
  82. tdColorStriped: '#0f2239',
  83. tdTextColor: '#81D3F8',
  84. fontSizeLarge: 18
  85. },
  86. DataTable: {
  87. thColor: '#1f426b',
  88. thTextColor: '#fff',
  89. tdColor: '#07132b',
  90. tdPaddingLarge: '10px',
  91. tdColorStriped: '#0f2239',
  92. tdTextColor: '#81D3F8',
  93. fontSizeLarge: '18px',
  94. borderColor: 'transparent',
  95. thColorHover: 'transparent',
  96. tdColorHover: '#0f2239'
  97. },
  98. Pagination: {
  99. buttonColor: 'rgba(21,84,107,0.4)',
  100. buttonColorHover: 'rgba(21,84,107,0.4)',
  101. buttonColorPressed: 'rgba(21,84,107,0.4)',
  102. buttonBorder: '1px solid rgba(21,84,107,0.4)',
  103. buttonBorderHover: '1px solid rgba(21,84,107,0.4)',
  104. buttonBorderPressed: '1px solid rgba(21,84,107,0.4)',
  105. buttonIconColor: '#fff',
  106. buttonIconColorHover: '#fff',
  107. buttonIconColorPressed: '#fff',
  108. itemTextColor: '#fff',
  109. itemTextColorHover: '#fff',
  110. itemTextColorPressed: '#fff',
  111. itemTextColorActive: '#fff',
  112. itemColorDisabled: 'rgba(21,84,107,0.8)',
  113. itemBorderActive: '1px solid rgba(21,84,107,1)',
  114. itemBorderDisabled: '1px solid rgba(21,84,107,1)',
  115. itemTextColorDisabled: 'rgba(26, 223, 180, 0.1)',
  116. jumperTextColor: '#fff'
  117. }
  118. }
  119. export default themeOverrides