Enabling global styles to handle custom font declarations #23204
Labels
CSS Styling
Related to editor and front end styles, CSS-specific issues.
[Feature] Themes
Questions or issues with incorporating or styling blocks in a theme.
Global Styles
Anything related to the broader Global Styles efforts, including Styles Engine and theme.json
To use a custom font, a theme today must do the following:
@font-face
declaration in the theme’s stylesheetAs the current global styles mechanism is described, I think the steps would be:
@font-face
declaration in the theme’s stylesheettheme.json
in presets and styles, something like:{ global: { presets: { fonts: [ "my font", "other font", ... ] } } }
Is it possible that
theme.json
processes font declarations, making at least step 2 unnecessary? I think this moves slightly beyond generating a CSS custom property.cc @carolinan
The text was updated successfully, but these errors were encountered: