Instantly share code, notes, and snippets.

Embed
What would you like to do?
Managing your CSS (GSS) files with variables and a theme
// src/main/java/com/company/project/client/resources/AppResources.java
package com.company.project.client.resources;
import com.google.gwt.resources.client.ClientBundle;
import com.google.gwt.resources.client.CssResource;
public interface AppResources extends ClientBundle {
interface Style extends CssResource {
// Your classes here
}
// We only need to source the theme file
@Source({"css/theme.gss",
"css/style.gss"})
Style style();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment