This is such an underrated UI detail. Pure black with pure white text can feel a bit harsh, especially when reading for a long time. Dark gray backgrounds and softer text just look and feel better. Do you have a go to color palette for dark mode?
Stop setting your dark mode background to #000000 and text to #FFFFFF
10 Comments
@[Mehadi Hasan] from what you said about could you check my blog article and tell me if i need to change the text color or background ? and if i want to build dark theme what colors should i pick ?
https://ali-abd-elbagi-v2.vercel.app/en-US/blog
@[Ali AbdElbagi]
Took a quick look at your blog! Your current light setup is readable, but for a dark theme, avoid dropping to pure #000000.
Try anchoring your surface background around #121212 or #18181B, use an off-white like #E4E4E7 for body text, and give code blocks a slightly lighter elevation (#27272A). That instantly softens glare and makes long articles easier on the eyes.
@[Mehadi Hasan]
My go-to baseline for dark mode is:
Background: Dark slate/charcoal like #121212 or #0F172A (gives depth without absolute pitch black).
Primary Text: Off-white/slate like #E2E8F0 or #F1F5F9 (around 85–90% opacity).
Accent: A single vibrant visual token (like emerald green or violet) kept low-chroma so it pops without blinding the user.
Please log in to add a comment.
Please log in to comment on this post.
More Posts
- © 2026 Coder Legion
- Feedback / Bug
- Privacy
- About Us
- Contacts
- You Tube
- Tiktok
- Premium Subscription
- Terms of Service
- Early Builders
More From Joemetry
Related Jobs
- Distribution System Modeling and Automation Engineer (Hybrid Schedule)Eversource Energy · Full time · Germany
- Intern AI-Based Context Engineering (f/m/x)BMW Group · Internship · Germany
- Open Application: Explore Your Future with KunaiKunai · Full time · United Kingdom
Commenters (This Week)
Contribute meaningful comments to climb the leaderboard and earn badges!