Use @external @ -rule to disable obfuscation for the given CSS class names: http://code.google.com/webtoolkit/doc/latest/DevGuideClientBundle.html#External_and_legacy_scopes You can, for example, put the following in the CssResource :
@external .gwt-*;
But IMO, it's best to use instead of addStyleName or setStyleName (or in UiBinder addStyleNames="β¦" or styleName="β¦" respectively) on widgets. And if you want to customize a theme, copy it first as your theme and set up your own copy (rather than redefining styles using the CSS cascade). As an added benefit, you will have lighter style sheets, so they will load faster for your users, and βfaster is better.β
As a side note, UiBinder generates an implicit ClientBundle , where each <ui:style> element generates an implicit CssResource (and automatically calls ensureInjected() on it); therefore there is not much difference between <ui:style> and a CssResource .
source share