About the CSSInject category

CSSInject: Easily inject custom CSS to you application.

CSSInject doesn’t provide any helpers to easily add custom styles directly to some component. It’s just a very simplistic way of attaching additional CSS to the same UI where the CSSInject component is attached. A new tag is appended to the page’s head-element.

You can also attach link-elements defined by regular Vaadin Resources, such as ThemeResource or ClassResource, making it very handy for packaging themes for you server-side-only add-on components.