Support

Using RStudio Themes

Follow

Note: This feature is only available in RStudio Preview, 1.1 or higher.

Switching Themes

RStudio provides support for 3 global themes that customize RStudio's user interface: Classic, Modern and Sky. By default, the Modern theme is selected.

To switch between themes, from the "Global Options" menu, use the "RStudio theme" dropdown:

Screen_Shot_2017-08-24_at_1.14.19_PM.png

Modern Theme

The modern theme uses a similar color palette to RStudio 1.0 but flattens all user interface elements: Panels, buttons, dialogs, etc. making it looks as follows:

Screen_Shot_2017-08-24_at_1.22.05_PM.png

Sky Theme

The Sky theme is similar to the Modern theme, except for the tab and toolbar headers:

Screen_Shot_2017-08-24_at_1.23.05_PM.png 

Dark Theme

The dark theme is a superset to the Modern and Sky themes that is activated whenever the Editor theme uses a dark palette.

Screen_Shot_2017-08-24_at_1.22.41_PM.png

The following editor themes make use of a dark palette and would cause the RStudio Dark theme to become active:

  • Ambiance
  • Chaos
  • Clouds midnight
  • Cobalt
  • Dracula
  • Idle Fingers
  • Kr Theme
  • Material
  • Merbivore Soft
  • Merbivore
  • Mono Industrial
  • Monokai
  • Pastel on Dark
  • Solarized Dark
  • Tomorrow Night Blue
  • Tomorrow Night Bright
  • Tomorrow Night 80s
  • Tomorrow Night
  • Twilight
  • Vibrant Ink

Classic Theme

The Classic theme does not flatten any of the elements in the user interface and looks the in the same way that RStudio 1.0 and other versions used to look like:

Screen_Shot_2017-08-24_at_1.42.31_PM.png

Themes API

For those interested in authoring packages or integrate themes programmatically, you can make use of the rstudioapi package. At the time of this writing, this will require using the development verison of this package by running:

devtools::install_github("rstudio/rstudioapi")

Then we can query the current theme using:

rstudioapi::getThemeInfo()

which, for the Modern theme and Xcode this function would return:

$editor
[1] "Xcode"
$global
[1] "Modern"
$dark
[1] TRUE

which can be used to properly customize the output from your package to match the RStudio theme selected by each user.

 

Comments

  • Avatar
    peljasz

    hi,
    Is it possible to theme the interface/menu/icons/fonts?
    many thanks, L.