Lumo defines a set of CSS custom properties you can use to apply consistent sizing and spacing across your application.
Import sizing.html
and spacing.html
to use them.
Use these properties to adjust the sizing of regular elements (buttons, text fields, list items).
M 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.
Use these properties to adjust the inter-component spacings, i.e. space outside a regular component (button, text field) or inside a container component (layouts, grid cells)
Use these properties for margin or padding in a single direction or uniformly on all sides.
Use these properties for margin or padding to have a bigger horizontal space than vertical space.
Use these properties for margin or padding to have a bigger vertical space than horizontal space.