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.
The compact preset defines values for the sizing and spacing properties to reduce the visual space required by components to better fit a large amount of content on the screen
The preset can be taken into use by importing the file from under the "presets" folder.
Make sure to import the preset before all the other components to make it apply on all browsers.