patrickshox / Mojave-Dark-RStudio-Theme

A Total-IDE Dark RStudio Theme inspired by Apple's dark aestheticcc.
MIT License
249 stars 23 forks source link
dark-mode dark-theme rstudio rstudio-theme rstudio-themes

⚠️ I'm currently looking for someone interested in maintaining this project. As of now, I am no longer maintaining it. Email me at keys4safari@gmail.com if you're interested. ⚠️

Mojave Dark: An RStudio Theme for Apple Lovers

Dark styles across the entire IDE, not just the editor:

(Optional) Dynamic darkening of plots and markdown:

Plot (white to alpha) Markdown (invert colors)

An Xcode-inspired debugger:

Code coloring inspired by Xcode:

Mojave Dark Xcode

Installation

In RStudio Preferences > Appearance, set the theme to Modern or Sky. Currently, Mojave Dark doesn't work when the RStudio theme is set to Classic. Then, run the snippet in the RStudio console to install and apply Mojave Dark.

rstudioapi::addTheme("https://raw.githubusercontent.com/patrickshox/Mojave-Dark-RStudio-Theme/master/Mojave%20Dark.rstheme", apply=TRUE, force=TRUE)
rstudioapi::addTheme("https://raw.githubusercontent.com/patrickshox/Mojave-Dark-RStudio-Theme/master/Mojave%20Dark%20(Static).rstheme", apply=TRUE, force=TRUE)

The parameter force=TRUE will delete any other themes named "Mojave Dark" and the parameter globally=TRUE will install the theme for all users. This will also install a static version, "Mojave Dark (Static)", which does not dynamically darken plots and markdown.

Troubleshooting

Go to the Folder (⌘ ⇧ G) ~/.R/rstudio/themes and delete the file "Mojave Dark.rstheme". Then retry installing Mojave Dark.

Run install.packages("rstudioapi"). Then retry installing Mojave Dark.