Replies: 12 comments 12 replies
-
Beta Was this translation helpful? Give feedback.
-
Hijacking so there isn't yet another thread about this. Trying v4 today and setting a base path for tailwind using the source function with @import is an error: |
Beta Was this translation helpful? Give feedback.
-
![]() ![]() Yeah the work around does not work with source(none); and even using biome-ignore it stills warns me about this, any solution ? |
Beta Was this translation helpful? Give feedback.
-
Seems like there is no workaround for prefix for tailwind v4.
|
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
might be totally wrong here but I think this works...does for me at least
|
Beta Was this translation helpful? Give feedback.
-
In my case, Biome can't format css files when the necessary Vscode settings associate css file to tailwind. Biome isn't associate to tailwind languageID : // settings.json
"files.associations": {
"*.css": "tailwindcss" // https://marketplace.visualstudio.com/items?itemName=bradlc.vscode-tailwindcss#files.associations
} It is needed for vscode to recognize With Biome is it possible to override file extension to tell all css file is parse/format/lint/check by Biome ? |
Beta Was this translation helpful? Give feedback.
-
I came across the same issue when using @jole78 solution seems to remove all tailwind default classes (including margin, padding etc). If you just want to remove colors then i found the I have literally no experience with biomejs - but hope this helps and works for others. |
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
Any workaround for this? |
Beta Was this translation helpful? Give feedback.
-
My problem was it picks up @apply and @plugin and @custom-variant for example: src/styles/index.css:4:2 lint/suspicious/noUnknownAtRules ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✖ Unexpected unknown at-rule: plugin
2 │ @import "tw-animate-css";
3 │ /* index.css veya global CSS'te */
> 4 │ @plugin "tailwindcss-debug-screens";
│ ^^^^^^
5 │ |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Tip
There is now an issue, please (don't?) discuss there #7223
Biome 2.3 will include the associated patch, so all we've got left to do is wait.
For now, you can use https://pkg.pr.new/@biomejs/biome@72a8b02.
Important
PLEASE THINK BEFORE COMMENTING. Biome is an OSS project, and things don't change by continually harassing maintainers with +1-style comments.
If this is an actual issue for your company, please come implement it yourself. If this is just an issue for you personally, I'm sorry. I do feel you. I hate to ignore rules, but sometimes it's a necessary evil.
— OP
Update: Biome now seems to parse Tailwind 3 properly, but there are reports below of it failing on Tailwind 4's syntax.
Tailwind adds a few custom at-rules. I tried to see how well the new css work does on my css, but it fails at my
@apply
declarations. I can comment them out, but that's not a long-term solution. Probably the parser should just parse@apply
. Surprisingly,@tailwind
just works. Eventually, I'd like it if #1274 could also be integrated into@apply
, but that's certainly not needed at this point.Thanks for considering this! Biome is great!
P.S. After commenting it out, it linted my css just fine! It only found an empty ruleset b/c I'd commented it out, but it's running, finding issue, and, of course, it's fast ;)
Beta Was this translation helpful? Give feedback.
All reactions