All files / src theme.ts

0% Statements 0/1
100% Branches 0/0
100% Functions 0/0
0% Lines 0/1

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139                                                                                                                                                                                                                                                                                     
import { deepmerge } from '@mui/utils';
import { createTheme } from '@mui/material/styles';
import TerrawareTheme from './style-dictionary-dist/TerrawareTheme';
 
declare module '@mui/material/styles/createPalette' {
  interface Palette {
    neutral: Palette['grey'];
    state: {
      5: React.CSSProperties['color'];
    };
    accent: {
      1: React.CSSProperties['color'];
      2: React.CSSProperties['color'];
      3: React.CSSProperties['color'];
      4: React.CSSProperties['color'];
    };
    blue: {
      600: React.CSSProperties['color'];
    };
    red: {
      50: React.CSSProperties['color'];
      600: React.CSSProperties['color'];
    };
    green: {
      50: React.CSSProperties['color'];
      600: React.CSSProperties['color'];
    };
    gray: {
      200: React.CSSProperties['color'];
      800: React.CSSProperties['color'];
    };
  }
  interface PaletteOptions {
    neutral: PaletteOptions['grey'];
    state: {
      5: React.CSSProperties['color'];
    };
    accent: {
      1: React.CSSProperties['color'];
      2: React.CSSProperties['color'];
      3: React.CSSProperties['color'];
      4: React.CSSProperties['color'];
    };
    blue: {
      600: React.CSSProperties['color'];
    };
    red: {
      50: React.CSSProperties['color'];
      600: React.CSSProperties['color'];
    };
    green: {
      50: React.CSSProperties['color'];
      600: React.CSSProperties['color'];
    };
    gray: {
      200: React.CSSProperties['color'];
      800: React.CSSProperties['color'];
    };
  }
}
 
const defaultTheme = {
  breakpoints: {
    values: {
      xs: 0,
      sm: 600,
      md: 900,
      lg: 1200,
      xl: 1400, // custom xl to transition background on Home page
    },
  },
  typography: {
    fontFamily: 'Inter',
  },
  components: {
    MuiCssBaseline: {
      styleOverrides: {
        '*::-webkit-scrollbar': {
          WebkitAppearance: 'none',
          width: '4px',
          height: '7px',
          backgroundColor: '#B2AB9340',
        },
        '*::-webkit-scrollbar-thumb': {
          borderRadius: '4px',
          backgroundColor: '#6C757D',
        },
        body: {
          color: '#3a4445',
        },
      },
    },
  },
  palette: {
    primary: {
      main: '#0067C8',
    },
    secondary: {
      main: '#D40002',
    },
    state: {
      5: '#CD5B38',
    },
    accent: {
      1: '#315CAF',
      2: '#EF9644',
      3: '#CD5B38',
      4: '#3F96E6',
    },
    neutral: {
      50: '#F8F9FA',
      100: '#F3F4F6',
      200: '#E9ECEF',
      400: '#CED4DA',
      500: '#ADB5BD',
      600: '#6C757D',
      700: '#495057',
      800: '#343A40',
    },
    blue: {
      600: '#0067C8',
    },
    red: {
      50: '#FFF1F1',
      600: '#D40002',
    },
    green: {
      50: '#D6FDE5',
      600: '#27764E',
    },
    gray: {
      200: '#CAD2D3',
      800: '#3A4445',
    },
  },
};
 
export default createTheme(deepmerge(defaultTheme, TerrawareTheme));