Spectrum is now read-only. Learn more about the decision in our official announcement.


Diez is the design language framework 🎨🏗📱💻 Easily adopt a unified design language across codebases, platforms, and teams.


Sketchlibrary -> Design Tokens

February 6, 2020 at 7:31am

Sketchlibrary -> Design Tokens

February 6, 2020 at 7:31am
Hello all, Our team uses Sketch for Teams. We have our design library hosted on Sketch Cloud. Each of the designers import this library into their Sketch app when they design.
Since the URL of the sketch file on cloud is fixed, Is there a way for a developer to automatically get or pull this library file and run diez extract, as part of their build?
Or, should we wait until Sketch makes the Cloud API public?

February 7, 2020 at 10:09pm
Yes, this is a great idea! We'd definitely love to support it. As you probably know, Sketch for Teams is relatively young. Without having looked into it thoroughly, I'm not certain they provide API support to a cloud Library or File in the way we would need. I will dig into a bit with our developers. (Anyone else who might know, please chime in!)
Ultimately, we'd love to support a workflow like we have for Figma — where it's as easy as dropping the URL into our 'services' array.
Until then, unfortunately, your best Sketch for Teams workflow probably looks like: Having your developer who's managing Diez save a copy of your cloud library locally in the Diez project, overwriting the old one. As long as naming conventions haven't changed, your token values will update on an extraction.

February 9, 2020 at 3:50am
Thank you so much . In the Sketch for Teams website, they have mentioned that they will support integrations with their cloud API (I've attached the screenshot). I don't know if this means that there is no support for their API as of now?
And, I've just discovered how easy the Figma workflow is! I will try to convince my dev team to adopt the workflow you've mentioned with the cloud library. Diez is a game-changer in design-dev collaboration. Exciting times :)

February 11, 2020 at 1:02am
Thanks for the kind words! Yes, the Figma workflow is so, so nice. :)
We'll support the Sketch Cloud API when it becomes available. Until then, we're doing some research into a possible workaround — better than downloading the Sketch Library from Sketch Cloud each time and putting it in your Diez project's designs/ folder before running an extraction.