Skip to content

Commit

Permalink
docs: add usage
Browse files Browse the repository at this point in the history
  • Loading branch information
hyoban committed Nov 30, 2023
1 parent 4596f9d commit 1eec13b
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,30 @@

use shadcn ui with unocss

1. Based on [fisand/unocss-preset-shadcn](https://github.com/fisand/unocss-preset-shadcn)
1. Theme can be easily customized

## Usage

```bash
ni -D unocss-preset-shadcn
```

```ts
// unocss.config.ts
import { defineConfig, presetUno } from 'unocss'
import { presetShadcn } from 'unocss-preset-shadcn'

export default defineConfig({
presets: [
presetUno(),
presetShadcn({
color: 'red',
}),
],
})
```

<!-- Badges -->

[npm-version-src]: https://img.shields.io/npm/v/unocss-preset-shadcn?style=flat&colorA=080f12&colorB=1fa669
Expand Down

0 comments on commit 1eec13b

Please sign in to comment.