更改颜色主题为HTML降价

问题描述 投票:-1回答:1

我试图改变HTML降价的背景,但我不能。例如,“蔚蓝”的主题有一个白色的背景,这是很烦人的,因为我的眼睛看累了很快。

我知道在prettydoc,色调和更加多的主题,但我想知道如何改变背景颜色,字体样式和使用CSS我的主题字体颜色。

html css r r-markdown background-color
1个回答
0
投票
**Themes for R Markdown**
*With the powerful rmarkdown package, we could easily create nice HTML document by adding some meta information in the header, for example*
-------------
title: Nineteen Years Later
author: S M Sharif Mia
date: feb 03, 2019
output:
  rmarkdown::html_document:
    theme: lumen
----------------
*The html_document engine uses the Bootswatch theme library to support different styles of the document. This is a quick and easy way to tune the appearance of your document, yet with the price of a large file size (> 700KB) since the whole Bootstrap library needs to be packed in.
For package vignettes, we can use the html_vignette engine to generate a more lightweight HTML file that is meant to minimize the package size, but the output HTML is less stylish than the html_document ones.*

**The prettydoc Engine**
*The prettydoc package provides an alternative engine, html_pretty, to knit your R Markdown document into pretty HTML pages. Its usage is extremely easy: simply replace the rmarkdown::html_document or rmarkdown::html_vignette output engine by prettydoc::html_pretty in your R Markdown header, and use one of the built-in themes and syntax highlighters. For example*
---
title: Nineteen Years Later
author: S M Sharif Mia
date: feb 03, 2019
output:
  prettydoc::html_pretty:
    theme: cayman
    highlight: github
---
**Options and Themes**
*The options for the html_pretty engine are mostly compatible with the default html_document (see the documentation) with a few exceptions:*

 1. Currently the theme option can take the following values. More themes will be added in the future. 
  = cayman: Modified from the Cayman theme.
  = tactile: Modified from the Tactile theme.
  = architect: Modified from the Architect theme.
  = leonids: Modified from the Leonids theme.
  = hpstr: Modified from the HPSTR theme.
 2. The highlight option takes value from github and vignette.
 3. Options code_folding, code_download and toc_float are not applicable.
© www.soinside.com 2019 - 2024. All rights reserved.