2024-03-07 19:15:35 +00:00
|
|
|
import { THEME_COLORS } from '~/constants'
|
|
|
|
|
2022-12-29 12:26:08 +00:00
|
|
|
export default defineNuxtPlugin(() => {
|
|
|
|
const colorMode = useColorMode()
|
|
|
|
useHead({
|
|
|
|
meta: [{
|
|
|
|
id: 'theme-color',
|
|
|
|
name: 'theme-color',
|
2024-03-07 19:15:35 +00:00
|
|
|
content: () => colorMode.value === 'dark' ? THEME_COLORS.themeDark : THEME_COLORS.themeLight,
|
2022-12-29 12:26:08 +00:00
|
|
|
}],
|
|
|
|
})
|
|
|
|
})
|