Build Design Systems With Penpot Components
Penpot's new component system for building scalable design systems, emphasizing designer-developer collaboration.

Design + Sketch App — Medium | Steve Stone
When I was using Photoshop/Illustrator for my asset workflow I had to set up all kinds of tricks to make sure things wound up in the correct folder with the correct file name. You know the drill; The endless process of selecting the right artboards or layers to export, save dialogs, output settings, overwriting files, dragging and dropping to the correct asset folder. Ugh.
Sketch has a few tricks up it’s sleeve that makes this process ridiculously easy and consistent. You can use the layer name to specify a directory that the asset will export to? Yup! It’s hands-down one of my favorite magic tricks of Sketch!
Let’s say that you’ve made this super sweet icon.
You’re right — that *is* a super sweet icon!
You’ve set it up to export an SVG (good job!).
Yay!
You can use the layer name to specify not only the filename (myIcon), but the output directory!
These layer names look a little funky — almost like paths…
Sketch is ridiculously smart about this too!
Check out this configuration:
Look where all of these assets will go on a single export.
When it comes to exporting, select the assets you want to export and then use the File > Export (⇧+⌘+E) to export only the selected assets.
Yea — I want that icon in all of those places!
Hit Export. Select the path that you’d like to output to:
“Demo” — I’ll totally remember what that folder name is in 6 months…
In my case everything will be exported relative to the “Demo” directory!
You can use this same trick inside the export panel! The following will export an SVG in all of those folders (like before), plus create a pngs folder and put all of those folders/files in there.
Multiple outputs with different folders.
Sketch is ridiculously cool. You can save a ton of time and frustration by setting up your structure within Sketch, then let your computer do all of the sorting for you. After-all, isn’t that what computers are for?
Let me know if you have any other cool exporting tricks with Sketch!
Sketch Export Magic was originally published in Design + Sketch on Medium, where people are continuing the conversation by highlighting and responding to this story.
AI-driven updates, curated by humans and hand-edited for the Prototypr community