Skip to content

Instantly share code, notes, and snippets.

@forrestwilkins
Created June 19, 2022 18:52
Show Gist options
  • Save forrestwilkins/d3ee4a66e1df00146eba6ebf8ac3e972 to your computer and use it in GitHub Desktop.
Save forrestwilkins/d3ee4a66e1df00146eba6ebf8ac3e972 to your computer and use it in GitHub Desktop.
MUI custom theme boilerplate
import { createTheme, Theme } from "@mui/material/styles";
const initialTheme = createTheme({
typography: {
fontFamily: "Inter",
},
palette: {
background: {},
},
});
const theme: Theme = createTheme(initialTheme, {
components: {
MuiPaper: {
styleOverrides: {
root: {},
},
},
},
});
export const BLACK = theme.palette.grey[900];
export const WHITE = theme.palette.grey[100];
export default theme;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment