Skip to content

Commit a39e5be

Browse files
authored
feat: add theme-color for modern browser (#599)
* feat: add `theme-color` for modern browser * feat: add `theme-color` to login page * refactor(meta): move `useHead` to `app.vue` * style(theme-color): black for dark theme
1 parent bff40bf commit a39e5be

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

app.vue

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
import { ConfigProvider } from 'radix-vue'
33
44
const useIdFunction = () => useId()
5+
6+
useHead({
7+
meta: [
8+
{ name: 'theme-color', media: '(prefers-color-scheme: light)', content: 'white' },
9+
{ name: 'theme-color', media: '(prefers-color-scheme: dark)', content: 'black' },
10+
],
11+
})
512
</script>
613

714
<template>

0 commit comments

Comments
 (0)