mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-22 01:15:25 +03:00
12 lines
312 B
TypeScript
12 lines
312 B
TypeScript
import { THEME_COLORS } from '~/constants'
|
|
|
|
export default defineNuxtPlugin(() => {
|
|
const colorMode = useColorMode()
|
|
useHead({
|
|
meta: [{
|
|
id: 'theme-color',
|
|
name: 'theme-color',
|
|
content: () => colorMode.value === 'dark' ? THEME_COLORS.themeDark : THEME_COLORS.themeLight,
|
|
}],
|
|
})
|
|
})
|