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

antd和tailwind一起使用时, 如何修改样式导入顺序 #70

Open
nbbug opened this issue Feb 9, 2022 · 1 comment
Open

antd和tailwind一起使用时, 如何修改样式导入顺序 #70

nbbug opened this issue Feb 9, 2022 · 1 comment

Comments

@nbbug
Copy link

nbbug commented Feb 9, 2022

想让tailwind的样式放在后面 覆盖antd的样式

@LiHaoGit
Copy link

我也用了 tailwindantd 除了要覆盖样式,还有些初始化的样式要覆盖。建议使用 WindiCSS ,支持 !important 覆盖

<Button className="!flex" >test</Button>
// 其中  !flex 生成  display: flex !important; 样式

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