tusen-ai / naive-ui

A Vue 3 Component Library. Fairly Complete. Theme Customizable. Uses TypeScript. Fast.
https://www.naiveui.com
MIT License
16.24k stars 1.68k forks source link

[CSS] class 权重过低,被 tailwindcss3 Preflight 样式覆盖 #1808

Closed Innei closed 2 years ago

Innei commented 2 years ago

TuSimple/naive-ui version (版本)

2.21.5

Vue version (Vue 版本)

3.2.24

Browser and its version (浏览器及其版本)

Chrome 96.0.4664.55

System and its version (系统及其版本)

macOS12

Node version (Node 版本)

Reappearance link (重现链接)

https://github.com/Innei/tailwindcss3-naive-ui-reproduction

Reappearance steps (重现步骤)

启动此项目,观察按钮的背景颜色被覆盖

Expected results (期望的结果)

颜色不被覆盖

Actual results (实际的结果)

颜色被覆盖

Remarks (补充说明)

image image

07akioni commented 2 years ago

从根源上来讲应该逐渐添加一些 css var 的前缀了

07akioni commented 2 years ago

这个我们按组件慢慢加吧,先把 button 解决