Skip to content

Commit 0b337db

Browse files
committed
feat: Use Aura
There is no class with @NpmPackage yet so it is added manually for now
1 parent aeb8db0 commit 0b337db

File tree

3 files changed

+7
-12
lines changed

3 files changed

+7
-12
lines changed

src/main/frontend/themes/my-theme/styles.css renamed to src/main/frontend/styles.css

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
/*
2-
CSS styling examples for the Vaadin app.
3-
4-
Visit https://vaadin.com/docs/styling/application-theme/ for more information.
5-
*/
1+
@import '@vaadin/aura/aura.css';
62

73
/* Example: CSS class name to center align the content . */
84
.centered-content {

src/main/frontend/themes/my-theme/theme.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/main/java/org/vaadin/example/Application.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
package org.vaadin.example;
22

3-
import com.vaadin.flow.component.page.AppShellConfigurator;
4-
import com.vaadin.flow.server.PWA;
5-
import com.vaadin.flow.theme.Theme;
63
import org.springframework.boot.SpringApplication;
74
import org.springframework.boot.autoconfigure.SpringBootApplication;
85

6+
import com.vaadin.flow.component.dependency.CssImport;
7+
import com.vaadin.flow.component.dependency.NpmPackage;
8+
import com.vaadin.flow.component.page.AppShellConfigurator;
9+
import com.vaadin.flow.server.PWA;
10+
911
/**
1012
* The entry point of the Spring Boot application.
1113
*
@@ -15,7 +17,7 @@
1517
*/
1618
@SpringBootApplication
1719
@PWA(name = "Project Base for Vaadin with Spring", shortName = "Project Base")
18-
@Theme("my-theme")
20+
@CssImport("./styles.css")
1921
public class Application implements AppShellConfigurator {
2022

2123
public static void main(String[] args) {

0 commit comments

Comments
 (0)