The Prompt BakeryTemplates and prompts

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)

  1. Is the class written whole in the code (bg-red-500) or built ("bg-" + color)?
  2. 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

  1. Check the content paths in the Tailwind settings cover every folder with components.
  2. Replace built-up class names with whole class names (a lookup table of full strings).
  3. 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.

Related

Try another entry

How can we help?

What do you need?
Your email, so we can reply (optional)Only enter your own email. We reply there.