Liveview dynamic tailwind colors not working

Good thing that you wrote, the last time I found the answer I was banging my head against the wall for the second day.

The tailwind pre-processor scans the source code. This means that if you don’t have the full class written somewhere, it will not get included by tailwind, as it has no concept what string concatenation result will be.

You can read more discussion on this here: Can we solve the tailwind-interpolation-problem with a macro?

1 Like