Skip to content

Instantly share code, notes, and snippets.

@DanielBerns
DanielBerns / pelican-tailwind-css.md
Created September 6, 2023 18:30 — forked from jorritfolmer/pelican-tailwind-css.md
Pelican with Tailwind CSS

How to use Tailwind CSS with Pelican

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.

  1. virtualenv venv
  2. . venv/bin/activate
  3. pip install nodeenv
  4. nodeenv env
  5. . env/bin/activate
  6. npm install postcss postcss-cli autoprefixer tailwindcss purgecss cssnano