With a fresh install of the latest roots/sage
I am configuring a custom font by importing a theme.css
file into editor.css
so I can share it across both frontend and backend. Here’s the content of theme.css
:
@theme {
--font-sans: 'Nudica', sans-serif;
}
@font-face {
font-family: 'Nudica';
font-style: normal;
font-weight: 300;
src: url('../fonts/nudica-light-webfont.woff') format('woff');
}
In admin, regular page edit views are fine and the custom fonts work perfectly.
This works either running hot or after a build (thanks for that fix).
However, they don’t load in widgets.php
:
Is there some reason for this?