How to style component in Vaadin 10 using theme

Hi, in Vaadin 8 you could style component e.g. Button by adding style and using ValoTheme static final property.

Button viewBtn = new Button("Detail", VaadinIcons.EYE);
viewBtn.addStyleName(ValoTheme.BUTTON_ICON_ONLY);
viewBtn.addStyleName(ValoTheme.BUTTON_BORDERLESS);

How can you achieve this in Vaadin 10?

These were added in v11 (Flow 1.1). You can read the documentation here: https://github.com/vaadin/flow-and-components-documentation/blob/master/documentation/theme/using-component-themes.asciidoc#using-vaadin-theme-variants