如何在 Quasar 框架中使用 Tailwind CSS?
How to use Tailwind CSS with Quasar framework?
我一直在尝试使用 Tailwind 来自定义 Quasar 组件,但是 Quasar CSS 已经覆盖了大部分 Tailwind CSS。
我为我的 tailwind.config.js
添加了一个前缀,我的 Tailwind 类 的前缀为 tw-,如下例所示。
module.exports = {
prefix: 'tw-',
}
有a dedicated issue on Quasar's github
正如 Quasar 开发者所说,prefixing tailwind classes is the recommended way
这样做。所以你是对的!
要更深入,the most interesting part seems about using Unocss
to play with its presets for other frameworks like Tailwind
我一直在尝试使用 Tailwind 来自定义 Quasar 组件,但是 Quasar CSS 已经覆盖了大部分 Tailwind CSS。
我为我的 tailwind.config.js
添加了一个前缀,我的 Tailwind 类 的前缀为 tw-,如下例所示。
module.exports = {
prefix: 'tw-',
}
有a dedicated issue on Quasar's github
正如 Quasar 开发者所说,prefixing tailwind classes is the recommended way
这样做。所以你是对的!
要更深入,the most interesting part seems about using Unocss
to play with its presets for other frameworks like Tailwind