Sketch Pal is a plugin to export all defined colors and text styles from your Sketch project to swift file.
- Download the ZIP file from the GitHub repo
- Double click on
Pal.sketchplugin
- Open your Sketch project
- Run the plugin (
Plugins > Sketch-Pal > Export Text Styles and Colors
) - Select the destination where your Swift file should be exported
- Add the swift files into your Xcode project
So far the plugin will just use existing shared styles and shared text styles from a given Sketch file to generate swift output. The next steps will provide a way to set undefined colors before the export.
The bound box of different software make it harder to play with line-height. The given value from Sketch isn't directly usable in Xcode's interface builder.
Sketch Pal is released under the MIT license.
Thomas SIVILAY