insanum / obsidian_nord

A nord theme for Obsidian
MIT License
243 stars 63 forks source link

Add outline to mermaid objects #41

Closed ire4ever1190 closed 2 years ago

ire4ever1190 commented 2 years ago

Adds outline to shapes in mermaid diagrams so that shapes can be better told apart

e.g. for this diagram

flowchart LR
  A(((A))) -->|a|B((B))
  ID[(Database)]
flowchart LR
  A(((A))) -->|a|B((B))
  ID[(Database)]

Currently it looks like this image

Main issue is that double circles cant be easily told apart from single circles (which is important when drawing FSM diagrams)

After this PR it looks like this

image

Which better highlights the shapes and matches the normal mermaid diagrams more.

Not too sure what the outline colour should be so don't mind changing it to something else

insanum commented 2 years ago

This theme has been rewritten for Obsidian 0.16. When you get access to the latest, can you please update and retest your changes?

ire4ever1190 commented 2 years ago

Retested changes, outline still appears and doesn't seem to affect anything else

insanum commented 2 years ago

Did you know that the same issue exists with the default theme? Would it be better to get this addressed in Obsidian and then all themes would benefit (i.e., probably via a common variable)? There are other mermaid specific issue like this also seen in the default theme.

ire4ever1190 commented 2 years ago

Sorry thought it existed in default theme, think I might've just left the CSS snippet enabled.

Will close this and raise issue on obsidian's bug tracker