Need help in the process of creating your own WordPress theme?
Typography option type.
| Name | Type | Default | Description |
|---|---|---|---|
| fontFamily | boolean |
true |
Usually this is used for hiding font family select on mobile devices.
|
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 |
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. |
{
id: "typography",
type: "typography"
}
{
id: "typography",
type: "typography"
config: {
fontFamily: false,
},
defaultValue: {
fontFamily: "lato",
fontSize: "11",
fontWeight: "700",
lineHeight: "1.2",
letterSpacing: "1.5",
}
}