I am trying to get all the global colors from my sketch document. Could someone please help me out to find all the global colors and save them in an array.
Take a look at Assets https://developer.sketch.com/reference/api/#assets, this should help you accessing colours.
let colors = require('sketch').globalAssets.colors
christianklotz Thank you so much. It worked. 🙂