latest version

Typography

Typography option type.

Config

Name Type Default Description
fontFamily boolean true
Enable or disable font family select.

Usually this is used for hiding font family select on mobile devices.

DefaultValue

TODO: Add all possible font styles into fontStyle description

Name Type Default Description
fontStyle string "" Provide font style name.
fontSize number 17 Default font size.
fontWeight number 400
Default font weight.

Allowed values:
- 100
- 200
- 300
- 400
- 500
- 600
- 700
- 800
- 900
lineHeight number 1.0 Default line height.
letterSpacing number 0.0 Default letter spacing.

Minimal Usage

{
  id: "typography",
  type: "typography"
}

Usage

{
  id: "typography",
  type: "typography"
  config: {
    fontFamily: false,
  },
  defaultValue: {
    fontFamily: "lato",
    fontSize: "11",
    fontWeight: "700",
    lineHeight: "1.2",
    letterSpacing: "1.5",
  }
}