title: How to change colors and attributes of Table of Contents in R Markdown HTML document?
body: <p>I've spent an inordinate amount of time Google'ing this and can't seem to figure it out. </p>
  
  <p>I am making HTML documents using R Markdown (docs here: <a href="http://rmarkdown.rstudio.com/html_document_format.html" rel="noreferrer">http://rmarkdown.rstudio.com/html_document_format.html</a>).</p>
  
  <p>I want to change the color, and other attributes, of the floating table of contents. Preferably, I would like to do this via embedded CSS in the Rmd file itself. For example, I can already change the color of the text that appears in the TOC if I put this in my Rmd file:</p>
  
  <pre><code>---
  title: "Untitled"
  output:
    html_document:
      keep_md: true
      css: styles.css
      toc: true
      toc_float: true
      number_sections: true
  
  ---
  &lt;style type="text/css"&gt;
  #TOC {
    color: purple; 
  }
  
  &lt;/style&gt;
  </code></pre>
  
  <p>output looks like this:</p>
  
  <p><a href="https://i.stack.imgur.com/ZDMmW.png" rel="noreferrer"><img src="https://i.stack.imgur.com/ZDMmW.png" alt="enter image description here"></a></p>
  
  <p>As you can see, the text inside the TOC is now purple. How can I find out what other attributes are available to change this way? How can I change the color of the highlighted TOC section? </p>
  
  <p>I would like to do a lot more customization to these interactive elements but I can't seem to find any documentation on how to program them. It would also be nice to be able to change the tab pill buttons that you can get with <code>{.tabset .tabset-pills}</code>. </p>