Skip to content

Instantly share code, notes, and snippets.

@Lahirutech
Created February 5, 2023 16:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Lahirutech/a88db4d0f4fb06d6dfcb3d33efdebcb3 to your computer and use it in GitHub Desktop.
Save Lahirutech/a88db4d0f4fb06d6dfcb3d33efdebcb3 to your computer and use it in GitHub Desktop.
import { Roboto } from '@next/font/google';
import { createTheme } from '@mui/material/styles';
import { red } from '@mui/material/colors';
export const roboto = Roboto({
weight: ['300', '400', '500', '700'],
subsets: ['latin'],
display: 'swap',
fallback: ['Helvetica', 'Arial', 'sans-serif'],
});
// Create a theme instance.
const theme = createTheme({
palette: {
primary: {
main: '#556cd6',
},
secondary: {
main: '#19857b',
},
error: {
main: red.A400,
},
},
typography: {
fontFamily: roboto.style.fontFamily,
},
});
export default theme;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment