Skip to content

Automatically set mermaid themes to match dark / light #1530

Open
@cscheid

Description

@cscheid

Discussed in #1521

Originally posted by edavidaja July 25, 2022
currently I'm using a reveal presentation with theme: night and adding

%%{init: {"theme": "dark" } }%%

to each diagram. I'm not sure if this works for every diagram type--the mermaid website suggests that theming, for example, state machines has to be done via a different mechanism.

Metadata

Metadata

Labels

diagramsAbout Diagram Quarto featureenhancementNew feature or requestthemesRelated to HTML theming or any other style related issue (like highlight-style)

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions