Letting user choose CSS rules - should I use handlebars or?

My app is custom brandable, meaning people can save their color, eg. “#ff00ee”, which then restyles the app.

The way I’m currently achieving this is inline styles, ie:

<a href="/link/" class="view-link" style="color: {{userColor}}">

This seems a really inefficient and hacky way to do it - is there a way to achieve the same without using inline styles, eg. with stylus?