Open tlerbao opened 1 year ago
@azaleta No, it is similar to this question https://github.com/tailwindlabs/tailwindcss/discussions/5969,
tailwindcss will cause the button of vant ui to have no background color (other conflicts are unknown). If you manually introduce the style file of vant ui after tailwindcss, this problem can be solved, but this violates the on-demand loading.
corePlugins: { preflight: false, },
add this to your tailwind.config.js might solve your problem,preflight build on top of normalize.css so you can mannually add normalize.css before vant ui style file
Describe the bug
Using both tailwindcss and vant, it seems that tailwindcss will invalidate the styles of vant. It seems that this problem can be solved by manually introducing the vant style after the introduction of Tailwindcss, but this will increase the volume of CSS. What is the correct solution?
vite.config.ts
main.ts
Reproduction
Reproduction
System Info
Used Package Manager
npm
Validations