Documentation versions (currently viewingVaadin 23)
Check out the new styling guides

Lumo Sizing and Spacing

This page lists Lumo size and space CSS Custom Properties, which you can use to apply consistent sizing and spacing across your application.

Note that there is a built-in Lumo compact mode variant that you can enable to reduce the font size and the sizing and spacing of all components, allowing you to place more components on the screen.


Use these properties to adjust the sizing of regular elements such as buttons, text fields, and list items.

Medium is the standard size, and it is primarily used to size buttons, text fields and list items. If you adjust the sizing, make sure to keep it large enough for touch targets.

DescriptionCSS Custom Property

Extra Large
Minimum data grid header row height


Large button


Button and input field height, data grid row height


Small button and input field height


Extra Small


Icon Size

Use the icon size custom properties to set consistent sizes for all icons across your application. The icon sizes are relative to the font size by default, meaning they scale automatically depending on the context you place them in.

import '@vaadin/vaadin-lumo-styles/sizing.js';
DescriptionCSS Custom Property

Large icon


Medium icon
Default size


Small icon



Use these properties to adjust the inter-component spacings – the space outside a regular component (button, text field) or inside a container component (layouts, grid cells).

DescriptionCSS Custom Property

Extra Large








Extra Small