Skip to content

PNG export from light theme always appears as dark theme (Gantt chart) #1800

@chinyaolin

Description

@chinyaolin

Title: PNG export from light theme always appears as dark theme (Gantt chart)

Description:
When using Mermaid Live Editor in light / default theme, everything looks correct in the editor preview. However, when exporting a Gantt chart to PNG via "Download PNG", the output image is rendered in dark theme (dark background, light text), ignoring the selected light theme or any explicit theme override.

Steps to reproduce:

  1. Open Mermaid Live Editor (e.g. https://mermaid-js.github.io/mermaid-live-editor/)
  2. Select light/default theme
  3. Paste a Gantt chart mermaid snippet, for example:
gantt
    title A Gantt Diagram
    dateFormat  YYYY-MM-DD
    section Section
    A task           :a1, 2014-01-01, 30d
    Another task     :after a1  , 20d
    section Another
    Task in sec      :2014-01-12  , 12d
    another task      : 24d
Loading

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions