Skip to content

Instantly share code, notes, and snippets.

@steveck-chung
Last active September 19, 2019 01:56
Show Gist options
  • Save steveck-chung/2489d71e59a761476d4b0ed26b164733 to your computer and use it in GitHub Desktop.
Save steveck-chung/2489d71e59a761476d4b0ed26b164733 to your computer and use it in GitHub Desktop.
Rectangle with dash border and shadows
{
"elements": {
"1:3": {
"currStateId": "fake-cuid",
"id": "1:3",
"isMask": false,
"locked": false,
"name": "Rectangle",
"origSize": {
"x": 433,
"y": 260
},
"parentId": "1:2",
"screenId": "1:2",
"stateIds": ["fake-cuid"],
"type": "POLYGON",
"visible": true
}
},
"states": {
"fake-cuid": {
"blendMode": "NORMAL",
"borders": [{
"align": "OUTSIDE",
"blendMode": "NORMAL",
"color": {
"a": 1,
"b": 0.9416666626930237,
"g": 0.8025355339050293,
"r": 0.16871529817581177
},
"style": [{
"type": "DASH",
"size": [
2,
5
]
}],
"type": "SOLID",
"visible": true,
"weight": 10
}],
"boundingBox": {
"height": 260,
"width": 433,
"x": -280,
"y": -181
},
"cornerRadius": 0,
"effects": [],
"elemId": "1:3",
"fills": [{
"blendMode": "NORMAL",
"gradient" : {
"handlePositions": [{
"x": 0.499999963788774,
"y": 0.5000000011082184
}, {
"x": 0.43879903726971925,
"y": 0.9615384790329093
}, {
"x": 0.038461485864083156,
"y": 0.3302588664382634
}],
"stops": [{
"color": {
"a": 1,
"b": 0.10624998807907104,
"g": 0.10624998807907104,
"r": 0.8500000238418579
},
"position": 0
}, {
"color": {
"a": 0,
"b": 0.012152783572673798,
"g": 0.012152783572673798,
"r": 0.11666666716337204
},
"position": 1
}]
},
"opacity": 1,
"type": "GRADIENT_ANGULAR",
"visible": true
}],
"height": 260,
"id": "fake-cuid",
"innerShadows": [{
"blendMode": "NORMAL",
"color": {
"a": 0.800000011920929,
"b": 0.2200000286102295,
"g": 1,
"r": 0
},
"offset": {
"x": 10,
"y": -10
},
"blurRadius": 5,
"size": 0,
"type": "INNER_SHADOW",
"visible": true
}],
"name": "Default state",
"opacity": 1,
"pivot": [0.5, 0.5, 0.5],
"shadows": [{
"blendMode": "NORMAL",
"color": {
"a": 0.5,
"b": 0.8791666626930237,
"g": 0.11722218990325928,
"r": 0.22389431297779083
},
"offset": {
"x": -20,
"y": 20
},
"blurRadius": 20,
"size": 0,
"type": "DROP_SHADOW",
"visible": true
}],
"starRatio": 0,
"transform": [
[1, 0, 209],
[0, 1, 105]
],
"type": "POLYGON_STATE",
"vertexCount": 4,
"width": 433,
"x": 133,
"y": 75,
"z": 0
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment