雏菊UI自定义主题在导入后不起作用
我曾导入雏菊UI插件。但是,仍然将自己转换为黑暗模式如何解决该问题?我希望我的主题在光模式下不使用 data-theme html属性中的光
I had imported daisy UI plugins. But still converts itself to dark mode how to fix that problem? I wanted my theme in light mode without using data-theme light in the html attribute
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在tailwind.config.js中,将主题设置为false。例子:
module.exports = {plugins:[require('daisyui')],daisyui:{themes:false}}};
In tailwind.config.js set themes to false. Example:
module.exports = { plugins: [require('daisyui')], daisyui: { themes: false } };
将此代码放在 tailwind.config.js 中,将应用光主题。如果要使用不同的主题,则可以访问此处
Put this code to tailwind.config.js, the light theme will be applied. If you want to use different themes then you can visit here