To get the CSS of the layers conveniently in sketch。
能方便地获取图层的CSS样式代码的sketch插件。
Click plugin to install getStyle.
Click "Plugins" - "getStyle" - "getStyle".
Select a layer,then the panel will show the CSS of the layer, and copy the CSS to the clipboard.
安装插件完毕后,打开getStyle插件的菜单选择getStyle,选择一个图层,则自动获取到该图层的CSS,并复制到剪切板。
Click "Plugins" - "getStyle" - "settings".
You can change the units of CSS attribute,include vw、px(@1px)、px(@0.5x)、rpx.
选择settings菜单,可以设置样式的单位,包括vw、px(@1px)、px(@0.5x)、rpx。