Question: vaadin how to add css?
Answer: Put the CSS file in the src/main/webapp/VAADIN/* directory and use @StyleSheet("vaadin://style.css") . Put the css file in the src/main/resources/com/example/demo/ directory and use @StyleSheet("style. css").