Welcome Guest, Not a member yet? Register   Sign In
Codeigniter 4 w/ Tailwind CSS

Anybody have experience using Tailwind CSS with Codeigniter 4?

I followed the steps to use the Tailwind CLI, but when I run 

npx tailwindcss -i public/css/input.css -o public/css/output.css --watch;

I get warnings

warn - No utility classes were detected in your source files. If this is unexpected, double-check the `content` option in your Tailwind CSS configuration.

warn - https://tailwindcss.com/docs/content-configuration

Here is my tailwind.config.js file 

/** @type {import('tailwindcss').Config} */

module.exports = {

  content: {

    relative: true,

    files: ["./app/Views/*.php", "./public/*.js"],


  theme: {

  extend: {},


plugins: [],


I think it's an issue with the content part of the tailwind config file but I can't for the life of me figure out what's wrong.

Theme © iAndrew 2016 - Forum software by © MyBB