Socket
Socket
Sign inDemoInstall

unocss

Package Overview
Dependencies
20
Maintainers
1
Versions
348
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    unocss

The instant on-demand Atomic CSS engine.


Version published
Weekly downloads
255K
decreased by-3.6%
Maintainers
1
Install size
10.0 MB
Created
Weekly downloads
 

Readme

Source

UnoCSS

The instant on-demand Atomic CSS engine.

NPM version

💡 I highly recommend reading this blog post -
Reimagine Atomic CSS
for the story behind


📚 Documentation | 🧑‍💻 Interactive Docs | 🤹‍♂️ Playground


Features

Inspired by Windi CSS, Tailwind CSS, and Twind, but:

  • Fully customizable - no core utilities, all functionalities are provided via presets.
  • No parsing, no AST, no scanning, it's INSTANT (5x faster than Windi CSS or Tailwind JIT).
  • ~6kb min+brotli - zero deps and browser friendly.
  • Shortcuts - aliasing utilities, dynamically.
  • Attributify mode - group utilities in attributes.
  • Pure CSS Icons - use any icon as a single class.
  • Variant Groups - shorthand for group utils with common prefixes.
  • CSS Directives - reuse utils in CSS with @apply directive.
  • Compilation mode - synthesizes multiple classes into one at build time.
  • Inspector - inspect and debug interactively.
  • CSS-in-JS Runtime build - use UnoCSS with one line of CDN import.
  • VS Code extension
  • Code-splitting for CSS - ships minimal CSS for MPA.

Documentation

Read the documentation for more details.

Installation

Acknowledgement

UnoCSS is made possible thanks to the inspirations from the following projects:

in alphabet order

Sponsors

License

MIT License © 2021-PRESENT Anthony Fu

Keywords

FAQs

Last updated on 05 May 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc