Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[tailwindcss v4] Unable to @apply primevue vars in vue scoped css #13

Open
asamofal opened this issue Jan 23, 2025 · 4 comments
Open

[tailwindcss v4] Unable to @apply primevue vars in vue scoped css #13

asamofal opened this issue Jan 23, 2025 · 4 comments

Comments

@asamofal
Copy link

asamofal commented Jan 23, 2025

There's something changed in Tailwindcss v4. Now to use @apply in the vue component style block, it's required to have a reference to the tailwindcss theme.

<style scoped>
@reference 'tailwindcss';

.p-button {
  @apply p-2 text-surface-700;
}
</style>

[plugin:@tailwindcss/vite:generate:serve] Cannot apply unknown utility class: text-surface-700

@kaspernowak
Copy link

@asamofal Is this package even compatible with Tailwind v4 yet?

@asamofal
Copy link
Author

@kaspernowak Well... I would say not really, not yet. I created this issue to just highlight the problem for someone who will add the support for v4 🙂

@dxvgef
Copy link

dxvgef commented Jan 24, 2025

I attempted to upgrade Tailwind CSS from version 3 to version 4, but the text-primary became unavailable. As a result, I had to revert Tailwind CSS back to version 3 and await updates to the library.

@connorabbas
Copy link

I attempted to upgrade Tailwind CSS from version 3 to version 4, but the text-primary became unavailable. As a result, I had to revert Tailwind CSS back to version 3 and await updates to the library.

primefaces/primevue#7133 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants