Skip to content

isDark is not working when using apparance: 'force-dark' #178

Description

@enzonotario

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions