Appearance
检查器
¥Inspector
UnoCSS 的检查器 UI:@unocss/inspector
。随 unocss
和 @unocss/vite
一起发货。
¥The inspector UI for UnoCSS: @unocss/inspector
. Ships with unocss
and @unocss/vite
.
用法
¥Usage
访问 Vite 开发服务器中的 localhost:5173/__unocss 以查看检查器。
¥Visit localhost:5173/__unocss in your Vite dev server to see the inspector.
检查器允许你检查生成的 CSS 规则以及每个文件应用的类。它还提供了一个 REPL 来根据你当前的配置测试你的工具。
¥The inspector allows you to inspect the generated CSS rules and the applied classes for each file. It also provided a REPL to test your utilities based on your current configuration.
![](https://user-images.githubusercontent.com/11247099/140885990-1827f5ce-f12a-4ed4-9d63-e5145a65fb4a.png)
![](https://user-images.githubusercontent.com/11247099/140886020-7014f412-f020-4aed-a169-d025cc1bbcd3.png)