😎 Give your xaringan slides some style
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

596 líneas
41KB

  1. <!DOCTYPE html>
  2. <!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><meta name="description" content="A light monotone theme based around a single color."><title>Monotone Light Theme — style_mono_light • xaringanthemer</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><script src="../deps/jquery-3.6.0/jquery-3.6.0.min.js"></script><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><link href="../deps/bootstrap-5.1.0/bootstrap.min.css" rel="stylesheet"><script src="../deps/bootstrap-5.1.0/bootstrap.bundle.min.js"></script><link href="../deps/_IBM%20Plex%20Mono-0.4.0/font.css" rel="stylesheet"><link href="../deps/_Poppins-0.4.0/font.css" rel="stylesheet"><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- bootstrap-toc --><script src="https://cdn.rawgit.com/afeld/bootstrap-toc/v1.0.1/dist/bootstrap-toc.min.js"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- search --><script src="https://cdnjs.cloudflare.com/ajax/libs/fuse.js/6.4.6/fuse.js" integrity="sha512-zv6Ywkjyktsohkbp9bb45V6tEMoWhzFzXis+LrMehmJZZSys19Yxf1dopHx7WzIKxr5tK2dVcYmaCk2uqdjF4A==" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/autocomplete.js/0.38.0/autocomplete.jquery.min.js" integrity="sha512-GU9ayf+66Xx2TmpxqJpliWbT5PiGYxpaG8rfnBEk1LL8l1KGkRShhngwdXK1UgqhAzWpZHSiYPc09/NwDQIGyg==" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mark.js/8.11.1/mark.min.js" integrity="sha512-5CYOlHXGh6QpOFA/TeTylKLWfB3ftPsde7AnmhuitiTX4K5SqCLBeKro6sPS8ilsz1Q4NRx3v8Ko2IBiszzdww==" crossorigin="anonymous"></script><!-- pkgdown --><script src="../pkgdown.js"></script><link href="../extra.css" rel="stylesheet"><meta property="og:title" content="Monotone Light Theme — style_mono_light"><meta property="og:description" content="A light monotone theme based around a single color."><meta property="og:image" content="https://pkg.garrickadenbuie.com/xaringanthemer/logo.png"><meta name="twitter:card" content="summary"><meta name="twitter:creator" content="@grrrck"><meta name="twitter:site" content="@grrrck"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]>
  3. <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
  4. <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  5. <![endif]--></head><body>
  6. <a href="#main" class="visually-hidden-focusable">Skip to contents</a>
  7. <nav class="navbar fixed-top navbar-light navbar-expand-lg bg-light"><div class="container">
  8. <a class="navbar-brand me-2" href="../index.html">xaringanthemer</a>
  9. <small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Released version">0.4.1</small>
  10. <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
  11. <span class="navbar-toggler-icon"></span>
  12. </button>
  13. <div id="navbar" class="collapse navbar-collapse ms-2">
  14. <ul class="navbar-nav me-auto"><li class="nav-item">
  15. <a class="nav-link" href="../articles/xaringanthemer.html">Features</a>
  16. </li>
  17. <li class="active nav-item">
  18. <a class="nav-link" href="../reference/index.html">Reference</a>
  19. </li>
  20. <li class="nav-item dropdown">
  21. <a href="#" class="nav-link dropdown-toggle" data-bs-toggle="dropdown" role="button" aria-expanded="false" aria-haspopup="true" id="dropdown-themes">Themes</a>
  22. <div class="dropdown-menu" aria-labelledby="dropdown-themes">
  23. <h6 class="dropdown-header" data-toc-skip>Themes</h6>
  24. <a class="dropdown-item" href="../articles/themes.html">Slide Themes</a>
  25. <a class="dropdown-item" href="../articles/ggplot2-themes.html">ggplot2 Themes</a>
  26. <div class="dropdown-divider"></div>
  27. <h6 class="dropdown-header" data-toc-skip>More Customization</h6>
  28. <a class="dropdown-item" href="../articles/fonts.html">Fonts</a>
  29. <a class="dropdown-item" href="../articles/template-variables.html">Template Variables</a>
  30. </div>
  31. </li>
  32. </ul><form class="form-inline my-2 my-lg-0" role="search">
  33. <input type="search" class="form-control me-sm-2" aria-label="Toggle navigation" name="search-input" data-search-index="../search.json" id="search-input" placeholder="Search for" autocomplete="off"></form>
  34. <ul class="navbar-nav"><li class="nav-item dropdown">
  35. <a href="#" class="nav-link dropdown-toggle" data-bs-toggle="dropdown" role="button" aria-expanded="false" aria-haspopup="true" id="dropdown--">
  36. <span class="far fa far fa-newspaper fa-lg"></span>
  37. </a>
  38. <div class="dropdown-menu" aria-labelledby="dropdown--">
  39. <a class="external-link dropdown-item" href="https://garrickadenbuie.com/blog/xaringanthemer-v0-3-0/">xaringanthemer 0.3.0</a>
  40. <div class="dropdown-divider"></div>
  41. <a class="dropdown-item" href="../news/index.html">Changelog</a>
  42. </div>
  43. </li>
  44. <li class="nav-item">
  45. <a class="external-link nav-link" href="https://github.com/gadenbuie/xaringanthemer">
  46. <span class="fab fa fab fa-github fa-lg"></span>
  47. </a>
  48. </li>
  49. <li class="nav-item">
  50. <a class="external-link nav-link" href="https://twitter.com/grrrck">
  51. <span class="fab fa fab fa-twitter fa-lg"></span>
  52. </a>
  53. </li>
  54. <li class="nav-item">
  55. <a class="external-link nav-link" href="https://www.garrickadenbuie.com">
  56. <span class="fas fa fas fa-home fa-lg"></span>
  57. </a>
  58. </li>
  59. </ul></div>
  60. </div>
  61. </nav><div class="container template-reference-topic">
  62. <div class="row">
  63. <main id="main" class="col-md-9"><div class="page-header">
  64. <img src="../logo.png" class="logo" alt=""><h1>Monotone Light Theme</h1>
  65. <small class="dont-index">Source: <a href="https://github.com/gadenbuie/xaringanthemer/blob/HEAD/R/style_mono_light.R" class="external-link"><code>R/style_mono_light.R</code></a></small>
  66. <div class="d-none name"><code>style_mono_light.Rd</code></div>
  67. </div>
  68. <div class="ref-description section level2">
  69. <p>A light monotone theme based around a single color.</p>
  70. </div>
  71. <div class="section level2">
  72. <h2 id="ref-usage">Usage<a class="anchor" aria-label="anchor" href="#ref-usage"></a></h2>
  73. <div class="sourceCode"><pre class="sourceCode r"><code><span class="fu">style_mono_light</span><span class="op">(</span>
  74. base_color <span class="op">=</span> <span class="st">"#23395b"</span>,
  75. white_color <span class="op">=</span> <span class="fu"><a href="lighten_darken_color.html">lighten_color</a></span><span class="op">(</span><span class="va">base_color</span>, <span class="fl">0.9</span><span class="op">)</span>,
  76. black_color <span class="op">=</span> <span class="fu"><a href="lighten_darken_color.html">darken_color</a></span><span class="op">(</span><span class="va">base_color</span>, <span class="fl">0.3</span><span class="op">)</span>,
  77. text_color <span class="op">=</span> <span class="va">black_color</span>,
  78. header_color <span class="op">=</span> <span class="va">base_color</span>,
  79. background_color <span class="op">=</span> <span class="va">white_color</span>,
  80. link_color <span class="op">=</span> <span class="va">base_color</span>,
  81. text_bold_color <span class="op">=</span> <span class="va">base_color</span>,
  82. text_slide_number_color <span class="op">=</span> <span class="va">base_color</span>,
  83. padding <span class="op">=</span> <span class="st">"16px 64px 16px 64px"</span>,
  84. background_image <span class="op">=</span> <span class="cn">NULL</span>,
  85. background_size <span class="op">=</span> <span class="cn">NULL</span>,
  86. background_position <span class="op">=</span> <span class="cn">NULL</span>,
  87. code_highlight_color <span class="op">=</span> <span class="st">"rgba(255,255,0,0.5)"</span>,
  88. code_inline_color <span class="op">=</span> <span class="va">base_color</span>,
  89. code_inline_background_color <span class="op">=</span> <span class="cn">NULL</span>,
  90. code_inline_font_size <span class="op">=</span> <span class="st">"1em"</span>,
  91. inverse_background_color <span class="op">=</span> <span class="va">base_color</span>,
  92. inverse_text_color <span class="op">=</span> <span class="va">white_color</span>,
  93. inverse_text_shadow <span class="op">=</span> <span class="cn">FALSE</span>,
  94. inverse_header_color <span class="op">=</span> <span class="va">white_color</span>,
  95. inverse_link_color <span class="op">=</span> <span class="va">link_color</span>,
  96. title_slide_text_color <span class="op">=</span> <span class="va">inverse_text_color</span>,
  97. title_slide_background_color <span class="op">=</span> <span class="va">inverse_background_color</span>,
  98. title_slide_background_image <span class="op">=</span> <span class="cn">NULL</span>,
  99. title_slide_background_size <span class="op">=</span> <span class="cn">NULL</span>,
  100. title_slide_background_position <span class="op">=</span> <span class="cn">NULL</span>,
  101. footnote_color <span class="op">=</span> <span class="cn">NULL</span>,
  102. footnote_font_size <span class="op">=</span> <span class="st">"0.9em"</span>,
  103. footnote_position_bottom <span class="op">=</span> <span class="st">"60px"</span>,
  104. left_column_subtle_color <span class="op">=</span> <span class="fu"><a href="apply_alpha.html">apply_alpha</a></span><span class="op">(</span><span class="va">base_color</span>, <span class="fl">0.6</span><span class="op">)</span>,
  105. left_column_selected_color <span class="op">=</span> <span class="va">base_color</span>,
  106. blockquote_left_border_color <span class="op">=</span> <span class="fu"><a href="apply_alpha.html">apply_alpha</a></span><span class="op">(</span><span class="va">base_color</span>, <span class="fl">0.5</span><span class="op">)</span>,
  107. table_border_color <span class="op">=</span> <span class="st">"#666"</span>,
  108. table_row_border_color <span class="op">=</span> <span class="st">"#ddd"</span>,
  109. table_row_even_background_color <span class="op">=</span> <span class="fu"><a href="lighten_darken_color.html">lighten_color</a></span><span class="op">(</span><span class="va">base_color</span>, <span class="fl">0.8</span><span class="op">)</span>,
  110. base_font_size <span class="op">=</span> <span class="st">"20px"</span>,
  111. text_font_size <span class="op">=</span> <span class="st">"1rem"</span>,
  112. header_h1_font_size <span class="op">=</span> <span class="st">"2.75rem"</span>,
  113. header_h2_font_size <span class="op">=</span> <span class="st">"2.25rem"</span>,
  114. header_h3_font_size <span class="op">=</span> <span class="st">"1.75rem"</span>,
  115. header_background_auto <span class="op">=</span> <span class="cn">FALSE</span>,
  116. header_background_color <span class="op">=</span> <span class="va">header_color</span>,
  117. header_background_text_color <span class="op">=</span> <span class="va">background_color</span>,
  118. header_background_padding <span class="op">=</span> <span class="cn">NULL</span>,
  119. header_background_content_padding_top <span class="op">=</span> <span class="st">"7rem"</span>,
  120. header_background_ignore_classes <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"normal"</span>, <span class="st">"inverse"</span>, <span class="st">"title"</span>, <span class="st">"middle"</span>,
  121. <span class="st">"bottom"</span><span class="op">)</span>,
  122. text_slide_number_font_size <span class="op">=</span> <span class="st">"0.9rem"</span>,
  123. text_font_google <span class="op">=</span> <span class="cn">NULL</span>,
  124. text_font_family <span class="op">=</span> <span class="fu"><a href="style_xaringan.html">xaringanthemer_font_default</a></span><span class="op">(</span><span class="st">"text_font_family"</span><span class="op">)</span>,
  125. text_font_weight <span class="op">=</span> <span class="fu"><a href="style_xaringan.html">xaringanthemer_font_default</a></span><span class="op">(</span><span class="st">"text_font_weight"</span><span class="op">)</span>,
  126. text_bold_font_weight <span class="op">=</span> <span class="st">"bold"</span>,
  127. text_font_url <span class="op">=</span> <span class="fu"><a href="style_xaringan.html">xaringanthemer_font_default</a></span><span class="op">(</span><span class="st">"text_font_url"</span><span class="op">)</span>,
  128. text_font_family_fallback <span class="op">=</span> <span class="fu"><a href="style_xaringan.html">xaringanthemer_font_default</a></span><span class="op">(</span><span class="st">"text_font_family_fallback"</span><span class="op">)</span>,
  129. text_font_base <span class="op">=</span> <span class="st">"sans-serif"</span>,
  130. header_font_google <span class="op">=</span> <span class="cn">NULL</span>,
  131. header_font_family <span class="op">=</span> <span class="fu"><a href="style_xaringan.html">xaringanthemer_font_default</a></span><span class="op">(</span><span class="st">"header_font_family"</span><span class="op">)</span>,
  132. header_font_weight <span class="op">=</span> <span class="fu"><a href="style_xaringan.html">xaringanthemer_font_default</a></span><span class="op">(</span><span class="st">"header_font_weight"</span><span class="op">)</span>,
  133. header_font_family_fallback <span class="op">=</span> <span class="st">"Georgia, serif"</span>,
  134. header_font_url <span class="op">=</span> <span class="fu"><a href="style_xaringan.html">xaringanthemer_font_default</a></span><span class="op">(</span><span class="st">"header_font_url"</span><span class="op">)</span>,
  135. code_font_google <span class="op">=</span> <span class="cn">NULL</span>,
  136. code_font_family <span class="op">=</span> <span class="fu"><a href="style_xaringan.html">xaringanthemer_font_default</a></span><span class="op">(</span><span class="st">"code_font_family"</span><span class="op">)</span>,
  137. code_font_size <span class="op">=</span> <span class="st">"0.9rem"</span>,
  138. code_font_url <span class="op">=</span> <span class="fu"><a href="style_xaringan.html">xaringanthemer_font_default</a></span><span class="op">(</span><span class="st">"code_font_url"</span><span class="op">)</span>,
  139. code_font_family_fallback <span class="op">=</span> <span class="fu"><a href="style_xaringan.html">xaringanthemer_font_default</a></span><span class="op">(</span><span class="st">"code_font_family_fallback"</span><span class="op">)</span>,
  140. link_decoration <span class="op">=</span> <span class="st">"none"</span>,
  141. colors <span class="op">=</span> <span class="cn">NULL</span>,
  142. extra_css <span class="op">=</span> <span class="cn">NULL</span>,
  143. extra_fonts <span class="op">=</span> <span class="cn">NULL</span>,
  144. outfile <span class="op">=</span> <span class="st">"xaringan-themer.css"</span>
  145. <span class="op">)</span></code></pre></div>
  146. </div>
  147. <div class="section level2">
  148. <h2 id="arguments">Arguments<a class="anchor" aria-label="anchor" href="#arguments"></a></h2>
  149. <dl><dt>base_color</dt>
  150. <dd><p>Monotone base color, works best with a strong color.
  151. Defaults to #23395b. Used in multiple CSS rules. The value of this
  152. variable is also stored as a CSS variable that can be referenced with
  153. <code>var(--base)</code> in any argument of a style function or in custom CSS.</p></dd>
  154. <dt>white_color</dt>
  155. <dd><p>Brightest color used, default is a very light version of
  156. <code>base_color</code>. Defaults to <code>lighten_color(base_color, 0.9)</code>. Used in
  157. multiple CSS rules. The value of this variable is also stored as a CSS
  158. variable that can be referenced with <code>var(--white)</code> in any argument of a
  159. style function or in custom CSS.</p></dd>
  160. <dt>black_color</dt>
  161. <dd><p>Darkest color used, default is a very dark, version of
  162. <code>base_color</code>. Defaults to <code>darken_color(base_color, 0.3)</code>. Used in
  163. multiple CSS rules. The value of this variable is also stored as a CSS
  164. variable that can be referenced with <code>var(--black)</code> in any argument of a
  165. style function or in custom CSS.</p></dd>
  166. <dt>text_color</dt>
  167. <dd><p>Text Color. Defaults to <code>black_color</code>. Modifies the <code>body</code>
  168. element. The value of this variable is also stored as a CSS variable that
  169. can be referenced with <code>var(--text_color)</code> in any argument of a style
  170. function or in custom CSS.</p></dd>
  171. <dt>header_color</dt>
  172. <dd><p>Header Color. Defaults to <code>base_color</code>. Modifies the
  173. <code>h1, h2, h3</code> elements. The value of this variable is also stored as a CSS
  174. variable that can be referenced with <code>var(--header-color)</code> in any argument
  175. of a style function or in custom CSS.</p></dd>
  176. <dt>background_color</dt>
  177. <dd><p>Slide Background Color. Defaults to <code>white_color</code>.
  178. Modifies the <code>.remark-slide-content</code> class. The value of this variable is
  179. also stored as a CSS variable that can be referenced with
  180. <code>var(--background-color)</code> in any argument of a style function or in custom
  181. CSS.</p></dd>
  182. <dt>link_color</dt>
  183. <dd><p>Link Color. Defaults to <code>base_color</code>. Modifies the
  184. <code>a, a &gt; code</code> elements. The value of this variable is also stored as a CSS
  185. variable that can be referenced with <code>var(--link-color)</code> in any argument
  186. of a style function or in custom CSS.</p></dd>
  187. <dt>text_bold_color</dt>
  188. <dd><p>Bold Text Color. Defaults to <code>base_color</code>. Modifies
  189. the <code>strong</code> element. The value of this variable is also stored as a CSS
  190. variable that can be referenced with <code>var(--text-bold-color)</code> in any
  191. argument of a style function or in custom CSS.</p></dd>
  192. <dt>text_slide_number_color</dt>
  193. <dd><p>Slide Number Color. Defaults to <code>base_color</code>.
  194. Modifies the <code>.remark-slide-number</code> class.</p></dd>
  195. <dt>padding</dt>
  196. <dd><p>Slide Padding in <code>top right [bottom left]</code> format. Defaults
  197. to 16px 64px 16px 64px. Modifies the <code>.remark-slide-content</code> class.
  198. Accepts CSS
  199. <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/padding" class="external-link">padding</a>
  200. property values.</p></dd>
  201. <dt>background_image</dt>
  202. <dd><p>Background image applied to each <em>and every</em> slide.
  203. Set <code>title_slide_background_image = "none"</code> to remove the background image
  204. from the title slide. Defaults to <code>NULL</code>. Modifies the
  205. <code>.remark-slide-content</code> class.</p></dd>
  206. <dt>background_size</dt>
  207. <dd><p>Background image size, requires <code>background_image</code> to
  208. be set. If <code>background_image</code> is set, <code>background_size</code> will default to
  209. <code>cover</code> so the background fills the screen. If both <code>background_image</code> and
  210. <code>background_position</code> are set, will default to 100 percent. Defaults to
  211. <code>NULL</code>. Modifies the <code>.remark-slide-content</code> class. Accepts CSS
  212. <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/background-size" class="external-link">background-size</a>
  213. property values.</p></dd>
  214. <dt>background_position</dt>
  215. <dd><p>Background image position, requires
  216. <code>background_image</code> to be set, and it is recommended to adjust
  217. <code>background_size</code>. Defaults to <code>NULL</code>. Modifies the
  218. <code>.remark-slide-content</code> class. Accepts CSS
  219. <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/background-position" class="external-link">background-position</a>
  220. property values.</p></dd>
  221. <dt>code_highlight_color</dt>
  222. <dd><p>Code Line Highlight. Defaults to
  223. rgba(255,255,0,0.5). Modifies the <code>.remark-code-line-highlighted</code> class.
  224. The value of this variable is also stored as a CSS variable that can be
  225. referenced with <code>var(--code-highlight-color)</code> in any argument of a style
  226. function or in custom CSS.</p></dd>
  227. <dt>code_inline_color</dt>
  228. <dd><p>Inline Code Color. Defaults to <code>base_color</code>.
  229. Modifies the <code>.remark-inline-code</code> class.</p></dd>
  230. <dt>code_inline_background_color</dt>
  231. <dd><p>Inline Code Background Color. Defaults
  232. to <code>NULL</code>. Modifies the <code>.remark-inline-code</code> class.</p></dd>
  233. <dt>code_inline_font_size</dt>
  234. <dd><p>Inline Code Text Font Size. Defaults to 1em.
  235. Modifies the <code>.remark-inline-code</code> class. Accepts CSS
  236. <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/font-size" class="external-link">font-size</a>
  237. property values. The value of this variable is also stored as a CSS
  238. variable that can be referenced with <code>var(--code-inline-font-size)</code> in any
  239. argument of a style function or in custom CSS.</p></dd>
  240. <dt>inverse_background_color</dt>
  241. <dd><p>Inverse Background Color. Defaults to
  242. <code>base_color</code>. Modifies the <code>.inverse</code> class. The value of this variable is
  243. also stored as a CSS variable that can be referenced with
  244. <code>var(--inverse-background-color)</code> in any argument of a style function or
  245. in custom CSS.</p></dd>
  246. <dt>inverse_text_color</dt>
  247. <dd><p>Inverse Text Color. Defaults to <code>white_color</code>.
  248. Modifies the <code>.inverse</code> class. The value of this variable is also stored
  249. as a CSS variable that can be referenced with <code>var(--inverse-text-color)</code>
  250. in any argument of a style function or in custom CSS.</p></dd>
  251. <dt>inverse_text_shadow</dt>
  252. <dd><p>Enables Shadow on text of inverse slides.
  253. Defaults to <code>FALSE</code>. Modifies the <code>.inverse</code> class.</p></dd>
  254. <dt>inverse_header_color</dt>
  255. <dd><p>Inverse Header Color. Defaults to <code>white_color</code>.
  256. Modifies the <code>.inverse h1, .inverse h2, .inverse h3</code> classes. The value of
  257. this variable is also stored as a CSS variable that can be referenced with
  258. <code>var(--inverse-header-color)</code> in any argument of a style function or in
  259. custom CSS.</p></dd>
  260. <dt>inverse_link_color</dt>
  261. <dd><p>Inverse Link Color. Defaults to <code>link_color</code>.
  262. Modifies the <code>.inverse a, .inverse a &gt; code</code> classes. The value of this
  263. variable is also stored as a CSS variable that can be referenced with
  264. <code>var(--inverse-link-color)</code> in any argument of a style function or in
  265. custom CSS.</p></dd>
  266. <dt>title_slide_text_color</dt>
  267. <dd><p>Title Slide Text Color. Defaults to
  268. <code>inverse_text_color</code>. Modifies the <code>.title-slide</code> class. The value of this
  269. variable is also stored as a CSS variable that can be referenced with
  270. <code>var(--title-slide-text-color)</code> in any argument of a style function or in
  271. custom CSS.</p></dd>
  272. <dt>title_slide_background_color</dt>
  273. <dd><p>Title Slide Background Color. Defaults
  274. to <code>inverse_background_color</code>. Modifies the <code>.title-slide</code> class. The
  275. value of this variable is also stored as a CSS variable that can be
  276. referenced with <code>var(--title-slide-background-color)</code> in any argument of a
  277. style function or in custom CSS.</p></dd>
  278. <dt>title_slide_background_image</dt>
  279. <dd><p>Title Slide Background Image URL.
  280. Defaults to <code>NULL</code>. Modifies the <code>.title-slide</code> class.</p></dd>
  281. <dt>title_slide_background_size</dt>
  282. <dd><p>Title Slide Background Image Size,
  283. defaults to "cover" if background image is set. Defaults to <code>NULL</code>.
  284. Modifies the <code>.title-slide</code> class. Accepts CSS
  285. <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/background-size" class="external-link">background-size</a>
  286. property values.</p></dd>
  287. <dt>title_slide_background_position</dt>
  288. <dd><p>Title Slide Background Image
  289. Position. Defaults to <code>NULL</code>. Modifies the <code>.title-slide</code> class. Accepts
  290. CSS
  291. <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/background-position" class="external-link">background-position</a>
  292. property values.</p></dd>
  293. <dt>footnote_color</dt>
  294. <dd><p>Footnote text color (if <code>NA</code>, then it will be the same
  295. color as <code>text_color</code>). Defaults to <code>NULL</code>. Modifies the <code>.footnote</code>
  296. class.</p></dd>
  297. <dt>footnote_font_size</dt>
  298. <dd><p>Footnote font size. Defaults to 0.9em. Modifies
  299. the <code>.footnote</code> class. Accepts CSS
  300. <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/font-size" class="external-link">font-size</a>
  301. property values.</p></dd>
  302. <dt>footnote_position_bottom</dt>
  303. <dd><p>Footnote location from bottom of screen.
  304. Defaults to 60px. Modifies the <code>.footnote</code> class. Accepts CSS
  305. <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/position_value" class="external-link">position</a>
  306. property values.</p></dd>
  307. <dt>left_column_subtle_color</dt>
  308. <dd><p>Left Column Text (not last). Defaults to
  309. <code>apply_alpha(base_color, 0.6)</code>. Modifies the
  310. <code>.left-column h2, .left-column h3</code> classes.</p></dd>
  311. <dt>left_column_selected_color</dt>
  312. <dd><p>Left Column Current Selection. Defaults to
  313. <code>base_color</code>. Modifies the
  314. <code>.left-column h2:last-of-type, .left-column h3:last-child</code> classes.</p></dd>
  315. <dt>blockquote_left_border_color</dt>
  316. <dd><p>Blockquote Left Border Color. Defaults
  317. to <code>apply_alpha(base_color, 0.5)</code>. Modifies the <code>blockquote</code> element.</p></dd>
  318. <dt>table_border_color</dt>
  319. <dd><p>Table top/bottom border. Defaults to #666.
  320. Modifies the <code>table: border-top, border-bottom</code> elements.</p></dd>
  321. <dt>table_row_border_color</dt>
  322. <dd><p>Table row inner bottom border. Defaults to
  323. #ddd. Modifies the <code>table thead th: border-bottom</code> elements.</p></dd>
  324. <dt>table_row_even_background_color</dt>
  325. <dd><p>Table Even Row Background Color.
  326. Defaults to <code>lighten_color(base_color, 0.8)</code>. Modifies the
  327. <code>thead, tfoot, tr:nth-child(even)</code> elements.</p></dd>
  328. <dt>base_font_size</dt>
  329. <dd><p>Base Font Size for All Slide Elements (must be <code>px</code>).
  330. Defaults to 20px. Modifies the <code>html</code> element. The value of this variable
  331. is also stored as a CSS variable that can be referenced with
  332. <code>var(--base-font-size)</code> in any argument of a style function or in custom
  333. CSS.</p></dd>
  334. <dt>text_font_size</dt>
  335. <dd><p>Slide Body Text Font Size. Defaults to 1rem. Modifies
  336. the <code>.remark-slide-content</code> class. Accepts CSS
  337. <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/font-size" class="external-link">font-size</a>
  338. property values. The value of this variable is also stored as a CSS
  339. variable that can be referenced with <code>var(--text-font-size)</code> in any
  340. argument of a style function or in custom CSS.</p></dd>
  341. <dt>header_h1_font_size</dt>
  342. <dd><p>h1 Header Text Font Size. Defaults to 2.75rem.
  343. Modifies the <code>.remark-slide-content h1</code> class. Accepts CSS
  344. <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/font-size" class="external-link">font-size</a>
  345. property values. The value of this variable is also stored as a CSS
  346. variable that can be referenced with <code>var(--header-h1-font-size)</code> in any
  347. argument of a style function or in custom CSS.</p></dd>
  348. <dt>header_h2_font_size</dt>
  349. <dd><p>h2 Header Text Font Size. Defaults to 2.25rem.
  350. Modifies the <code>.remark-slide-content h2</code> class. Accepts CSS
  351. <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/font-size" class="external-link">font-size</a>
  352. property values. The value of this variable is also stored as a CSS
  353. variable that can be referenced with <code>var(--header-h2-font-size)</code> in any
  354. argument of a style function or in custom CSS.</p></dd>
  355. <dt>header_h3_font_size</dt>
  356. <dd><p>h3 Header Text Font Size. Defaults to 1.75rem.
  357. Modifies the <code>.remark-slide-content h3</code> class. Accepts CSS
  358. <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/font-size" class="external-link">font-size</a>
  359. property values. The value of this variable is also stored as a CSS
  360. variable that can be referenced with <code>var(--header-h3-font-size)</code> in any
  361. argument of a style function or in custom CSS.</p></dd>
  362. <dt>header_background_auto</dt>
  363. <dd><p>Add background under slide title automatically
  364. for h1 header elements. If not enabled, use <code>class: header_background</code> to
  365. enable. Defaults to <code>FALSE</code>.</p></dd>
  366. <dt>header_background_color</dt>
  367. <dd><p>Background Color for h1 Header with
  368. Background. Defaults to <code>header_color</code>. Modifies the
  369. <code>.remark-slide-content h1</code> class. The value of this variable is also
  370. stored as a CSS variable that can be referenced with
  371. <code>var(--header-background-color)</code> in any argument of a style function or in
  372. custom CSS.</p></dd>
  373. <dt>header_background_text_color</dt>
  374. <dd><p>Text Color for h1 Header with
  375. Background. Defaults to <code>background_color</code>. Modifies the
  376. <code>.remark-slide-content h1</code> class. The value of this variable is also
  377. stored as a CSS variable that can be referenced with
  378. <code>var(--header-background-text-color)</code> in any argument of a style function
  379. or in custom CSS.</p></dd>
  380. <dt>header_background_padding</dt>
  381. <dd><p>Padding for h1 Header with Background.
  382. Defaults to <code>NULL</code>. Modifies the <code>.remark-slide-content h1</code> class. Accepts
  383. CSS <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/padding" class="external-link">padding</a>
  384. property values.</p></dd>
  385. <dt>header_background_content_padding_top</dt>
  386. <dd><p>Top Padding for Content in
  387. Slide with Header with Background. Defaults to 7rem. Modifies the
  388. <code>.remark-slide-content</code> class.</p></dd>
  389. <dt>header_background_ignore_classes</dt>
  390. <dd><p>Slide Classes Where Header with
  391. Background will not be Applied. Defaults to
  392. <code>c('normal', 'inverse', 'title', 'middle', 'bottom')</code>. Modifies the
  393. <code>.remark-slide-content</code> class.</p></dd>
  394. <dt>text_slide_number_font_size</dt>
  395. <dd><p>Slide Number Text Font Size. Defaults to
  396. 0.9rem. Modifies the <code>.remark-slide-number</code> class. Accepts CSS
  397. <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/font-size" class="external-link">font-size</a>
  398. property values.</p></dd>
  399. <dt>text_font_google</dt>
  400. <dd><p>Use <code><a href="google_font.html">google_font()</a></code> to specify body font. Defaults
  401. to <code>NULL</code>. Modifies the <code>body</code> element.</p></dd>
  402. <dt>text_font_family</dt>
  403. <dd><p>Body Text Font Family (xaringan default is
  404. <code>'Droid Serif'</code>). Defaults to
  405. <code>xaringanthemer_font_default("text_font_family")</code>. Modifies the <code>body</code>
  406. element. The value of this variable is also stored as a CSS variable that
  407. can be referenced with <code>var(--text-font-family)</code> in any argument of a
  408. style function or in custom CSS.</p></dd>
  409. <dt>text_font_weight</dt>
  410. <dd><p>Body Text Font Weight. Defaults to
  411. <code>xaringanthemer_font_default("text_font_weight")</code>. Modifies the <code>body</code>
  412. element. Accepts CSS
  413. <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight" class="external-link">font-weight</a>
  414. property values.</p></dd>
  415. <dt>text_bold_font_weight</dt>
  416. <dd><p>Body Bold Text Font Weight. Defaults to bold.
  417. Modifies the <code>strong</code> element.</p></dd>
  418. <dt>text_font_url</dt>
  419. <dd><p>Body Text Font URL(s). Defaults to
  420. <code>xaringanthemer_font_default("text_font_url")</code>. Modifies the
  421. <code>@import url()</code> elements.</p></dd>
  422. <dt>text_font_family_fallback</dt>
  423. <dd><p>Body Text Font Fallbacks. Defaults to
  424. <code>xaringanthemer_font_default("text_font_family_fallback")</code>. Modifies the
  425. <code>body</code> element. The value of this variable is also stored as a CSS
  426. variable that can be referenced with <code>var(--text-font-family-fallback)</code> in
  427. any argument of a style function or in custom CSS.</p></dd>
  428. <dt>text_font_base</dt>
  429. <dd><p>Body Text Base Font (Total Failure Fallback). Defaults
  430. to sans-serif. Modifies the <code>body</code> element. The value of this variable is
  431. also stored as a CSS variable that can be referenced with
  432. <code>var(--text-font-base)</code> in any argument of a style function or in custom
  433. CSS.</p></dd>
  434. <dt>header_font_google</dt>
  435. <dd><p>Use <code><a href="google_font.html">google_font()</a></code> to specify header font.
  436. Defaults to <code>NULL</code>. Modifies the <code>body</code> element.</p></dd>
  437. <dt>header_font_family</dt>
  438. <dd><p>Header Font Family (xaringan default is
  439. <code>'Yanone Kaffeesatz'</code>). Defaults to
  440. <code>xaringanthemer_font_default("header_font_family")</code>. Modifies the
  441. <code>h1, h2, h3</code> elements. The value of this variable is also stored as a CSS
  442. variable that can be referenced with <code>var(--header-font-family)</code> in any
  443. argument of a style function or in custom CSS.</p></dd>
  444. <dt>header_font_weight</dt>
  445. <dd><p>Header Font Weight. Defaults to
  446. <code>xaringanthemer_font_default("header_font_weight")</code>. Modifies the
  447. <code>h1, h2, h3</code> elements. Accepts CSS
  448. <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight" class="external-link">font-weight</a>
  449. property values.</p></dd>
  450. <dt>header_font_family_fallback</dt>
  451. <dd><p>Header Font Family Fallback. Defaults to
  452. Georgia, serif. Modifies the <code>h1, h2, h3</code> elements. The value of this
  453. variable is also stored as a CSS variable that can be referenced with
  454. <code>var(--header-font-family-fallback)</code> in any argument of a style function
  455. or in custom CSS.</p></dd>
  456. <dt>header_font_url</dt>
  457. <dd><p>Header Font URL. Defaults to
  458. <code>xaringanthemer_font_default("header_font_url")</code>. Modifies the
  459. <code>@import url</code> elements.</p></dd>
  460. <dt>code_font_google</dt>
  461. <dd><p>Use <code><a href="google_font.html">google_font()</a></code> to specify code font. Defaults
  462. to <code>NULL</code>. Modifies the <code>body</code> element.</p></dd>
  463. <dt>code_font_family</dt>
  464. <dd><p>Code Font Family. Defaults to
  465. <code>xaringanthemer_font_default("code_font_family")</code>. Modifies the
  466. <code>.remark-code, .remark-inline-code</code> classes. The value of this variable is
  467. also stored as a CSS variable that can be referenced with
  468. <code>var(--code-font-family)</code> in any argument of a style function or in custom
  469. CSS.</p></dd>
  470. <dt>code_font_size</dt>
  471. <dd><p>Code Text Font Size. Defaults to 0.9rem. Modifies the
  472. <code>.remark-inline</code> class. Accepts CSS
  473. <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/font-size" class="external-link">font-size</a>
  474. property values. The value of this variable is also stored as a CSS
  475. variable that can be referenced with <code>var(--code-font-size)</code> in any
  476. argument of a style function or in custom CSS.</p></dd>
  477. <dt>code_font_url</dt>
  478. <dd><p>Code Font URL. Defaults to
  479. <code>xaringanthemer_font_default("code_font_url")</code>. Modifies the <code>@import url</code>
  480. elements.</p></dd>
  481. <dt>code_font_family_fallback</dt>
  482. <dd><p>Code Font Fallback. Defaults to
  483. <code>xaringanthemer_font_default("code_font_family_fallback")</code>. Modifies the
  484. <code>.remark-code, .remark-inline-code</code> classes.</p></dd>
  485. <dt>link_decoration</dt>
  486. <dd><p>Text decoration of links. Defaults to none. Modifies
  487. the <code>a, a &gt; code</code> elements. Accepts CSS
  488. <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/text-decoration" class="external-link">text-decoration</a>
  489. property values.</p></dd>
  490. <dt>colors</dt>
  491. <dd><p>A named vector of custom colors. The names of the colors
  492. become CSS variables and classes that can be used within your slides.
  493. For example, <code>colors = c(blue = "#bad4ed")</code> adds a CSS variable
  494. <code>--blue</code>, a <code>.blue</code> CSS class that applies the color to the text or
  495. foreground color, and a <code>.bg-blue</code> CSS class that applies the color
  496. to the background.</p></dd>
  497. <dt>extra_css</dt>
  498. <dd><p>A named list of CSS definitions each containing a named list
  499. of CSS property-value pairs, i.e.
  500. <code>list(".class-id" = list("css-property" = "value"))</code>.</p></dd>
  501. <dt>extra_fonts</dt>
  502. <dd><p>A list of additional fonts to import, each list element
  503. can be either a URL as a character string or a call to
  504. <code><a href="google_font.html">google_font</a>()</code>. To use a font imported in <code>extra_fonts</code>, you
  505. will need to write custom CSS rules that apply the font to an element or
  506. class with the <code>font-family</code> property. See the <strong>Fonts</strong> section of
  507. <code><a href="../articles/xaringanthemer.html">vignette("xaringanthemer")</a></code> for an example.</p></dd>
  508. <dt>outfile</dt>
  509. <dd><p>Customized xaringan CSS output file name, default is "xaringan-themer.css"</p></dd>
  510. </dl></div>
  511. <div class="section level2">
  512. <h2 id="value">Value<a class="anchor" aria-label="anchor" href="#value"></a></h2>
  513. <p>The CSS styles are written to the file path provided in <code>outfile</code>(by default to <code>xaringan-themer.css</code>). If <code>outfile</code> is <code>NULL</code>, the CSS is
  514. returned directly as a character string.</p>
  515. </div>
  516. <div class="section level2">
  517. <h2 id="usage">Usage<a class="anchor" aria-label="anchor" href="#usage"></a></h2>
  518. <p>To use the styles created by this theme function, make sure
  519. that you use <code>xaringan-themer.css</code> as your CSS file in your slides' YAML
  520. header. If you change the name of the output file using the <code>outfile</code>
  521. argument, use that name instead of the default file name.</p><div class="sourceCode yaml"><pre><code><span id="cb1-1"><a href="#cb1-1"></a><span class="fu">output</span><span class="kw">:</span></span>
  522. <span id="cb1-2"><a href="#cb1-2"></a><span class="at">xaringan:</span><span class="fu">:moon_reader</span><span class="kw">:</span></span>
  523. <span id="cb1-3"><a href="#cb1-3"></a><span class="at"> </span><span class="fu">css</span><span class="kw">:</span><span class="at"> xaringan-themer.css</span></span></code></pre><p></p></div>
  524. </div>
  525. <div class="section level2">
  526. <h2 id="see-also">See also<a class="anchor" aria-label="anchor" href="#see-also"></a></h2>
  527. <div class="dont-index"><p>Other themes:
  528. <code><a href="style_duo_accent_inverse.html">style_duo_accent_inverse</a>()</code>,
  529. <code><a href="style_duo_accent.html">style_duo_accent</a>()</code>,
  530. <code><a href="style_duo.html">style_duo</a>()</code>,
  531. <code><a href="style_mono_accent_inverse.html">style_mono_accent_inverse</a>()</code>,
  532. <code><a href="style_mono_accent.html">style_mono_accent</a>()</code>,
  533. <code><a href="style_mono_dark.html">style_mono_dark</a>()</code>,
  534. <code><a href="style_solarized_dark.html">style_solarized_dark</a>()</code>,
  535. <code><a href="style_solarized_light.html">style_solarized_light</a>()</code>,
  536. <code><a href="style_xaringan.html">xaringanthemer_font_default</a>()</code></p>
  537. <p>Other Monotone themes:
  538. <code><a href="style_mono_accent_inverse.html">style_mono_accent_inverse</a>()</code>,
  539. <code><a href="style_mono_accent.html">style_mono_accent</a>()</code>,
  540. <code><a href="style_mono_dark.html">style_mono_dark</a>()</code></p></div>
  541. </div>
  542. <div class="section level2">
  543. <h2 id="ref-examples">Examples<a class="anchor" aria-label="anchor" href="#ref-examples"></a></h2>
  544. <div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span class="co"># Create a xaringan style in a temporary file</span></span>
  545. <span class="r-in"><span class="va">xaringan_themer_css</span> <span class="op">&lt;-</span> <span class="fu"><a href="https://rdrr.io/r/base/tempfile.html" class="external-link">tempfile</a></span><span class="op">(</span><span class="st">"xaringan-themer-"</span>, fileext <span class="op">=</span> <span class="st">".css"</span><span class="op">)</span></span>
  546. <span class="r-in"></span>
  547. <span class="r-in"><span class="fu">style_mono_light</span><span class="op">(</span></span>
  548. <span class="r-in"> base_color <span class="op">=</span> <span class="st">"#23395b"</span>,</span>
  549. <span class="r-in"> outfile <span class="op">=</span> <span class="va">xaringan_themer_css</span> <span class="co"># omit in your slides to write the</span></span>
  550. <span class="r-in"> <span class="co"># styles to xaringan-themer.css</span></span>
  551. <span class="r-in"><span class="op">)</span></span>
  552. <span class="r-in"></span>
  553. <span class="r-in"><span class="co"># View the CSS:</span></span>
  554. <span class="r-in"><span class="co"># file.edit(xaringan_themer_css)</span></span>
  555. </code></pre></div>
  556. </div>
  557. </main><aside class="col-md-3"><nav id="toc"><h2>On this page</h2>
  558. </nav></aside></div>
  559. <footer><div class="pkgdown-footer-left">
  560. <p></p><p>Developed by <a href="https://www.garrickadenbuie.com" class="external-link">Garrick Aden-Buie</a>.</p>
  561. </div>
  562. <div class="pkgdown-footer-right">
  563. <p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.1.</p>
  564. </div>
  565. </footer></div>
  566. </body></html>