-
-
Notifications
You must be signed in to change notification settings - Fork 780
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
默认预设与 Tailwind 不兼容,失去继承属性。 #2961
Comments
If you not change the default color theme, |
However, Tailwind also has a This is because Tailwind compiles to: *, ::before, ::after {
box-sizing: border-box;
border-width: 0;
border-style: solid;
border-color: currentColor;
} However, UnoCSS compiles to: *, ::before, ::after {
box-sizing: border-box;
border-width: 0;
border-style: solid;
border-color: #e5e7eb;
} In the Tailwind version, the I still hope to have a |
UnoCSS version
0.54.2
Describe the bug
我使用默认预设,继承自 @unocss/preset-wind 时发现这个预设并没有与 Tailwind 一致。在文件 packages/reset/tailwind-compat.css 和 packages/reset/tailwind.css 中 border-color 是固定写为 #e5e7eb 。
但是 Tailwind 中是这样的。https://github.com/tailwindlabs/tailwindcss/blob/05e307bb6c562884877ea52b0d147bcecc4df3f6/src/css/preflight.css
这样就导致 border-color 与 Tailwind 不兼容,并且失去了继承。
Reproduction
https://github.com/tailwindlabs/tailwindcss/blob/05e307bb6c562884877ea52b0d147bcecc4df3f6/src/css/preflight.css
System Info
No response
Validations
The text was updated successfully, but these errors were encountered: