
To store data that is not part of the Sketch document structure a special field userInfo object can be set per document and layer. If the page’s size is less than 2048x2048 it will be stored at full size, otherwise it’ll be scaled to fit a 2048x2048 square. previews folderĬontains a preview image of the last page edited by the user. The images folder contains all the bitmaps that are used in the document, at their original scales (so if the user imported a 1000x1000px image and then resized it to 200x200px, the full 1000x1000px file will be stored). Each file describes the contents of a page, in a format similar to what you’d get by running sketchtool dump on the file. pages folderĬontains a JSON file per page of the document. and whether the document has been uploaded to Sketch Cloud. user.jsonĬontains user metadata for the file, like the canvas viewport & zoom level for each page, UI metadata for the app such as panel dimensions, etc. It is considered an alternative version of XML or eXtensible Markup Language which was a way to encode documents using a set of rules that was readable by both machines and humans. It can have data structures and objects of the programming mentioned in them. document.jsonĬontains common data for all pages of a document, like shared styles, and a link to the JSON files in the pagesfolder. The json files are readable by human eyes and are basically text based small files. It’s equivalent to the output you’d get from running sketchtool metadata on the file. Zip -r -X document.sketch * Folder structure meta.jsonĬontains metadata about the document itself (a list of pages and artboards, Sketch version used to save the file, fonts used…).
