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.
How to Enable Dark Mode in RStudio (Step-by-Step)
- Open RStudio.
- Click Tools in the top menu bar.
- Select Global Options from the dropdown.
- Click the Appearance tab in the left-hand pane.
- 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.
- 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:
| Setting | What it controls | Dark options |
|---|---|---|
| RStudio theme | Toolbar, menus, window borders, panel headers | Dark |
| Editor theme | Code 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:
| Theme | Character |
|---|---|
| Cobalt | Deep blue background, high contrast — the most commonly recommended default |
| Dracula | Purple-grey background, popular for its readability across long sessions |
| Tomorrow Night | Soft dark grey, low contrast, easy on the eyes for all-day coding |
| Tomorrow Night Blue / Bright / 80s | Variants of the above with different accent saturation |
| Monokai | Warm dark theme with vivid syntax colors, ported from Sublime Text |
| Merbivore / Merbivore Soft | Near-black background, orange-heavy syntax highlighting |
| Idle Fingers | Muted dark theme, gentler contrast than Cobalt |
| Vibrant Ink | Black background, bright multicolor syntax highlighting |
| Ambiance, Chaos, Clouds Midnight, Gob, Kr Theme, Mono Industrial, Pastel On Dark, Solarized Dark, Twilight | Additional 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
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.
