From f67fdb7d2fbe12f696cc02f00800dc0c4d8e5df5 Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Mon, 14 Feb 2022 16:59:55 +0100 Subject: [PATCH] fix(colors): hard-code colors as tailwindcss/colors is different --- src/runtime/utils/colors.ts | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/src/runtime/utils/colors.ts b/src/runtime/utils/colors.ts index f2fcc8bb..539f7b83 100644 --- a/src/runtime/utils/colors.ts +++ b/src/runtime/utils/colors.ts @@ -1,6 +1,21 @@ -import colors from 'tailwindcss/colors.js' -import { without, kebabCase } from 'lodash-es' - -export const safeColors = without(Object.keys(colors).map(kebabCase), 'inherit', 'current', 'transparent', 'black', 'white', 'gray') +export const safeColors = [ + 'rose', + 'pink', + 'fuchsia', + 'purple', + 'violet', + 'indigo', + 'blue', + 'sky', + 'cyan', + 'teal', + 'emerald', + 'green', + 'lime', + 'yellow', + 'amber', + 'orange', + 'red' +] export const safeColorsAsRegex = safeColors.join('|')