Many frameworks seek to abstract away from HTML (custom tags, JSFs component system) in an effort to make dealing with that particular kettle of fish easier.
Is there an
You can always use a template engine to add variables and calculated fields to your CSS files.
template engine
variables
calculated fields