Cómo agregar la familia de fuentes en la interfaz de usuario 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