Global CSS API: Form Layout & Spacing

The following CSS custom properties are used to control more of the overall form level layout and spacing of form UI.

Form Layout & Spacing

Properties used for form UI layout and spacing.

PropertyDescriptionDefault
--gf-form-gap-xColumn gap for the form.16px
--gf-form-gap-yRow gap for the form.40px
--gf-form-footer-margin-y-startVertical start (top) margin for the form footer.24px
--gf-form-footer-gapGap between the form footer and form.8px

Field Layout & Spacing

Properties used for field UI layout and spacing.

PropertyDescriptionDefault
--gf-field-gap-xColumn gap for a field.12px
--gf-field-gap-yRow gap for a field.12px
--gf-field-date-widthWidth of the date field.168px
--gf-field-time-widthWidth of the time field.110px
--gf-field-list-btns-gapGap between the buttons in a list field.8px
--gf-field-list-btns-widthWidth of the buttons in a list field.calc(32px + var(--gf-field-list-btns-gap) + var(--gf-field-gap-x))
--gf-field-pg-steps-gap-yRow gap for the page steps.8px
--gf-field-pg-steps-gap-xColumn gap for the page steps.24px

Field Label Layout & Spacing

Properties used for label UI layout and spacing.

PropertyDescriptionDefault
--gf-label-widthWidth of the label when label position is left or right.30%
--gf-label-req-gapGap between the label text and required indicator.6px