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
