Wot Ui Unocss Preset Guide
Configuration and usage guide for the @wot-ui/unocss-preset UnoCSS preset, with troubleshooting for class names and editor support.
- CCM score
- 51 of 100
- skills.sh installs
- 929
- GitHub stars
- 39
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers installation, the
presetWotsetup inunocss.config.ts, option descriptions, and common class-name examples - Includes options
prefix(defaultwot),preflight(defaulttrue), andbaseTokens(defaultfalse) with sample usage - Provides copyable uni-app and Vue examples for cards, spacing, semantic colors, and dark mode via
.wot-theme-dark - Designed for developers integrating wot-ui styling who hit missing class names, absent autocomplete, or local-versus-CI mismatches
Install
$ npx -y skills add wot-ui/cli --skill wot-ui-unocss-preset-guide -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Wot UnoCSS Preset 使用指南
适用场景
当用户询问以下内容时,优先使用本 Skill:
- 如何安装
@wot-ui/unocss-preset - 如何在
unocss.config.ts配置presetWot prefix、preflight、baseTokens怎么用- 为什么类名不生效、自动补全不出现、CI 与本地结果不一致
目标是给出可直接复制的最佳实践,帮助用户快速完成接入并稳定运行。
最小安装步骤
pnpm add -D unocss
pnpm add @wot-ui/unocss-preset
推荐配置(完整示例)
import { presetWot } from '@wot-ui/unocss-preset'
import { defineConfig } from 'unocss'
export default defineConfig({
presets: [
presetWot({
prefix: 'wot',
preflight: true,
baseTokens: false,
}),
],
})
配置项说明
prefix:工具类前缀,默认wot。示例:wot-text-primary、wot-m-main。preflight:是否注入 wot-ui CSS 变量,默认true。baseTokens:是否开放基础色板和原始 token 类名,默认false。
常用类名示例
- 颜色:
wot-text-primary、wot-bg-danger-surface、wot-border-border-main - 间距:
wot-m-main、wot-gap-tight、wot-gap-x-loose - 内边距:
wot-p-main、wot-px-tight、wot-pb-loose - 圆角:
wot-rounded-md、wot-rounded-full - 字重:
wot-font-medium、wot-font-semibold - 排版:
wot-text-body-main、wot-text-title-large - 透明度:
wot-opacity-disabled - 描边:
wot-border-stroke-main
上手示例(可复制)
1) 一个“卡片”示例(uni-app / Vue)
Details
- Repository
- github.com/wot-ui/cli
- Categories
- Frontend & UI Code, Technical Documentation
- First seen
- Jun 3, 2026
Questions
What does the wot-ui-unocss-preset-guide skill do?
wot-ui-unocss-preset-guide guides installing, configuring and using the @wot-ui/unocss-preset package. It helps with presetWot options such as prefix, preflight and baseTokens, plus common class names and troubleshooting.
How do I install the wot-ui-unocss-preset-guide skill?
Run npx -y skills add wot-ui/cli --skill wot-ui-unocss-preset-guide -y in a project. The skill then lets the agent answer wot-ui unocss preset setup questions with copyable configuration.
Where does wot-ui-unocss-preset-guide stand in the Frontend and UI Code category?
wot-ui-unocss-preset-guide is listed in the Frontend and UI Code category on Claude Marketplaces, next to vercel-react-best-practices, web-design-guidelines and design-taste-frontend. It focuses on the wot-ui UnoCSS preset specifically.
What do I need to use wot-ui-unocss-preset-guide with my project?
wot-ui-unocss-preset-guide assumes a project that uses UnoCSS, with the unocss and @wot-ui/unocss-preset packages added through pnpm. Its setup steps use an unocss.config.ts file where presetWot is added to presets.
More from wot-ui/cli
All 4Similar to Wot Ui Unocss Preset Guide
More Frontend & UI Codecreate-wot-ui-themewot-ui/cli934 installsGenerates a single-file wot-ui theme SCSS with semantic tokens and optional App.vue wiring for brand themes.
wot-ui-v2wot-ui/cli1.3K installsComprehensive offline query skill for wot-ui v2 uni-app Vue 3 components, theming, and troubleshooting.
unocssantfu/skills16.5K installsAtomic CSS engine that generates utilities on demand, with every utility provided by composable presets.
wot-uiwot-ui/wot-starter442 installsDevelopment guide for the wot-ui uni-app component library, covering component usage, configuration, examples, and APIs.
ui-stylingnextlevelbuilder/ui-ux-pro-max-skill56.2K installsPragmatic styling guide pairing shadcn/ui components with Tailwind CSS and canvas-based visual design.
tailwind-css-patternsgiuseppe-trisciuoglio/developer-kit18.4K installsModern Tailwind CSS v4.1 patterns for responsive layouts, components, dark mode, and accessibility.