mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-29 11:20:36 +01:00
docs(installation): improve callouts
This commit is contained in:
@@ -36,6 +36,10 @@ bun add @nuxt/ui@next
|
|||||||
|
|
||||||
::
|
::
|
||||||
|
|
||||||
|
::warning
|
||||||
|
If you're using **pnpm**, ensure that you either set [`shamefully-hoist=true`](https://pnpm.io/npmrc#shamefully-hoist) in your `.npmrc` file or install `tailwindcss@next` directly in your project's root directory.
|
||||||
|
::
|
||||||
|
|
||||||
2. Register the Nuxt UI module in your `nuxt.config.ts`{lang="ts-type"}:
|
2. Register the Nuxt UI module in your `nuxt.config.ts`{lang="ts-type"}:
|
||||||
|
|
||||||
```ts [nuxt.config.ts]
|
```ts [nuxt.config.ts]
|
||||||
@@ -53,8 +57,21 @@ export default defineNuxtConfig({
|
|||||||
</style>
|
</style>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
::tip
|
||||||
|
It's recommended to install the [Tailwind CSS IntelliSense](https://marketplace.visualstudio.com/items?itemName=bradlc.vscode-tailwindcss) extension for VSCode and add the following settings:
|
||||||
|
```json
|
||||||
|
"files.associations": {
|
||||||
|
"*.css": "tailwindcss"
|
||||||
|
},
|
||||||
|
"editor.quickSuggestions": {
|
||||||
|
"strings": "on"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
::
|
||||||
|
|
||||||
::warning
|
::warning
|
||||||
If you're using **pnpm**, ensure that you either set [`shamefully-hoist=true`](https://pnpm.io/npmrc#shamefully-hoist) in your `.npmrc` file or install `tailwindcss@next` directly in your project's root directory.
|
IntelliSense works better when importing `tailwindcss` in a proper `.css` file which will be automatically detected.
|
||||||
::
|
::
|
||||||
|
|
||||||
## Options
|
## Options
|
||||||
|
|||||||
@@ -36,6 +36,10 @@ bun add @nuxt/ui@next
|
|||||||
|
|
||||||
::
|
::
|
||||||
|
|
||||||
|
::warning
|
||||||
|
If you're using **pnpm**, ensure that you either set [`shamefully-hoist=true`](https://pnpm.io/npmrc#shamefully-hoist) in your `.npmrc` file or install `tailwindcss@next`, `vue-router` and `@unhead/vue` directly in your project's root directory.
|
||||||
|
::
|
||||||
|
|
||||||
2. Add the Nuxt UI Vite plugin in your `vite.config.ts`{lang="ts-type"}:
|
2. Add the Nuxt UI Vite plugin in your `vite.config.ts`{lang="ts-type"}:
|
||||||
|
|
||||||
```ts [vite.config.ts]
|
```ts [vite.config.ts]
|
||||||
@@ -89,8 +93,21 @@ app.mount('#app')
|
|||||||
</style>
|
</style>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
::tip
|
||||||
|
It's recommended to install the [Tailwind CSS IntelliSense](https://marketplace.visualstudio.com/items?itemName=bradlc.vscode-tailwindcss) extension for VSCode and add the following settings:
|
||||||
|
```json
|
||||||
|
"files.associations": {
|
||||||
|
"*.css": "tailwindcss"
|
||||||
|
},
|
||||||
|
"editor.quickSuggestions": {
|
||||||
|
"strings": "on"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
::
|
||||||
|
|
||||||
::warning
|
::warning
|
||||||
If you're using **pnpm**, ensure that you either set [`shamefully-hoist=true`](https://pnpm.io/npmrc#shamefully-hoist) in your `.npmrc` file or install `tailwindcss@next`, `vue-router` and `@unhead/vue` directly in your project's root directory.
|
IntelliSense works better when importing `tailwindcss` in a proper `.css` file which will be automatically detected.
|
||||||
::
|
::
|
||||||
|
|
||||||
## Options
|
## Options
|
||||||
|
|||||||
Reference in New Issue
Block a user