Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should there be a way to force a color mode in the root of the app? #263

Open
vitorCamarotto opened this issue May 8, 2024 · 0 comments
Labels
question Further information is requested

Comments

@vitorCamarotto
Copy link

Should it be possible to define the page meta in the app.vue?

The problem:
If I have 90% of pages that I want in dark mode, I should be able to do it by only forcing light mode in the 10%, not forcing dark in the 90%. Does this make sense?

In the docs it says the only way to force a color mode is by using definePageMeta, and preference does not overrides the colorMode that system has.

The solution: (?)

// app.vue
definePageMeta({
  colorMode: 'dark',
})

// forces dark mode to all pages by default. 
@vitorCamarotto vitorCamarotto added the question Further information is requested label May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant