Label styles

Hi guys! I want to write a title text using a Label.

For example, in my styles.css I have this code:
vaadin-label.title {
background-color: blue;

And my java code:
Label label = new Label(“This is a title”);

This code not working, it doesn’t do anything. I think vaadin-label maybe doesn’t exist. Does anyone know how to do this? How can I do to set a css style for the label?..

Label is not meant to be used to display text that’s not associated with a field. You should be using span, div, or other container. Those are (as well as label) native html elements that can be styled without the vaadin-* name

If it’s a title the best component might be a header (H1, H2 ,…)