tonsky.me
Read post

I am sorry, but everyone is getting syntax highlighting wrong

This title could be clearer and more informative.Try out Clickbait Shieldfor free (5 uses left this month).

A critical examination of syntax highlighting design principles argues that most color themes fail by highlighting too many elements, making nothing stand out. The author advocates for minimalist approaches using only 3-4 memorable colors, highlighting sparse elements like constants and top-level definitions rather than ubiquitous ones like variables and keywords. Key recommendations include making comments prominent instead of grey, using background colors for light themes, and prioritizing readability over uniform color distribution. The piece demonstrates these principles through the author's Alabaster theme, showing step-by-step how reducing visual noise improves code navigation and comprehension.

    #devtools#productivity#ui-design#ux
Oct 15, 2025•9m read time•From tonsky.me
Post cover image
Table of contents
I am sorry, but everyone is getting syntax highlighting wrongChristmas Lights DiarrheaEnough colors to rememberWhat should you highlight?Comments are importantTwo types of commentsLight or dark?Bold and italicsMyth of number-based perfectionLet’s design a color theme togetherShameless plug time
400K Impressions27 Comments
tonsky.me's image
tonsky.me

Tonsky Blog offers insights, essays, and discussions on programming languages, software design, and ...

11 Followers

•

275 Upvotes

Would you recommend this post?

Copy link
WhatsApp
Facebook
X
New Squad
  • © 2026 Daily Dev Ltd.
  • Guidelines
  • Explore
  • Tags
  • Sources
  • Squads
  • Leaderboard