Skip to content

Support switch between light and dark theme #39

Closed
@gabrielmacedoanac

Description

@gabrielmacedoanac

Could you consider switching the mermaid theme as you choose the light and dark theme by the button on the top bar of material-mkdocs?

Choosing the theme works well depending on the user's environment (I tested both mobile and desktop), however the theme is not changed when the user makes the manual selection. It just follows the default user environment theme.

This means that the light and dark themes work fine according to the documentation, but do not switch when the user selects the button.

So, for example, when the user has the light theme by default but decides to see the mermaid designs in the dark theme, the designs do not appear correctly.

default-light

default-light-choose-dark

default-dark-mobile

default-dark-choose-light-mobile

Metadata

Metadata

Assignees

No one assigned

    Labels

    mkdocs-materialThis issue is connected with the mkdocs-material APIuseful tipContains a useful tip to solve the issue

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions