How to Enable Dark Mode in RStudio (Global Options + 6 Built-In Themes)

Yes, RStudio has dark mode. Go to Tools → Global Options → Appearance → Editor Theme. Choose from Cobalt, Dracula, Tomorrow Night, and more.
Author photo
Written by Dr. Zubair, PhD Statistics
Reviewed by Dr Ali

Dr. Zuabir holds a PhD in Statistics and has helped 200+ PhD and Master's students complete their dissertation statistical analysis using R, SPSS, and Minitab.

Table of Contents

Does RStudio Have Dark Mode?

Yes. RStudio has built-in dark mode support, and you don't need to install anything to use it. Go to Tools → Global Options → Appearance → Editor Theme, pick any dark option — Cobalt, Dracula, and Tomorrow Night Blue are the three most popular — and click OK. The change applies instantly across the code editor, console, and most panels. No restart required.

RStudio IDE with dark mode enabled using the Cobalt editor theme

How to Enable Dark Mode in RStudio (Step-by-Step)

  1. Open RStudio.
  2. Click Tools in the top menu bar.
  3. Select Global Options from the dropdown.
  4. Click the Appearance tab in the left-hand pane.
  5. In the Editor theme list, click any theme marked dark — try Cobalt, Dracula, or Tomorrow Night first. The preview pane on the right updates live as you click.
  6. Click Apply, then OK.

Info!
On RStudio 1.2 and later, the Appearance tab also has a separate RStudio theme dropdown (Classic, Modern, Sky, or Dark). This controls the toolbar and window chrome, not the code editor. Set both to dark for a fully consistent look — see the section below on why this trips people up.

RStudio Theme vs. Editor Theme: Why Your IDE Might Still Look Half-Light

This is the single most common source of confusion, and it's the reason some readers land here after already trying to enable dark mode once. RStudio actually has two independent appearance settings living in the same tab:

SettingWhat it controlsDark options
RStudio themeToolbar, menus, window borders, panel headersDark
Editor themeCode editor, console, syntax highlighting~19 built-in options — see full list below

If you only change the Editor theme, your code area goes dark but the toolbar can stay light on some RStudio versions — that's what "does rstudio have dark mode" searchers are usually running into. Set the RStudio theme dropdown to Dark as well to remove the mismatch entirely.

Every Built-In Dark Theme in RStudio (Not Just 6)

Most guides list five or six themes and stop. RStudio actually ships with roughly nineteen editor themes flagged dark in its own source. Here are the ones worth trying first, in order of popularity:

ThemeCharacter
CobaltDeep blue background, high contrast — the most commonly recommended default
DraculaPurple-grey background, popular for its readability across long sessions
Tomorrow NightSoft dark grey, low contrast, easy on the eyes for all-day coding
Tomorrow Night Blue / Bright / 80sVariants of the above with different accent saturation
MonokaiWarm dark theme with vivid syntax colors, ported from Sublime Text
Merbivore / Merbivore SoftNear-black background, orange-heavy syntax highlighting
Idle FingersMuted dark theme, gentler contrast than Cobalt
Vibrant InkBlack background, bright multicolor syntax highlighting
Ambiance, Chaos, Clouds Midnight, Gob, Kr Theme, Mono Industrial, Pastel On Dark, Solarized Dark, TwilightAdditional built-in dark options, less commonly used but available in the same dropdown

Info!
Want more than the built-ins? The rstudioapi package can install community themes directly:

install.packages("rstudioapi")
rstudioapi::addTheme(
  "https://raw.githubusercontent.com/gadenbuie/night-owlish/master/rstheme/night-owlish.rstheme",
  apply = TRUE
)

RStudio Appearance Settings Beyond the Theme

Once your theme is set, three more settings under the same Appearance tab affect daily comfort:

  • Editor font — RStudio ships with a monospace default; swap in Fira Code or JetBrains Mono if you want ligatures.
  • Editor font size — 12–14pt is the typical comfortable range for a laptop screen at arm's length.
  • Zoom — scales the entire IDE, useful on high-DPI displays where a dark theme can otherwise look washed out.

Troubleshooting: Panes That Stay Light in Dark Mode

Warning! The Plots and Viewer panes render using the default colors of whatever content they're displaying — a ggplot2 chart with a white background will still show a white background even with a dark editor theme active. This isn't a bug; it's how RStudio separates IDE chrome from rendered output. To get a dark plot background, set it in the plot code itself (e.g. theme_dark() in ggplot2) or use a package built for themed output.

If you've followed the steps above and the console or terminal still looks light, double check the RStudio theme dropdown (not Editor theme) is also set to Dark — this is the most common reason for a half-applied dark mode, covered above.

RStudio Dark Mode FAQ

Does RStudio have dark mode?

Yes. Go to Tools → Global Options → Appearance → Editor Theme and select any dark option. It applies immediately, no restart needed.

How do I change RStudio to dark mode on Mac?

The steps are identical on macOS and Windows: Tools → Global Options → Appearance → Editor Theme → choose a dark theme → OK. macOS system-wide dark mode does not automatically change RStudio's editor theme — you set it separately inside RStudio.

What is the best RStudio theme for eyes?

There's no single answer — it depends on how sensitive you are to contrast. Tomorrow Night and Merbivore Soft use lower contrast and softer color palettes, which some users find more comfortable for multi-hour sessions than the higher-contrast Cobalt or Vibrant Ink.

Can I make base R (outside RStudio) dark mode?

R itself has no IDE and no visual theme — dark mode is a property of the editor you run R in. If you use base R without RStudio, dark mode depends on your terminal or text editor's own settings, not on R.

How do I add more RStudio themes beyond the built-in list?

Use rstudioapi::addTheme() with a direct link to a .rstheme or .tmTheme file — community collections exist on GitHub with dozens of additional options, both dark and light.

Why do my plots still have a white background in dark mode?

The Plots and Viewer panes render content using its own default colors, independent of your editor theme. You need to set a dark background inside your plotting code (e.g. ggplot2's theme_dark()) to change that.

Related RStudio Guides

📊

Need this analysis done for your thesis or dissertation? I'll handle it in R, SPSS, or Minitab — with APA-formatted results delivered fast.