mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-02-01 12:47:57 +01:00
docs(theme): fix duplicate blocks
This commit is contained in:
@@ -142,7 +142,7 @@ Nuxt UI leverages Vite config to provide customizable color aliases based on [Ta
|
|||||||
|
|
||||||
::framework-only
|
::framework-only
|
||||||
#nuxt
|
#nuxt
|
||||||
::div
|
:::div
|
||||||
You can configure these color aliases at runtime in your `app.config.ts` file under the `ui.colors` key, allowing for dynamic theme customization without requiring an application rebuild:
|
You can configure these color aliases at runtime in your `app.config.ts` file under the `ui.colors` key, allowing for dynamic theme customization without requiring an application rebuild:
|
||||||
|
|
||||||
```ts [app.config.ts]
|
```ts [app.config.ts]
|
||||||
@@ -156,14 +156,19 @@ export default defineAppConfig({
|
|||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
::
|
:::
|
||||||
|
|
||||||
#vue
|
#vue
|
||||||
::module-only
|
|
||||||
#ui
|
|
||||||
:::div
|
:::div
|
||||||
You can configure these color aliases at runtime in your `vite.config.ts` file under the `ui.colors` key:
|
You can configure these color aliases at runtime in your `vite.config.ts` file under the `ui.colors` key:
|
||||||
|
|
||||||
|
::::module-only
|
||||||
|
|
||||||
|
#ui
|
||||||
|
|
||||||
|
:::::div
|
||||||
|
|
||||||
```ts [vite.config.ts]
|
```ts [vite.config.ts]
|
||||||
import { defineConfig } from 'vite'
|
import { defineConfig } from 'vite'
|
||||||
import vue from '@vitejs/plugin-vue'
|
import vue from '@vitejs/plugin-vue'
|
||||||
@@ -183,11 +188,12 @@ export default defineConfig({
|
|||||||
]
|
]
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
:::
|
:::::
|
||||||
|
|
||||||
#ui-pro
|
#ui-pro
|
||||||
:::div
|
|
||||||
You can configure these color aliases at runtime in your `vite.config.ts` file under the `uiPro.colors` key:
|
:::::div
|
||||||
|
|
||||||
```ts [vite.config.ts]
|
```ts [vite.config.ts]
|
||||||
import { defineConfig } from 'vite'
|
import { defineConfig } from 'vite'
|
||||||
import vue from '@vitejs/plugin-vue'
|
import vue from '@vitejs/plugin-vue'
|
||||||
@@ -207,9 +213,12 @@ export default defineConfig({
|
|||||||
]
|
]
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
:::
|
|
||||||
|
|
||||||
::
|
:::::
|
||||||
|
|
||||||
|
::::
|
||||||
|
|
||||||
|
:::
|
||||||
|
|
||||||
::
|
::
|
||||||
|
|
||||||
@@ -256,11 +265,17 @@ export default defineNuxtConfig({
|
|||||||
:::
|
:::
|
||||||
|
|
||||||
#vue
|
#vue
|
||||||
::module-only
|
|
||||||
#ui
|
|
||||||
:::tip
|
:::tip
|
||||||
|
|
||||||
You can add you own dynamic color aliases in your `vite.config.ts`, you just have to make sure to also define them in the [`theme.colors`](/getting-started/installation/vue#themecolors) option of the `ui` plugin.
|
You can add you own dynamic color aliases in your `vite.config.ts`, you just have to make sure to also define them in the [`theme.colors`](/getting-started/installation/vue#themecolors) option of the `ui` plugin.
|
||||||
|
|
||||||
|
::::module-only
|
||||||
|
|
||||||
|
#ui
|
||||||
|
|
||||||
|
:::::div
|
||||||
|
|
||||||
```ts [vite.config.ts]
|
```ts [vite.config.ts]
|
||||||
import { defineConfig } from 'vite'
|
import { defineConfig } from 'vite'
|
||||||
import vue from '@vitejs/plugin-vue'
|
import vue from '@vitejs/plugin-vue'
|
||||||
@@ -283,11 +298,11 @@ export default defineConfig({
|
|||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
:::
|
:::::
|
||||||
|
|
||||||
#ui-pro
|
#ui-pro
|
||||||
:::tip
|
|
||||||
You can add you own dynamic color aliases in your `vite.config.ts`, you just have to make sure to also define them in the [`theme.colors`](/getting-started/installation/vue#themecolors) option of the `uiPro` plugin.
|
:::::div
|
||||||
|
|
||||||
```ts [vite.config.ts]
|
```ts [vite.config.ts]
|
||||||
import { defineConfig } from 'vite'
|
import { defineConfig } from 'vite'
|
||||||
@@ -311,9 +326,12 @@ export default defineConfig({
|
|||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
|
:::::
|
||||||
|
|
||||||
|
::::
|
||||||
|
|
||||||
:::
|
:::
|
||||||
|
|
||||||
::
|
|
||||||
::
|
::
|
||||||
|
|
||||||
### Tokens
|
### Tokens
|
||||||
|
|||||||
Reference in New Issue
Block a user