DSM can reference every layer style, text style, and symbol in a Sketch file, so large files (tens of megabytes or more) will sometimes cause slow upload times.
To help sustain performance, there’s a file size limit of 500MB. If a file exceeds that limit, DSM will show an error message.
To avoid exceeding the limit or experiencing slow upload times, we recommend splitting a Sketch file by layer styles, text styles, and symbols. For more tips on structuring Sketch files for use with DSM, check out our Sketch best practices.
Splitting a Sketch file
To split one Sketch file into multiple files, navigate to the Sketch menu bar and click File > Duplicate.
When duplicating, be sure to use the File > Duplicate option. This safely recreates document IDs so both Sketch and DSM recognize them as unique files. If you use another method for duplicating content—like copying and pasting—you could overwrite vital content in DSM.
After creating the duplicate files, you can remove elements from each file until each asset is contained in only one file.
If you add these files as local Sketch libraries, you can link the libraries together by adding instances of styles and symbols from one file in another, creating a chain of linked libraries. In this way, the layer styles in one library can be used in a second library’s symbols.