The fontsize object allows you to customize the visual appearance of text elements within a cell by specifying font sizes individually for each part of the cell's content. This includes headlines, labels, helper text, error messages, and option labels.

Supported font sizes are:

Use this object to fine-tune how content is displayed, ensuring clarity and emphasis where needed across different screen sizes and form designs.


Field Type Required Description
headline String Optional Font size of the main headline in the cell.
subhead String Optional Font size for any subheading under the headline.
label String Optional Font size for the main label of the cell.
sublabel String Optional Font size for the supporting sublabel below the label.
body String Optional Font size for body text, used in description-rich layouts.
helper String Optional Font size for helper text, often shown below inputs.
error String Optional Font size for error messages, typically shown in red.
option_label String Optional Font size for the label in selectable options (e.g., dropdown or radio).
option_sublabel String Optional Font size for the sublabel in selectable options.

Example

"fontsize": {
  "headline": "lg",
  "label": "md",
  "sublabel": "sm",
  "error": "sm",
  "option_label": "md"
}