Reputation: 1232
I want to change the background of my RMarkdown document to a very light grey. I discovered how to change themes from this link and I really love the flatly theme. However, I would like to change the entire background to a light grey. See image and output document code below
output:
html_document:
highlight: monochrome
theme: flatly
Upvotes: 4
Views: 7657
Reputation: 531
Just add custom CSS to your document. You can place this line at the top (after the yaml part):
<body style="background-color:grey;">
<style>
body { background-color: grey; }
pre, pre:not([class]) { background-color: red; }
</style>
Upvotes: 10