Tailwind classes not applied when used as vue component props
Hello, I'm working on a project using Vue3 with Vite and Tailwind v3 but I am having issues with some Tailwind classes not being applied when they are passed as props to a component.
When I check the inspector in the browser I see the class bg-gray-200 applied but the styling is missing. I'm guessing the that compiler isn't picking up this class for some reason? All other tailwind classes work as expected if applied directly.
Tailwind has no way of knowing that your js will result it bg-gray-200. It only see them as seperate strings. So it will remove the classes as they are unused