Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flexdashboard - themes and css

I am trying to use different themes to change the flexdashboard look. For some unknown reason the option

output:
    flexdashboard::flex_dashboard:
        theme: <<theme name>>

seem to make no change. The output still looks like default. I even tried to copy css file from flexdashboard directory and put the link directly to the file

output:
    flexdashboard::flex_dashboard:
        css: <<css file>>

but again see no changes. There is also no error when executing rmarkdown::render.

Any ideas

like image 871
Jan Pips Avatar asked Dec 08 '25 10:12

Jan Pips


2 Answers

Make sure you've got the indentations right:

output: 
  flexdashboard::flex_dashboard:
    theme: united
like image 158
kategorically Avatar answered Dec 10 '25 00:12

kategorically



title: "Sample Dashboard"
output: 
  flexdashboard::flex_dashboard:
    theme: spacelab
    vertical_layout: fill
    orientation: columns
runtime: shiny

---

Available themes include: default, cerulean, journal, flatly, darkly, readable, spacelab, united, cosmo, lumen, paper, sandstone, simplex, yeti.

like image 44
Nata_Berishvili Avatar answered Dec 09 '25 23:12

Nata_Berishvili



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!