Skip to content

Instantly share code, notes, and snippets.

@jasonlemay
Created May 14, 2015 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasonlemay/e95afe2278617f6db81d to your computer and use it in GitHub Desktop.
Save jasonlemay/e95afe2278617f6db81d to your computer and use it in GitHub Desktop.
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