TouchKit basic theming problems.

I’m using Netbeans & Maven.
I have some problems using CSS with Vaadin Toolkit.
Some basic problems…

It seems to ignore every line of my custom css, I don’t know why.

In “/VAADIN/themes/touchkit” I have 4 css and scss files.


Basically, I wanto to change the background of a VerticalLayout or a VerticalComponentGroup.

So I’ve put

@import "../valo/valo.scss"; 
@mixin touchkit {
    @include valo;

    // Insert your own theme rules here

in touchkit.scss

and then

final VerticalLayout content = new VerticalLayout();
        final VerticalComponentGroup content2 = new VerticalComponentGroup();


Nothing happen.

I’ve compiled the Theme
I’ve tryed to put the code in the other scss files.
I’ve downloaded ruby to install Sass.
I’ve recompiled the Theme, the project, clean, clena &Build, recompile so many times … and a lot of other action but the result is the same.
I’ve put this in the pom


Nothing happen.
It seems to ignore any css line… but it is a so basic action!!!
​It’s frustrating, it is totally a waste of time.

Frankly I hate css.
Is there any way to set this value ignoring css by java code ?
Like .setBackgroundColor ?

Nothing will happen: the Touchkit Servlet will always load an empty styles.css, regardless of what you put into that directory. Just see the Touchkit Servlet sources for details. ALSO, once you link Touchkit, the @Theme setting is completely ignored:
I have worked this around by not using the Vaadin theming engine; instead, I placed my styles.css into Java Resources and I am using
getPage().getStyles().add(new ClassResource(“styles.css”));
to force-load the theme.