missing tailwind classes!!! #19415
-
|
I followed the documentation for installing tailwind css https://tailwindcss.com/docs/installation/tailwind-cli and it produced 161 line css file where most of the classes are missing. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
|
Consider checking:
Otherwise, consider providing a project that reproduces the unexpected behavior. |
Beta Was this translation helpful? Give feedback.
-
|
Hi @babubhai01, This is expected behavior 😊 Tailwind does not generate all utility classes by default. That’s why you’re seeing a very small output CSS (~161 lines). Why this happensTailwind uses a content scan (formerly called purge) to keep the CSS output minimal. If your project currently has little or no Tailwind classes in your HTML/JS files, What to check
module.exports = {
content: [
"./index.html",
"./src/**/*.{html,js,ts,jsx,tsx}",
],
theme: {
extend: {},
},
plugins: [],
}
You’ll see more utilities appear as you actually use them. ✅ Summary
This is working exactly as designed. |
Beta Was this translation helpful? Give feedback.
-
|
@eaves-dropper |
Beta Was this translation helpful? Give feedback.
Tailwind only generates classes you use.