Comments (3)
No worries! Dark theme and dark mode do sound very similar! I guess it only didn't occur to me because I normally only use the forest theme :)
from mermaid-cli.
Hi @TeaDrinkingProgrammer, I'm a bit confused by your bug report.
The screenshot you're showing shows dark theme working correctly. I've also tested this locally on commit f0a90b8 and I'm also getting the same results:
Dark mode
The following diagram outputs the same PNG that you described:
```mermaid
---
title: Test
config:
theme: dark
---
mindmap
root((ML5))
Hello world
```
Changing theme
to theme: forest
```mermaid
---
title: Test
config:
theme: forest
---
mindmap
root((ML5))
Hello world
```
Changing theme
to theme: light
```mermaid
---
title: Test
config:
theme: light
---
mindmap
root((ML5))
Hello world
```
from mermaid-cli.
I figured out the confusion. In things like OSes and browsers, dark theme means everything is dark, including the background. Now I have discovered that dark theme only means the nodes themselves are dark. I understand that this is clear from a developer point of view but I missed that you also need to set dark mode. I will make a mr for the documentation so that the line for dark theme links to the dark mode API config. Thank you for your help.
from mermaid-cli.
Related Issues (20)
- BSD Support HOT 2
- Frontmatter breaks svg generation HOT 2
- Text display is incomplete
- Discontinue Node 14 and Node 16 support for mermaid-cli HOT 4
- Markdown rendered with error but works fine in mermaid-js HOT 1
- Using a config file does not work HOT 1
- No charts found when space between opening code fence and language name HOT 3
- Upgrade puppeteer HOT 1
- Unable to resolve types with TypeScript 5.3.3 / TSC 9.2.0 HOT 1
- Apply styles from inside mermaid graphs
- Bug: CSS Styling Not Applied to SVG (only PNG / static image)
- Add types for exports
- How can I configure maxEdges using the CLI? (Error: Too many edges) HOT 1
- Error: net::ERR_ACCESS_DENIED on /@mermaid-js/mermaid-cli/dist/index.html HOT 2
- Error: Could not find Chromium (rev. 1108766) HOT 7
- Syntax Error in Mermaid-cli tool HOT 1
- background of edge label is white in pdf from flowchart
- Missing description in `-h, --help`
- Custom image output for .md file input HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mermaid-cli.