Skip to content

Setting up a new sandbox

Erich Rainville edited this page Dec 30, 2019 · 1 revision

Guide to creating a new sandbox for building a site with Tailwind CSS.

  • npm init -y
  • npm install tailwindcss postcss-cli autoprefixer
  • npx tailwind init
  • touch postcss.config.js
  • Add plugins require to postcss.config file
  • Create new css/tailwind.css file
  • Add @tailwind base, components, utilities to tailwind.css
  • Add build script to package.json file
  • Run npm run build
  • Create index.html
  • npm install -g live-server
  • Run live-server public
Clone this wiki locally