A collection of CSS styles to use with GWT 2 and J2CL, with no dependency on gwt-user
(besides the Java Runtime Emulation).
-
Add the dependency to your build.
For Maven:
<dependency> <groupId>org.gwtproject.dom</groupId> <artifactId>gwt-dom-style-definitions</artifactId> <version>HEAD-SNAPSHOT</version> </dependency>
For Gradle:
implementation("org.gwtproject.dom:gwt-dom-style-definitions:HEAD-SNAPSHOT")
-
Update your GWT module to use
<inherits name="org.gwtproject.dom.style.Style" />
To build the module:
- run
mvn clean verify
on the parent directory. This will build the artifact and run tests against the JVM, J2CL, and GWT2.
GWT DOM Style Definitions requires GWT 2.8.2 or greater!
GWT DOM Style Definitions does not depend on any other module.