Home

Awesome

⛔️ DEPRECATED

This project was written for theme solution in older versions of sketch. Color variables feature came up with sketch 69. With Sketch 69, color variables feature came along and this plugin can be improved with this feature. But in this process, I transferred all my projects to Figma, which I think is more useful in the design systems. So, I'm no longer develop or improvoment in this project.

<img src="https://user-images.githubusercontent.com/3495307/73133771-7ac37000-403e-11ea-97b3-3153ea95ae52.png" alt="icons" width="221"/>

Sketch Dark Side Plugin

Example App

Installation

Usage

Unfortunately Sketch doesn't have the color override feature. In order to use the plugin, we need to give the colors used in the design with layer styles.

You can download the sample design file prepared with the method described below.

Step 1: Create your color palette with layer styles

In order to easily make changes on the colors, you can prepare a page where all colors are defined.

You should name the layer styles of these colors as:

Themes/<Light or Dark>/<Your color name>

Plugin will be based on shared styles that start only with Themes, followed by Light or Dark when switching and exporting colors.

Giving a shared style name

Step 2: Assign shared styles to layers

You should make sure that all the color of layers and texts in the document come from the shared styles you define.

Assign shared styles to layers

Coloring the text layers with shared styles a little bit tricky. You can read this article for detailed explanation.

Assign shared styles to text layers

Step 3: Switch Theme

Your design is ready! You can switch between Light and Dark themes by pressing Switch theme from plugins menu.

Testing your design

Step 4: Export your color assets for developers

You can export the theme from the plugin menu for developers. They can use the exported files in Xcode or Android Studio and they do not spend extra effort to adapt your applications to the system theme.