main
Last change
on this file since 5d6f37a was 5d6f37a, checked in by Naum Shapkarovski <naumshapkarovski@…>, 7 weeks ago |
add customer
|
-
Property mode
set to
100644
|
File size:
1.6 KB
|
Rev | Line | |
---|
[5d6f37a] | 1 | // @mui
|
---|
| 2 | import { alpha } from '@mui/material/styles';
|
---|
| 3 | // theme
|
---|
| 4 | import { palette as themePalette } from 'src/theme/palette';
|
---|
| 5 |
|
---|
| 6 | // ----------------------------------------------------------------------
|
---|
| 7 |
|
---|
| 8 | export function presets(presetsColor: string) {
|
---|
| 9 | const primary = primaryPresets.find((i) => i.name === presetsColor);
|
---|
| 10 |
|
---|
| 11 | const theme = {
|
---|
| 12 | palette: {
|
---|
| 13 | primary,
|
---|
| 14 | },
|
---|
| 15 | customShadows: {
|
---|
| 16 | primary: `0 8px 16px 0 ${alpha(`${primary?.main}`, 0.24)}`,
|
---|
| 17 | },
|
---|
| 18 | };
|
---|
| 19 |
|
---|
| 20 | return theme;
|
---|
| 21 | }
|
---|
| 22 |
|
---|
| 23 | // ----------------------------------------------------------------------
|
---|
| 24 |
|
---|
| 25 | const palette = themePalette('light');
|
---|
| 26 |
|
---|
| 27 | export const primaryPresets = [
|
---|
| 28 | // DEFAULT
|
---|
| 29 | {
|
---|
| 30 | name: 'default',
|
---|
| 31 | ...palette.primary,
|
---|
| 32 | },
|
---|
| 33 | // CYAN
|
---|
| 34 | {
|
---|
| 35 | name: 'cyan',
|
---|
| 36 | lighter: '#CCF4FE',
|
---|
| 37 | light: '#68CDF9',
|
---|
| 38 | main: '#078DEE',
|
---|
| 39 | dark: '#0351AB',
|
---|
| 40 | darker: '#012972',
|
---|
| 41 | contrastText: '#FFFFFF',
|
---|
| 42 | },
|
---|
| 43 | // PURPLE
|
---|
| 44 | {
|
---|
| 45 | name: 'purple',
|
---|
| 46 | lighter: '#EBD6FD',
|
---|
| 47 | light: '#B985F4',
|
---|
| 48 | main: '#7635dc',
|
---|
| 49 | dark: '#431A9E',
|
---|
| 50 | darker: '#200A69',
|
---|
| 51 | contrastText: '#FFFFFF',
|
---|
| 52 | },
|
---|
| 53 | // BLUE
|
---|
| 54 | {
|
---|
| 55 | name: 'blue',
|
---|
| 56 | lighter: '#D1E9FC',
|
---|
| 57 | light: '#76B0F1',
|
---|
| 58 | main: '#2065D1',
|
---|
| 59 | dark: '#103996',
|
---|
| 60 | darker: '#061B64',
|
---|
| 61 | contrastText: '#FFFFFF',
|
---|
| 62 | },
|
---|
| 63 | // ORANGE
|
---|
| 64 | {
|
---|
| 65 | name: 'orange',
|
---|
| 66 | lighter: '#FEF4D4',
|
---|
| 67 | light: '#FED680',
|
---|
| 68 | main: '#fda92d',
|
---|
| 69 | dark: '#B66816',
|
---|
| 70 | darker: '#793908',
|
---|
| 71 | contrastText: palette.grey[800],
|
---|
| 72 | },
|
---|
| 73 | // RED
|
---|
| 74 | {
|
---|
| 75 | name: 'red',
|
---|
| 76 | lighter: '#FFE3D5',
|
---|
| 77 | light: '#FFC1AC',
|
---|
| 78 | main: '#FF3030',
|
---|
| 79 | dark: '#B71833',
|
---|
| 80 | darker: '#7A0930',
|
---|
| 81 | contrastText: '#FFFFFF',
|
---|
| 82 | },
|
---|
| 83 | ];
|
---|
Note:
See
TracBrowser
for help on using the repository browser.