Quarkc + Tailwind 使用指南 #38
xxxsf
announced in
Announcements
Replies: 3 comments 4 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
-
|
size 大了好多, 并不是只大了使用到的那部分css的size |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
我在 quarkc 组件开发中尝试了引入可以替代 Tailwind 的 UnoCSS,开发时可以得到和 Tailwind 一样的体验,在构建后也不担心产物体积巨增的问题 1. 安装 UnoCSS2. 配置 UnoCSSimport UnoCSS from 'unocss/vite';
import { defineConfig } from 'vite';
export default defineConfig({
plugins: [
UnoCSS({
mode: 'shadow-dom',
})
]
});添加
|
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
tailwind.config.js
package.json
"dependencies": { + "@twind/core": "1.1.3", + "@twind/preset-autoprefix": "1.0.7", + "@twind/preset-tailwind": "1.1.4", + "@twind/with-web-components": "1.1.3" },Beta Was this translation helpful? Give feedback.
All reactions