Tailwind CSS Theme tutorial

Hi there,

October CMS novice here, could someone point to a recent resource in creating a blog with October CMS using Tailwind CSS? Or creating a theme in general with tailwind.

Many thanks

Lee

1 Like

What about this one?

  1. Use tools like laravel-mix or vite (I prefer vite, laravel-mix and webpack are old nowadays). Hopefully, we have brilliant plugin for october: GitHub - OFFLINE-GmbH/oc-vite-plugin: Vite integration for October CMS
  2. Install Tailwind using PostCSS: Install Tailwind CSS using PostCSS - Tailwind CSS
  3. In TW config file add these strings to the content array:
content: [
      "./content/**/*.{htm,js}",
      "./layouts/**/*.{htm,js}",
      "./pages/**/*.{htm,js}",
      "./partials/**/*.{htm,js}",
      "./resources/**/*.js",
  ],
2 Likes