Skip to content

Build your personal knowledge base with Trilium Notes

style/canvas: tweak the dark theme

Adorian Doranb9db6128cf7e
diff --git a/apps/client/src/stylesheets/theme-next/notes/canvas.css b/apps/client/src/stylesheets/theme-next/notes/canvas.css
index 302072f182..370d1f99e0 100644
--- a/apps/client/src/stylesheets/theme-next/notes/canvas.css
+++ b/apps/client/src/stylesheets/theme-next/notes/canvas.css
@@ -25,6 +25,24 @@
}
+/* Dark theme tweaks */
+
+:root body .excalidraw.theme--dark {
+ --color-surface-high: transparent;
+ --color-brand-hover: transparent;
+}
+
+:root .excalidraw.theme--dark.excalidraw .App-mobile-menu,
+:root .excalidraw.theme--dark.excalidraw .App-menu__left {
+ --button-hover-bg: var(--hover-item-background-color);
+}
+
+:root .excalidraw.theme--dark.excalidraw .dropdown-menu-button:hover {
+ --background: var(--hover-item-background-color);
+}
+
+/* Note's root */
+
:root .type-canvas {
--floating-buttons-vert-offset: 20px;
}