Skip to content
This repository has been archived by the owner on Aug 30, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants