diff --git a/src/css/custom.css b/src/css/custom.css index 62b8d6b441..e3377c1d80 100644 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -89,3 +89,8 @@ html[data-theme='dark'] .docusaurus-highlight-code-line { .theme-doc-sidebar-menu { font-size: 14px; } + +/* Hack to make .svg and .png diagrams readable in dark theme */ +html[data-theme='dark'] main img { + background-color: #fff; +}