Created
June 19, 2022 18:52
-
-
Save forrestwilkins/d3ee4a66e1df00146eba6ebf8ac3e972 to your computer and use it in GitHub Desktop.
MUI custom theme boilerplate
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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