I have a font-face defined in the index.css file. I am looking to move this configuration from the CSS file to a theme.js file created as part of my MUI library implementation. How can I achieve this?
// index.css
@font-face {
font-family: 'ATTAleckSans_W_Lt';
src: url('./fonts/ATTAleckSans_W_Lt.woff2');
}
// theme.js
const theme = createTheme({
// Place @font-face settings here.
})
CodeSandbox Demo