The issue you're facing occurs because Tailwind CSS does not support dynamic values directly in class names, such as ${brewery.breweryType.colour}. Tailwind expects class names to be static strings so it can generate the corresponding styles during the build process.