@hitachivantara/uikit-uno-preset
Version:
UI Kit UnoCSS preset with the NEXT theme.
45 lines (32 loc) • 991 B
Markdown
UI Kit UnoCSS preset with the NEXT theme.
Install the package in your project directory with:
```sh
npm install -D unocss @hitachivantara/uikit-uno-preset
```
Add the `presetHv` to the array of presets in your `vite.config.ts` or `uno.config.ts` files:
```ts
// vite.config.ts
import unoCSS from "unocss/vite";
import { defineConfig } from "vite";
import { presetHv } from "@hitachivantara/uikit-uno-preset";
export default defineConfig({
plugins: [
unoCSS({
presets: [presetHv()],
}),
],
});
```
```ts
// uno.config.ts
import { defineConfig } from "unocss";
import { presetHv } from "@hitachivantara/uikit-uno-preset";
export default defineConfig({
presets: [presetHv()],
});
```
Use any of [Tailwind-like default utility](https://tailwindcomponents.com/cheatsheet/) classes along with the NEXT UI Kit theme utilities:
<img src="https://i.imgur.com/bKY5ZUG.png" alt="VSCode completions" width=400>