😎 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.

810 lines
39KB

  1. <!-- Generated by pkgdown: do not edit by hand -->
  2. <!DOCTYPE html>
  3. <html lang="en">
  4. <head>
  5. <meta charset="utf-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  8. <title>Solarized Dark Theme — style_solarized_dark • xaringanthemer</title>
  9. <!-- favicons -->
  10. <link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png">
  11. <link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png">
  12. <link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png" />
  13. <link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png" />
  14. <link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png" />
  15. <link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png" />
  16. <!-- jquery -->
  17. <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script>
  18. <!-- Bootstrap -->
  19. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous" />
  20. <script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script>
  21. <!-- bootstrap-toc -->
  22. <link rel="stylesheet" href="../bootstrap-toc.css">
  23. <script src="../bootstrap-toc.js"></script>
  24. <!-- Font Awesome icons -->
  25. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous" />
  26. <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" />
  27. <!-- clipboard.js -->
  28. <script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script>
  29. <!-- headroom.js -->
  30. <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>
  31. <script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script>
  32. <!-- pkgdown -->
  33. <link href="../pkgdown.css" rel="stylesheet">
  34. <script src="../pkgdown.js"></script>
  35. <link href="../extra.css" rel="stylesheet">
  36. <meta property="og:title" content="Solarized Dark Theme — style_solarized_dark" />
  37. <meta property="og:description" content="A dark theme based around on the solarized color scheme.
  38. Works well with &quot;highlightStyle: solarized-dark&quot; or
  39. &quot;highlighStyle: solarized-light&quot;." />
  40. <meta property="og:image" content="https://pkg.garrickadenbuie.com/xaringanthemer/logo.png" />
  41. <meta name="twitter:card" content="summary" />
  42. <meta name="twitter:creator" content="@grrrck" />
  43. <meta name="twitter:site" content="@grrrck" />
  44. <meta name="robots" content="noindex">
  45. <!-- mathjax -->
  46. <script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script>
  47. <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>
  48. <!--[if lt IE 9]>
  49. <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
  50. <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  51. <![endif]-->
  52. </head>
  53. <body data-spy="scroll" data-target="#toc">
  54. <div class="container template-reference-topic">
  55. <header>
  56. <div class="navbar navbar-default navbar-fixed-top" role="navigation">
  57. <div class="container">
  58. <div class="navbar-header">
  59. <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
  60. <span class="sr-only">Toggle navigation</span>
  61. <span class="icon-bar"></span>
  62. <span class="icon-bar"></span>
  63. <span class="icon-bar"></span>
  64. </button>
  65. <span class="navbar-brand">
  66. <a class="navbar-link" href="../index.html">xaringanthemer</a>
  67. <span class="version label label-danger" data-toggle="tooltip" data-placement="bottom" title="In-development version">0.4.0.9000</span>
  68. </span>
  69. </div>
  70. <div id="navbar" class="navbar-collapse collapse">
  71. <ul class="nav navbar-nav">
  72. <li>
  73. <a href="../articles/xaringanthemer.html">Features</a>
  74. </li>
  75. <li>
  76. <a href="../reference/index.html">Reference</a>
  77. </li>
  78. <li>
  79. <a href="../articles/themes.html">Themes</a>
  80. </li>
  81. <li>
  82. <a href="../articles/ggplot2-themes.html">ggplot2 Themes</a>
  83. </li>
  84. <li class="dropdown">
  85. <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
  86. More
  87. <span class="caret"></span>
  88. </a>
  89. <ul class="dropdown-menu" role="menu">
  90. <li>
  91. <a href="../articles/fonts.html">Fonts</a>
  92. </li>
  93. <li>
  94. <a href="../articles/template-variables.html">Template Variables</a>
  95. </li>
  96. </ul>
  97. </li>
  98. </ul>
  99. <ul class="nav navbar-nav navbar-right">
  100. <li class="dropdown">
  101. <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
  102. <span class="far fa-newspaper fa-lg"></span>
  103. <span class="caret"></span>
  104. </a>
  105. <ul class="dropdown-menu" role="menu">
  106. <li>
  107. <a href="https://garrickadenbuie.com/blog/xaringanthemer-v0-3-0/">xaringanthemer 0.3.0</a>
  108. </li>
  109. <li class="divider"></li>
  110. <li>
  111. <a href="../news/index.html">Changelog</a>
  112. </li>
  113. </ul>
  114. </li>
  115. <li>
  116. <a href="https://github.com/gadenbuie/xaringanthemer">
  117. <span class="fab fa-github fa-lg"></span>
  118. </a>
  119. </li>
  120. <li>
  121. <a href="https://twitter.com/grrrck">
  122. <span class="fab fa-twitter fa-lg"></span>
  123. </a>
  124. </li>
  125. <li>
  126. <a href="https://www.garrickadenbuie.com">
  127. <span class="fas fa-home fa-lg"></span>
  128. </a>
  129. </li>
  130. </ul>
  131. </div><!--/.nav-collapse -->
  132. </div><!--/.container -->
  133. </div><!--/.navbar -->
  134. </header>
  135. <div class="row">
  136. <div class="col-md-9 contents">
  137. <div class="page-header">
  138. <h1>Solarized Dark Theme</h1>
  139. <small class="dont-index">Source: <a href='https://github.com/gadenbuie/xaringanthemer/blob/master/R/style_solarized_dark.R'><code>R/style_solarized_dark.R</code></a></small>
  140. <div class="hidden name"><code>style_solarized_dark.Rd</code></div>
  141. </div>
  142. <div class="ref-description">
  143. <p>A dark theme based around on the solarized color scheme.
  144. Works well with "<code>highlightStyle: solarized-dark</code>" or
  145. "<code>highlighStyle: solarized-light</code>".</p>
  146. </div>
  147. <pre class="usage"><span class='fu'>style_solarized_dark</span><span class='op'>(</span>
  148. text_color <span class='op'>=</span> <span class='st'>"#839496"</span>,
  149. header_color <span class='op'>=</span> <span class='st'>"#dc322f"</span>,
  150. background_color <span class='op'>=</span> <span class='st'>"#002b36"</span>,
  151. link_color <span class='op'>=</span> <span class='st'>"#b58900"</span>,
  152. text_bold_color <span class='op'>=</span> <span class='st'>"#d33682"</span>,
  153. text_slide_number_color <span class='op'>=</span> <span class='st'>"#586e75"</span>,
  154. padding <span class='op'>=</span> <span class='st'>"16px 64px 16px 64px"</span>,
  155. background_image <span class='op'>=</span> <span class='cn'>NULL</span>,
  156. background_size <span class='op'>=</span> <span class='cn'>NULL</span>,
  157. background_position <span class='op'>=</span> <span class='cn'>NULL</span>,
  158. code_highlight_color <span class='op'>=</span> <span class='st'>"#268bd240"</span>,
  159. code_inline_color <span class='op'>=</span> <span class='st'>"#6c71c4"</span>,
  160. code_inline_background_color <span class='op'>=</span> <span class='cn'>NULL</span>,
  161. code_inline_font_size <span class='op'>=</span> <span class='st'>"1em"</span>,
  162. inverse_background_color <span class='op'>=</span> <span class='st'>"#fdf6e3"</span>,
  163. inverse_text_color <span class='op'>=</span> <span class='st'>"#002b36"</span>,
  164. inverse_text_shadow <span class='op'>=</span> <span class='cn'>FALSE</span>,
  165. inverse_header_color <span class='op'>=</span> <span class='va'>inverse_text_color</span>,
  166. inverse_link_color <span class='op'>=</span> <span class='va'>link_color</span>,
  167. title_slide_text_color <span class='op'>=</span> <span class='va'>inverse_text_color</span>,
  168. title_slide_background_color <span class='op'>=</span> <span class='va'>inverse_background_color</span>,
  169. title_slide_background_image <span class='op'>=</span> <span class='cn'>NULL</span>,
  170. title_slide_background_size <span class='op'>=</span> <span class='cn'>NULL</span>,
  171. title_slide_background_position <span class='op'>=</span> <span class='cn'>NULL</span>,
  172. footnote_color <span class='op'>=</span> <span class='cn'>NULL</span>,
  173. footnote_font_size <span class='op'>=</span> <span class='st'>"0.9em"</span>,
  174. footnote_position_bottom <span class='op'>=</span> <span class='st'>"60px"</span>,
  175. left_column_subtle_color <span class='op'>=</span> <span class='st'>"#586e75"</span>,
  176. left_column_selected_color <span class='op'>=</span> <span class='st'>"#93a1a1"</span>,
  177. blockquote_left_border_color <span class='op'>=</span> <span class='st'>"#cb4b16"</span>,
  178. table_border_color <span class='op'>=</span> <span class='st'>"#657b83"</span>,
  179. table_row_border_color <span class='op'>=</span> <span class='st'>"#657b83"</span>,
  180. table_row_even_background_color <span class='op'>=</span> <span class='st'>"#073642"</span>,
  181. base_font_size <span class='op'>=</span> <span class='st'>"20px"</span>,
  182. text_font_size <span class='op'>=</span> <span class='st'>"1rem"</span>,
  183. header_h1_font_size <span class='op'>=</span> <span class='st'>"2.75rem"</span>,
  184. header_h2_font_size <span class='op'>=</span> <span class='st'>"2.25rem"</span>,
  185. header_h3_font_size <span class='op'>=</span> <span class='st'>"1.75rem"</span>,
  186. header_background_auto <span class='op'>=</span> <span class='cn'>FALSE</span>,
  187. header_background_color <span class='op'>=</span> <span class='va'>header_color</span>,
  188. header_background_text_color <span class='op'>=</span> <span class='va'>background_color</span>,
  189. header_background_padding <span class='op'>=</span> <span class='cn'>NULL</span>,
  190. header_background_content_padding_top <span class='op'>=</span> <span class='st'>"7rem"</span>,
  191. header_background_ignore_classes <span class='op'>=</span> <span class='fu'><a href='https://rdrr.io/r/base/c.html'>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>,
  192. <span class='st'>"bottom"</span><span class='op'>)</span>,
  193. text_slide_number_font_size <span class='op'>=</span> <span class='st'>"0.9rem"</span>,
  194. text_font_google <span class='op'>=</span> <span class='cn'>NULL</span>,
  195. text_font_family <span class='op'>=</span> <span class='fu'><a href='xaringanthemer_font_default.html'>xaringanthemer_font_default</a></span><span class='op'>(</span><span class='st'>"text_font_family"</span><span class='op'>)</span>,
  196. text_font_weight <span class='op'>=</span> <span class='fu'><a href='xaringanthemer_font_default.html'>xaringanthemer_font_default</a></span><span class='op'>(</span><span class='st'>"text_font_weight"</span><span class='op'>)</span>,
  197. text_bold_font_weight <span class='op'>=</span> <span class='st'>"bold"</span>,
  198. text_font_url <span class='op'>=</span> <span class='fu'><a href='xaringanthemer_font_default.html'>xaringanthemer_font_default</a></span><span class='op'>(</span><span class='st'>"text_font_url"</span><span class='op'>)</span>,
  199. text_font_family_fallback <span class='op'>=</span> <span class='fu'><a href='xaringanthemer_font_default.html'>xaringanthemer_font_default</a></span><span class='op'>(</span><span class='st'>"text_font_family_fallback"</span><span class='op'>)</span>,
  200. text_font_base <span class='op'>=</span> <span class='st'>"sans-serif"</span>,
  201. header_font_google <span class='op'>=</span> <span class='cn'>NULL</span>,
  202. header_font_family <span class='op'>=</span> <span class='fu'><a href='xaringanthemer_font_default.html'>xaringanthemer_font_default</a></span><span class='op'>(</span><span class='st'>"header_font_family"</span><span class='op'>)</span>,
  203. header_font_weight <span class='op'>=</span> <span class='fu'><a href='xaringanthemer_font_default.html'>xaringanthemer_font_default</a></span><span class='op'>(</span><span class='st'>"header_font_weight"</span><span class='op'>)</span>,
  204. header_font_family_fallback <span class='op'>=</span> <span class='st'>"Georgia, serif"</span>,
  205. header_font_url <span class='op'>=</span> <span class='fu'><a href='xaringanthemer_font_default.html'>xaringanthemer_font_default</a></span><span class='op'>(</span><span class='st'>"header_font_url"</span><span class='op'>)</span>,
  206. code_font_google <span class='op'>=</span> <span class='cn'>NULL</span>,
  207. code_font_family <span class='op'>=</span> <span class='fu'><a href='xaringanthemer_font_default.html'>xaringanthemer_font_default</a></span><span class='op'>(</span><span class='st'>"code_font_family"</span><span class='op'>)</span>,
  208. code_font_size <span class='op'>=</span> <span class='st'>"0.9rem"</span>,
  209. code_font_url <span class='op'>=</span> <span class='fu'><a href='xaringanthemer_font_default.html'>xaringanthemer_font_default</a></span><span class='op'>(</span><span class='st'>"code_font_url"</span><span class='op'>)</span>,
  210. code_font_family_fallback <span class='op'>=</span> <span class='fu'><a href='xaringanthemer_font_default.html'>xaringanthemer_font_default</a></span><span class='op'>(</span><span class='st'>"code_font_family_fallback"</span><span class='op'>)</span>,
  211. link_decoration <span class='op'>=</span> <span class='st'>"none"</span>,
  212. colors <span class='op'>=</span> <span class='cn'>NULL</span>,
  213. extra_css <span class='op'>=</span> <span class='cn'>NULL</span>,
  214. extra_fonts <span class='op'>=</span> <span class='cn'>NULL</span>,
  215. outfile <span class='op'>=</span> <span class='st'>"xaringan-themer.css"</span>
  216. <span class='op'>)</span></pre>
  217. <h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a>Arguments</h2>
  218. <table class="ref-arguments">
  219. <colgroup><col class="name" /><col class="desc" /></colgroup>
  220. <tr>
  221. <th>text_color</th>
  222. <td><p>Text Color. Defaults to #839496. Modifies the <code>body</code>
  223. element. The value of this variable is also stored as a CSS variable that
  224. can be referenced with <code>var(--text_color)</code> in any argument of a style
  225. function or in custom CSS.</p></td>
  226. </tr>
  227. <tr>
  228. <th>header_color</th>
  229. <td><p>Header Color. Defaults to #dc322f. Modifies the
  230. <code>h1, h2, h3</code> elements. The value of this variable is also stored as a CSS
  231. variable that can be referenced with <code>var(--header-color)</code> in any argument
  232. of a style function or in custom CSS.</p></td>
  233. </tr>
  234. <tr>
  235. <th>background_color</th>
  236. <td><p>Slide Background Color. Defaults to #002b36.
  237. Modifies the <code>.remark-slide-content</code> class. The value of this variable is
  238. also stored as a CSS variable that can be referenced with
  239. <code>var(--background-color)</code> in any argument of a style function or in custom
  240. CSS.</p></td>
  241. </tr>
  242. <tr>
  243. <th>link_color</th>
  244. <td><p>Link Color. Defaults to #b58900. Modifies the
  245. <code>a, a &gt; code</code> elements. The value of this variable is also stored as a CSS
  246. variable that can be referenced with <code>var(--link-color)</code> in any argument
  247. of a style function or in custom CSS.</p></td>
  248. </tr>
  249. <tr>
  250. <th>text_bold_color</th>
  251. <td><p>Bold Text Color. Defaults to #d33682. Modifies the
  252. <code>strong</code> element. The value of this variable is also stored as a CSS
  253. variable that can be referenced with <code>var(--text-bold-color)</code> in any
  254. argument of a style function or in custom CSS.</p></td>
  255. </tr>
  256. <tr>
  257. <th>text_slide_number_color</th>
  258. <td><p>Slide Number Color. Defaults to #586e75.
  259. Modifies the <code>.remark-slide-number</code> class.</p></td>
  260. </tr>
  261. <tr>
  262. <th>padding</th>
  263. <td><p>Slide Padding in <code>top right [bottom left]</code> format. Defaults
  264. to 16px 64px 16px 64px. Modifies the <code>.remark-slide-content</code> class.
  265. Accepts CSS
  266. <a href='https://developer.mozilla.org/en-US/docs/Web/CSS/padding'>padding</a>
  267. property values.</p></td>
  268. </tr>
  269. <tr>
  270. <th>background_image</th>
  271. <td><p>Background image applied to each <em>and every</em> slide.
  272. Set <code>title_slide_background_image = "none"</code> to remove the background image
  273. from the title slide. Defaults to <code>NULL</code>. Modifies the
  274. <code>.remark-slide-content</code> class.</p></td>
  275. </tr>
  276. <tr>
  277. <th>background_size</th>
  278. <td><p>Background image size, requires <code>background_image</code> to
  279. be set. If <code>background_image</code> is set, <code>background_size</code> will default to
  280. <code>cover</code> so the background fills the screen. If both <code>background_image</code> and
  281. <code>background_position</code> are set, will default to 100 percent. Defaults to
  282. <code>NULL</code>. Modifies the <code>.remark-slide-content</code> class. Accepts CSS
  283. <a href='https://developer.mozilla.org/en-US/docs/Web/CSS/background-size'>background-size</a>
  284. property values.</p></td>
  285. </tr>
  286. <tr>
  287. <th>background_position</th>
  288. <td><p>Background image position, requires
  289. <code>background_image</code> to be set, and it is recommended to adjust
  290. <code>background_size</code>. Defaults to <code>NULL</code>. Modifies the
  291. <code>.remark-slide-content</code> class. Accepts CSS
  292. <a href='https://developer.mozilla.org/en-US/docs/Web/CSS/background-position'>background-position</a>
  293. property values.</p></td>
  294. </tr>
  295. <tr>
  296. <th>code_highlight_color</th>
  297. <td><p>Code Line Highlight. Defaults to #268bd240.
  298. Modifies the <code>.remark-code-line-highlighted</code> class. The value of this
  299. variable is also stored as a CSS variable that can be referenced with
  300. <code>var(--code-highlight-color)</code> in any argument of a style function or in
  301. custom CSS.</p></td>
  302. </tr>
  303. <tr>
  304. <th>code_inline_color</th>
  305. <td><p>Inline Code Color. Defaults to #6c71c4. Modifies
  306. the <code>.remark-inline-code</code> class.</p></td>
  307. </tr>
  308. <tr>
  309. <th>code_inline_background_color</th>
  310. <td><p>Inline Code Background Color. Defaults
  311. to <code>NULL</code>. Modifies the <code>.remark-inline-code</code> class.</p></td>
  312. </tr>
  313. <tr>
  314. <th>code_inline_font_size</th>
  315. <td><p>Inline Code Text Font Size. Defaults to 1em.
  316. Modifies the <code>.remark-inline-code</code> class. Accepts CSS
  317. <a href='https://developer.mozilla.org/en-US/docs/Web/CSS/font-size'>font-size</a>
  318. property values. The value of this variable is also stored as a CSS
  319. variable that can be referenced with <code>var(--code-inline-font-size)</code> in any
  320. argument of a style function or in custom CSS.</p></td>
  321. </tr>
  322. <tr>
  323. <th>inverse_background_color</th>
  324. <td><p>Inverse Background Color. Defaults to
  325. #fdf6e3. Modifies the <code>.inverse</code> class. The value of this variable is also
  326. stored as a CSS variable that can be referenced with
  327. <code>var(--inverse-background-color)</code> in any argument of a style function or
  328. in custom CSS.</p></td>
  329. </tr>
  330. <tr>
  331. <th>inverse_text_color</th>
  332. <td><p>Inverse Text Color. Defaults to #002b36. Modifies
  333. the <code>.inverse</code> class. The value of this variable is also stored as a CSS
  334. variable that can be referenced with <code>var(--inverse-text-color)</code> in any
  335. argument of a style function or in custom CSS.</p></td>
  336. </tr>
  337. <tr>
  338. <th>inverse_text_shadow</th>
  339. <td><p>Enables Shadow on text of inverse slides.
  340. Defaults to <code>FALSE</code>. Modifies the <code>.inverse</code> class.</p></td>
  341. </tr>
  342. <tr>
  343. <th>inverse_header_color</th>
  344. <td><p>Inverse Header Color. Defaults to
  345. <code>inverse_text_color</code>. Modifies the <code>.inverse h1, .inverse h2, .inverse h3</code>
  346. classes. The value of this variable is also stored as a CSS variable that
  347. can be referenced with <code>var(--inverse-header-color)</code> in any argument of a
  348. style function or in custom CSS.</p></td>
  349. </tr>
  350. <tr>
  351. <th>inverse_link_color</th>
  352. <td><p>Inverse Link Color. Defaults to <code>link_color</code>.
  353. Modifies the <code>.inverse a, .inverse a &gt; code</code> classes. The value of this
  354. variable is also stored as a CSS variable that can be referenced with
  355. <code>var(--inverse-link-color)</code> in any argument of a style function or in
  356. custom CSS.</p></td>
  357. </tr>
  358. <tr>
  359. <th>title_slide_text_color</th>
  360. <td><p>Title Slide Text Color. Defaults to
  361. <code>inverse_text_color</code>. Modifies the <code>.title-slide</code> class. The value of this
  362. variable is also stored as a CSS variable that can be referenced with
  363. <code>var(--title-slide-text-color)</code> in any argument of a style function or in
  364. custom CSS.</p></td>
  365. </tr>
  366. <tr>
  367. <th>title_slide_background_color</th>
  368. <td><p>Title Slide Background Color. Defaults
  369. to <code>inverse_background_color</code>. Modifies the <code>.title-slide</code> class. The
  370. value of this variable is also stored as a CSS variable that can be
  371. referenced with <code>var(--title-slide-background-color)</code> in any argument of a
  372. style function or in custom CSS.</p></td>
  373. </tr>
  374. <tr>
  375. <th>title_slide_background_image</th>
  376. <td><p>Title Slide Background Image URL.
  377. Defaults to <code>NULL</code>. Modifies the <code>.title-slide</code> class.</p></td>
  378. </tr>
  379. <tr>
  380. <th>title_slide_background_size</th>
  381. <td><p>Title Slide Background Image Size,
  382. defaults to "cover" if background image is set. Defaults to <code>NULL</code>.
  383. Modifies the <code>.title-slide</code> class. Accepts CSS
  384. <a href='https://developer.mozilla.org/en-US/docs/Web/CSS/background-size'>background-size</a>
  385. property values.</p></td>
  386. </tr>
  387. <tr>
  388. <th>title_slide_background_position</th>
  389. <td><p>Title Slide Background Image
  390. Position. Defaults to <code>NULL</code>. Modifies the <code>.title-slide</code> class. Accepts
  391. CSS
  392. <a href='https://developer.mozilla.org/en-US/docs/Web/CSS/background-position'>background-position</a>
  393. property values.</p></td>
  394. </tr>
  395. <tr>
  396. <th>footnote_color</th>
  397. <td><p>Footnote text color (if <code>NA</code>, then it will be the same
  398. color as <code>text_color</code>). Defaults to <code>NULL</code>. Modifies the <code>.footnote</code>
  399. class.</p></td>
  400. </tr>
  401. <tr>
  402. <th>footnote_font_size</th>
  403. <td><p>Footnote font size. Defaults to 0.9em. Modifies
  404. the <code>.footnote</code> class. Accepts CSS
  405. <a href='https://developer.mozilla.org/en-US/docs/Web/CSS/font-size'>font-size</a>
  406. property values.</p></td>
  407. </tr>
  408. <tr>
  409. <th>footnote_position_bottom</th>
  410. <td><p>Footnote location from bottom of screen.
  411. Defaults to 60px. Modifies the <code>.footnote</code> class. Accepts CSS
  412. <a href='https://developer.mozilla.org/en-US/docs/Web/CSS/position_value'>position</a>
  413. property values.</p></td>
  414. </tr>
  415. <tr>
  416. <th>left_column_subtle_color</th>
  417. <td><p>Left Column Text (not last). Defaults to
  418. #586e75. Modifies the <code>.left-column h2, .left-column h3</code> classes.</p></td>
  419. </tr>
  420. <tr>
  421. <th>left_column_selected_color</th>
  422. <td><p>Left Column Current Selection. Defaults to
  423. #93a1a1. Modifies the
  424. <code>.left-column h2:last-of-type, .left-column h3:last-child</code> classes.</p></td>
  425. </tr>
  426. <tr>
  427. <th>blockquote_left_border_color</th>
  428. <td><p>Blockquote Left Border Color. Defaults
  429. to #cb4b16. Modifies the <code>blockquote</code> element.</p></td>
  430. </tr>
  431. <tr>
  432. <th>table_border_color</th>
  433. <td><p>Table top/bottom border. Defaults to #657b83.
  434. Modifies the <code>table: border-top, border-bottom</code> elements.</p></td>
  435. </tr>
  436. <tr>
  437. <th>table_row_border_color</th>
  438. <td><p>Table row inner bottom border. Defaults to
  439. #657b83. Modifies the <code>table thead th: border-bottom</code> elements.</p></td>
  440. </tr>
  441. <tr>
  442. <th>table_row_even_background_color</th>
  443. <td><p>Table Even Row Background Color.
  444. Defaults to #073642. Modifies the <code>thead, tfoot, tr:nth-child(even)</code>
  445. elements.</p></td>
  446. </tr>
  447. <tr>
  448. <th>base_font_size</th>
  449. <td><p>Base Font Size for All Slide Elements (must be <code>px</code>).
  450. Defaults to 20px. Modifies the <code>html</code> element. The value of this variable
  451. is also stored as a CSS variable that can be referenced with
  452. <code>var(--base-font-size)</code> in any argument of a style function or in custom
  453. CSS.</p></td>
  454. </tr>
  455. <tr>
  456. <th>text_font_size</th>
  457. <td><p>Slide Body Text Font Size. Defaults to 1rem. Modifies
  458. the <code>.remark-slide-content</code> class. Accepts CSS
  459. <a href='https://developer.mozilla.org/en-US/docs/Web/CSS/font-size'>font-size</a>
  460. property values. The value of this variable is also stored as a CSS
  461. variable that can be referenced with <code>var(--text-font-size)</code> in any
  462. argument of a style function or in custom CSS.</p></td>
  463. </tr>
  464. <tr>
  465. <th>header_h1_font_size</th>
  466. <td><p>h1 Header Text Font Size. Defaults to 2.75rem.
  467. Modifies the <code>.remark-slide-content h1</code> class. Accepts CSS
  468. <a href='https://developer.mozilla.org/en-US/docs/Web/CSS/font-size'>font-size</a>
  469. property values. The value of this variable is also stored as a CSS
  470. variable that can be referenced with <code>var(--header-h1-font-size)</code> in any
  471. argument of a style function or in custom CSS.</p></td>
  472. </tr>
  473. <tr>
  474. <th>header_h2_font_size</th>
  475. <td><p>h2 Header Text Font Size. Defaults to 2.25rem.
  476. Modifies the <code>.remark-slide-content h2</code> class. Accepts CSS
  477. <a href='https://developer.mozilla.org/en-US/docs/Web/CSS/font-size'>font-size</a>
  478. property values. The value of this variable is also stored as a CSS
  479. variable that can be referenced with <code>var(--header-h2-font-size)</code> in any
  480. argument of a style function or in custom CSS.</p></td>
  481. </tr>
  482. <tr>
  483. <th>header_h3_font_size</th>
  484. <td><p>h3 Header Text Font Size. Defaults to 1.75rem.
  485. Modifies the <code>.remark-slide-content h3</code> class. Accepts CSS
  486. <a href='https://developer.mozilla.org/en-US/docs/Web/CSS/font-size'>font-size</a>
  487. property values. The value of this variable is also stored as a CSS
  488. variable that can be referenced with <code>var(--header-h3-font-size)</code> in any
  489. argument of a style function or in custom CSS.</p></td>
  490. </tr>
  491. <tr>
  492. <th>header_background_auto</th>
  493. <td><p>Add background under slide title automatically
  494. for h1 header elements. If not enabled, use <code>class: header_background</code> to
  495. enable. Defaults to <code>FALSE</code>.</p></td>
  496. </tr>
  497. <tr>
  498. <th>header_background_color</th>
  499. <td><p>Background Color for h1 Header with
  500. Background. Defaults to <code>header_color</code>. Modifies the
  501. <code>.remark-slide-content h1</code> class. The value of this variable is also
  502. stored as a CSS variable that can be referenced with
  503. <code>var(--header-background-color)</code> in any argument of a style function or in
  504. custom CSS.</p></td>
  505. </tr>
  506. <tr>
  507. <th>header_background_text_color</th>
  508. <td><p>Text Color for h1 Header with
  509. Background. Defaults to <code>background_color</code>. Modifies the
  510. <code>.remark-slide-content h1</code> class. The value of this variable is also
  511. stored as a CSS variable that can be referenced with
  512. <code>var(--header-background-text-color)</code> in any argument of a style function
  513. or in custom CSS.</p></td>
  514. </tr>
  515. <tr>
  516. <th>header_background_padding</th>
  517. <td><p>Padding for h1 Header with Background.
  518. Defaults to <code>NULL</code>. Modifies the <code>.remark-slide-content h1</code> class. Accepts
  519. CSS <a href='https://developer.mozilla.org/en-US/docs/Web/CSS/padding'>padding</a>
  520. property values.</p></td>
  521. </tr>
  522. <tr>
  523. <th>header_background_content_padding_top</th>
  524. <td><p>Top Padding for Content in
  525. Slide with Header with Background. Defaults to 7rem. Modifies the
  526. <code>.remark-slide-content</code> class.</p></td>
  527. </tr>
  528. <tr>
  529. <th>header_background_ignore_classes</th>
  530. <td><p>Slide Classes Where Header with
  531. Background will not be Applied. Defaults to
  532. <code>c('normal', 'inverse', 'title', 'middle', 'bottom')</code>. Modifies the
  533. <code>.remark-slide-content</code> class.</p></td>
  534. </tr>
  535. <tr>
  536. <th>text_slide_number_font_size</th>
  537. <td><p>Slide Number Text Font Size. Defaults to
  538. 0.9rem. Modifies the <code>.remark-slide-number</code> class. Accepts CSS
  539. <a href='https://developer.mozilla.org/en-US/docs/Web/CSS/font-size'>font-size</a>
  540. property values.</p></td>
  541. </tr>
  542. <tr>
  543. <th>text_font_google</th>
  544. <td><p>Use <code><a href='google_font.html'>google_font()</a></code> to specify body font. Defaults
  545. to <code>NULL</code>. Modifies the <code>body</code> element.</p></td>
  546. </tr>
  547. <tr>
  548. <th>text_font_family</th>
  549. <td><p>Body Text Font Family (xaringan default is
  550. <code>'Droid Serif'</code>). Defaults to
  551. <code>xaringanthemer_font_default("text_font_family")</code>. Modifies the <code>body</code>
  552. element. The value of this variable is also stored as a CSS variable that
  553. can be referenced with <code>var(--text-font-family)</code> in any argument of a
  554. style function or in custom CSS.</p></td>
  555. </tr>
  556. <tr>
  557. <th>text_font_weight</th>
  558. <td><p>Body Text Font Weight. Defaults to
  559. <code>xaringanthemer_font_default("text_font_weight")</code>. Modifies the <code>body</code>
  560. element. Accepts CSS
  561. <a href='https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight'>font-weight</a>
  562. property values.</p></td>
  563. </tr>
  564. <tr>
  565. <th>text_bold_font_weight</th>
  566. <td><p>Body Bold Text Font Weight. Defaults to bold.
  567. Modifies the <code>strong</code> element.</p></td>
  568. </tr>
  569. <tr>
  570. <th>text_font_url</th>
  571. <td><p>Body Text Font URL(s). Defaults to
  572. <code>xaringanthemer_font_default("text_font_url")</code>. Modifies the
  573. <code>@import url()</code> elements.</p></td>
  574. </tr>
  575. <tr>
  576. <th>text_font_family_fallback</th>
  577. <td><p>Body Text Font Fallbacks. Defaults to
  578. <code>xaringanthemer_font_default("text_font_family_fallback")</code>. Modifies the
  579. <code>body</code> element. The value of this variable is also stored as a CSS
  580. variable that can be referenced with <code>var(--text-font-family-fallback)</code> in
  581. any argument of a style function or in custom CSS.</p></td>
  582. </tr>
  583. <tr>
  584. <th>text_font_base</th>
  585. <td><p>Body Text Base Font (Total Failure Fallback). Defaults
  586. to sans-serif. Modifies the <code>body</code> element. The value of this variable is
  587. also stored as a CSS variable that can be referenced with
  588. <code>var(--text-font-base)</code> in any argument of a style function or in custom
  589. CSS.</p></td>
  590. </tr>
  591. <tr>
  592. <th>header_font_google</th>
  593. <td><p>Use <code><a href='google_font.html'>google_font()</a></code> to specify header font.
  594. Defaults to <code>NULL</code>. Modifies the <code>body</code> element.</p></td>
  595. </tr>
  596. <tr>
  597. <th>header_font_family</th>
  598. <td><p>Header Font Family (xaringan default is
  599. <code>'Yanone Kaffeesatz'</code>). Defaults to
  600. <code>xaringanthemer_font_default("header_font_family")</code>. Modifies the
  601. <code>h1, h2, h3</code> elements. The value of this variable is also stored as a CSS
  602. variable that can be referenced with <code>var(--header-font-family)</code> in any
  603. argument of a style function or in custom CSS.</p></td>
  604. </tr>
  605. <tr>
  606. <th>header_font_weight</th>
  607. <td><p>Header Font Weight. Defaults to
  608. <code>xaringanthemer_font_default("header_font_weight")</code>. Modifies the
  609. <code>h1, h2, h3</code> elements. Accepts CSS
  610. <a href='https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight'>font-weight</a>
  611. property values.</p></td>
  612. </tr>
  613. <tr>
  614. <th>header_font_family_fallback</th>
  615. <td><p>Header Font Family Fallback. Defaults to
  616. Georgia, serif. Modifies the <code>h1, h2, h3</code> elements. The value of this
  617. variable is also stored as a CSS variable that can be referenced with
  618. <code>var(--header-font-family-fallback)</code> in any argument of a style function
  619. or in custom CSS.</p></td>
  620. </tr>
  621. <tr>
  622. <th>header_font_url</th>
  623. <td><p>Header Font URL. Defaults to
  624. <code>xaringanthemer_font_default("header_font_url")</code>. Modifies the
  625. <code>@import url</code> elements.</p></td>
  626. </tr>
  627. <tr>
  628. <th>code_font_google</th>
  629. <td><p>Use <code><a href='google_font.html'>google_font()</a></code> to specify code font. Defaults
  630. to <code>NULL</code>. Modifies the <code>body</code> element.</p></td>
  631. </tr>
  632. <tr>
  633. <th>code_font_family</th>
  634. <td><p>Code Font Family. Defaults to
  635. <code>xaringanthemer_font_default("code_font_family")</code>. Modifies the
  636. <code>.remark-code, .remark-inline-code</code> classes. The value of this variable is
  637. also stored as a CSS variable that can be referenced with
  638. <code>var(--code-font-family)</code> in any argument of a style function or in custom
  639. CSS.</p></td>
  640. </tr>
  641. <tr>
  642. <th>code_font_size</th>
  643. <td><p>Code Text Font Size. Defaults to 0.9rem. Modifies the
  644. <code>.remark-inline</code> class. Accepts CSS
  645. <a href='https://developer.mozilla.org/en-US/docs/Web/CSS/font-size'>font-size</a>
  646. property values. The value of this variable is also stored as a CSS
  647. variable that can be referenced with <code>var(--code-font-size)</code> in any
  648. argument of a style function or in custom CSS.</p></td>
  649. </tr>
  650. <tr>
  651. <th>code_font_url</th>
  652. <td><p>Code Font URL. Defaults to
  653. <code>xaringanthemer_font_default("code_font_url")</code>. Modifies the <code>@import url</code>
  654. elements.</p></td>
  655. </tr>
  656. <tr>
  657. <th>code_font_family_fallback</th>
  658. <td><p>Code Font Fallback. Defaults to
  659. <code>xaringanthemer_font_default("code_font_family_fallback")</code>. Modifies the
  660. <code>.remark-code, .remark-inline-code</code> classes.</p></td>
  661. </tr>
  662. <tr>
  663. <th>link_decoration</th>
  664. <td><p>Text decoration of links. Defaults to none. Modifies
  665. the <code>a, a &gt; code</code> elements. Accepts CSS
  666. <a href='https://developer.mozilla.org/en-US/docs/Web/CSS/text-decoration'>text-decoration</a>
  667. property values.</p></td>
  668. </tr>
  669. <tr>
  670. <th>colors</th>
  671. <td><p>A named vector of custom colors. The names of the colors
  672. become CSS variables and classes that can be used within your slides.
  673. For example, <code>colors = c(blue = "#bad4ed")</code> adds a CSS variable
  674. <code>--blue</code>, a <code>.blue</code> CSS class that applies the color to the text or
  675. foreground color, and a <code>.bg-blue</code> CSS class that applies the color
  676. to the background.</p></td>
  677. </tr>
  678. <tr>
  679. <th>extra_css</th>
  680. <td><p>A named list of CSS definitions each containing a named list
  681. of CSS property-value pairs, i.e.
  682. <code>list(".class-id" = list("css-property" = "value"))</code>.</p></td>
  683. </tr>
  684. <tr>
  685. <th>extra_fonts</th>
  686. <td><p>A list of additional fonts to import, each list element
  687. can be either a URL as a character string or a call to
  688. <code><a href='google_font.html'>google_font</a>()</code>. To use a font imported in <code>extra_fonts</code>, you
  689. will need to write custom CSS rules that apply the font to an element or
  690. class with the <code>font-family</code> property. See the <strong>Fonts</strong> section of
  691. <code><a href='../articles/xaringanthemer.html'>vignette("xaringanthemer")</a></code> for an example.</p></td>
  692. </tr>
  693. <tr>
  694. <th>outfile</th>
  695. <td><p>Customized xaringan CSS output file name, default is "xaringan-themer.css"</p></td>
  696. </tr>
  697. </table>
  698. <h2 class="hasAnchor" id="value"><a class="anchor" href="#value"></a>Value</h2>
  699. <p>The CSS styles are written to the file path provided in <code>outfile</code>
  700. (by default to <code>xaringan-themer.css</code>). If <code>outfile</code> is <code>NULL</code>, the CSS is
  701. returned directly as a character string.</p>
  702. <h2 class="hasAnchor" id="usage"><a class="anchor" href="#usage"></a>Usage</h2>
  703. <p>To use the styles created by this theme function, make sure
  704. that you use <code>xaringan-themer.css</code> as your CSS file in your slides' YAML
  705. header. If you change the name of the output file using the <code>outfile</code>
  706. argument, use that name instead of the default file name.<div class="yaml"></p><pre><span class='va'>output</span><span class='op'>:</span>
  707. <span class='fu'>xaringan</span><span class='fu'>::</span><span class='va'><a href='https://rdrr.io/pkg/xaringan/man/moon_reader.html'>moon_reader</a></span><span class='op'>:</span>
  708. <span class='va'>css</span><span class='op'>:</span> <span class='va'>xaringan</span><span class='op'>-</span><span class='va'>themer.css</span>
  709. </pre><p></div></p>
  710. <h2 class="hasAnchor" id="references"><a class="anchor" href="#references"></a>References</h2>
  711. <p><a href='https://ethanschoonover.com/solarized/'>https://ethanschoonover.com/solarized/</a></p>
  712. <h2 class="hasAnchor" id="see-also"><a class="anchor" href="#see-also"></a>See also</h2>
  713. <div class='dont-index'><p>Other themes:
  714. <code><a href='style_duo_accent_inverse.html'>style_duo_accent_inverse</a>()</code>,
  715. <code><a href='style_duo_accent.html'>style_duo_accent</a>()</code>,
  716. <code><a href='style_duo.html'>style_duo</a>()</code>,
  717. <code><a href='style_mono_accent_inverse.html'>style_mono_accent_inverse</a>()</code>,
  718. <code><a href='style_mono_accent.html'>style_mono_accent</a>()</code>,
  719. <code><a href='style_mono_dark.html'>style_mono_dark</a>()</code>,
  720. <code><a href='style_mono_light.html'>style_mono_light</a>()</code>,
  721. <code><a href='style_solarized_light.html'>style_solarized_light</a>()</code>,
  722. <code><a href='xaringanthemer_font_default.html'>xaringanthemer_font_default</a>()</code></p>
  723. <p>Other Solarized themes:
  724. <code><a href='style_solarized_light.html'>style_solarized_light</a>()</code></p></div>
  725. <h2 class="hasAnchor" id="examples"><a class="anchor" href="#examples"></a>Examples</h2>
  726. <pre class="examples"><span class='r-in'><span class='co'># Create a xaringan style in a temporary file</span></span>
  727. <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'>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>
  728. <span class='r-in'></span>
  729. <span class='r-in'><span class='fu'>style_solarized_dark</span><span class='op'>(</span></span>
  730. <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>
  731. <span class='r-in'> <span class='co'># styles to xaringan-themer.css</span></span>
  732. <span class='r-in'><span class='op'>)</span></span>
  733. <span class='r-in'></span>
  734. <span class='r-in'><span class='co'># View the CSS:</span></span>
  735. <span class='r-in'><span class='co'># file.edit(xaringan_themer_css)</span></span>
  736. </pre>
  737. </div>
  738. <div class="col-md-3 hidden-xs hidden-sm" id="pkgdown-sidebar">
  739. <nav id="toc" data-toggle="toc" class="sticky-top">
  740. <h2 data-toc-skip>Contents</h2>
  741. </nav>
  742. </div>
  743. </div>
  744. <footer>
  745. <div class="copyright">
  746. <p>Developed by <a href='https://www.garrickadenbuie.com'>Garrick Aden-Buie</a>.</p>
  747. </div>
  748. <div class="pkgdown">
  749. <p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.6.1.</p>
  750. </div>
  751. </footer>
  752. </div>
  753. </body>
  754. </html>