Docs

Documentation versions (currently viewingVaadin 25)
Documentation translations (currently viewingEnglish)

Icon Styling

Styling API reference for the Icon component.

Style Properties

The following style properties can be used in CSS stylesheets to customize the appearance of this component.

To apply values to these properties globally in your application UI, place them in a CSS block using the html {…​} selector. See Component Style Properties for more information on style properties.

Property Supported by

--vaadin-icon-size

Aura, Lumo

--vaadin-icon-visual-size

Aura, Lumo

--vaadin-icon-color (SVG icons)

Aura, Lumo

color (Font icons)

Aura, Lumo

CSS Selectors

The following CSS selectors can be used in stylesheets to target the various parts and states of the component. See the Styling documentation for more details on how to style components.

Root element

vaadin-icon