You have just run M-x load-theme, pressed TAB, and Emacs offers a list of a dozen names you have never heard of, with nothing to tell you which are worth a look. This page sorts that out: how theme loading actually works, which of the best Emacs themes are already built in, which third-party palettes have earned their reputation, and how to switch between light and dark without leftovers from the previous theme bleeding through.
Everything here goes into the same small init.el the starter guide builds. If you have not set up package archives yet, read the packages guide first, because four of the themes below come from MELPA.
How Emacs themes load
A theme in Emacs is a named set of face settings. The command is load-theme, and in your config it looks like this:
(load-theme 'modus-vivendi t)
The trailing t is the NO-CONFIRM argument. Without it, Emacs asks whether you trust the theme before evaluating it, because a theme file is ordinary Lisp. For a theme you chose and installed yourself, skipping the question is fine.
The part that trips people up is that Emacs themes stack. Loading a second theme does not remove the first one; it enables the new theme on top. Any face the new theme does not define keeps the colour from the old one, so you end up with a blue mode line from one palette and a green region highlight from another. The list of active themes lives in the variable custom-enabled-themes, and you can inspect it with C-h v.
The fix is one line that disables everything before loading:
(defun by/load-theme (theme)
"Disable all active themes, then load THEME."
(mapc #'disable-theme custom-enabled-themes)
(load-theme theme t))
Use this helper instead of calling load-theme directly and switching becomes predictable. It is the single most useful piece of theme code in a hand-written config.
The built-in Modus themes
Before installing anything, try what ships with Emacs. Since Emacs 28, the Modus themes by Protesilaos Stavrou are part of Emacs itself: modus-operandi is the light variant and modus-vivendi the dark one. They were designed around a strict contrast target, so text stays readable in every face, including diff hunks, Org headings and the minibuffer.
(by/load-theme 'modus-vivendi)
Newer Emacs releases bundle a later version of Modus with extra variants (tinted versions and ones adjusted for colour deficiency). Run M-x load-theme and press TAB to see which ones your build has.
If Modus feels too austere, the same author maintains ef-themes on GNU ELPA. It is a large family of light and dark palettes with more colour and personality, built on the same readability rules. Since GNU ELPA is enabled by default, installing it takes one use-package form:
(use-package ef-themes
:ensure t)
Then pick one interactively with M-x load-theme and keep the name you like.
Trying themes this way is cheap, because nothing is written to your config until you add the line yourself. Load a few candidates during an ordinary work session, keep a scratch note of the names you liked, and only then commit one to init.el. A theme chosen after an afternoon of real editing holds up far better than one picked from a gallery of screenshots.
For a lot of people the honest answer to “which theme” is modus-vivendi, and they never install anything else. It is the safest Emacs dark theme to start with because it costs nothing and is maintained alongside Emacs.
The best dark Emacs themes from MELPA
Some readers want the look they already know from another editor, or a palette with a long history. These four are among the best Emacs themes in that category: each has been around for years, each covers the faces of popular packages, and each loads with a couple of lines. All of them install from MELPA.
Solarized Dark
Solarized is Ethan Schoonover’s palette with fixed accent colours that work on both a dark and a light background. In Emacs the usual package is solarized-theme, maintained by Bozhidar Batsov. It provides solarized-dark and solarized-light, plus a few variants.
(use-package solarized-theme
:ensure t
:config
(by/load-theme 'solarized-dark))
Solarized Dark has lower contrast than Modus. Some people find that easier on the eyes for long sessions; others find the body text a little faint on a laptop screen in daylight. Try it at your normal working hours before deciding.
Zenburn
Zenburn is a warm, low-contrast dark palette that originally came from Vim. The Emacs port, zenburn-theme, is also maintained by Bozhidar Batsov. It is one of the oldest themes still in active use, and its muted greys and soft yellows make it a good fit if bright accents bother you.
(use-package zenburn-theme
:ensure t
:config
(by/load-theme 'zenburn))
Spacemacs Dark
You do not need to run Spacemacs to use its colours. The spacemacs-theme package ships the palette on its own, with spacemacs-dark and spacemacs-light. Its purple-tinted background and clearly separated syntax colours are a common choice for an Emacs dark theme that still feels lively.
(use-package spacemacs-theme
:ensure t
:config
(by/load-theme 'spacemacs-dark))
Doom One
doom-themes collects dozens of palettes from the Doom Emacs project, and again you can use them in a plain config. Doom One, modelled on Atom’s One Dark, is the flagship. The package also has an optional helper that improves Org mode faces.
(use-package doom-themes
:ensure t
:config
(setq doom-themes-enable-bold t
doom-themes-enable-italic t)
(by/load-theme 'doom-one)
(doom-themes-org-config))
Doom One pairs well with a modern mode line, but it looks fine with the default one too, so do not install a mode-line package just because the screenshots have one.
Light, dark and Solarized: picking one
If you are undecided, here is a short opinion. Start with modus-vivendi. If it feels too stark after a week, try ef-themes before anything from MELPA, because it comes from the same careful source. If you want a familiar look, pick Solarized for its matching light and dark pair, Doom One if you came from VS Code or Atom, and Zenburn if you want the calmest colours.
Screen and room matter more than any list. An Emacs dark theme with soft contrast, such as Zenburn, is pleasant on a bright external monitor at night and can turn muddy on a glossy laptop panel by a window. Judge every candidate on the hardware you code on most, and give it a full working day, because first impressions in a theme picker are mostly about the background colour.
A useful test: open a diff with magit or vc-diff, an Org file with headings and a Python buffer with an error underlined. The language guides are a good source of realistic buffers for this. A theme that keeps all three readable is worth keeping. A theme that only looks good in a screenshot of a Lisp file is not.
Among the best Emacs themes, the ones that last in a config are rarely the flashiest. They are the ones that cover every package you use without odd gaps, which is why the actively maintained families above beat a theme you found in an old blog post.
Fonts with set-face-attribute
Emacs themes control colours, and mostly leave the font to you. Set it on the default face:
(set-face-attribute 'default nil
:family "JetBrains Mono"
:height 120)
(set-face-attribute 'variable-pitch nil
:family "Source Sans 3")
The :height value is in tenths of a point, so 120 is 12 pt. Use a font you have actually installed; Emacs silently falls back if the family is missing, and you will wonder why nothing changed. Run M-x describe-font or check C-u C-x = on a character to see what is really in use.
Put these lines after the theme is loaded. A few themes set font weights or heights on specific faces, and ordering your own settings last keeps them in charge.
For temporary changes during a presentation, C-x C-+ and C-x C— scale text in the current buffer without touching your config.
Switching between light and dark
Working in a bright room in the morning and a dark one at night is the most common reason to want two themes. With the helper from the top of this page, a toggle is a few lines:
(defvar by/light-theme 'modus-operandi)
(defvar by/dark-theme 'modus-vivendi)
(defun by/toggle-theme ()
"Switch between the light and the dark theme."
(interactive)
(if (eq (car custom-enabled-themes) by/dark-theme)
(by/load-theme by/light-theme)
(by/load-theme by/dark-theme)))
(keymap-global-set "<f5>" #'by/toggle-theme)
Swap the two theme names for solarized-light and solarized-dark and you get the classic pairing that Solarized was designed for: the accent colours stay the same, only the background flips. That consistency is the main argument for Solarized over the other themes listed here.
keymap-global-set exists since Emacs 29; on an older build use global-set-key with (kbd "<f5>"). Choosing a free key is covered in the keybindings guide, and if your completion UI shows theme names oddly in the load-theme prompt, the completion page explains how the minibuffer list works.
One last detail: themes from MELPA install into elpa/, and their names appear in M-x load-theme only after the package is installed. If a theme you expect is missing from the list, check M-x list-packages before you look for typos in your config.
Questions readers ask
Why do two Emacs themes look mixed together after I load a second one?
Emacs keeps every enabled theme active and stacks them, so faces the new theme does not define keep the old theme's colours. Run (mapc #'disable-theme custom-enabled-themes) before load-theme and the second theme starts from a clean slate.
Do I need to install anything to get a good dark theme?
No. Since Emacs 28 the Modus themes ship with Emacs, and modus-vivendi is a carefully tuned dark theme with high contrast. Run M-x load-theme RET modus-vivendi RET to try it without touching your config.
What does the t at the end of (load-theme 'zenburn t) mean?
It is the NO-CONFIRM argument. Third-party themes are Lisp code, so Emacs asks before running one and offers to mark it safe. Passing t skips that question, which is what you want in an init.el you wrote yourself.
How do I change the font size in Emacs without a theme?
Use set-face-attribute on the default face, for example (set-face-attribute 'default nil :height 130). The height is in tenths of a point, so 130 means 13 pt. Themes normally leave the font family and size alone.
Can I make Emacs follow the system light or dark mode?
Not out of the box on every platform. The simplest reliable route is a small toggle command bound to a key, as shown on this page. Some packages read the desktop setting on Linux or macOS, but a manual toggle works everywhere, including in a terminal.