chore: extract bg and theme colors to constants (#2662)
This commit is contained in:
parent
efa17caf5e
commit
4954473f50
3 changed files with 15 additions and 5 deletions
|
@ -1,10 +1,12 @@
|
|||
import { THEME_COLORS } from '~/constants'
|
||||
|
||||
export default defineNuxtPlugin(() => {
|
||||
const colorMode = useColorMode()
|
||||
useHead({
|
||||
meta: [{
|
||||
id: 'theme-color',
|
||||
name: 'theme-color',
|
||||
content: () => colorMode.value === 'dark' ? '#111111' : '#fafafa',
|
||||
content: () => colorMode.value === 'dark' ? THEME_COLORS.themeDark : THEME_COLORS.themeLight,
|
||||
}],
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue