Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Ajvanho's avatar
Level 14

Tailwind css in vue component

I have installed Tailwind css in Laravel project, but doesnt work in Vue component. In network tab I see that css is loaded.

0 likes
1 reply
tykus's avatar
tykus
Best Answer
Level 104

Did you add the path to your Vue components directory in the content array of tailwind.config.css?

// tailwind.config.js
module.exports = {
  content: ["./resources/js/**/*.vue"],
  theme: {
    extend: {},
  },
  plugins: [],
}
1 like

Please or to participate in this conversation.