> "blue-500" becomes --blue-500. That's it.
Of course it's not "it".
Now in every class that needs it, you also need to add
{
... other styles...
background-color: var(--blue-500);
}
And then you need to apply that class