Edge Rewrite
Jump to content

Draft:Monokai

From Wikipedia, the free encyclopedia



Monokai
Original authorWimer Hazenberg
Release2006 (2006)
TypeSyntax highlighting color scheme
LicenseVarious (Original ports)
Proprietary (Monokai Pro)
Websitemonokai.pro

Monokai is a syntax highlighting color scheme, created by Wimer Hazenberg in 2006. It is characterized by a high-contrast "dark mode" palette with a background of desaturated dark gray and vibrant syntax colors. While it was originally designed for TextMate, it became popular after it was added as a default theme in Sublime Text. It is widely regarded one of the most recognizable color schemes in software development, and is available as community-maintained ports for virtually all modern integrated development environments (IDEs).

History

[edit]

Monokai was created in 2006 by a Dutch digital artist and developer named Wimer Hazenberg. He originally designed the scheme for TextMate, a macOS text editor that was popular among developers at the time. He shared the theme on the TextMate community wiki in 2006.[1][2] The name "Monokai" was derived from Hazenberg's online alias.[3]

In 2011, Sublime Text 2 switched its default look to Monokai, bringing the color palette to a larger set of developers on Windows and Linux systems.[4]

In 2017, Hazenberg published Monokai Pro, a commercial evolution of the theme with a more refined palette and custom user interface icons for Sublime Text, Visual Studio Code, and JetBrains IDEs.[5]

Design

[edit]

Monokai is a dark theme designed to provide high variability without causing eye strain. The background is typically a dark gray. The palette uses vibrant, saturated colors to distinguish between syntax elements. Hazenberg has explained that Monokai's objective has been to create something that is both colorful and functional, valuing subjective balance over mathematical formulas for colors.[3]

Although implementations differ, the original Monokai palette consists of:[1]

Original Monokai Color Palette
Syntax Element Color Name Hex Value Swatch Examples
Background Dark Gray #272822
Comments Gray #6e7066 // comment
Default Text White #fdfff1
Keywords Red #f92672 if, else
Arguments Orange #fd971f function(arg1, arg2)
Strings Yellow #e6db74 log("text")
Function names Green #a6e22e funk(a, b)
Classes Blue #66d9ef class App
Constants Purple #ae81ff const SIZE = 1024

The scheme has been utilized in academic research regarding the psychology of programming. A 2023 proceeding by the Psychology of Programming Interest Group (PPIG) used Monokai as the representative "dark mode" condition to study the effects of editor themes on developer cognition.[6]

Reception and legacy

[edit]

Monokai is frequently cited alongside Solarized and Dracula as one of the most popular color schemes for developers.[7] It has been adopted in several open source software projects by the community, including Vim, Emacs, Notepad++, Xcode, and GitHub.

The theme has appeared in popular media. The creator notes that the color scheme has been spotted in code screenshots in television series such as Silicon Valley and Mr. Robot.[3]

References

[edit]
  1. 1 2 "Textmate color theme". Monokai Blog (via Internet Archive). 2006-07-15. Retrieved 2026-01-20.
  2. ↑ "User Submitted Themes". Textmate Wiki (via Internet Archive). Retrieved 2007-01-20.
  3. 1 2 3 "The History of Monokai". Monokai.pro. Retrieved 2026-01-20.
  4. ↑ "Sublime Text 2 Build 2076 Changelog". Sublime Text. 2011-07-11. Retrieved 2026-01-20.
  5. ↑ Hazenberg, Wimer (2017-06-22). "Monokai Pro – Beautiful Functionality for Professional Developers". HackerNoon. Retrieved 2026-01-20.
  6. ↑ Sergeyuk, Agnia; et al. (August 2023). "Overcoming the Mental Set Effect in Programming Problem Solving" (PDF). Proceedings of the 34th Annual Workshop. Psychology of Programming Interest Group (PPIG): 177.
  7. ↑ "The 20 Best VSCode Themes in 2024". Hackr.io. Retrieved 2026-01-20.
[edit]

References

[edit]