tailwind-css-course icon indicating copy to clipboard operation
tailwind-css-course copied to clipboard

Tailwind v4 update means that the config file is no longer used

Open ravenloue opened this issue 7 months ago • 0 comments

So I came across the tutorial on YT and decided to follow along, but I noticed a few things were different in Tailwind now.

The imports have been simplified and the new "CSS-first" configuration means that the config file is no longer used to create the custom styles.

To fix this, we can use the new import method and add a tag to include the existing config file changes without having to copy everything over to the input.css file.

input.css @import "tailwindcss"; @config "../tailwind.config.js";

ravenloue avatar May 26 '25 21:05 ravenloue