😎 Give your xaringan slides some style
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

738 lines
43KB

  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 dark monotone theme based around a single color."><title>Monotone Dark Theme — style_mono_dark • 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.3/bootstrap.min.css" rel="stylesheet"><script src="../deps/bootstrap-5.1.3/bootstrap.bundle.min.js"></script><link href="../deps/IBM_Plex_Mono-0.4.2/font.css" rel="stylesheet"><link href="../deps/Outfit-0.4.2/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 Dark Theme — style_mono_dark"><meta property="og:description" content="A dark 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"><meta name="robots" content="noindex"><!-- 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-danger me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="In-development version">0.4.1.9000</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-3">
  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 Dark Theme</h1>
  65. <small class="dont-index">Source: <a href="https://github.com/gadenbuie/xaringanthemer/blob/HEAD/R/style_mono_dark.R" class="external-link"><code>R/style_mono_dark.R</code></a></small>
  66. <div class="d-none name"><code>style_mono_dark.Rd</code></div>
  67. </div>
  68. <div class="ref-description section level2">
  69. <p>A dark 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><span class="fu">style_mono_dark</span><span class="op">(</span></span>
  74. <span> base_color <span class="op">=</span> <span class="st">"#cbf7ed"</span>,</span>
  75. <span> 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.8</span><span class="op">)</span>,</span>
  76. <span> 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.85</span><span class="op">)</span>,</span>
  77. <span> text_color <span class="op">=</span> <span class="va">white_color</span>,</span>
  78. <span> header_color <span class="op">=</span> <span class="va">base_color</span>,</span>
  79. <span> background_color <span class="op">=</span> <span class="va">black_color</span>,</span>
  80. <span> link_color <span class="op">=</span> <span class="va">base_color</span>,</span>
  81. <span> text_bold_color <span class="op">=</span> <span class="va">base_color</span>,</span>
  82. <span> text_slide_number_color <span class="op">=</span> <span class="va">base_color</span>,</span>
  83. <span> padding <span class="op">=</span> <span class="st">"16px 64px 16px 64px"</span>,</span>
  84. <span> background_image <span class="op">=</span> <span class="cn">NULL</span>,</span>
  85. <span> background_size <span class="op">=</span> <span class="cn">NULL</span>,</span>
  86. <span> background_position <span class="op">=</span> <span class="cn">NULL</span>,</span>
  87. <span> code_highlight_color <span class="op">=</span> <span class="st">"rgba(255,255,0,0.5)"</span>,</span>
  88. <span> code_inline_color <span class="op">=</span> <span class="va">base_color</span>,</span>
  89. <span> code_inline_background_color <span class="op">=</span> <span class="cn">NULL</span>,</span>
  90. <span> code_inline_font_size <span class="op">=</span> <span class="st">"1em"</span>,</span>
  91. <span> inverse_background_color <span class="op">=</span> <span class="va">base_color</span>,</span>
  92. <span> inverse_text_color <span class="op">=</span> <span class="va">black_color</span>,</span>
  93. <span> inverse_text_shadow <span class="op">=</span> <span class="cn">FALSE</span>,</span>
  94. <span> inverse_header_color <span class="op">=</span> <span class="va">inverse_text_color</span>,</span>
  95. <span> inverse_link_color <span class="op">=</span> <span class="va">link_color</span>,</span>
  96. <span> title_slide_text_color <span class="op">=</span> <span class="va">inverse_text_color</span>,</span>
  97. <span> title_slide_background_color <span class="op">=</span> <span class="va">inverse_background_color</span>,</span>
  98. <span> title_slide_background_image <span class="op">=</span> <span class="cn">NULL</span>,</span>
  99. <span> title_slide_background_size <span class="op">=</span> <span class="cn">NULL</span>,</span>
  100. <span> title_slide_background_position <span class="op">=</span> <span class="cn">NULL</span>,</span>
  101. <span> footnote_color <span class="op">=</span> <span class="cn">NULL</span>,</span>
  102. <span> footnote_font_size <span class="op">=</span> <span class="st">"0.9em"</span>,</span>
  103. <span> footnote_position_bottom <span class="op">=</span> <span class="st">"60px"</span>,</span>
  104. <span> 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>,</span>
  105. <span> left_column_selected_color <span class="op">=</span> <span class="va">base_color</span>,</span>
  106. <span> 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>,</span>
  107. <span> table_border_color <span class="op">=</span> <span class="st">"#666"</span>,</span>
  108. <span> table_row_border_color <span class="op">=</span> <span class="st">"#ddd"</span>,</span>
  109. <span> table_row_even_background_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.7</span><span class="op">)</span>,</span>
  110. <span> base_font_size <span class="op">=</span> <span class="st">"20px"</span>,</span>
  111. <span> text_font_size <span class="op">=</span> <span class="st">"1rem"</span>,</span>
  112. <span> header_h1_font_size <span class="op">=</span> <span class="st">"2.75rem"</span>,</span>
  113. <span> header_h2_font_size <span class="op">=</span> <span class="st">"2.25rem"</span>,</span>
  114. <span> header_h3_font_size <span class="op">=</span> <span class="st">"1.75rem"</span>,</span>
  115. <span> header_background_auto <span class="op">=</span> <span class="cn">FALSE</span>,</span>
  116. <span> header_background_color <span class="op">=</span> <span class="va">header_color</span>,</span>
  117. <span> header_background_text_color <span class="op">=</span> <span class="va">background_color</span>,</span>
  118. <span> header_background_padding <span class="op">=</span> <span class="cn">NULL</span>,</span>
  119. <span> header_background_content_padding_top <span class="op">=</span> <span class="st">"7rem"</span>,</span>
  120. <span> 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>, <span class="st">"bottom"</span><span class="op">)</span>,</span>
  121. <span> text_slide_number_font_size <span class="op">=</span> <span class="st">"0.9rem"</span>,</span>
  122. <span> text_font_google <span class="op">=</span> <span class="cn">NULL</span>,</span>
  123. <span> 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>,</span>
  124. <span> 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>,</span>
  125. <span> text_bold_font_weight <span class="op">=</span> <span class="st">"bold"</span>,</span>
  126. <span> 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>,</span>
  127. <span> 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>,</span>
  128. <span> text_font_base <span class="op">=</span> <span class="st">"sans-serif"</span>,</span>
  129. <span> header_font_google <span class="op">=</span> <span class="cn">NULL</span>,</span>
  130. <span> 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>,</span>
  131. <span> 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>,</span>
  132. <span> header_font_family_fallback <span class="op">=</span> <span class="st">"Georgia, serif"</span>,</span>
  133. <span> 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>,</span>
  134. <span> code_font_google <span class="op">=</span> <span class="cn">NULL</span>,</span>
  135. <span> 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>,</span>
  136. <span> code_font_size <span class="op">=</span> <span class="st">"0.9rem"</span>,</span>
  137. <span> 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>,</span>
  138. <span> 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>,</span>
  139. <span> link_decoration <span class="op">=</span> <span class="st">"none"</span>,</span>
  140. <span> colors <span class="op">=</span> <span class="cn">NULL</span>,</span>
  141. <span> extra_css <span class="op">=</span> <span class="cn">NULL</span>,</span>
  142. <span> extra_fonts <span class="op">=</span> <span class="cn">NULL</span>,</span>
  143. <span> outfile <span class="op">=</span> <span class="st">"xaringan-themer.css"</span></span>
  144. <span><span class="op">)</span></span></code></pre></div>
  145. </div>
  146. <div class="section level2">
  147. <h2 id="arguments">Arguments<a class="anchor" aria-label="anchor" href="#arguments"></a></h2>
  148. <dl><dt>base_color</dt>
  149. <dd><p>Monotone Base Color, works best with a light color..
  150. Defaults to #cbf7ed. Used in multiple CSS rules. The value of this
  151. variable is also stored as a CSS variable that can be referenced with
  152. <code>var(--base)</code> in any argument of a style function or in custom CSS.</p></dd>
  153. <dt>white_color</dt>
  154. <dd><p>Brightest color used, default is a very light version of
  155. <code>base_color</code>. Defaults to <code>lighten_color(base_color, 0.8)</code>. Used in
  156. multiple CSS rules. The value of this variable is also stored as a CSS
  157. variable that can be referenced with <code>var(--white)</code> in any argument of a
  158. style function or in custom CSS.</p></dd>
  159. <dt>black_color</dt>
  160. <dd><p>Darkest color used, default is a very dark, version of
  161. <code>base_color</code>. Defaults to <code>darken_color(base_color, 0.85)</code>. Used in
  162. multiple CSS rules. The value of this variable is also stored as a CSS
  163. variable that can be referenced with <code>var(--black)</code> in any argument of a
  164. style function or in custom CSS.</p></dd>
  165. <dt>text_color</dt>
  166. <dd><p>Text Color. Defaults to <code>white_color</code>. Modifies the <code>body</code>
  167. element. The value of this variable is also stored as a CSS variable that
  168. can be referenced with <code>var(--text_color)</code> in any argument of a style
  169. function or in custom CSS.</p></dd>
  170. <dt>header_color</dt>
  171. <dd><p>Header Color. Defaults to <code>base_color</code>. Modifies the
  172. <code>h1, h2, h3</code> elements. The value of this variable is also stored as a CSS
  173. variable that can be referenced with <code>var(--header-color)</code> in any argument
  174. of a style function or in custom CSS.</p></dd>
  175. <dt>background_color</dt>
  176. <dd><p>Slide Background Color. Defaults to <code>black_color</code>.
  177. Modifies the <code>.remark-slide-content</code> class. The value of this variable is
  178. also stored as a CSS variable that can be referenced with
  179. <code>var(--background-color)</code> in any argument of a style function or in custom
  180. CSS.</p></dd>
  181. <dt>link_color</dt>
  182. <dd><p>Link Color. Defaults to <code>base_color</code>. Modifies the
  183. <code>a, a &gt; code</code> elements. The value of this variable is also stored as a CSS
  184. variable that can be referenced with <code>var(--link-color)</code> in any argument
  185. of a style function or in custom CSS.</p></dd>
  186. <dt>text_bold_color</dt>
  187. <dd><p>Bold Text Color. Defaults to <code>base_color</code>. Modifies
  188. the <code>strong</code> element. The value of this variable is also stored as a CSS
  189. variable that can be referenced with <code>var(--text-bold-color)</code> in any
  190. argument of a style function or in custom CSS.</p></dd>
  191. <dt>text_slide_number_color</dt>
  192. <dd><p>Slide Number Color. Defaults to <code>base_color</code>.
  193. Modifies the <code>.remark-slide-number</code> class.</p></dd>
  194. <dt>padding</dt>
  195. <dd><p>Slide Padding in <code>top right [bottom left]</code> format. Defaults
  196. to 16px 64px 16px 64px. Modifies the <code>.remark-slide-content</code> class.
  197. Accepts CSS
  198. <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/padding" class="external-link">padding</a>
  199. property values.</p></dd>
  200. <dt>background_image</dt>
  201. <dd><p>Background image applied to each <em>and every</em> slide.
  202. Set <code>title_slide_background_image = "none"</code> to remove the background image
  203. from the title slide. Defaults to <code>NULL</code>. Modifies the
  204. <code>.remark-slide-content</code> class.</p></dd>
  205. <dt>background_size</dt>
  206. <dd><p>Background image size, requires <code>background_image</code> to
  207. be set. If <code>background_image</code> is set, <code>background_size</code> will default to
  208. <code>cover</code> so the background fills the screen. If both <code>background_image</code> and
  209. <code>background_position</code> are set, will default to 100 percent. Defaults to
  210. <code>NULL</code>. Modifies the <code>.remark-slide-content</code> class. Accepts CSS
  211. <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/background-size" class="external-link">background-size</a>
  212. property values.</p></dd>
  213. <dt>background_position</dt>
  214. <dd><p>Background image position, requires
  215. <code>background_image</code> to be set, and it is recommended to adjust
  216. <code>background_size</code>. Defaults to <code>NULL</code>. Modifies the
  217. <code>.remark-slide-content</code> class. Accepts CSS
  218. <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/background-position" class="external-link">background-position</a>
  219. property values.</p></dd>
  220. <dt>code_highlight_color</dt>
  221. <dd><p>Code Line Highlight. Defaults to
  222. rgba(255,255,0,0.5). Modifies the <code>.remark-code-line-highlighted</code> class.
  223. The value of this variable is also stored as a CSS variable that can be
  224. referenced with <code>var(--code-highlight-color)</code> in any argument of a style
  225. function or in custom CSS.</p></dd>
  226. <dt>code_inline_color</dt>
  227. <dd><p>Inline Code Color. Defaults to <code>base_color</code>.
  228. Modifies the <code>.remark-inline-code</code> class.</p></dd>
  229. <dt>code_inline_background_color</dt>
  230. <dd><p>Inline Code Background Color. Defaults
  231. to <code>NULL</code>. Modifies the <code>.remark-inline-code</code> class.</p></dd>
  232. <dt>code_inline_font_size</dt>
  233. <dd><p>Inline Code Text Font Size. Defaults to 1em.
  234. Modifies the <code>.remark-inline-code</code> class. Accepts CSS
  235. <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/font-size" class="external-link">font-size</a>
  236. property values. The value of this variable is also stored as a CSS
  237. variable that can be referenced with <code>var(--code-inline-font-size)</code> in any
  238. argument of a style function or in custom CSS.</p></dd>
  239. <dt>inverse_background_color</dt>
  240. <dd><p>Inverse Background Color. Defaults to
  241. <code>base_color</code>. Modifies the <code>.inverse</code> class. The value of this variable is
  242. also stored as a CSS variable that can be referenced with
  243. <code>var(--inverse-background-color)</code> in any argument of a style function or
  244. in custom CSS.</p></dd>
  245. <dt>inverse_text_color</dt>
  246. <dd><p>Inverse Text Color. Defaults to <code>black_color</code>.
  247. Modifies the <code>.inverse</code> class. The value of this variable is also stored
  248. as a CSS variable that can be referenced with <code>var(--inverse-text-color)</code>
  249. in any argument of a style function or in custom CSS.</p></dd>
  250. <dt>inverse_text_shadow</dt>
  251. <dd><p>Enables Shadow on text of inverse slides.
  252. Defaults to <code>FALSE</code>. Modifies the <code>.inverse</code> class.</p></dd>
  253. <dt>inverse_header_color</dt>
  254. <dd><p>Inverse Header Color. Defaults to
  255. <code>inverse_text_color</code>. Modifies the <code>.inverse h1, .inverse h2, .inverse h3</code>
  256. classes. The value of this variable is also stored as a CSS variable that
  257. can be referenced with <code>var(--inverse-header-color)</code> in any argument of a
  258. style function or in custom CSS.</p></dd>
  259. <dt>inverse_link_color</dt>
  260. <dd><p>Inverse Link Color. Defaults to <code>link_color</code>.
  261. Modifies the <code>.inverse a, .inverse a &gt; code</code> classes. The value of this
  262. variable is also stored as a CSS variable that can be referenced with
  263. <code>var(--inverse-link-color)</code> in any argument of a style function or in
  264. custom CSS.</p></dd>
  265. <dt>title_slide_text_color</dt>
  266. <dd><p>Title Slide Text Color. Defaults to
  267. <code>inverse_text_color</code>. Modifies the <code>.title-slide</code> class. The value of this
  268. variable is also stored as a CSS variable that can be referenced with
  269. <code>var(--title-slide-text-color)</code> in any argument of a style function or in
  270. custom CSS.</p></dd>
  271. <dt>title_slide_background_color</dt>
  272. <dd><p>Title Slide Background Color. Defaults
  273. to <code>inverse_background_color</code>. Modifies the <code>.title-slide</code> class. The
  274. value of this variable is also stored as a CSS variable that can be
  275. referenced with <code>var(--title-slide-background-color)</code> in any argument of a
  276. style function or in custom CSS.</p></dd>
  277. <dt>title_slide_background_image</dt>
  278. <dd><p>Title Slide Background Image URL.
  279. Defaults to <code>NULL</code>. Modifies the <code>.title-slide</code> class.</p></dd>
  280. <dt>title_slide_background_size</dt>
  281. <dd><p>Title Slide Background Image Size,
  282. defaults to "cover" if background image is set. Defaults to <code>NULL</code>.
  283. Modifies the <code>.title-slide</code> class. Accepts CSS
  284. <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/background-size" class="external-link">background-size</a>
  285. property values.</p></dd>
  286. <dt>title_slide_background_position</dt>
  287. <dd><p>Title Slide Background Image
  288. Position. Defaults to <code>NULL</code>. Modifies the <code>.title-slide</code> class. Accepts
  289. CSS
  290. <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/background-position" class="external-link">background-position</a>
  291. property values.</p></dd>
  292. <dt>footnote_color</dt>
  293. <dd><p>Footnote text color (if <code>NA</code>, then it will be the same
  294. color as <code>text_color</code>). Defaults to <code>NULL</code>. Modifies the <code>.footnote</code>
  295. class.</p></dd>
  296. <dt>footnote_font_size</dt>
  297. <dd><p>Footnote font size. Defaults to 0.9em. Modifies
  298. the <code>.footnote</code> class. Accepts CSS
  299. <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/font-size" class="external-link">font-size</a>
  300. property values.</p></dd>
  301. <dt>footnote_position_bottom</dt>
  302. <dd><p>Footnote location from bottom of screen.
  303. Defaults to 60px. Modifies the <code>.footnote</code> class. Accepts CSS
  304. <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/position_value" class="external-link">position</a>
  305. property values.</p></dd>
  306. <dt>left_column_subtle_color</dt>
  307. <dd><p>Left Column Text (not last). Defaults to
  308. <code>apply_alpha(base_color, 0.6)</code>. Modifies the
  309. <code>.left-column h2, .left-column h3</code> classes.</p></dd>
  310. <dt>left_column_selected_color</dt>
  311. <dd><p>Left Column Current Selection. Defaults to
  312. <code>base_color</code>. Modifies the
  313. <code>.left-column h2:last-of-type, .left-column h3:last-child</code> classes.</p></dd>
  314. <dt>blockquote_left_border_color</dt>
  315. <dd><p>Blockquote Left Border Color. Defaults
  316. to <code>apply_alpha(base_color, 0.5)</code>. Modifies the <code>blockquote</code> element.</p></dd>
  317. <dt>table_border_color</dt>
  318. <dd><p>Table top/bottom border. Defaults to #666.
  319. Modifies the <code>table: border-top, border-bottom</code> elements.</p></dd>
  320. <dt>table_row_border_color</dt>
  321. <dd><p>Table row inner bottom border. Defaults to
  322. #ddd. Modifies the <code>table thead th: border-bottom</code> elements.</p></dd>
  323. <dt>table_row_even_background_color</dt>
  324. <dd><p>Table Even Row Background Color.
  325. Defaults to <code>darken_color(base_color, 0.7)</code>. Modifies the
  326. <code>thead, tfoot, tr:nth-child(even)</code> elements.</p></dd>
  327. <dt>base_font_size</dt>
  328. <dd><p>Base Font Size for All Slide Elements (must be <code>px</code>).
  329. Defaults to 20px. Modifies the <code>html</code> element. The value of this variable
  330. is also stored as a CSS variable that can be referenced with
  331. <code>var(--base-font-size)</code> in any argument of a style function or in custom
  332. CSS.</p></dd>
  333. <dt>text_font_size</dt>
  334. <dd><p>Slide Body Text Font Size. Defaults to 1rem. Modifies
  335. the <code>.remark-slide-content</code> class. Accepts CSS
  336. <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/font-size" class="external-link">font-size</a>
  337. property values. The value of this variable is also stored as a CSS
  338. variable that can be referenced with <code>var(--text-font-size)</code> in any
  339. argument of a style function or in custom CSS.</p></dd>
  340. <dt>header_h1_font_size</dt>
  341. <dd><p>h1 Header Text Font Size. Defaults to 2.75rem.
  342. Modifies the <code>.remark-slide-content h1</code> class. Accepts CSS
  343. <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/font-size" class="external-link">font-size</a>
  344. property values. The value of this variable is also stored as a CSS
  345. variable that can be referenced with <code>var(--header-h1-font-size)</code> in any
  346. argument of a style function or in custom CSS.</p></dd>
  347. <dt>header_h2_font_size</dt>
  348. <dd><p>h2 Header Text Font Size. Defaults to 2.25rem.
  349. Modifies the <code>.remark-slide-content h2</code> class. Accepts CSS
  350. <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/font-size" class="external-link">font-size</a>
  351. property values. The value of this variable is also stored as a CSS
  352. variable that can be referenced with <code>var(--header-h2-font-size)</code> in any
  353. argument of a style function or in custom CSS.</p></dd>
  354. <dt>header_h3_font_size</dt>
  355. <dd><p>h3 Header Text Font Size. Defaults to 1.75rem.
  356. Modifies the <code>.remark-slide-content h3</code> class. Accepts CSS
  357. <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/font-size" class="external-link">font-size</a>
  358. property values. The value of this variable is also stored as a CSS
  359. variable that can be referenced with <code>var(--header-h3-font-size)</code> in any
  360. argument of a style function or in custom CSS.</p></dd>
  361. <dt>header_background_auto</dt>
  362. <dd><p>Add background under slide title automatically
  363. for h1 header elements. If not enabled, use <code>class: header_background</code> to
  364. enable. Defaults to <code>FALSE</code>.</p></dd>
  365. <dt>header_background_color</dt>
  366. <dd><p>Background Color for h1 Header with
  367. Background. Defaults to <code>header_color</code>. Modifies the
  368. <code>.remark-slide-content h1</code> class. The value of this variable is also
  369. stored as a CSS variable that can be referenced with
  370. <code>var(--header-background-color)</code> in any argument of a style function or in
  371. custom CSS.</p></dd>
  372. <dt>header_background_text_color</dt>
  373. <dd><p>Text Color for h1 Header with
  374. Background. Defaults to <code>background_color</code>. Modifies the
  375. <code>.remark-slide-content h1</code> class. The value of this variable is also
  376. stored as a CSS variable that can be referenced with
  377. <code>var(--header-background-text-color)</code> in any argument of a style function
  378. or in custom CSS.</p></dd>
  379. <dt>header_background_padding</dt>
  380. <dd><p>Padding for h1 Header with Background.
  381. Defaults to <code>NULL</code>. Modifies the <code>.remark-slide-content h1</code> class. Accepts
  382. CSS <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/padding" class="external-link">padding</a>
  383. property values.</p></dd>
  384. <dt>header_background_content_padding_top</dt>
  385. <dd><p>Top Padding for Content in
  386. Slide with Header with Background. Defaults to 7rem. Modifies the
  387. <code>.remark-slide-content</code> class.</p></dd>
  388. <dt>header_background_ignore_classes</dt>
  389. <dd><p>Slide Classes Where Header with
  390. Background will not be Applied. Defaults to
  391. <code>c('normal', 'inverse', 'title', 'middle', 'bottom')</code>. Modifies the
  392. <code>.remark-slide-content</code> class.</p></dd>
  393. <dt>text_slide_number_font_size</dt>
  394. <dd><p>Slide Number Text Font Size. Defaults to
  395. 0.9rem. Modifies the <code>.remark-slide-number</code> class. Accepts CSS
  396. <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/font-size" class="external-link">font-size</a>
  397. property values.</p></dd>
  398. <dt>text_font_google</dt>
  399. <dd><p>Use <code><a href="google_font.html">google_font()</a></code> to specify body font. Defaults
  400. to <code>NULL</code>. Modifies the <code>body</code> element.</p></dd>
  401. <dt>text_font_family</dt>
  402. <dd><p>Body Text Font Family (xaringan default is
  403. <code>'Droid Serif'</code>). Defaults to
  404. <code>xaringanthemer_font_default("text_font_family")</code>. Modifies the <code>body</code>
  405. element. The value of this variable is also stored as a CSS variable that
  406. can be referenced with <code>var(--text-font-family)</code> in any argument of a
  407. style function or in custom CSS.</p></dd>
  408. <dt>text_font_weight</dt>
  409. <dd><p>Body Text Font Weight. Defaults to
  410. <code>xaringanthemer_font_default("text_font_weight")</code>. Modifies the <code>body</code>
  411. element. Accepts CSS
  412. <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight" class="external-link">font-weight</a>
  413. property values.</p></dd>
  414. <dt>text_bold_font_weight</dt>
  415. <dd><p>Body Bold Text Font Weight. Defaults to bold.
  416. Modifies the <code>strong</code> element.</p></dd>
  417. <dt>text_font_url</dt>
  418. <dd><p>Body Text Font URL(s). Defaults to
  419. <code>xaringanthemer_font_default("text_font_url")</code>. Modifies the
  420. <code>@import url()</code> elements.</p></dd>
  421. <dt>text_font_family_fallback</dt>
  422. <dd><p>Body Text Font Fallbacks. Defaults to
  423. <code>xaringanthemer_font_default("text_font_family_fallback")</code>. Modifies the
  424. <code>body</code> element. The value of this variable is also stored as a CSS
  425. variable that can be referenced with <code>var(--text-font-family-fallback)</code> in
  426. any argument of a style function or in custom CSS.</p></dd>
  427. <dt>text_font_base</dt>
  428. <dd><p>Body Text Base Font (Total Failure Fallback). Defaults
  429. to sans-serif. Modifies the <code>body</code> element. The value of this variable is
  430. also stored as a CSS variable that can be referenced with
  431. <code>var(--text-font-base)</code> in any argument of a style function or in custom
  432. CSS.</p></dd>
  433. <dt>header_font_google</dt>
  434. <dd><p>Use <code><a href="google_font.html">google_font()</a></code> to specify header font.
  435. Defaults to <code>NULL</code>. Modifies the <code>body</code> element.</p></dd>
  436. <dt>header_font_family</dt>
  437. <dd><p>Header Font Family (xaringan default is
  438. <code>'Yanone Kaffeesatz'</code>). Defaults to
  439. <code>xaringanthemer_font_default("header_font_family")</code>. Modifies the
  440. <code>h1, h2, h3</code> elements. The value of this variable is also stored as a CSS
  441. variable that can be referenced with <code>var(--header-font-family)</code> in any
  442. argument of a style function or in custom CSS.</p></dd>
  443. <dt>header_font_weight</dt>
  444. <dd><p>Header Font Weight. Defaults to
  445. <code>xaringanthemer_font_default("header_font_weight")</code>. Modifies the
  446. <code>h1, h2, h3</code> elements. Accepts CSS
  447. <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight" class="external-link">font-weight</a>
  448. property values.</p></dd>
  449. <dt>header_font_family_fallback</dt>
  450. <dd><p>Header Font Family Fallback. Defaults to
  451. Georgia, serif. Modifies the <code>h1, h2, h3</code> elements. The value of this
  452. variable is also stored as a CSS variable that can be referenced with
  453. <code>var(--header-font-family-fallback)</code> in any argument of a style function
  454. or in custom CSS.</p></dd>
  455. <dt>header_font_url</dt>
  456. <dd><p>Header Font URL. Defaults to
  457. <code>xaringanthemer_font_default("header_font_url")</code>. Modifies the
  458. <code>@import url</code> elements.</p></dd>
  459. <dt>code_font_google</dt>
  460. <dd><p>Use <code><a href="google_font.html">google_font()</a></code> to specify code font. Defaults
  461. to <code>NULL</code>. Modifies the <code>body</code> element.</p></dd>
  462. <dt>code_font_family</dt>
  463. <dd><p>Code Font Family. Defaults to
  464. <code>xaringanthemer_font_default("code_font_family")</code>. Modifies the
  465. <code>.remark-code, .remark-inline-code</code> classes. The value of this variable is
  466. also stored as a CSS variable that can be referenced with
  467. <code>var(--code-font-family)</code> in any argument of a style function or in custom
  468. CSS.</p></dd>
  469. <dt>code_font_size</dt>
  470. <dd><p>Code Text Font Size. Defaults to 0.9rem. Modifies the
  471. <code>.remark-inline</code> class. Accepts CSS
  472. <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/font-size" class="external-link">font-size</a>
  473. property values. The value of this variable is also stored as a CSS
  474. variable that can be referenced with <code>var(--code-font-size)</code> in any
  475. argument of a style function or in custom CSS.</p></dd>
  476. <dt>code_font_url</dt>
  477. <dd><p>Code Font URL. Defaults to
  478. <code>xaringanthemer_font_default("code_font_url")</code>. Modifies the <code>@import url</code>
  479. elements.</p></dd>
  480. <dt>code_font_family_fallback</dt>
  481. <dd><p>Code Font Fallback. Defaults to
  482. <code>xaringanthemer_font_default("code_font_family_fallback")</code>. Modifies the
  483. <code>.remark-code, .remark-inline-code</code> classes.</p></dd>
  484. <dt>link_decoration</dt>
  485. <dd><p>Text decoration of links. Defaults to none. Modifies
  486. the <code>a, a &gt; code</code> elements. Accepts CSS
  487. <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/text-decoration" class="external-link">text-decoration</a>
  488. property values.</p></dd>
  489. <dt>colors</dt>
  490. <dd><p>A named vector of custom colors. The names of the colors
  491. become CSS variables and classes that can be used within your slides.
  492. For example, <code>colors = c(blue = "#bad4ed")</code> adds a CSS variable
  493. <code>--blue</code>, a <code>.blue</code> CSS class that applies the color to the text or
  494. foreground color, and a <code>.bg-blue</code> CSS class that applies the color
  495. to the background.</p></dd>
  496. <dt>extra_css</dt>
  497. <dd><p>A named list of CSS definitions each containing a named list
  498. of CSS property-value pairs, i.e.
  499. <code>list(".class-id" = list("css-property" = "value"))</code>.</p></dd>
  500. <dt>extra_fonts</dt>
  501. <dd><p>A list of additional fonts to import, each list element
  502. can be either a URL as a character string or a call to
  503. <code><a href="google_font.html">google_font</a>()</code>. To use a font imported in <code>extra_fonts</code>, you
  504. will need to write custom CSS rules that apply the font to an element or
  505. class with the <code>font-family</code> property. See the <strong>Fonts</strong> section of
  506. <code><a href="../articles/xaringanthemer.html">vignette("xaringanthemer")</a></code> for an example.</p></dd>
  507. <dt>outfile</dt>
  508. <dd><p>Customized xaringan CSS output file name, default is "xaringan-themer.css"</p></dd>
  509. </dl></div>
  510. <div class="section level2">
  511. <h2 id="value">Value<a class="anchor" aria-label="anchor" href="#value"></a></h2>
  512. <p>The CSS styles are written to the file path provided in <code>outfile</code></p>
  513. <p>(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>
  522. <p></p><div class="sourceCode yaml"><pre><code><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="fu">output</span><span class="kw">:</span></span>
  523. <span id="cb1-2"><a href="#cb1-2" aria-hidden="true" tabindex="-1"></a><span class="at">xaringan:</span><span class="fu">:moon_reader</span><span class="kw">:</span></span>
  524. <span id="cb1-3"><a href="#cb1-3" aria-hidden="true" tabindex="-1"></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>
  525. </div>
  526. <div class="section level2">
  527. <h2 id="see-also">See also<a class="anchor" aria-label="anchor" href="#see-also"></a></h2>
  528. <div class="dont-index"><p>Other themes:
  529. <code><a href="style_duo_accent_inverse.html">style_duo_accent_inverse</a>()</code>,
  530. <code><a href="style_duo_accent.html">style_duo_accent</a>()</code>,
  531. <code><a href="style_duo.html">style_duo</a>()</code>,
  532. <code><a href="style_mono_accent_inverse.html">style_mono_accent_inverse</a>()</code>,
  533. <code><a href="style_mono_accent.html">style_mono_accent</a>()</code>,
  534. <code><a href="style_mono_light.html">style_mono_light</a>()</code>,
  535. <code><a href="style_solarized_dark.html">style_solarized_dark</a>()</code>,
  536. <code><a href="style_solarized_light.html">style_solarized_light</a>()</code>,
  537. <code><a href="style_xaringan.html">xaringanthemer_font_default</a>()</code></p>
  538. <p>Other Monotone themes:
  539. <code><a href="style_mono_accent_inverse.html">style_mono_accent_inverse</a>()</code>,
  540. <code><a href="style_mono_accent.html">style_mono_accent</a>()</code>,
  541. <code><a href="style_mono_light.html">style_mono_light</a>()</code></p></div>
  542. </div>
  543. <div class="section level2">
  544. <h2 id="ref-examples">Examples<a class="anchor" aria-label="anchor" href="#ref-examples"></a></h2>
  545. <div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span><span class="co"># Create a xaringan style in a temporary file</span></span></span>
  546. <span class="r-in"><span><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></span>
  547. <span class="r-in"><span></span></span>
  548. <span class="r-in"><span><span class="fu">style_mono_dark</span><span class="op">(</span></span></span>
  549. <span class="r-in"><span> base_color <span class="op">=</span> <span class="st">"#cbf7ed"</span>,</span></span>
  550. <span class="r-in"><span> outfile <span class="op">=</span> <span class="va">xaringan_themer_css</span> <span class="co"># omit in your slides to write the</span></span></span>
  551. <span class="r-in"><span> <span class="co"># styles to xaringan-themer.css</span></span></span>
  552. <span class="r-in"><span><span class="op">)</span></span></span>
  553. <span class="r-in"><span></span></span>
  554. <span class="r-in"><span><span class="co"># View the CSS:</span></span></span>
  555. <span class="r-in"><span><span class="co"># file.edit(xaringan_themer_css)</span></span></span>
  556. </code></pre></div>
  557. </div>
  558. </main><aside class="col-md-3"><nav id="toc"><h2>On this page</h2>
  559. </nav></aside></div>
  560. <footer><div class="pkgdown-footer-left">
  561. <p></p><p>Developed by <a href="https://www.garrickadenbuie.com" class="external-link">Garrick Aden-Buie</a>.</p>
  562. </div>
  563. <div class="pkgdown-footer-right">
  564. <p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.6.</p>
  565. </div>
  566. </footer></div>
  567. <script>window.jQuery('.navbar-brand + small').addClass(['badge', 'bg-secondary', 'text-light']).removeClass('text-muted')</script></body></html>