Skip to content
Version:

Install ​

Theme ​

xml
<dependency>
    <groupId>de.mate_ds</groupId>
    <artifactId>mate-flow-theme</artifactId>
</dependency>

Tokens ​

xml
<dependency>
    <groupId>de.mate_ds</groupId>
    <artifactId>mate-token-flow</artifactId>
</dependency>

Import ​

Theme ​

In your application entrypoint:

java
import de.mate_ds.flow.component.theme.MateTheme;

@Uses(MateTheme.class)
public class App implements AppShellConfigurator {
    ...
}

For Spring Boot the appropriate annotation class would be the one annotated with @SpringBootApplication.

Tokens ​

java
import de.mate_ds.flow.component.token.Token;

Usage ​

Tokens ​

Instead of creating inline CSS var strings use Token constants. All CSS variables from @mate/theme/gen NPM package can be found there as Java pendants.

java
component.getStyle().set("background-color", Token.MateBackgroundBase);