Skip to content

[v4] Unused CSS selector warning with new @import "style.css" reference with svelte #15323

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

Closed
stephanedemotte opened this issue Dec 6, 2024 · 2 comments

Comments

@stephanedemotte
Copy link

stephanedemotte commented Dec 6, 2024

What version of Tailwind CSS are you using?

v4 beta 5

What build tool (or framework if it abstracts the build tool) are you using?

svelte5, vite 6

What version of Node.js are you using?

v22

What browser are you using?

Chrome

What operating system are you using?

macOS

Reproduction URL

https://github.com/stephanedemotte/_issue-tw-v4-unused-css-selector

Describe your issue

When i'm using the new @import "$lib/style.css" reference i've got a warning Unused CSS selector, in a real project i've got hundred of warning :)

Screenshot 2024-12-06 at 10 42 39 AM

Another thing i've got Unknow at rule @apply and Unknow at rule @theme :/

Screenshot 2024-12-06 at 10 15 51 AM Screenshot 2024-12-06 at 10 42 57 AM

Thank you

@adamwathan
Copy link
Member

Hey! Update to beta 6 and this should be fixed 🤞🏻

@stephanedemotte
Copy link
Author

#15307

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

2 participants