# UnoCSS

> The instant on-demand atomic CSS engine

Source: https://talira.ai/catalog/unocss-z6afbxm2
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library, Command-line tool
- Categories: [frontend / css / frameworks](https://talira.ai/categories/frontend/css/frameworks)
- Licence: MIT[^2]
- Pricing: Free and open source[^2]
- Pricing notes: Free and open source under MIT; the author takes GitHub Sponsors.
- Free tier: yes[^2]
- Self-hostable: yes[^3]
- Plugins: yes[^4]
- Supports: [llms.txt](https://talira.ai/standards/llms-txt.md)[^5]
- Backed by: [Anthony Fu](https://talira.ai/orgs/antfu.md)
- Creator: Anthony Fu (antfu), a Windi CSS team member

UnoCSS is an atomic CSS engine: it finds the utility classes your code uses and generates only those rules, from rules, variants and shortcuts you define in `uno.config.ts` or take from presets. The core has no utilities of its own; official presets add Tailwind CSS–compatible utilities (`preset-wind3` and `preset-wind4`, close to [Tailwind CSS](https://talira.ai/catalog/tailwind-css-wfchsr5n.md)), pure CSS icons from any Iconify set, web fonts, typography, and attributify and tagify modes that let you write utilities as HTML attributes or tags. It runs as a [Vite](https://talira.ai/catalog/vite-2kbqmjmm.md) plugin, a Nuxt module, Astro, Svelte, [webpack](https://talira.ai/catalog/webpack-9pcx44tb.md), Rollup and PostCSS integrations, a CLI or a CDN runtime that generates CSS in the browser, with an inspector, an [ESLint](https://talira.ai/catalog/eslint-0nyjt04g.md) config and a VS Code extension. It was started by a Windi CSS team member, Anthony Fu, and its docs call it Windi CSS's spiritual successor.

## Links

- Website: https://unocss.dev/
- GitHub: https://github.com/unocss/unocss
- Docs: https://unocss.dev/guide/

## Problems it solves

- I want Tailwind-style utility classes but with my own design system's naming conventions
- generate only the CSS classes my components actually use, instantly, with fast hot reload in Vite
- use icons from any Iconify icon set as pure CSS classes without importing SVG components
- define a dynamic rule like m-7.5 once with a regex and have every value work
- share our company's utility rules as a preset across all our frontend projects
- write utilities as HTML attributes instead of one long class string
- add utility CSS to a page from a CDN script with no build step, generated in the browser
- Windi CSS is no longer maintained; what should replace it in our Vite projects
- group variants like hover:(bg-gray-400 font-medium) instead of repeating the prefix on every class
- see which utility rules were generated for each file and why, in a browser inspector

## Features

- on-demand generation: only the utilities your code uses are emitted
- fully customisable rules (static or regex), variants and shortcuts in uno.config.ts
- official presets: mini, wind3 and wind4 (Tailwind CSS compatible), attributify, tagify, icons, web fonts, typography, rem-to-px
- pure CSS icons from Iconify icon sets
- attributify mode, valueless attributify and tagify
- transformers for variant groups, directives and compile-class mode
- integrations for Vite, Nuxt, Next.js, Astro, Svelte Scoped, webpack, Rollup and Rolldown, and PostCSS
- CLI and a CDN runtime that generates CSS in the browser
- inspector to see generated rules per module
- ESLint config, a language server and an official VS Code extension
- llms.txt and Markdown copies of every docs page

## Limitations

- Doesn't support Tailwind CSS plugins or configuration files: migrating a heavily customised Tailwind CSS project can be harder[^1]

## Capabilities

- Has a command line tool: plan not known
- Takes plugins: plan not known

## Trust

Overall: 0.81 out of 1.
Signals: maintenance 1.00, adoption 0.86, momentum 0.75, community 1.00, backing 0.50, extensibility 0.40.

- last commit today
- 147 commits in the last 90 days
- latest release v66.13.0 11 days ago
- 19.0k GitHub stars
- 440 contributors
- accepts sponsorship (Github, Github, Open Collective)
- backed by Anthony Fu
- created by Anthony Fu (antfu), a Windi CSS team member
- has a plugin system

## Alternatives

- [Tailwind CSS](https://talira.ai/catalog/tailwind-css-wfchsr5n.md): Rapidly build modern websites without ever leaving your HTML.
- [daisyUI](https://talira.ai/catalog/daisyui-f4qqckwa.md): The most popular, free and open-source component library for Tailwind CSS

## Sources

[^1]: https://unocss.dev/guide/why.md (checked 22 Nov 2026)
[^2]: https://github.com/unocss/unocss/blob/main/LICENSE (checked 22 Nov 2026)
[^3]: https://unocss.dev/guide/ (checked 22 Nov 2026)
[^4]: https://unocss.dev/presets/ (checked 22 Nov 2026)
[^5]: https://unocss.dev/llms.txt (checked 22 Nov 2026)
