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.
 

这里暂时还不能留言,想交流的话可以给我写信。