mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-29 11:20:36 +01:00
docs(installation): fix theme.colors option example
This commit is contained in:
@@ -95,13 +95,15 @@ export default defineNuxtConfig({
|
|||||||
|
|
||||||
Use the `theme.colors` option to choose which Tailwind CSS colors are used to generate classes for components.
|
Use the `theme.colors` option to choose which Tailwind CSS colors are used to generate classes for components.
|
||||||
|
|
||||||
- Default: `['red', 'orange', 'amber', 'yellow', 'lime', 'green', 'emerald', 'teal', 'cyan', 'sky', 'blue', 'indigo', 'violet', 'purple', 'fuchsia', 'pink', 'rose']`{lang="ts-type"}
|
- Default: `['red', 'orange', 'amber', 'yellow', 'lime', 'green', 'emerald', 'teal', 'cyan', 'sky', 'blue', 'indigo', 'violet', 'purple', 'fuchsia', 'pink', 'rose']`{lang="ts-type" class="inline"}
|
||||||
|
|
||||||
```ts [nuxt.config.ts]
|
```ts [nuxt.config.ts]
|
||||||
export default defineNuxtConfig({
|
export default defineNuxtConfig({
|
||||||
modules: ['@nuxt/ui'],
|
modules: ['@nuxt/ui'],
|
||||||
ui: {
|
ui: {
|
||||||
colors: ['blue', 'green', 'red']
|
theme: {
|
||||||
|
colors: ['blue', 'green', 'red']
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user