Let's take a look at how the variable property works for our tokens:
Let's break this down. So, we know that this will generate some handy classes for us, e.g:
But what if we wanted to sync our classes with some handy CSS variables? Well, including the variable property will auto-generate a handy CSS variable, like so:
This gives us great control over our CSS. Blyth doesn't dictate how you want to code, it just gives you the toolkit to do so.
Now, what if we only need CSS variables? Well, just exclude the
property key and it'll just generate CSS variables. Magic!