Como adicionar a família de fontes na interface do usuário material
import React from "react";
import { createTheme, ThemeProvider } from "@material-ui/core/styles";
import { Typography } from "@material-ui/core";
const theme = createTheme({
typography: {
fontFamily: [
"Nunito",
"Roboto",
"Helvetica Neue",
"Arial",
"sans-serif"
].join(",")
}
});
export default function App() {
return (
<ThemeProvider theme={theme}>
<Typography variant="h3">hello world</Typography>
</ThemeProvider>
);
}
DevAndR