Starter project for using Jekyll with Tailwind CSS

jekyll logo

Want a Jekyll website built?

Hire a Jekyll developer

Jekyll Tailwind Starter

Welcome! Here you'll find a reasonable starter pack for using Jekyll with Tailwind CSS, Autoprefixer, and Purgecss.


This project uses jekyll-postcss to manage compiling your Tailwind and Autoprefixer styles. You can use any PostCSS plugin by installing it with yarn or npm and adding it to your postcss.config.js.


git clone PROJECT_NAME


# Install your Ruby and JavaScript dependencies.
# Initialize your Tailwind configuration.
# Reinitialize your git repository.


# Install new dependencies

# Start the server 

# Create a new post
bin/new POST_TITLE

File Structure

    \---analytics.html // place your analytics tracking snippet in here
    \---syntax.css // Syntax highlighting CSS
    \---tailwind.config.js // Tailwind configuration. This is generated by bin/setup
    \---bootstrap // Install dependencies
    \---new // Create a new post and open it in your $EDITOR
    \---setup // Initial site setup
    \---start // Start the server with the livereload, incremental, drafts, and future flags on port 5000
    \---site.css // Entry point stylesheet. You can write your styles here or import them from the _includes directory // Front page. This can be changed to an HTML file if desired.
+---_config.yml // Jekyll configuration
+---postcss.config.js // PostCSS configuration. All plugins should be registered here.
+---netlify.toml // Netlify configuration 

PostCSS plugins

  • postcss-import
  • Tailwind CSS
  • Autoprefixer
  • @fullhuman/postcss-purgecss
  • cssnano


This setup has been tested on Netlify.

jekyll logo

Want a Jekyll website built?

Hire a Jekyll developer

Get New Themes & Resources