changing col-span with template literal

any idea why this isnt working?
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
Jump to solution
4 Replies
thescotsmav
thescotsmav2y ago
Because tailwind can't parse that at compile time. It needs the full class name.
Solution
Alejo
Alejo2y ago
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
thescotsmav
thescotsmav2y ago
^^^^ I was looking for basically this issue to explain a bit better.
bento
bentoOP2y ago
thanks that helped
Want results from more Discord servers?
Add your server