Theme
Typography

Typography

You can install it by typing the below command in your terminal:


_10
npm install @fontsource/inter

or


_10
yarn add @fontsource/inter

theme/index.js

_11
import { createTheme } from "@mui/material";
_11
_11
// font variants
_11
import "@fontsource/inter/400.css";
_11
import "@fontsource/inter/500.css";
_11
import "@fontsource/inter/600.css";
_11
import "@fontsource/inter/700.css";
_11
_11
let theme = createTheme({
_11
typography: { fontFamily: "'Inter', sans-serif" },
_11
});

Reference