Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 1.18 KB

README.md

File metadata and controls

28 lines (20 loc) · 1.18 KB

sketch-mobile-assets

Based on zmtalker/sketch-android-assets

This plugin for Bohemian Coding's Sketch app will generate iOS and Android assets for slices on your current page. Assets are automatically created at mdpi/hdpi/xhdpi/xxhdpi/xxxhdpi for Android and @1x/@2x/@3x for iOS, then named and organized according to platform conventions.

NOTE: This plugin is designed for Sketch 3.2. It will overwrite any previously generated assets without prompting.

Setup:

  • Copy the Generate Mobile Assets.jstalk file and /library folder into your Sketch plugins folder
  • You can find your plugins folder by going to 'Plugins' > 'Reveal plugins folder'
  • Update library/config.js with your preferred naming conventions & DPI size

To use:

  • Create & name slices for each of your assets
  • Run Plugins > Generate Android Assets, or hit ⌘⇧A
  • Choose a destination folder
  • Magic!

 


 

Last updated 12/12/14
  • Now works with Sketch 3.2.
Known issues:
  • None that I’m aware of; please let me know if you find any!