Current behavior
isDark is not working when using apparance: 'force-dark'
Desired behavior
isDark = true when using apparance: 'force-dark'
Reproduction
No response
Steps to reproduce
Set apparance: 'force-dark' in .vitepress/config.js
Logs and Error Messages
No response
Other Information
It's because we are now trying to get isDark from the useData VitePress composable. However there is a pending issue for this: vuejs/vitepress#4509
Due to this, we are currently retrieving isDark from @vueuse/core, but it doesn't work when using apparance: 'force-dark'.
A workaround would be to allow forcing isDark prop from Feature Components.
Current behavior
isDarkis not working when usingapparance: 'force-dark'Desired behavior
isDark = truewhen usingapparance: 'force-dark'Reproduction
No response
Steps to reproduce
Set
apparance: 'force-dark'in.vitepress/config.jsLogs and Error Messages
No response
Other Information
It's because we are now trying to get
isDarkfrom theuseDataVitePress composable. However there is a pending issue for this: vuejs/vitepress#4509Due to this, we are currently retrieving
isDarkfrom@vueuse/core, but it doesn't work when usingapparance: 'force-dark'.A workaround would be to allow forcing
isDarkprop from Feature Components.