From edbcb2eedb14c60d92167ac5d674672ed6d28325 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 15 Feb 2026 08:23:00 +0000 Subject: [PATCH] Make query builder results dark-mode responsive Replace hardcoded light-mode colors (#eeeeee80 inline styles, bg-white, bg-gray-* Tailwind classes) with dark: variant counterparts so the query builder table, kanban, and results views adapt to Roam's dark mode. Also fix the Roam app's Tailwind config to use .bp3-dark as the dark mode class selector, since Roam applies bp3-dark (not .dark) in dark mode. https://claude.ai/code/session_0132ew9iSyEjodJGd9vsWqb5 --- .../src/components/results-view/Kanban.tsx | 20 ++++++---------- .../components/results-view/ResultsTable.tsx | 2 +- .../components/results-view/ResultsView.tsx | 23 ++++++------------- apps/roam/src/styles/styles.css | 19 +++++++++++++++ apps/roam/tailwind.config.ts | 3 ++- 5 files changed, 36 insertions(+), 31 deletions(-) diff --git a/apps/roam/src/components/results-view/Kanban.tsx b/apps/roam/src/components/results-view/Kanban.tsx index 88c8f25d1..d072f2297 100644 --- a/apps/roam/src/components/results-view/Kanban.tsx +++ b/apps/roam/src/components/results-view/Kanban.tsx @@ -137,8 +137,8 @@ const KanbanCard = (card: { hidden={!isDragHandle} />
@@ -609,17 +609,12 @@ const Kanban = ({ width: PSEUDO_CARD_WIDTH, }} > -
-
Card
+
+
Card
{showLegend === "Yes" && ( -
+
Group By: {columnKey} @@ -642,7 +637,7 @@ const Kanban = ({ return (
@@ -744,8 +739,7 @@ const Kanban = ({
- + {visibleColumns.map((c) => ( +
- + - + Column - + View {showColumnViewOptions && ( - + Options )} - + {views.map(({ column, mode, value }, i) => ( {column} @@ -1414,11 +1409,7 @@ const ResultsView: ResultsViewComponent = ({
)}
= { +const config: Pick = { content: [], presets: [sharedConfig], + darkMode: ["class", ".bp3-dark"], }; export default config;