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