vue3 做响应式网站,大家用啥组件库?

2022-06-07 11:29:55 +08:00
 yuthelloworld

css 已选 tailwind / windicss 。UI 组件库有啥推荐的吗

6199 次点击
所在节点    程序员
47 条回复
helone
2022-06-07 14:01:17 +08:00
我就想知道 tailwind 和 ui 设计稿能有啥冲突,ui 给的任何实现都能用 tailwind 用原子类给描述出来啊。。。
terranboy
2022-06-07 14:03:26 +08:00
tailwindcss 怎么不能还原设计稿啊 国外用 tailwindcss 做的网站太多啦 各种风格都有啊 可以把它看成是一个更底层的组件库 各种样式能能做
TomVista
2022-06-07 14:09:50 +08:00
tailwind 是不是几乎不支持 选择器?
manami
2022-06-07 14:12:28 +08:00
bulma
lizy0329
2022-06-07 14:26:13 +08:00
@terranboy 你是古代穿越过来的吗? w-[28px] 你知道这种是什么吗?
chouchoui
2022-06-07 14:33:27 +08:00
@yaphets666 tailwind 都是原子类也没有固定的设计风格,能和 UI 有什么冲突,从自己写 css 变成了用原子类实现 UI 有什么区别。就算已有的原子类或配置不够用,tailwind 还有 jit 模式了解过吗?

既然都知道了 scoped 为什么会不知道深度选择器
vue2 >>> 或 /deep/
vue3 :v-deep()
yuthelloworld
2022-06-07 14:38:03 +08:00
@lizy0329 #25 你好像艾特错人了
yuthelloworld
2022-06-07 14:40:18 +08:00
@lizy0329 #25 w-[28px]这个是 windicss 里额外的
Twinkle
2022-06-07 14:53:15 +08:00
@yuthelloworld 这个写法 tailwind 也是支持的
renhou
2022-06-07 15:03:23 +08:00
@chouchoui 老哥可以试试 quasar 和 primevue ,香,都有响应式
renhou
2022-06-07 15:06:45 +08:00
答题主问题。。
既然你选择了 taiwindcss ,那么建议用 daisy ui 作为组件库
yuthelloworld
2022-06-07 15:28:42 +08:00
@lian704 #31
@dk7952638 #1 daisyui 是个单纯的 html 组件,没有 js API 啊
sjhhjx0122
2022-06-07 16:07:35 +08:00
要不试试 unocss ~
yuthelloworld
2022-06-07 16:27:22 +08:00
@sjhhjx0122 #33 unocss 只是个 css 引擎呀
brust
2022-06-07 16:30:36 +08:00
tailwind 不能商用吗?
sjhhjx0122
2022-06-07 16:48:49 +08:00
@yuthelloworld 对啊,vue 能响应式的组件就 quasar 和 vuetify 吧,都是 md 风格的
brust
2022-06-07 16:49:39 +08:00
tailwind MIT
windicss MIT
不都是 MIT 吗
cosmtrek
2022-06-07 18:13:35 +08:00
推荐 tailwind + naive-ui
babyoung
2022-06-07 18:46:50 +08:00
@chouchoui Vue3 现在是 :deep() 改来改去很烦
cszchen
2022-06-07 19:02:33 +08:00
tailwindcss 本身是没有任何风格的,所以可以写出任何你想要的风格。
它只不过把手写 css 变成了手写类名。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/857841

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX