I had to manually create a tailwind.config.js in the root directory Then added the following and now it works:
/** @type {import('tailwindcss').Config} */ export default { content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}"], plugins: [], };