Tailwind CSS 常见坑避坑指南:最佳实践与解决方案
✔️

Tailwind CSS 常见坑避坑指南:最佳实践与解决方案

How to Fix unknownAtRules Warnings From Tailwind CSS

notion image
notion image

Installing Tailwind CSS IntelliSense Plugin

To fix “Unknown at rule @tailwind” warning, start by installing Tailwind CSS IntelliSense plugin.
When that is done, you need to associate your CSS file with Tailwind CSS.
  1. Open the CSS file where you import Tailwind CSS
  1. Press Shift + P and search for “change language mode
    1. notion image
  1. Inside the search bar, type “tailwindcss” and select it.
    1. notion image
Now your CSS file is associated with Tailwind CSS and the warnings should be gone.
 

评论未启用:请在环境变量中设置 NEXT_PUBLIC_CUSDIS_APP_ID(可在 cusdis.com 免费创建)。