Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix(studio): contrast ratio of JSON cell viewer colors in light mode (#40691)

Marouane Soudaefa40ea0e494
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/JsonEditor/DrilldownViewer/DrilldownPane.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/JsonEditor/DrilldownViewer/DrilldownPane.tsx
index 32ccb94f0e5..7e28b3f2eec 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/JsonEditor/DrilldownViewer/DrilldownPane.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/JsonEditor/DrilldownViewer/DrilldownPane.tsx
@@ -63,10 +63,12 @@ const DrilldownPane = ({ pane, jsonData, activeKey, onSelectKey = noop }: Drilld
))}
{keysWithoutChildren.map((key: string) => (
<div key={key} className="flex space-x-2 py-2 px-5">
- <p className="font-mono text-xs !text-blue-900">{key}:</p>
+ <p className="font-mono text-xs !text-sky-800 dark:!text-blue-900">{key}:</p>
<p
className={`break-all font-mono text-xs ${
- typeof jsonData[key] !== 'string' ? '!text-green-900' : '!text-yellow-900'
+ typeof jsonData[key] !== 'string'
+ ? '!text-purple-900 dark:!text-green-900'
+ : '!text-lime-800 dark:!text-yellow-900'
}`}
>
{isNull(jsonData[key])