tailwind-css-course
tailwind-css-course copied to clipboard
Tailwind v4 update means that the config file is no longer used
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";