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.
Feature
CSS Property
Flow API
Spacing between columns
--vaadin-form-layout-column-spacing
setColumnSpacing
Spacing between rows
--vaadin-form-layout-row-spacing
setRowSpacing
Side Labels
The following style properties and Flow methods can be used to customize the width of labels and the spacing between them and the fields in label-aside mode:
Aura (deprecated, use --vaadin-input-field-label-color instead)
--vaadin-form-item-label-font-size
Aura (deprecated, use --vaadin-input-field-label-font-size instead)
--vaadin-form-item-label-font-weight
Aura (deprecated, use --vaadin-input-field-label-font-weight instead)
--vaadin-form-item-label-line-height
Aura (deprecated, use --vaadin-input-field-label-line-height instead)
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.
Important
Not for Shadow DOM
These selectors should be used in styles.css or another stylesheet loaded with the @StyleSheet annotation or the @import CSS rule.
They do not work in the shadow DOM of Vaadin components, such as in stylesheets in the components sub-folder or loaded with the @CssImport annotation’s themeFor property.