Skip to content

AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.

feat(theme): enhance dark mode selection contrast

tianma-ifbe26314773f2
diff --git a/apps/web/src/styles/globals.css b/apps/web/src/styles/globals.css
index 595fe221..6c74106e 100644
--- a/apps/web/src/styles/globals.css
+++ b/apps/web/src/styles/globals.css
@@ -268,6 +268,11 @@ body {
color: inherit;
}
+:root.dark ::selection {
+ background-color: rgb(var(--brand-green-rgb) / 0.28);
+ color: inherit;
+}
+
/* Installed theme packages only target this documented token layer. Keeping
* the selectors here lets themes survive component refactors without gaining
* arbitrary DOM or JavaScript access. */