From 79f4264759403aea2009ceac2af4fad30a46a332 Mon Sep 17 00:00:00 2001 From: Shawn Makinson Date: Tue, 28 Aug 2018 15:02:40 -0400 Subject: [PATCH] Allow an additionalColors prop in the config Currently if I want to add some extra colors it seems I need to specify them all plus the new colors. What do you think of the change to allow only specifying some more colors and keeping the defaults as well? --- lib/generate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/generate.js b/lib/generate.js index 12d3cc6..e0fc9ec 100644 --- a/lib/generate.js +++ b/lib/generate.js @@ -25,7 +25,7 @@ const cssWithDocs = (generator, config, mqs, fullConfig) => `${generator.docs(co ${generator.css(config, fullConfig)}` module.exports = (config, mediaQueries) => { - const colors = color(config.palette || config.colors) + const colors = color(Object.assign(config.palette || config.colors, config.additionalColors || {})) const skipModules = (config.skipModules || []).map(n => camel(n))