Skip to content

Help with dark mode and header/footer; issue using brand colors #4416

Answered by falkoschindler
jspv asked this question in Q&A
Discussion options

You must be logged in to vote

ui.run(dark=True) activates dark mode globally. But on pages with ui.dark_mode(), dark mode is deactivated, because it defaults to value: bool = False. You can use ui.dark_mode(True) though.

The class "bg-secondary" works because Quasar defines such background color classes for "primary", "secondary" etc. But it doesn't define classes with "dark:" prefix.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@falkoschindler
Comment options

Answer selected by jspv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants