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.
 
 
 
 
 
juncheng.li 27cf5ae2d3 add modules 2 years ago
..
LICENSE add modules 2 years ago
README.md add modules 2 years ago
package.json add modules 2 years ago

README.md

@unocss/preset-uno

The default preset for UnoCSS.

This preset inherits

Installation

npm i -D @unocss/preset-uno
import presetUno from '@unocss/preset-uno'

Unocss({
  presets: [
    presetUno(),
  ],
})

Usages

This preset is trying to provide a common superset of the popular utilities-first framework, including Tailwind CSS, Windi CSS, Bootstrap, Tachyons, etc.

For example, both ml-3 (Tailwind), ms-2 (Bootstrap), ma4 (Tachyons), mt-10px (Windi CSS) are valid.

.ma4 { margin: 1rem; }
.ml-3 { margin-left: 0.75rem; }
.ms-2 { margin-inline-start: 0.5rem; }
.mt-10px { margin-top: 10px; }

For more details about the default preset, you can check out our playground and try out. Meanwhile, you can also check out the implementations.

License

MIT License © 2021-PRESENT Anthony Fu