Jak dodać rodzinę czcionek w materialnym interfejsie użytkownika
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