Font Family
This docs cover how can you add or update fant family for specific theme
// @next
import { Archivo, Figtree, Roboto } from 'next/font/google'; // Add new font family
// Create variable for font family
const fontRobot = Roboto({ subsets: ['latin'], weight: ['100', '300', '400', '500', '700', '900'] });
// Export the new font family
export const FONT_ROBOTO: string = fontRobot.style.fontFamily;import { Theme } from '@mui/material/styles';
// @project
import { FONT_ROBOTO } from '@/config'; // refer new font family
export default function typography(theme: Theme) {
return {
fontFamily: FONT_ROBOTO, // change font
// other settings
};
}Last updated