A Typography object holds individual text style properties. It appears on the typography style property as an alternative to a TokenReference — when the text style is not backed by a single token, the individual properties are listed instead.
interface Typography {
fontSize?:number|'mixed'|TokenReference;
fontFamily?:string|'mixed'|TokenReference;
fontStyle?:string|'mixed'|TokenReference;
lineHeight?:string|number|TokenReference;
letterSpacing?:number|'mixed'|TokenReference;
textCase?:string|'mixed'|TokenReference;
textDecoration?:string|'mixed'|TokenReference;
paragraphIndent?:number|TokenReference;
paragraphSpacing?:number|TokenReference;
leadingTrim?:'NONE'|'CAP_HEIGHT'|'mixed';
listSpacing?:number|TokenReference;
hangingPunctuation?:boolean|TokenReference;
hangingList?:boolean|TokenReference;
}
Properties
Name
Category
Description
fontFamily
font
Font family name
fontSize
font
Font size in pixels
fontStyle
font
Font style (e.g. "Regular", "Bold Italic")
hangingList
formatting
Enable hanging list markers
hangingPunctuation
formatting
Enable hanging punctuation
leadingTrim
spacing
Leading trim mode
letterSpacing
spacing
Letter spacing in pixels
lineHeight
spacing
Line height (number for pixels, string for percentages like "150%")
listSpacing
spacing
Spacing between list items
paragraphIndent
spacing
First-line indent in pixels
paragraphSpacing
spacing
Spacing between paragraphs in pixels
textCase
formatting
Text transform (e.g. "UPPER", "LOWER", "TITLE")
textDecoration
formatting
Text decoration (e.g. "UNDERLINE", "STRIKETHROUGH")
Values
Name
Description
Example
number
Literal numeric value
16
string
Literal string value
"Inter"
boolean
Literal boolean value
true
'mixed'
Multiple conflicting values within a single text node