Closed peterkos closed 3 years ago
Hmmm, the code you pasted here is actually the production version generated by SCSS.
In our codebase, it looks like this:
and the value of SCSS variable $fontFamilyHeadings
comes from config.toml (via Hugo's resources.ExecuteAsTemplate
function)
So it's easy-to-access for users already.
Also, the font-family
related code in MemE all categorized into _font-family.scss
, which improves the maintainability. Though we might repeat the code a bit (the selectors).
The CSS variables you mentioned here, maybe we can use it to replace the SCSS variables, so that user can easily customize font-family
s on browser via JavaScript. But guess that's another new feature for MemE.
It'd be nice if fonts were set via a variable, e.g.:
(rough list)
Currently, to change the fonts, it's a bit messy:
(And that's only a subset of the selectors!)