# UnoCSS

[BASE product page](<https://base.akulich.dev/en/library/unocss/>) · [Resource](<https://unocss.dev/>)

ID: unocss · Language: en
Schema version: 1 · Data version: cbbe7123b47a5ae80983

This is editorial data. An unknown field neither confirms nor rules out a capability.
dataVersion is a dataset fingerprint, not evidence of a recent fact check.

A configurable atomic CSS engine: it generates used utilities on demand and lets you define custom rules and presets\.

## Type

UI library

## Entry type

library

## Separate catalog

No

## [Access conditions](<https://base.akulich.dev/en/library/unocss/#resource-access>)

free

## [What you can use for free](<https://base.akulich.dev/en/library/unocss/#resource-access>)

UnoCSS code is available free of charge for local and commercial projects, subject to its license\.

## [Paid features and costs](<https://base.akulich.dev/en/library/unocss/#resource-access>)

This library does not require a paid plan\. Development and hosting of the finished application are separate from the free code license\.

## [Access and limitations](<https://base.akulich.dev/en/library/unocss/#resource-access>)

UnoCSS code is available free of charge for local and commercial projects, subject to its license\. This library does not require a paid plan\. Development and hosting of the finished application are separate from the free code license\.

## [Use cases](<https://base.akulich.dev/en/library/unocss/#resource-tasks>)

- UI components and behavior
- An app using the required tech stack and its own design
- Generate atomic CSS from classes used in the project
- Define custom rules and presets for utility styles

## Category IDs

- frontend

## Subcategory IDs

- frontend\.utilities

## Tags

- CSS
- Vite
- JavaScript
- utilities

## Also known as

- unocss/unocss

## [Selection purpose](<https://base.akulich.dev/en/library/unocss/#resource-selection>)

UI components and behavior

## [Choose this when](<https://base.akulich.dev/en/library/unocss/#resource-selection>)

- UI components and behavior
- An app using the required tech stack and its own design
- Generate atomic CSS from classes used in the project

## [Consider alternatives when](<https://base.akulich.dev/en/library/unocss/#resource-selection>)

- When choosing for this topic, compare UnoCSS with Angular Material\. A candidate to compare: both product pages list the use case “UI components and behavior”\. Implementation approach and compatibility are checked separately\.
- When choosing for this topic, compare UnoCSS with Bits UI\. A candidate to compare: both product pages list the use case “UI components and behavior”\. Implementation approach and compatibility are checked separately\.

## [Requirements](<https://base.akulich.dev/en/library/unocss/#resource-selection>)

- For extraction from \.js and \.ts in the described pipeline, include them in content or use @unocss\-include\. Presets define utilities; the core does not contain a fixed collection\.

## [Limitations](<https://base.akulich.dev/en/library/unocss/#resource-selection>)

- Costs and limits of free use: This library does not require a paid plan\. Development and hosting of the finished application are separate from the free code license\.
- Terms of use: MIT: free commercial use of UnoCSS code, with the license text and notices retained\.
- Classes obtained only at runtime may have no CSS\. A separate @unocss/runtime exists for runtime generation; a build\-time integration does not replace it\.

## [Questions before use](<https://base.akulich.dev/en/library/unocss/#resource-faq>)

### What can you use for free in UnoCSS?

UnoCSS code is available free of charge for local and commercial projects, subject to its license\.

### What additional costs might arise with UnoCSS?

This library does not require a paid plan\. Development and hosting of the finished application are separate from the free code license\.

### What terms of use matter for UnoCSS?

MIT: free commercial use of UnoCSS code, with the license text and notices retained\.

### How do you get started with UnoCSS?

Check the project's stack and version against the current UnoCSS documentation; add the package or the required source component\. Implement the selected workflow with the supplied data, adapting styles and states to the project\. Check the result in the target environment, remove sample data, and retain the notices required by the license\.

### Why does UnoCSS not generate a style for a dynamically assembled class name?

During the build, UnoCSS extracts statically present utility names and generates CSS\. A string such as p\-$\{size\} does not enumerate every possible value; the documentation recommends a safelist or an object containing complete static names\.

## Related resources selected by editors

- angular\-material: A candidate to compare: both product pages list the use case “UI components and behavior”\. Implementation approach and compatibility are checked separately\.
- bits\-ui: A candidate to compare: both product pages list the use case “UI components and behavior”\. Implementation approach and compatibility are checked separately\.
- d3: A candidate to compare: both product pages list the use case “UI components and behavior”\. Implementation approach and compatibility are checked separately\.

## Sources for the selection guide

- [https://unocss\.dev/](<https://unocss.dev/>)
- [https://github\.com/unocss/unocss](<https://github.com/unocss/unocss>)
- [https://github\.com/unocss/unocss/blob/main/README\.md](<https://github.com/unocss/unocss/blob/main/README.md>)
- [https://github\.com/unocss/unocss/blob/main/LICENSE](<https://github.com/unocss/unocss/blob/main/LICENSE>)
- [https://github\.com/unocss/unocss/blob/main/packages\-integrations/vscode/LICENSE](<https://github.com/unocss/unocss/blob/main/packages-integrations/vscode/LICENSE>)
- [https://raw\.githubusercontent\.com/unocss/unocss/HEAD/README\.md](<https://raw.githubusercontent.com/unocss/unocss/HEAD/README.md>)
- [https://raw\.githubusercontent\.com/unocss/unocss/HEAD/packages\-integrations/vscode/LICENSE](<https://raw.githubusercontent.com/unocss/unocss/HEAD/packages-integrations/vscode/LICENSE>)
- [https://www\.open\-source\-tools\.com/](<https://www.open-source-tools.com/>)
- [https://raw\.githubusercontent\.com/unocss/unocss/HEAD/packages\-presets/unocss/README\.md](<https://raw.githubusercontent.com/unocss/unocss/HEAD/packages-presets/unocss/README.md>)
- [https://unocss\.dev/guide/extracting](<https://unocss.dev/guide/extracting>)

## [Possible workflow](<https://base.akulich.dev/en/library/unocss/#resource-scenario>)

UI components and behavior with UnoCSS\.

A possible workflow; this is not a report of hands-on testing.

## Before you start

- A working CSS; Vite; JavaScript project and a specific use case: UI components and behavior\.
- A design, interface states, or dataset; target screens and accessibility requirements\.

## Steps

1. Check the project's stack and version against the current UnoCSS documentation; add the package or the required source component\.
2. Implement the selected workflow with the supplied data, adapting styles and states to the project\.
3. Check the result in the target environment, remove sample data, and retain the notices required by the license\.

## Check your result

- The example works in the chosen tech stack, including target dimensions and input errors\.
- Dependency size, keyboard behavior, and reduced motion suit the task; license terms are met\.

## [License](<https://base.akulich.dev/en/library/unocss/#resource-license>)

MIT: free commercial use of UnoCSS code, with the license text and notices retained\.

## License explanations for the specified scope

### MIT — permissive license

You can use, modify, distribute, and sell the code, including in a closed\-source commercial product\. When sharing copies or substantial portions of the code, retain the license text and copyright notice\. You do not need to open\-source your entire project; the author provides no warranties\.

[License terms](<https://opensource.org/license/mit>)

## [Sources](<https://base.akulich.dev/en/library/unocss/#resource-sources>)

- [Official website](<https://unocss.dev/>)
- [Official source](<https://github.com/unocss/unocss>)
- [Documentation and use](<https://github.com/unocss/unocss/blob/main/README.md>)
- [License](<https://github.com/unocss/unocss/blob/main/LICENSE>)
- [Full MIT text](<https://github.com/unocss/unocss/blob/main/packages-integrations/vscode/LICENSE>)
- [Official source](<https://raw.githubusercontent.com/unocss/unocss/HEAD/README.md>)
- [License](<https://raw.githubusercontent.com/unocss/unocss/HEAD/packages-integrations/vscode/LICENSE>)
- [Catalog / discovery source](<https://www.open-source-tools.com/>)
- [Official source](<https://raw.githubusercontent.com/unocss/unocss/HEAD/packages-presets/unocss/README.md>)
- [Official source](<https://unocss.dev/guide/extracting>)

## Editorial review date

2026\-10\-06

## Editorial review scope

Purpose, published primary source code/documentation, and license terms were reviewed\. An example was not run in a local project\.

Dates refer to the stated editorial review, not hands-on testing, a product update, or a recent review of all sources.
