Font chooser as a site setting. Does it make sense this way? How do we get css to be recompiled?
To avoid recompiling CSS, how about using the site setting to generate a CSS variable on the
<html> tag. Now that we’ve dropped IE11, browser support should be good.
So in application.html.erb we would have something like
<html ... style="--font-setting: <% SiteSetting.font %>;">
And then in the variables.scss file we do something like:
Interesting! I’ll give it a try.