From 10d89d3cd109561138f262c18732d832bae371dc Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Thu, 30 Jun 2022 17:36:50 +0200 Subject: [PATCH] fix(module): search in tailwind colors for `primary` and `gray` --- src/module.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/module.ts b/src/module.ts index ce55ad3aeb..916adc7dcd 100644 --- a/src/module.ts +++ b/src/module.ts @@ -85,9 +85,9 @@ export default defineNuxtModule({ // @ts-ignore tailwindConfig.theme.extend.colors = tailwindConfig.theme.extend.colors || {} // @ts-ignore - globalColors.primary = tailwindConfig.theme.extend.colors.primary = globalColors[primary] + globalColors.primary = tailwindConfig.theme.extend.colors.primary = globalColors[primary] || colors[primary] // @ts-ignore - globalColors.gray = tailwindConfig.theme.extend.colors.gray = globalColors[gray] + globalColors.gray = tailwindConfig.theme.extend.colors.gray = globalColors[gray] || colors[gray] const variantColors = excludeColors(globalColors) const safeColorsAsRegex = colorsAsRegex(variantColors)