Fix · Pages, phones and Arabic
Tailwind classes have no effect
What you may see
- Some utility classes work, others do nothing
- It works in development and not in the build
Most likely cause
Tailwind only keeps classes it can find as whole words in the files listed in its settings; classes built by joining strings, or files outside the list, are dropped.
Check first (about two minutes)
- Is the class written whole in the code (bg-red-500) or built ("bg-" + color)?
- Does the settings list include the folder of that file?
The fix prompt
What you type here never leaves your browser. The search runs on this page, and nothing is sent to a server or to an AI.
Kept only in this browser, on this device. Keys and passwords are removed before anything is saved.
Prompt language
Paste it into Claude, ChatGPT, Gemini or Cursor, then follow what it says.
After you tried it, did it work?
Steps
- Check the content paths in the Tailwind settings cover every folder with components.
- Replace built-up class names with whole class names (a lookup table of full strings).
- Check the version of Tailwind and its setup for that version (setup differs between versions).
Do not do this
- Do not mix two Tailwind versions.
- Do not safelist everything.