From 88af2f533032e6c735a1f618ab97aa63543ab8f2 Mon Sep 17 00:00:00 2001 From: Georgi Ganchev Date: Thu, 25 Jan 2024 11:01:57 +0000 Subject: [PATCH] fix: use custom values from config --- src/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 1068c56..3380764 100644 --- a/src/index.js +++ b/src/index.js @@ -31,6 +31,7 @@ const plugin = withOptions( }, function (options = {}) { const defaultColors = options.defaultColors ?? false; + const customColors = options.customColors ?? {}; const primaryColor = options.primaryColor ?? "carbon"; const colorsObject = { @@ -47,8 +48,9 @@ const plugin = withOptions( ) : {}), ...colors, + ...customColors, gray: colors.carbon, - primary: colors[primaryColor], + primary: colors[primaryColor] ?? customColors[primaryColor], }; return {