DEV: refactor font sizing into css custom variables (PR #12746)

Refactor font sizing variables into CSS custom vars.

Allows any stylesheet to re-use CSS custom variables, regardless of how it’s imported or compiled.

GitHub

This pull request has been mentioned on Discourse Meta. There might be relevant details there:

Can we rename this file, maybe font_variables? We already have common/foundation/variables and it would be nice to avoid the filename clash.

Very nice, just a few minor comments.

I’m assuming the SCSS vars are now legacy, the goal is to start using the CSS vars in stylesheets directly, right?

Sure will do!

Yep, we can indeed start moving those over :+1:

1 Like

One thing to note, we might be carrying those variables for a while yet since we allow those variables to be used in themes and stylesheets, which is unfortunate but we can at least start renaming core vars!

1 Like