observablehq / graphviz

A convenience method for using Graphviz.
https://beta.observablehq.com/@mbostock/graphviz
Other
39 stars 8 forks source link

Fix default colors? #1

Open mbostock opened 5 years ago

mbostock commented 5 years ago

The default colors are currently white for the background and black for text and strokes, but it’d be better if the default were none for the background and currentColor instead of black.

Unfortunately, it seems that Graphviz tries to parse the color specification, and doesn’t understand CSS colors. So we might have to do this by post-processing and replacing all instances of "#000000" with currentColor—which may not be desirable. Hrm.