CSSLayout setStyleName() and removeStyleName() cannot remove existing style

Is it possible to remove the Vaadin styles for the CSSLayout. I tried setStyleName() and removeStyleName(), but I still have v-csslayout v-layout.

Thanks in advance.

setStyleName and removeStyleName just set and remove Secondary StyleNames. These will not change the v-csslayout and v-layout one. To change them you should use:
I’m not sure if this will change everything but it should work better then setstylename.