You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
2 years ago | |
|---|---|---|
| .. | ||
| dist | 2 years ago | |
| LICENSE | 2 years ago | |
| README.md | 2 years ago | |
| astro.d.ts | 2 years ago | |
| index.d.ts | 2 years ago | |
| package.json | 2 years ago | |
| postcss.d.ts | 2 years ago | |
| preset-attributify.d.ts | 2 years ago | |
| preset-icons.d.ts | 2 years ago | |
| preset-mini.d.ts | 2 years ago | |
| preset-tagify.d.ts | 2 years ago | |
| preset-typography.d.ts | 2 years ago | |
| preset-uno.d.ts | 2 years ago | |
| preset-web-fonts.d.ts | 2 years ago | |
| preset-wind.d.ts | 2 years ago | |
| vite.d.ts | 2 years ago | |
| webpack.d.ts | 2 years ago | |
README.md
UnoCSS
The instant on-demand Atomic CSS engine.
💡 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
@applydirective. - 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