Skip to content

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

Open
sagarsrc wants to merge 1 commit into
masterfrom
test-pr-13-40691-1767893232
Open

sagarsrc wants to merge 1 commit into
masterfrom
test-pr-13-40691-1767893232

Conversation

@sagarsrc

@sagarsrc sagarsrc commented Jan 8, 2026

Copy link
Copy Markdown

JSON column viewer looks fine on dark mode, but barely visible on light mode, especially when the value is of string type.

There are no colors that can satisfy the 4.5:1 contrast ratio (minimum requirement for web and digital accessibility) on both white and black background, so I had to pick different classes for ight mode (dark mode is fine, I checked the colors against the dark background and the contrast is good).

Even though the new colors may not look that contrasting to each other, I prioritized accessibility, and made sure they all complied with the 4.5:1 contrast ratio.

Before:
112

After:
222

Fixes supabase#40633


Test data recreated from supabase#40691
Target state: open

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

JSON column view mode has extremely low contrast

1 participant