I\'d like to say, in a single, centralized location,
@def mainColor = #f00;
and then, in all of my other css files, refer to mainColo
As far as I know, this is your only option:
style.css
@def mainColor #f00;
*.ui.xml
.widget{ color: mainColor; }
The downside to this is the relative path. Each ui.xml will require a different src path.
Alternatively, if you dont mind using a Constants.java file (instead of css),
you could use @eval
@eval mainColor com.myproject.client.Styles.INSTANCE.mainColor();
.widget{ color: mainColor; }