i want to load a local font in my site, where im using theme-ui. My theme-ui config looks like this:
const theme = {
fonts: {
body: 'CircularBlack',
heading: 'CircularBlack',
monospace: 'Menlo, monospace',
},
...
"CircularBlack" is my custom font. But I have no idea how to tell theme-ui to use this font.
I do it like this
In this approach, we install fonts as packages using this website.
// _app.tsx