- Components
- installation
Preset Ui - Installation
This guide will help you get started with PresetUI
Installation
Requirements
Ensure that UnoCSS has been already installed in your project. If not, please follow the Official UnoCSS installation guide .
-
Install PresetUI
npm i -D @unifydev/preset-uiNote that PresetUI is adev dependency -
Add the preset
Inside youruno.config.(js|ts)file, import PresetUI and add it in preset List.uno.config.ts// import the packages import { presetUI } from "@unifydev/preset-ui" export default defineConfig({ // ...config presets: [ //other presets presetUI({ // your configuration here }) ], });
Nice you can now use PresetUI in your project, test this :
<span class="badge-md ui-solid ui-solid-primary rounded">
badge md
</span>