"at-rule-no-unknown": [ true, { ignoreAtRules: [ "tailwind", "apply", "variants", "responsive", "screen", ], }, ], "declaration-block-trailing-semicolon": null, "no-descending-specificity": null, }, }; 三、安装Stylelint、Tailwind CSS IntelliSense扩展 四、修改VSCode的settings.json...
@apply text-gray-dark; ^^^ Unknown at rule @apply css(unknownAtRules) } } 1. 2. 3. 4. 5. 6. 7. 解决方法: 在根目录 .vscode 文件夹下 .vscode/settings.json 添加 "css.customData": [".vscode/tailwindcss.json"] 1. 创建.vscode/tailwindcss.json { "version": 1.1, "atDirectives":...
Tailwind CSS 是一款 Units 導向的 CSS 框架,它的許多優勢讓大家趨之若鶩的學習與瞭解,但是在 VSCode 開發上時常會遇到 Unknown at rule @tailwind、Unknown at rule @apply 等錯誤訊息,所以這一篇來紀錄一下解決方式。 前言 Tailwind CSS 是一款 Units 導向的 CSS 框架,它的許多優勢讓大家趨之若鶩的學習與瞭...
Do the same as explained above inside your VSCode Globalsettings.json. It will fix the problem for you but not for others using the same codebase. You can open the file by using,Cmd+Shift+Pand then choosing "Preferences: Open Settings (JSON)". (Update: on the latest VSCode click on "...
@tailwindbase;^^^Unknown at rule @tailwindcss(unknownAtRules) ./styles/globals.css @layerbase{*{@applytext-gray-dark;^^^Unknown at rule @applycss(unknownAtRules)}} VSCode Solution: Define Custom Data for CSS The solution was toload a custom CSS datasetfor Tailwind directives in a workspace...
create a css class use the rule@apply Expected behavior there are not warning System Info System: OS: Linux 4.14 Ubuntu 20.04.6 LTS (Focal Fossa) Container: Yes Shell: 5.8 - /bin/zsh Binaries: Node: 16.20.0 -~/.nvm/versions/node/v16.20.0/bin/node ...
If you are using TailwindCSS in your project, you have probably already encountered the warning messageUnknown at rule @tailwind. If you use VSCode, you can see the wavy underline in the CSS file and the warning list in theProblemstab. ...
Unknown at rule @tailwindcss(unknownAtRules) 截图如下: 解决 原因是css 不知道这条规则提示,如果没有提示警告。 可以屏蔽这条vscode 规则: 在根目录新建.vscode文件夹 文件夹下新建settings.json 文件 添加规则 代码语言:javascript 复制 {"css.lint.unknownAtRules":"ignore"} ...
该文介绍了如何用css实现未知宽度的正方形,其中一种是利用图片的等比例缩放,另一种是利用padding的...
@tailwindbase;@tailwindcomponents;@tailwindutilities; 画像1. Visual Studio Codeで警告が表示されている 解消方法 以下の4点のいずれかの方法で解消できる。 方法1. Tailwind CSS IntelliSense をインストールする 手順 Tailwind CSS IntelliSenseをインストールする。