最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

tailwind css - Icomoon icons not working after upgrading to TailwindCSS v4 - Stack Overflow

programmeradmin0浏览0评论

I'm trying to upgrade the TailwindCSS in my React app to v4.

Most of the upgrade went fine, however my Icomoon icons are no longer showing up. Instead of the icon, a simple square outline is shown. It seems something is wrong with the 'content' aspect, since if I turn that off in the inspector, the outline disappears completely.

I tried redownloading the Icomoon font but that didn't work, so I'm asuming it might be related to the utility layer that the migration introduced?

In my Icomoon stylesheet, it just says this for each icon:

.icon-[icon-name]:before {
  content: "\e902";
}
发布评论

评论列表(0)

  1. 暂无评论