TC edited this page Nov 13, 2018 · 10 revisions

A theme typically consists of two CSS files foo.css and foo-fonts.css, where foo is the theme name.

How to Use

To use a theme, you can specify the css option as an array of CSS filenames (without the .css extensions), e.g.

output:
  xaringan::moon_reader:
    css: [default, metropolis, metropolis-fonts]

If you want to contribute a theme to xaringan, please read this blog post.

Avaliable Themes

xaringan comes with the default theme as well as user contributed themes. You can see all of the currently available themes using names(xaringan:::list_css()):

 [1] "chocolate-fonts"  "chocolate"        "default-fonts"   
 [4] "default"          "duke-blue"        "hygge-duke"      
 [7] "hygge"            "kunoichi"         "lucy-fonts"      
[10] "lucy"             "metropolis-fonts" "metropolis"      
[13] "middlebury-fonts" "middlebury"       "ninjutsu"        
[16] "rladies-fonts"    "rladies"          "robot-fonts"     
[19] "robot"            "rutgers-fonts"    "rutgers"         
[22] "shinobi"          "tamu-fonts"       "tamu"            
[25] "uo-fonts"         "uo"   

Theme Showcase

Below are screenshots of some of the available themes.

Rutgers

rutgers

middlebury

middlebury

lucy

lucy

kunoichi

kunoichi

chocolate

chocolate

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.