Skip to content

Presets

Presets are the heart of UnoCSS. They let you make your own custom framework in minutes.

Using presets

To set presets to your project:

uno.config.ts
ts
import { , ,  } from 'unocss'

export default ({
  : [
    ({ /* preset options */}),
    (),
    // ...custom presets
  ],
})

When the presets option is specified, the default preset will be ignored.

To disable the default preset, you can set presets to an empty array:

uno.config.ts
ts
import {  } from 'unocss'

export default ({
  : [], // disable default preset
  : [
    // your custom rules
  ],
})

You can check official presets and community presets for more.

Creating presets

To see how you can create your own custom preset, see Config: presets.

Released under the MIT License.