Skip to content

Mermaid timeline diagrams in dark mode #8339

Closed as not planned
Closed as not planned
@thdhondt

Description

@thdhondt

Context

I'm trying to use the Mermaid Timeline diagram in an Mkdocs Material website.

Bug description

The diagram renders correctly in light mode, but the color scheme does not update when switching to dark mode. Other Mermaid diagrams seem to change their color scheme as expected.

Light mode:
Image

Dark mode:
Image

Here are the Mermaid diagrams I used:

``` mermaid
graph LR
  A[Start] --> B{Error?};
  B -->|Yes| C[Hmm...];
  C --> D[Debug];
  D --> B;
  B ---->|No| E[Yay!];
```

```mermaid
timeline
    title History of Social Media Platform
    2002 : LinkedIn
    2004 : Facebook
         : Google
    2005 : YouTube
    2006 : Twitter
```

Related links

Reproduction

9.6.15-mermaid-dark-timeline.zip

Steps to reproduce

  1. Serve the provided project.
  2. Toggle between dark and light mode.

Browser

No response

Before submitting

Metadata

Metadata

Assignees

No one assigned

    Labels

    out of scopeIssue requests something out of scope

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions