Is there anyway to dynamically change/insert css the way we do with HTML?

Say I want to select the “color” for a new category of a blog. Do I have to do all of that inline?