8000 Mermaid flowChart title can't see clearly in dark mode · Issue #7781 · squidfunk/mkdocs-material · GitHub
[go: up one dir, main page]

Skip to content

Mermaid flowChart title can't see clearly in dark mode #7781

@evan361425

Description

@evan361425

Context

Mermaid flowchart title is too dark to see in dark mode.

Bug description

Mermaid allow write title above the flowchart

---
title: Hello World
---
flowchart LR
  user --> website
---
title: Hello World
---
flowchart LR
  user --> website
Loading

But in dark mode, this title will be unclearly to see

image

I tried customize CSS, but as #4582 shows, this is not easy.

Related links

Reproduction

My palette config is

theme:
  palette:
  - media: "(prefers-color-scheme: light)"
    scheme: default
    primary: indigo
    accent: light-blue
  - media: "(prefers-color-scheme: dark)"
    scheme: slate
    primary: blue-grey
    accent: deep orange

and extensions config is

markdown_extensions:
- pymdownx.highlight
- pymdownx.superfences:
    custom_fences:
    - name: mermaid
      class: mermaid
      format: !!python/name:pymdownx.superfences.fence_code_format

Steps to reproduce

  1. Create mermaid codeblock same as above
---
title: Hello World
---
flowchart LR
  user --> website
Loading
  1. Build the site
  2. Toggle to dark mode

I'm not providing .zip file because it has 119 MB and I think it is not valuable for this situation, but I'll provide it if you need it!

Browser

Chrome

Before submitting

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue reports a bugresolvedIssue is resolved, yet unreleased if open

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0