Customizing the appearance of your development environment can improve both readability and comfort, making long coding sessions more enjoyable. RStudio, a powerful integrated development environment (IDE) for R programming, allows users to change its theme to suit personal preferences. In this guide, we’ll explore how to install and apply themes in RStudio efficiently.
Default Themes in RStudio
RStudio comes with a set of built-in themes that users can select without additional installations. To access these themes:
- Open RStudio.
- Go to Tools → Global Options.
- Navigate to the Appearance section.
- Choose from the list of available built-in themes.
- Click Apply to confirm your selection.
These built-in themes include light and dark options, helping to reduce eye strain and improve visibility.
Installing Custom Themes
For users who wish to install additional themes, there are two main approaches: using the rsthemes package or manually applying custom CSS modifications.
Method 1: Using the rsthemes Package
The rsthemes
package provides an easy way to install and switch between aesthetically pleasing themes within RStudio.
Step 1: Install the Package
First, ensure you have the latest version of RStudio, then install the rsthemes package by running:
install.packages("rsthemes")
Step 2: Enable and Apply Themes
Once installed, activate the themes with the following commands:
library(rsthemes)
rsthemes::install_rsthemes()
This will download and register a selection of themes. You can now navigate back to Tools → Global Options → Appearance to select one of the newly installed themes.
Step 3: Switching Between Themes
If you want to change themes directly from the R console, you can use:
rsthemes::set_theme("OneDark {rsthemes}")
Replace OneDark with any available theme name from the list provided by rsthemes::list_rsthemes()
.

Method 2: Manually Installing Custom Themes
For users who prefer complete control over their theme, RStudio allows manual installation of custom themes through CSS files.
Step 1: Download a Custom Theme
Several websites offer custom RStudio themes in .rstheme
format. Popular sources include:
- The rsthemes project
- GitHub repositories with developer-created themes
Step 2: Import the Theme
After downloading a theme file:
- In RStudio, open Tools → Global Options → Appearance.
- Click Add next to the theme selection dropdown.
- Browse to the location of the
.rstheme
file and select it. - Click Apply to enable the new theme.
Previewing and Testing Themes
It’s essential to test a theme under different conditions to ensure readability. When selecting a new theme, consider:
- How syntax highlighting appears with different R scripts.
- Whether the contrast level suits your workspace lighting.
- How the theme affects visibility of output areas and console text.
You can also switch themes temporarily by running:
rsthemes::set_theme("Tomorrow Night Bright {rsthemes}")
This allows quick testing before permanently applying a preferred theme.

Restoring Default Settings
If a theme does not work well, you can easily revert to the default setting:
- Go to Tools → Global Options → Appearance.
- Select one of the default RStudio themes.
- Click Apply to restore the standard interface.
Alternatively, remove third-party themes by running:
rsthemes::remove_rsthemes()
This will uninstall all custom themes while keeping RStudio functional.
Conclusion
Changing RStudio’s theme is a simple yet effective way to create a more personalized and comfortable development environment. Whether using built-in themes, installing third-party options via rsthemes, or customizing manually with CSS, the process is flexible and accessible. By experimenting with different themes, you can find the one that best suits your preferences while maintaining optimal readability and usability.