mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-21 15:31:46 +01:00
docs: landing page (#611)
Co-authored-by: Sébastien Chopin <seb@nuxt.com>
This commit is contained in:
@@ -3,9 +3,9 @@ import { hexToRgb } from '../utils'
|
||||
import { defineNuxtPlugin, useAppConfig } from '#imports'
|
||||
import colors from '#tailwind-config/theme/colors'
|
||||
|
||||
export default defineNuxtPlugin((nuxtApp) => {
|
||||
export default defineNuxtPlugin(() => {
|
||||
const appConfig = useAppConfig()
|
||||
const head = nuxtApp.vueApp._context.provides.usehead
|
||||
const nuxtApp = useNuxtApp()
|
||||
|
||||
const root = computed(() => {
|
||||
const primary: Record<string, string> | undefined = colors[appConfig.ui.primary]
|
||||
@@ -53,6 +53,5 @@ ${Object.entries(gray || colors.cool).map(([key, value]) => `--color-gray-${key}
|
||||
}]
|
||||
}
|
||||
|
||||
// Workaround for https://github.com/nuxt/nuxt/issues/22763
|
||||
head.push(headData)
|
||||
useHead(headData)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user