diff --git a/README.md b/README.md index 3eecedf..5b5bbdb 100644 --- a/README.md +++ b/README.md @@ -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. @@ -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). \ No newline at end of file +To learn more about zem, [see documentation](https://github.com/zeplin/zem). diff --git a/src/lib.js b/src/lib.js index 2fc9607..c899793 100644 --- a/src/lib.js +++ b/src/lib.js @@ -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 @@ -396,4 +396,4 @@ module.exports = { exportStyleguideColors, exportStyleguideTextStyles, comment -}; \ No newline at end of file +};