avatar
Tailwind踩坑
✔️

Tailwind踩坑

keywords
published_date
最新编辑 2024年10月09日
slug
要修复Tailwind CSS中的“未知规则@tailwind”警告,首先安装Tailwind CSS IntelliSense插件,然后将CSS文件与Tailwind CSS关联。打开CSS文件,按Shift + P并搜索“更改语言模式”,输入“tailwindcss”并选择它,这样警告就会消失。
tags
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.
 

关于我

My desire to practice my skills and share my acquired knowledge fuels my endeavors.

联系 : znjessie858@gmail.com

订阅

订阅我的文章,收到我的最新发布通知,可随时取消订阅!