Open
Description
With #970 - our browser support targets all support css custom properties. Should we revise our build system to convert the variables
option to a set of :root
CSS properties? Would save us from needing to resolve every variable in our CSS at build time.
Are there costs to doing this? Likely compressed file size would not be impacted but could time to first paint take a hit? Here's an article on CSS variable performance, but it exclusively discusses the performance of changing variables at runtime: https://lisilinhart.info/posts/css-variables-performance/ and after some quick looking, couldn't find any existing documentation of the performance cost of using variables.