Skip to content

Java wrapper enabling Material Design Lite look and feel in GWT projects.

License

Notifications You must be signed in to change notification settings

ilyes4j/material-design-lite-gwt

Repository files navigation

material-design-lite-gwt

Build Status Maven Central License Issues

mdl-gwt is a Java wrapper enabling material design lite look and feel in GWT projects.

Showcases

1. Last build

You can take a peek at the upcoming release being cooked over here.

2. Releases

Getting started

1. Setup a GWT project

It is assumed that you already setup a GWT project. If not, this tutorial might be of help.

2. Setup the host page

Include material design lite in your host page.

<head>
  <link rel="stylesheet" href="https://code.getmdl.io/1.1.1/material.blue_grey-red.min.css">

  <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">

  <script src="https://storage.googleapis.com/code.getmdl.io/1.1.1/material.min.js"></script>
</head>

3. Include the dependency in your pom.xml

Include the mdl-gwt library as a dependency in your Maven project.

<dependency>
  <groupId>com.github.ilyes4j</groupId>
  <artifactId>material-design-lite-gwt-lib</artifactId>
  <version>0.1.0</version>
  <scope>provided</scope>
</dependency>

4. Import the library in your GWT module

Finally, make sure to inherit the library GWT module in the GWT module of the project.

<module>
  <inherits name="com.github.ilyes4j.gwt.mdl.Mdl" />
</module>

License

Mohamed ilyes Dimassi, 2016. Licensed under the Apache-2 license.