Swift Color Palette

Sketch Plugin using export UIColor values from within Color Palette

v1.0.0 is compatible with Sketch 0.0.0

Swift Color Palette

A SketchApp plugin that making color palette an enum in other words generates Swift Color Theme files from your Sketch documents.

Swift Color Palette plugin inspired by @NatashaTheRobot 's blog post


Download and extract the contents of this repository. Then double-click the SwiftColorPalette.sketchplugin bundle to install the plugin. In Sketch Toolbox, search for 'Swift Color Palette' and tap Install.

Short Demo

Swift Color Palette


  • Rename color palette layer(s)
  • Select a layer(s)
  • Run using Plugins > Menu > Swift Color Palette
  • Select a Export File (optional) or you can choose copy to clipboard.
  • Click OK.

Example Code

enum ColorPalette {
    static let lightGrayColor =  UIColor(red:0.737, green: 0.769, blue: 0.792, alpha: 1.000)
    static let blueColor =  UIColor(red:0.353, green: 0.510, blue: 0.647, alpha: 1.000)
    static let grayColor =  UIColor(red:0.373, green: 0.373, blue: 0.376, alpha: 1.000)
    static let panelColor =  UIColor(red:0.212, green: 0.227, blue: 0.267, alpha: 1.000)
    static let secondaryColor =  UIColor(red:0.141, green: 0.220, blue: 0.282, alpha: 1.000)
    static let primaryColor =  UIColor(red:0.129, green: 0.133, blue: 0.145, alpha: 1.000)


If you have any questions, find a bug, or have ideas for ways to improve the plugin, ping me on twitter: @nahitheper

Join the discussion

Download v1.0.0
Usage Activity

No Sketchpacks Relay integration found

  • 21 downloads all–time
  • 0 downloads this week
  • 0 downloads this month
About this plugin

nahitheper published this plugin 2y ago.

v1.0.0 is the latest version.

Native updates are supported within Sketch.app.