Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
antfu avatar

Unocss

  • 14.4k installs
  • 5.7k repo stars
  • Updated June 23, 2026
  • antfu/skills

UnoCSS is a skill covering the atomic CSS engine with presets, transformers, and configuration patterns.

About

UnoCSS is an atomic CSS engine that generates utility classes on-demand. Developers use it as a faster, more flexible alternative to Tailwind CSS for styling web applications. Useful for teams prioritizing build performance and customization.

  • Atomic CSS engine with presets and transformers
  • Part of Anthony Fu's curated opinionated best practices
  • Integrates with Vite and modern JavaScript tooling

Unocss by the numbers

  • 14,385 all-time installs (skills.sh)
  • +159 installs in the week ending Aug 5, 2026 (Skillselion tracking)
  • Ranked #40 of 2,245 Frontend Development skills by installs in the Skillselion catalog
  • Security screen: MEDIUM risk (skills.sh audit)
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
At a glance

unocss capabilities & compatibility

Use cases
frontend · ui design · web design
IDEs
vscode · cursor ide · jetbrains · webstorm · neovim · zed
Pricing
Free
npx skills add https://github.com/antfu/skills --skill unocss

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs14.4k
repo stars5.7k
Security audit2 / 3 scanners passed
Last updatedJune 23, 2026
Repositoryantfu/skills

How do you configure UnoCSS presets and shortcuts?

UnoCSS is an atomic CSS engine that generates utility classes on-demand. Developers use it as a faster, more flexible alternative to Tailwind CSS for styling web applications. Useful for teams priori

Who is it for?

Frontend engineers building apps with Vite, Nuxt, or other modern JavaScript tooling

Skip if: Projects standardized on Tailwind CSS config alone without migrating to UnoCSS.

When should I use this skill?

A developer asks to set up uno.config.ts, add UnoCSS presets, shortcuts, or transformer directives in a frontend project.

What you get

uno.config.ts with presets, shortcuts, transformers, and project-ready utility-first CSS setup

  • uno.config.ts configuration file
  • Preset and shortcut definitions
  • Transformer-enabled utility CSS pipeline

By the numbers

  • Generated from UnoCSS source on 2026-01-28
  • Documents six presets and two transformers in the recommended config

Files

SKILL.mdMarkdownGitHub ↗

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 66.x, generated at 2026-01-28.

Core

TopicDescriptionReference
ConfigurationConfig file setup and all configuration optionscore-config
RulesStatic and dynamic rules for generating CSS utilitiescore-rules
ShortcutsCombine multiple rules into single shorthandscore-shortcuts
ThemeTheming system for colors, breakpoints, and design tokenscore-theme
VariantsApply variations like hover:, dark:, responsive to rulescore-variants
ExtractingHow UnoCSS extracts utilities from source codecore-extracting
Safelist & BlocklistForce include or exclude specific utilitiescore-safelist
Layers & PreflightsCSS layer ordering and raw CSS injectioncore-layers

Presets

Main Presets

TopicDescriptionReference
Preset Wind3Tailwind CSS v3 / Windi CSS compatible preset (most common)preset-wind3
Preset Wind4Tailwind CSS v4 compatible preset with modern CSS featurespreset-wind4
Preset MiniMinimal preset with essential utilities for custom buildspreset-mini

Feature Presets

TopicDescriptionReference
Preset IconsPure CSS icons using Iconify with any icon setpreset-icons
Preset AttributifyGroup utilities in HTML attributes instead of classpreset-attributify
Preset TypographyProse classes for typographic defaultspreset-typography
Preset Web FontsEasy Google Fonts and other web fonts integrationpreset-web-fonts
Preset TagifyUse utilities as HTML tag namespreset-tagify
Preset Rem to PxConvert rem units to px for utilitiespreset-rem-to-px

Transformers

TopicDescriptionReference
Variant GroupShorthand for grouping utilities with common prefixestransformer-variant-group
DirectivesCSS directives: @apply, @screen, theme(), icon()transformer-directives
Compile ClassCompile multiple classes into one hashed classtransformer-compile-class
Attributify JSXSupport valueless attributify in JSX/TSXtransformer-attributify-jsx

Integrations

TopicDescriptionReference
Vite IntegrationSetting up UnoCSS with Vite and framework-specific tipsintegrations-vite
Nuxt IntegrationUnoCSS module for Nuxt applicationsintegrations-nuxt

Related skills

Forks & variants (3)

Unocss has 3 known copies in the catalog totaling 635 installs. They canonicalize to this original listing.

How it compares

Use unocss when you need UnoCSS-specific preset and transformer setup rather than generic Tailwind migration guides.

FAQ

Where should UnoCSS configuration live?

unocss recommends a dedicated uno.config.ts file in the project root for best IDE support and HMR. The skill documents defineConfig imports and preset wiring inside that file.

Which UnoCSS presets does the unocss skill cover?

unocss documents presetWind3, presetAttributify, presetIcons, presetTypography, presetWebFonts, plus transformers transformerDirectives and transformerVariantGroup for a full utility-first setup.

Is Unocss safe to install?

skills.sh reports 2 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.