😎 Give your xaringan slides some style
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

582 行
39KB

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