💠
UnoCSS logo

UnoCSS

styling

UnoCSS is an innovative Atomic CSS engine designed to provide an instant, on-demand experience for styling web applications. Its core principle is to offer fully customizable styling solutions without the limitations imposed by core utility classes.Users can create styles dynamically and customize their design system through a range of presets.One of the standout features of UnoCSS is its speed. Unlike traditional CSS frameworks that require significant parsing time, UnoCSS operates instantly, boasting a performance that is remarkably faster than similar libraries, estimated to be five times quicker than Windi CSS or Tailwind JIT. This efficiency is paired with a lightweight footprint, with the entire library being approximately 6kb when minified and compressed, ensuring that it remains browser-friendly with zero dependencies.The framework offers a variety of features aimed at improving developer experience, including shortcuts for grouping utilities, an attributify mode that allows for utility grouping in attributes, pure CSS icons that can be easily implemented as single classes, and advanced CSS directives that allow the reuse of utility classes with ease. Additionally, the inspector tool provides an interactive method for debugging styles in real time.UnoCSS also excels in integration capabilities, supporting major build tools and workflows such as Vite, Nuxt, Astro, Webpack, and more. This wide-ranging support allows developers to effortlessly implement UnoCSS in their existing projects.The community-driven nature of UnoCSS is further strengthened by the availability of extensive documentation and tutorials, ensuring that developers can effectively utilize its powerful features in their projects with minimal friction.

Features

  • Fully customizable without core utilities
  • Instant operation with no parsing or scanning
  • Lightweight at ~6kb min+brotli
  • Dynamic aliasing of utilities
  • Attributify mode for utility grouping
  • Usage of pure CSS icons as single classes
  • Support for variant groups
  • CSS directives for reusing utilities with @apply
  • Compilation mode for synthesizing classes at build time
  • Interactive inspector for debugging
  • Seamless integration with various development tools

Stats

GitHub Stars16.6K

NPM Downloads181.4K/week

Details

Latest Version0.64.0

Created at9/30/2021

Updated at11/11/2024

LicenseMIT License

Related Items

Get a monthly E-Mail with the newest developments in UI!