From b9db6128cf7e5f1e8c853b0a62a321cabedb4f6d Mon Sep 17 00:00:00 2001 From: Adorian Doran Date: Wed, 15 Oct 2025 20:56:59 +0300 Subject: [PATCH] style/canvas: tweak the dark theme --- .../stylesheets/theme-next/notes/canvas.css | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/apps/client/src/stylesheets/theme-next/notes/canvas.css b/apps/client/src/stylesheets/theme-next/notes/canvas.css index 302072f18..370d1f99e 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; }