4

In R markdown using Flexdashboard template, colours of Bootswatch themes don's seem matching what's shown on the Bootswatch website

For example, using flatly theme

---
title: "Test Dashboard"
output: 
  flexdashboard::flex_dashboard:
    theme: flatly
runtime: shiny
---

What I got is like this: flatly theme in rmarkdown flexdashboard theme

enter image description here

What the flatly theme looks like from Bootswatch is like this: flatly theme from Bootswatch

enter image description here

Is there some settings that I need to specify to get the correct colour? Or for Rmarkdown Bootswatch themes are set to look differently?

Prradep
  • 5,506
  • 5
  • 43
  • 84
Christy
  • 83
  • 6
  • https://github.com/rstudio/flexdashboard/issues/126. You might want to customise that too https://stackoverflow.com/questions/44305381/flexdashboard-change-tittle-bar-color – Pork Chop Oct 12 '17 at 13:48

1 Answers1

3

Adding the following JS chunk solves the problem:

```{js}
$('.navbar-inverse').removeClass('navbar-inverse').addClass('navbar-
default');
```
Christy
  • 83
  • 6