From 1263c1c8ef7d9afa1a89ed55b31b6d60f3b492de Mon Sep 17 00:00:00 2001 From: SethBurkart123 Date: Wed, 12 Mar 2025 20:57:33 +1100 Subject: [PATCH] feat: remove colour pallete flattening --- tailwind.config.js | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/tailwind.config.js b/tailwind.config.js index 383a3120..7b550250 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -1,5 +1,3 @@ -import flattenColorPalette from "tailwindcss/lib/util/flattenColorPalette"; - /** @type {import('tailwindcss').Config} */ export default { content: [ @@ -42,17 +40,5 @@ export default { }, plugins: [ require('@tailwindcss/forms'), - addVariablesForColors, ], -}; - -function addVariablesForColors({ addBase, theme }) { - let allColors = flattenColorPalette(theme("colors")); - let newVars = Object.fromEntries( - Object.entries(allColors).map(([key, val]) => [`--${key}`, val]) - ); - - addBase({ - ":root": newVars, - }); -} \ No newline at end of file +}; \ No newline at end of file