Type: object
Attribute | Type | Description |
---|---|---|
id | string | Identifier of the text style |
name | string | Name of the text style |
created | integer | The unix timestamp when the text style was created |
postscript_name | string | PostScript name of the text style, e.g. Roboto-Regular |
font_family | string | Font family of the text style, e.g. Roboto, Arial |
font_size | number | Font size of the text style |
font_weight | number | Font weight of the text style, e.g. 500, 700 |
font_style | string | Font style of the text style, e.g. italic, oblique |
font_stretch | number | Font stretch form of the text style, e.g. 0.75, 1.00 |
line_height | number (Optional) | Minimum height of a line for the text style |
letter_spacing | number (Optional) | Spacing between letters |
text_align | string (Optional) | Horizontal alignment of the text style, left, right, center, or justify |
color | Color Data (Optional) | - |
source | Resource Source (Optional) | Source of the text style–either project or styleguide . |
Example
{
"id": "5dbad85a76ea51c1f35b6f69",
"name": "Header - H1",
"created": 1517184000,
"postscript_name": "HelveticaNeue-Bold",
"font_family": "HelveticaNeue",
"font_size": 24,
"font_weight": 700,
"font_style": "normal",
"line_height": 24,
"font_stretch": 1,
"text_align": "left",
"color": {
"source_id": "0BEBFEB3-A107-4D1D-A3B0-77D1FBD35F01",
"r": 143,
"g": 152,
"b": 5,
"a": 1
},
"source": {
"project": {
"id": "5db81e73e1e36ee19f138c1a",
"name": "HAL 9000",
"platform": "web",
"linked_styleguide": {
"id": "5db981be9df2b3e1bfa19ef2"
}
}
}
}