These steps show how to install Tailwind CSS in a Pelican project, purge and minify it so you don't have to reference a 3+ MB CSS file but only several kB.
virtualenv venv
. venv/bin/activate
pip install nodeenv
nodeenv env
. env/bin/activate
npm install postcss postcss-cli autoprefixer tailwindcss purgecss cssnano