Skip to content
Frontend
Skill

/unocss

UnoCSS instant atomic CSS engine, superset of Tailwind CSS. Use when configuring UnoCSS, writing utility rules, shortcuts, or working with presets like Wind, Icons, Attributify.

From plugin
skills
6.1k14 skills

Claude Code

$ npx -y skills add antfu/skills --skill unocss --agent claude-code

SKILL.md

unocss.SKILL.md
name: unocss
description: UnoCSS instant atomic CSS engine, superset of Tailwind CSS. Use when configuring UnoCSS, writing utility rules, shortcuts, or working with presets like Wind, Icons, Attributify.
metadata:
  author: Anthony Fu
  version: "2026.9.25"
  source: Generated from https://github.com/unocss/unocss, scripts located at https://github.com/antfu/skills

UnoCSS is an instant atomic CSS engine designed to be flexible and extensible. The core is un-opinionated - all CSS utilities are provided via presets. It's a superset of Tailwind CSS, so you can reuse your Tailwind knowledge for basic syntax usage.

**Important:** Before writing UnoCSS code, agents should check for `uno.config.*` or `unocss.config.*` files in the project root to understand what presets, rules, and shortcuts are available. If the project setup is unclear, avoid using attributify mode and other advanced features - stick to basic `class` usage.

> The skill is based on UnoCSS v66.10.5, generated at 2026-09-25.

Core

| Topic | Description | Reference | |-------|-------------|-----------| | Configuration | Config file setup and all configuration options | [core-config](references/core-config.md) | | Rules | Static and dynamic rules for generating CSS utilities | [core-rules](references/core-rules.md) | | Shortcuts | Combine multiple rules into single shorthands | [core-shortcuts](references/core-shortcuts.md) | | Theme | Theming system for colors, breakpoints, and design tokens | [core-theme](references/core-theme.md) | | Variants | Apply variations like hover:, dark:, responsive to rules | [core-variants](references/core-variants.md) | | Extracting | How UnoCSS extracts utilities from source code | [core-extracting](references/core-extracting.md) | | Safelist & Blocklist | Force include or exclude specific utilities | [core-safelist](references/core-safelist.md) | | Layers & Preflights | CSS layer ordering and raw CSS injection | [core-layers](references/core-layers.md) | | Processors | Transform generated CSS layers (incl. Lightning CSS) | [core-processors](references/core-processors.md) |

Presets

Main Presets

| Topic | Description | Reference | |-------|-------------|-----------| | Preset Wind3 | Tailwind CSS v3 / Windi CSS compatible preset (most common) | [preset-wind3](references/preset-wind3.md) | | Preset Wind4 | Tailwind CSS v4 compatible preset with modern CSS features | [preset-wind4](references/preset-wind4.md) | | Preset Mini | Minimal preset with essential utilities for custom builds | [preset-mini](references/preset-mini.md) |

Feature Presets

| Topic | Description | Reference | |-------|-------------|-----------| | Preset Icons | Pure CSS icons using Iconify with any icon set | [preset-icons](references/preset-icons.md) | | Preset Attributify | Group utilities in HTML attributes instead of class | [preset-attributify](references/preset-attributify.md) | | Preset Typography | Prose classes for typographic defaults | [preset-typography](references/preset-typography.md) | | Preset Web Fonts | Easy Google Fonts and other web fonts integration | [preset-web-fonts](references/preset-web-fonts.md) | | Preset Tagify | Use utilities as HTML tag names | [preset-tagify](references/preset-tagify.md) | | Preset Rem to Px | Convert rem units to px for utilities | [preset-rem-to-px](references/preset-rem-to-px.md) |

Transformers

| Topic | Description | Reference | |-------|-------------|-----------| | Variant Group | Shorthand for grouping utilities with common prefixes | [transformer-variant-group](references/transformer-variant-group.md) | | Directives | CSS directives: @apply, @screen, theme(), icon() | [transformer-directives](references/transformer-directives.md) | | Compile Class | Compile multiple classes into one hashed class | [transformer-compile-class](references/transformer-compile-class.md) | | Attributify JSX | Support valueless attributify in JSX/TSX | [transformer-attributify-jsx](references/transformer-attributify-jsx.md) |

Integrations

| Topic | Description | Reference | |-------|-------------|-----------| | Vite Integration | Setting up UnoCSS with Vite and framework-specific tips | [integrations-vite](references/integrations-vite.md) | | Nuxt Integration | UnoCSS module for Nuxt applications | [integrations-nuxt](references/integrations-nuxt.md) |

Read more
@antfu
Ships withskills

A collection of Agent Skills reflecting Anthony Fu's preferences, experience, and best practices, along with usage documentation for the tools.

Stars on GitHub

Momentum

stars in total
6.1k
Star history of antfu/skills on GitHub, a chart by star-history.com

Other skills on skills.

antfu-create-pr

antfu-create-pr

Create a reviewable GitHub pull request from the current branch with a Conventional Commits title, a concise evidence-based body,…

@antfu@antfuInstall Skill
antfu-issue-triage

antfu-issue-triage

Triage open issues and PRs of the current GitHub repo - find already-fixed, duplicate, and spam items, suggest labels, gauge…

@antfu@antfuInstall Skill
antfu-query

antfu-query

Interview the user relentlessly about a plan, decision, or idea until reaching a shared understanding, using the agent's…

@antfu@antfuInstall Skill
antfu-simplify

antfu-simplify

Simplify the changes of the current PR or working tree with an ablation study - remove each piece of the diff and keep only what…

@antfu@antfuInstall Skill
antfu

antfu

Anthony Fu's opinionated tooling and conventions for JavaScript/TypeScript projects. Use when setting up new projects,…

@antfu@antfuInstall Skill
nitro

nitro

Nitro is the framework-agnostic server toolkit (powering Nuxt) for building and deploying web servers anywhere. Use when working…

@antfu@antfuInstall Skill

More skills from other plugins.

next-bundle-optimizer
Auto-invoked

next-bundle-optimizer

Audit and reduce Next.js browser initial-load work. Use for slow route startup, oversized client bundles, duplicate browser…

nextjs9d143k
@vercel@vercelInstall Skill
migrate-radix-to-base

migrate-radix-to-base

Migrates React projects and components from Radix UI to Base UI. Use when asked to migrate from radix, move to base-ui, convert…

ui2w127k
@shadcn-ui@shadcn-uiInstall Skill
chrome-release-cls

chrome-release-cls

Given a Chrome Releases blog post URL (chromereleases.googleblog.com), extract every CVE/bug and find the underlying Gerrit CL…

electron9d124k
@electron@electronInstall Skill
taste-skill
Auto-invoked

taste-skill

tasteskill v2, the anti-slop frontend skill. Art direction for websites, distilled from a study of 247 curated gallery sites (One…

Questions about unocss.

Which coding agents can use unocss?
unocss installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.