What problem does it solve?
UnoCSS eliminates bloated global styles by generating only the atomic CSS you actually use, reducing bundle size and speeding up development and runtime performance.
Core Features & Use Cases
- On-demand generation: Produce utilities at build or runtime so unused rules are never emitted.
- Presets and icons: Enable preset-uno, preset-icons, preset-attributify and other presets to quickly cover common patterns.
- Shortcuts & transformers: Create reusable class combos, dynamic shortcuts, and use transformers for directives and variant grouping.
- Use Case: Replace a heavy utility CSS framework in a Vue or React project to drastically reduce CSS output and accelerate prototyping.
Quick Start
Install and configure a basic uno.config with preset-uno, add any needed presets like preset-icons or preset-attributify, and import virtual:uno.css into your application's entry file.