Skip to content

Commit

Permalink
Merge pull request #2 from dirtybit/release-fixes
Browse files Browse the repository at this point in the history
Release fixes
  • Loading branch information
morrislaptop authored Apr 27, 2018
2 parents b0b8788 + 41852ca commit 14b5d2d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ You can add them to your Zeplin projects locally from their Extensions window.

On Mac, Windows or Web apps, holding down the Option key will enable the “Add Local Extension” option on the title bar:

![Add local extension](https://github.com/zeplin/zeplin-extension-documentation/blob/master/img/addLocalExtension.png)
![Add local extension](https://raw.githubusercontent.com/zeplin/zeplin-extension-documentation/master/img/addLocalExtension.png)

After running the script, enter http://localhost:7070/manifest.json as the URL and click Add.

Expand All @@ -99,4 +99,4 @@ See #1 for the list of Tailwind classes supported.

Tailwind Zeplin Extension is developed using [zem](https://github.com/zeplin/zem), Zeplin Extension Manager. zem is a command line tool that lets you quickly create and test extensions.

To learn more about zem, [see documentation](https://github.com/zeplin/zem).
To learn more about zem, [see documentation](https://github.com/zeplin/zem).
4 changes: 2 additions & 2 deletions src/lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ function fontWeightTextToClass(weight) {
}

function colorToClass(context, color, prefix) {
let projectColor = context.project.findColorEqual(color)
let projectColor = color && context.project.findColorEqual(color)

if (!projectColor || projectColor.name.toLowerCase() === context.getOption('color').toLowerCase()) return null

Expand Down Expand Up @@ -396,4 +396,4 @@ module.exports = {
exportStyleguideColors,
exportStyleguideTextStyles,
comment
};
};

0 comments on commit 14b5d2d

Please sign in to comment.