Skip to content
wot-ui avatar

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
View on GitHub

Own this skill? Claim it

What it does

  • Covers installation, the presetWot setup in unocss.config.ts, option descriptions, and common class-name examples
  • Includes options prefix (default wot), preflight (default true), and baseTokens (default false) 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 -y

Installs 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 4

Similar to Wot Ui Unocss Preset Guide

More Frontend & UI Code