Search code examples
ryamlr-markdowntitleflexdashboard

YAML title font and color in Rmarkdown


Is there a way to change the font and color in the YAML title in a R markdown flexdashboard? Here is the code for the YAML header I am trying to change:

---
title: "Greenhouse gases and weather data"
fontsize: 30
output: 
  flexdashboard::flex_dashboard:
    orientation: rows
    vertical_layout: fill
    social: menu
    source_code: embed
    theme: readable

---

Solution

  • The other option would be to add a CSS code chunk anywhere in the dashboard

    ```{css}
    
    body > div.navbar.navbar-inverse.navbar-fixed-top > div > div.navbar-header > span.navbar-brand {
      
        font-size: 26px;
        color: red;
    }
    
    ```