Global CSS API: Controls - Label

The following CSS custom properties are used for the control label UI.

Primary Label

Properties used for field labels UI.

PropertyDescriptionDefault
--gf-ctrl-label-color-primaryColor.var(--gf-color-out-ctrl-dark-darker)
--gf-ctrl-label-font-family-primaryFont family.var(--gf-font-family-secondary)
--gf-ctrl-label-font-size-primaryFont size.var(--gf-font-size-secondary)
--gf-ctrl-label-font-style-primaryFont style.var(--gf-font-style-secondary)
--gf-ctrl-label-font-weight-primaryFont weight.var(--gf-font-weight-secondary)
--gf-ctrl-label-letter-spacing-primaryLetter spacing.var(--gf-letter-spacing-secondary)
--gf-ctrl-label-line-height-primaryLine height.var(--gf-line-height-secondary)

Secondary Label

Properties used for radio, checkbox, and consent control labels UI.

PropertyDescriptionDefault
--gf-ctrl-label-color-secondaryColor.var(--gf-color-out-ctrl-dark-darker)
--gf-ctrl-label-font-family-secondaryFont family.var(--gf-font-family-secondary)
--gf-ctrl-label-font-size-secondaryFont size.var(--gf-font-size-secondary)
--gf-ctrl-label-font-style-secondaryFont style.var(--gf-font-style-secondary)
--gf-ctrl-label-font-weight-secondaryFont weight.400
--gf-ctrl-label-letter-spacing-secondaryLetter spacing.var(--gf-letter-spacing-secondary)
--gf-ctrl-label-line-height-secondaryLine height.var(--gf-line-height-secondary)

Tertiary Label

Properties used for complex fields and fieldset control label UI (sub-labels).

PropertyDescriptionDefault
--gf-ctrl-label-color-tertiaryColor.var(--gf-color-out-ctrl-dark)
--gf-ctrl-label-font-family-tertiaryFont family.var(--gf-font-family-tertiary)
--gf-ctrl-label-font-size-tertiaryFont size.var(--gf-font-size-tertiary)
--gf-ctrl-label-font-style-tertiaryFont style.var(--gf-font-style-tertiary)
--gf-ctrl-label-font-weight-tertiaryFont weight.var(--gf-font-weight-tertiary)
--gf-ctrl-label-letter-spacing-tertiaryLetter spacing.var(--gf-letter-spacing-tertiary)
--gf-ctrl-label-line-height-tertiaryLine height.var(--gf-line-height-tertiary)

Quaternary Label

Properties used for simpler control label UI, such as product pricing.

PropertyDescriptionDefault
--gf-ctrl-label-color-quaternaryColor.var(--gf-color-out-ctrl-dark)
--gf-ctrl-label-font-family-quaternaryFont family.var(--gf-font-family-tertiary)
--gf-ctrl-label-font-size-quaternaryFont size.var(--gf-font-size-secondary)
--gf-ctrl-label-font-style-quaternaryFont style.var(--gf-font-style-tertiary)
--gf-ctrl-label-font-weight-quaternaryFont weight.var(--gf-font-weight-secondary)
--gf-ctrl-label-letter-spacing-quaternaryLetter spacing.var(--gf-letter-spacing-tertiary)
--gf-ctrl-label-line-height-quaternaryLine height.var(--gf-line-height-tertiary)

Required Label

Properties used for field label required indicator UI.

PropertyDescriptionDefault
--gf-ctrl-label-color-reqColor.var(--gf-color-danger)
--gf-ctrl-label-font-family-reqFont family.var(--gf-ctrl-label-font-family-primary)
--gf-ctrl-label-font-size-reqFont size.14px
--gf-ctrl-label-font-style-reqFont style.var(--gf-ctrl-label-font-style-primary)
--gf-ctrl-label-font-weight-reqFont weight.var(--gf-ctrl-label-font-weight-primary)
--gf-ctrl-label-letter-spacing-reqLetter spacing.var(--gf-ctrl-label-letter-spacing-primary)
--gf-ctrl-label-line-height-reqLine height.var(--gf-ctrl-label-line-height-primary)