After doing npm install -D tailwindcss, use npx tailwindcss-cli@latest init to create the tailwind.config.js file. Updated with verion v4.0.