Jieiku / abridge

Fast & Lightweight Zola Theme
https://abridge.pages.dev/
MIT License
147 stars 41 forks source link

Replace hardcoded font family list in CSS vars with sass vars #109

Closed eugenesvk closed 1 year ago

eugenesvk commented 1 year ago

Following our conversation https://github.com/Jieiku/abridge/issues/17 (though note that the 3rd benefit will only materialize with more refactoring towards use/mixins)

Allows (in the future after all the use refactor is done) the user to

or you can use interpolation in the property name so that Sass's special custom property parsing behavior (which is necessary for CSS compatibility) doesn't activate:

$font-family: "Font with Spaces and 33", serif
:root
#{--font-family}: $font-family

Originally posted by @eugenesvk in https://github.com/Jieiku/abridge/issues/17#issuecomment-1529401135