Open3
JavaScript API を使った Sketch Plugin
レイヤーを親レイヤーに入れる場合は、parent
を指定する
layer.parent = group
Color Variables を取得する
const Sketch = require('sketch')
const doc = Sketch.getSelectedDocument()
const swatches = doc.swatches
console.log(doc.swatches)
中身
[
{
type: 'Swatch',
name: 'text/primary',
color: '#000000e8',
referencingColor: <MSColor> (r:0.000000 g:0.000000 b:0.000000 a:0.910000) },
},
]
API Reference