Skip to content

Commit

Permalink
fix(module): search in tailwind colors for primary and gray
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincanac committed Jun 30, 2022
1 parent 00e0ab3 commit 10d89d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ export default defineNuxtModule<ModuleOptions>({
// @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)
Expand Down

0 comments on commit 10d89d3

Please sign in to comment.