library(rstudiothemes)The rstudiothemes package provides tools to convert Visual Studio Code/Positron and TextMate themes into RStudio’s .rstheme format and install them in your RStudio IDE. It also includes a set of ready-to-use themes.
library(rstudiothemes)To install all built-in RStudio themes that come with this package:
install_rstudiothemes()
#> ✔ Installed 30 themes
#> ℹ Use `rstudiothemes::list_rstudiothemes()` to list installed themes
#> ℹ Use `rstudiothemes::try_rstudiothemes()` to try all installed themesThis will add many popular themes (e.g., Tokyo Night, Nord, Winter is Coming, Dracula, etc.) to your RStudio themes directory.
To see themes available now:
list_rstudiothemes(list_installed = FALSE)
#> [1] "Andromeda" "ayu Dark"
#> [3] "ayu Light" "CRAN"
#> [5] "Catppuccin Latte" "Catppuccin Mocha"
#> [7] "cobalt2" "Dracula2025"
#> [9] "GitHub Dark" "GitHub Light"
#> [11] "JellyFish Theme" "Matcha"
#> [13] "Matrix" "Night Owl"
#> [15] "Night Owl Light" "Nord"
#> [17] "OKSolar Dark" "OKSolar Light"
#> [19] "OKSolar Sky" "One Dark Pro"
#> [21] "Overflow Dark" "Overflow Light"
#> [23] "Panda Syntax" "Selenized Dark"
#> [25] "Selenized Light" "Skeletor Syntax"
#> [27] "SynthWave 84" "Tokyo Night"
#> [29] "Tokyo Night Light" "Tokyo Night Storm"
#> [31] "Winter is Coming Dark Blue" "Winter is Coming Light"You can quickly preview themes directly from R:
try_rstudiothemes()Pass a subset of styles (e.g., "dark" or "light") if needed.
After installing themes, apply one using the RStudio API:
rstudioapi::applyTheme("Winter is Coming Dark Blue")Alternatively, go to Tools > Global Options > Appearance > Add in RStudio and select the installed theme.
You can convert a Visual Studio Code/Positron or TextMate theme file into an RStudio theme:
convert_to_rstudio_theme(
"<path/to/vscode-theme.json>",
apply = TRUE,
force = TRUE
)This function will convert and install the theme immediately, optionally applying it (with apply = TRUE).
.json from VS Code.convert_to_rstudio_theme().rstudioapi::applyTheme() or via RStudio UI.This workflow lets you easily bring your preferred editor theme into RStudio.
list_rstudiothemes(list_installed = TRUE).rstheme files you’ve created or converted.