-
Notifications
You must be signed in to change notification settings - Fork 825
/
my-command.js
27 lines (25 loc) 路 903 Bytes
/
my-command.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import * as React from 'react';
import { render, Artboard, Svg } from 'react-sketchapp';
const Document = () => (
<Artboard
name="Sketch Logo"
style={{
width: 494,
height: 447,
}}
>
<Svg xmlns="http://www.w3.org/2000/svg" width="494" height="447" viewBox="0 0 494 447">
<Svg.G fill="none" fillRule="evenodd">
<Svg.Path fill="#FFAE00" d="M247 447L0 160 107 15 247 0l140 15 107 145" />
<Svg.Path fill="#EC6C00" d="M247 447L0 160h494" />
<Svg.Path fill="#FFAE00" d="M247 447L100 160h294" />
<Svg.Path fill="#FFEFB4" d="M247 0L100 160h294" />
<Svg.Path fill="#FFAE00" d="M107 15L52 88 0 160h101M387 15l55 73 52 72H393" />
<Svg.Path fill="#FED305" d="M107 15l-7 145L247 0m140 15l7 145L247 0" />
</Svg.G>
</Svg>
</Artboard>
);
export default () => {
render(<Document />, context.document.currentPage());
};