Dynamic button colors based on variables

It would be nice to change the button colors by passing in a variable like this: {{button_color_light}}