Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 

106 Zeilen
2.2 KiB

  1. // material-ui
  2. import { createTheme } from '@mui/material/styles';
  3. // third-party
  4. import { presetPalettes } from '@ant-design/colors';
  5. // project import
  6. import ThemeOption from './theme';
  7. // ==============================|| DEFAULT THEME - PALETTE ||============================== //
  8. const Palette = (mode) => {
  9. const colors = presetPalettes;
  10. const greyPrimary = [
  11. '#ffffff',
  12. '#fafafa',
  13. '#f5f5f5',
  14. '#f0f0f0',
  15. '#d9d9d9',
  16. '#bfbfbf',
  17. '#8c8c8c',
  18. '#595959',
  19. '#262626',
  20. '#141414',
  21. '#000000'
  22. ];
  23. const greyAscent = ['#fafafa', '#bfbfbf', '#434343', '#1f1f1f'];
  24. const greyConstant = ['#fafafb', '#e6ebf1'];
  25. colors.grey = [...greyPrimary, ...greyAscent, ...greyConstant];
  26. const paletteColor = ThemeOption(colors);
  27. return createTheme({
  28. palette: {
  29. mode,
  30. common: {
  31. black: '#000',
  32. white: '#fff'
  33. },
  34. ...paletteColor,
  35. text: {
  36. primary: paletteColor.grey[700],
  37. secondary: paletteColor.grey[500],
  38. disabled: paletteColor.grey[400]
  39. },
  40. action: {
  41. disabled: paletteColor.grey[300]
  42. },
  43. divider: paletteColor.grey[200],
  44. background: {
  45. paper: paletteColor.grey[0],
  46. default: paletteColor.grey.A50
  47. },
  48. gray: {
  49. main: '#777',
  50. light: '#777',
  51. dark: '#777',
  52. contrastText: '#FFF',
  53. },
  54. white: {
  55. main: '#fff',
  56. light: '#fff',
  57. dark: '#eee',
  58. contrastText: '#222',
  59. },
  60. ochre: {
  61. main: '#E3D026',
  62. light: '#E9DB5D',
  63. dark: '#A29415',
  64. contrastText: '#242105',
  65. },
  66. red: {
  67. main: '#f05b5b',
  68. light: '#ff5e5e',
  69. dark: '#c91616',
  70. contrastText: '#fff',
  71. },
  72. pink: {
  73. main: '#ed138a',
  74. light: '#ff5e5e',
  75. dark: '#ba1c73',
  76. contrastText: '#fff',
  77. },
  78. orange: {
  79. main: '#ed9740',
  80. light: '#ff5e5e',
  81. dark: '#b0671e',
  82. contrastText: '#fff',
  83. },
  84. iAmSmart: {
  85. main: '#2B7366',
  86. light: '#ff5e5e',
  87. dark: '#b0671e',
  88. contrastText: '#fff',
  89. },
  90. backgroundColor: {
  91. default: '#F2F2F2'
  92. }
  93. }
  94. });
  95. };
  96. export default Palette;