diff --git a/tailwind.config.ts b/tailwind.config.ts index e28c710..6779c13 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -95,16 +95,4 @@ const config: Config = { plugins: [require("@tailwindcss/typography"), addVariablesForColors], }; -// This plugin adds each Tailwind color as a global CSS variable, e.g. var(--gray-200). -function addVariablesForColors({ addBase, theme }: any) { - let allColors = flattenColorPalette(theme("colors")); - let newVars = Object.fromEntries( - Object.entries(allColors).map(([key, val]) => [`--${key}`, val]) - ); - - addBase({ - ":root": newVars, - }); -} - export default config;