changing col-span with template literal
any idea why this isnt working?
Solution:Jump to solution
Dynamic class names like that don't quite work with Tailwind, it decides on build time what classes to compile, there are some workarounds here https://stackoverflow.com/questions/69687530/dynamically-build-classnames-in-tailwindcss
4 Replies
Because tailwind can't parse that at compile time. It needs the full class name.
Solution
Dynamic class names like that don't quite work with Tailwind, it decides on build time what classes to compile, there are some workarounds here https://stackoverflow.com/questions/69687530/dynamically-build-classnames-in-tailwindcss
^^^^ I was looking for basically this issue to explain a bit better.
thanks that helped