Skip to content

Instantly share code, notes, and snippets.

@steveck-chung
Last active September 19, 2019 01:39
Show Gist options
  • Save steveck-chung/2fd2a3af01f85ed23984a6f770766e8a to your computer and use it in GitHub Desktop.
Save steveck-chung/2fd2a3af01f85ed23984a6f770766e8a to your computer and use it in GitHub Desktop.
Single style text
{
"elements": {
"1:4": {
"absoluteRotation": 0,
"currStateId": "fake-cuid",
"id": "1:4",
"isMask": false,
"locked": false,
"name": "This is the test string for center align",
"parentId": "1:2",
"screenId": "1:2",
"stateIds": ["fake-cuid"],
"type": "TEXT",
"visible": true
}
},
"states": {
"fake-cuid": {
"blendMode": "NORMAL",
"borders": [{
"align": "OUTSIDE",
"blendMode": "NORMAL",
"color": {
"a": 1,
"b": 0.40333330631256104,
"g": 0.8333333134651184,
"r": 0.2361111044883728
},
"type": "SOLID",
"visible": true,
"weight": 4,
"offset": 0,
"order": "ABOVE",
"style": []
}],
"boundingBox": {
"height": 215,
"width": 344,
"x": -271,
"y": -143
},
"characterStyleOverrides": [],
"effects": [],
"elemId": "1:4",
"fills": [{
"blendMode": "NORMAL",
"color": {
"a": 1,
"b": 0.2299305498600006,
"g": 0.2299305498600006,
"r": 0.6416666507720947
},
"opacity": 1,
"type": "SOLID",
"visible": true
}],
"height": 215,
"id": "fake-cuid",
"innerShadows": [],
"name": "Default state",
"opacity": 1,
"pivot": [0.5, 0.5, 0.5],
"rotation": 0,
"shadows": [{
"blendMode": "NORMAL",
"color": {
"a": 0.25,
"b": 0,
"g": 0,
"r": 0
},
"offset": {
"x": 0,
"y": 15
},
"blurRadius": 15,
"size": 0,
"type": "DROP_SHADOW",
"visible": true
}],
"styleOverrideTable": {},
"textStyle": {
"fontFamily": "Righteous",
"fontPostScriptName": "Righteous-Regular",
"fontSize": 36,
"fontWeight": 400,
"letterSpacing": 0,
"lineHeightPx": 42.1875,
"textAlignHorizontal": "CENTER",
"textAlignVertical": "CENTER"
},
"transform": [
[1, 0, 227],
[0, 1, 145]
],
"wrapGeometry": [],
"distortGeometry": [],
"type": "TEXT_STATE",
"width": 344,
"x": 227,
"y": 145,
"z": 0
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment