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

next.js - TailwindCSS Custom Fonts Error: Cannot apply unknown utility class: font-extrabold - Stack Overflow

programmeradmin0浏览0评论

I'm getting this error from a NextJS and TailwindCSS project.

Error evaluating Node.js code
Error: Cannot apply unknown utility class: font-extrabold

I saw similar posts and I've tried the suggestions but still no luck.

I'm trying to create a utilities class/css in globals.css file, but for some reason tailwind doesn't understand 'font-extrabold' css or any other custom css

@layer utilities {

  .text-30-extrabold {
    @apply text-[30px] font-extrabold text-white;
  }
}

Here's my folder structure, my fonts are hosted locally.


└── 
发布评论

评论列表(0)

  1. 暂无评论