docs(installation): fix theme.colors option example

This commit is contained in:
Benjamin Canac
2024-09-23 14:58:56 +02:00
parent cfe4e0bd65
commit 4f5a8ee4f6

View File

@@ -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.
- 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]
export default defineNuxtConfig({
modules: ['@nuxt/ui'],
ui: {
colors: ['blue', 'green', 'red']
theme: {
colors: ['blue', 'green', 'red']
}
}
})
```