Style-dictionary: Sketch named colours

Created on 27 Feb 2019  路  9Comments  路  Source: amzn/style-dictionary

As of Sketch 53 we can now name colours. Would be cool to be able to name them in SD and the naming output and consumed by Sketch in the Sketch palette.

Most helpful comment

I has started to look into it a few days ago. If you want I can take this.

All 9 comments

This would be awesome! Can you send any documentation on this?

I can't see anything in their API at first glance @dbanksdesign so I have reached out to them for clarification.

actually they answered on that ticket they closed. :)

I has started to look into it a few days ago. If you want I can take this.

I actually tried to use the palettes generated by SD (this made me so exited this week generating them) using the following plugin in Sketch v53 and It didn't seem to import them. :(

https://github.com/andrewfiorillo/sketch-palettes

Stealing the comment from them just in case:

In Sketch 53.1, there are a document.colors and document.gradients properties: https://github.com/BohemianCoding/SketchAPI/blob/develop/docs/api/Document.md

And in Sketch 54, there will be sketch.globaleAssets.colors and sketch.globalAssets.gradients.

The docs will be updated as soon as 54 is released.

@custa1200 take a look at #287 for fixing the sketch palette format.

Fixed this in #287

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dbanksdesign picture dbanksdesign  路  3Comments

valiksb picture valiksb  路  4Comments

clepore picture clepore  路  5Comments

dbanksdesign picture dbanksdesign  路  5Comments

limitlessloop picture limitlessloop  路  4Comments