This repository demonstrates a common issue when working with custom colors in Tailwind CSS. Despite correctly defining a color in tailwind.config.js
, the color isn't applied in the compiled CSS.
The bug.js
file contains the incorrect configuration. The bugSolution.js
file shows the correct way to fix it.
npm install
to install the necessary dependencies.theme-color
is not applied correctly in the generated CSS.bugSolution.js
to see how the issue is resolved.The solution involves ensuring your tailwind.config.js
file is correctly configured and that Tailwind is processing your content files. See bugSolution.js
for a working example.