rstudio / flexdashboard

Easy interactive dashboards for R
https://pkgs.rstudio.com/flexdashboard/
Other
816 stars 301 forks source link

bootswatch theme rending secondary color rather than navbar color #403

Open libjohn opened 2 years ago

libjohn commented 2 years ago

Using either Rmarkdown template "Flex Dahsboard" or "Flex Dahsboard themed with {bslib}" and the bootwatch sandstone theme renders the navbar chartuse (green ; color = #93c54b) rather than a sandstone color.

title: "Untitled"
output: 
  flexdashboard::flex_dashboard:
    theme:
      bootswatch: sandstone
    orientation: columns
    vertical_layout: fill

I'm expecting the navbar to be color = #3e3f3a

But instead it's the color of the "success" button ; color = #93c54b

cpsievert commented 2 years ago

As a workaround, you should be able to do:

theme:
      bootswatch: sandstone
      navbar-bg: "#3e3f3a"