-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 60e3729
Showing
34 changed files
with
8,170 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<rss xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"> | ||
<channel> | ||
<title>Dark Side</title> | ||
<description>Easily prepare your designs in light and dark theme</description> | ||
<language>en</language> | ||
<item> | ||
<enclosure url="https://github.com/receptiryaki/darkside/releases/download/v1.0.0/darkside.sketchplugin.zip" sparkle:version="1.0.0"/> | ||
</item> | ||
</channel> | ||
</rss> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# build artifacts | ||
themes.sketchplugin | ||
|
||
# npm | ||
node_modules | ||
.npm | ||
npm-debug.log | ||
|
||
# mac | ||
.DS_Store | ||
|
||
# WebStorm | ||
.idea | ||
|
||
# sketch | ||
# sketch-assets |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Installation | ||
|
||
- [Download](../../releases/latest/download/darkside.sketchplugin.zip) the latest release of the plugin | ||
- Un-zip | ||
- Double-click on darkside.sketchplugin | ||
|
||
# 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](/examples/recipes.sketch) 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. | ||
|
||
 | ||
|
||
## 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. | ||
|
||
 | ||
|
||
Coloring the text layers with shared styles a little bit tricky. You can [read this article](https://medium.com/@liebmann.helen/sketch-tutorial-how-to-color-override-text-layers-using-layer-styles-a-dream-coming-true-62aa874c42af) for detailed explanation. | ||
|
||
 | ||
|
||
## Step 3: Switch Theme | ||
|
||
**Your design is ready!** You can switch between Light and Dark themes by pressing Switch theme from plugins menu. | ||
|
||
 | ||
|
||
## 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. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.