test.scss:
$darkest: #304430;
$my-darkest: #304430;
@import “…/valo/valo.scss”;
@mixin test {
@include valo;
// Insert your own theme rules here
.v-button {
background-image: none;
background-color: $darkest;
color: yellow;
}
}
TestUI.java:
@Theme(“test”)
public class TestUI extends UI {
private static final String CLICK_ME = "Click me";
@WebServlet(value = "/*", asyncSupported = true)
@VaadinServletConfiguration(productionMode = false, ui = TestUI.class)
public static class Servlet extends VaadinServlet {
}
@Override
protected void init(VaadinRequest request) {
VerticalLayout layout = new VerticalLayout();
layout.setMargin(true);
Button button = new Button(CLICK_ME);
layout.addComponent(button);
setContent(layout);
}
}
If background-color of v-button is set to $my-darkest, everything is fine; but with darkest the rendered background-color is: #fafafa