-
-
Notifications
You must be signed in to change notification settings - Fork 3
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 4 已发布,是否可以适配? #42
Comments
👋嘿,首先谢谢你对 tailwindcss 和本插件的关注。 正如 README 插件原理 中提到的一样,一个难点在于编译出来的文件存在小程序不支持的字符和元素,这个难点已经基本克服,即使是 tailwindcss v4 也应该能正常运行,除非是出现了不匹配的文件后缀(比如之前补充的小红书小程序相关文件没有经过处理导致报错),或出现了新的不支持的字符和元素未处理。类似于 oklch 颜色的问题,其实 postcss 都能处理,比如 postcss-preset-env 最新版已经包含了 @csstools/postcss-oklab-function 可以处理 oklch 颜色。 还没有克服的难点有两个:
目前来说,我个人更建议你使用 unocss + unocss-preset-uni 或 tailwindcss + weapp-tailwindcss 的方案,这个方案我可能会废弃掉。 Pin @sonofmagic @nei1ee @skiyee ,如果我说得不对,请指正 🙇 |
正在开发 weapp-tailwindcss@4 , 努力适配中 😄 已经在多个平台适配,详情请阅读: https://tw.icebreaker.top/docs/quick-start/v4 |
目前已切换到 |
对问题的清晰和简明的描述
tailwindcss 4 发布,地址,感觉变动还挺多的,不清楚此插件是否可以直接适配?
推荐的解决方案
无
替代方案
No response
额外上下文
No response
检查
The text was updated successfully, but these errors were encountered: