在 Rails 7 中使用 Tailwind 添加自定义 css 文件
我们的应用程序中有 Tailwind,但我们确实希望另一个自定义 css 文件也适用于不同的布局。例如,我的样式表文件夹中有 custom1.css 和 custom2.css,如何使它们与 Tailwind 结合使用?
We have Tailwind working in our app, but we really want another custom css files too work for different layouts as well. So for example, I have custom1.css and custom2.css in my stylesheets folder, how can I make them work in conjunction with Tailwind?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以在 application.tailwind.css 文件中添加自定义 css,例如
https://tailwindcss.com/docs/adding-custom-styles#using-css-and-layer
you can add custom css inside the application.tailwind.css file e.g.
https://tailwindcss.com/docs/adding-custom-styles#using-css-and-layer