Demo, all content is generated
Question

Cursor changed my Tailwind config and now nothing has color

Solved · 121 views · asked by rosa_m · edited

Asked for a new brand color. It rewrote tailwind.config.ts, removed content paths, and now every class is missing.

What I’ve tried

Reverted with git, asked again, same result.

Comment
Restore the old config from git and ask again. Don't let it fix its own fix. katie_on_cursor · edited

1 answer

Marked as helpful by the asker
dev_ana · edited

It rewrites the file because you ask for a change to the file. Ask for a change to the theme: 'Add brand: "#5E6AD2" under theme.extend.colors in tailwind.config.ts. Change nothing else in that file.' The word 'extend' and 'nothing else' are what keep the content array alive.

Comment
Restored from git, then asked the narrow version. One line changed. rosa_m · edited