Skip to content
Discussion options

You must be logged in to vote

You need tailwind.config.js in your root directory. Even though for tailwind 4 it is not needed, but for Angular to work with tailwind, you still need it.

This is how my tailwind.config.js looks like

/** @type {import('tailwindcss').Config} */
module.exports = {
  content: [
    "./src/**/*.{html,ts}"
  ],
  plugins: [],
}
  • The config file should be loaded in the main css file like this.
  • You don't need Tailwind CLI with this method.
  • postcss config file should be in json format.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by stevengunneweg
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants