Garrick Aden-Buie 6 лет назад
Сommit
b5828fa280
49 измененных файлов: 12700 добавлений и 0 удалений
  1. +158
    -0
      dev/404.html
  2. +160
    -0
      dev/LICENSE-text.html
  3. +164
    -0
      dev/LICENSE.html
  4. +335
    -0
      dev/articles/css-help.html
  5. +148
    -0
      dev/articles/fonts.html
  6. +166
    -0
      dev/articles/index.html
  7. +500
    -0
      dev/articles/template-variables.html
  8. +222
    -0
      dev/articles/themes.html
  9. +368
    -0
      dev/articles/xaringanthemer.html
  10. +163
    -0
      dev/authors.html
  11. +148
    -0
      dev/docsearch.css
  12. +85
    -0
      dev/docsearch.js
  13. +15
    -0
      dev/extra.css
  14. +397
    -0
      dev/index.html
  15. +12
    -0
      dev/link.svg
  16. +183
    -0
      dev/news/index.html
  17. +256
    -0
      dev/pkgdown.css
  18. +113
    -0
      dev/pkgdown.js
  19. +13
    -0
      dev/pkgdown.yml
  20. +189
    -0
      dev/reference/apply_alpha.html
  21. +199
    -0
      dev/reference/choose_dark_or_light.html
  22. +223
    -0
      dev/reference/google_font.html
  23. +192
    -0
      dev/reference/google_language_codes.html
  24. +347
    -0
      dev/reference/index.html
  25. +189
    -0
      dev/reference/lighten_darken_color.html
  26. +275
    -0
      dev/reference/scale_xaringan.html
  27. +535
    -0
      dev/reference/style_duo.html
  28. +546
    -0
      dev/reference/style_duo_accent.html
  29. +547
    -0
      dev/reference/style_duo_accent_inverse.html
  30. +246
    -0
      dev/reference/style_extra_css.html
  31. +540
    -0
      dev/reference/style_mono_accent.html
  32. +540
    -0
      dev/reference/style_mono_accent_inverse.html
  33. +538
    -0
      dev/reference/style_mono_dark.html
  34. +538
    -0
      dev/reference/style_mono_light.html
  35. +529
    -0
      dev/reference/style_solarized_dark.html
  36. +529
    -0
      dev/reference/style_solarized_light.html
  37. +519
    -0
      dev/reference/style_xaringan.html
  38. Двоичные данные
      dev/reference/theme_xaringan-1.png
  39. +277
    -0
      dev/reference/theme_xaringan.html
  40. Двоичные данные
      dev/reference/theme_xaringan_base-1.png
  41. Двоичные данные
      dev/reference/theme_xaringan_base-2.png
  42. +322
    -0
      dev/reference/theme_xaringan_base.html
  43. +263
    -0
      dev/reference/theme_xaringan_get_value.html
  44. Двоичные данные
      dev/reference/theme_xaringan_inverse-1.png
  45. +276
    -0
      dev/reference/theme_xaringan_inverse.html
  46. +240
    -0
      dev/reference/theme_xaringan_set_defaults.html
  47. +214
    -0
      dev/reference/xaringanthemer-deprecated.html
  48. +188
    -0
      dev/reference/xaringanthemer-package.html
  49. +93
    -0
      dev/sitemap.xml

+ 158
- 0
dev/404.html Просмотреть файл

<!-- Generated by pkgdown: do not edit by hand -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Page not found (404) • xaringanthemer</title>


<!-- jquery -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<!-- Bootstrap -->

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha256-916EbMg70RQy9LHiGkXzG8hSg9EdNy97GazNG/aiY1w=" crossorigin="anonymous" />

<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha256-U5ZEeKfGNOja007MMD3YBI0A3OSZOQbeG6z2f2Y0hu8=" crossorigin="anonymous"></script>

<!-- Font Awesome icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/all.min.css" integrity="sha256-nAmazAk6vS34Xqo0BSrTb+abbtFlgsFK7NKSi6o7Y78=" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/v4-shims.min.css" integrity="sha256-6qHlizsOWFskGlwVOKuns+D1nB6ssZrHQrNj1wGplHc=" crossorigin="anonymous" />

<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.4/clipboard.min.js" integrity="sha256-FiZwavyI2V6+EXO1U+xzLG3IKldpiTFf3153ea9zikQ=" crossorigin="anonymous"></script>

<!-- headroom.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/headroom.min.js" integrity="sha256-DJFC1kqIhelURkuza0AvYal5RxMtpzLjFhsnVIeuk+U=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script>

<!-- pkgdown -->
<link href="https://pkg.garrickadenbuie.com/xaringanthemer//pkgdown.css" rel="stylesheet">
<script src="https://pkg.garrickadenbuie.com/xaringanthemer//pkgdown.js"></script>



<link href="https://pkg.garrickadenbuie.com/xaringanthemer//extra.css" rel="stylesheet">

<meta property="og:title" content="Page not found (404)" />


<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]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->



</head>

<body>
<div class="container template-title-body">
<header>
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<span class="navbar-brand">
<a class="navbar-link" href="https://pkg.garrickadenbuie.com/xaringanthemer//index.html">xaringanthemer</a>
<span class="version label label-danger" data-toggle="tooltip" data-placement="bottom" title="In-development version">0.2.0.9100</span>
</span>
</div>

<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="articles/xaringanthemer.html">Get started</a>
</li>
<li>
<a href="reference/index.html">Reference</a>
</li>
<li>
<a href="articles/themes.html">Themes</a>
</li>
<li>
<a href="articles/fonts.html">Fonts</a>
</li>
<li>
<a href="articles/template-variables.html">Template Variables</a>
</li>
<li>
<a href="articles/css-help.html">CSS Help</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="https://github.com/gadenbuie/xaringanthemer">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
<li>
<a href="https://twitter.com/grrrck">
<span class="fa fa-twitter fa-lg"></span>
</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->


</header>

<div class="row">
<div class="contents col-md-9">
<div class="page-header">
<h1>Page not found (404)</h1>
</div>

Content not found. Please use links in the navbar.

</div>

</div>



<footer>
<div class="copyright">
<p>Developed by <a href='https://www.garrickadenbuie.com'>Garrick Aden-Buie</a>.</p>
</div>

<div class="pkgdown">
<p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.4.1.</p>
</div>

</footer>
</div>



</body>
</html>



+ 160
- 0
dev/LICENSE-text.html Просмотреть файл

<!-- Generated by pkgdown: do not edit by hand -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>License • xaringanthemer</title>


<!-- jquery -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<!-- Bootstrap -->

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha256-916EbMg70RQy9LHiGkXzG8hSg9EdNy97GazNG/aiY1w=" crossorigin="anonymous" />

<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha256-U5ZEeKfGNOja007MMD3YBI0A3OSZOQbeG6z2f2Y0hu8=" crossorigin="anonymous"></script>

<!-- Font Awesome icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/all.min.css" integrity="sha256-nAmazAk6vS34Xqo0BSrTb+abbtFlgsFK7NKSi6o7Y78=" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/v4-shims.min.css" integrity="sha256-6qHlizsOWFskGlwVOKuns+D1nB6ssZrHQrNj1wGplHc=" crossorigin="anonymous" />

<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.4/clipboard.min.js" integrity="sha256-FiZwavyI2V6+EXO1U+xzLG3IKldpiTFf3153ea9zikQ=" crossorigin="anonymous"></script>

<!-- headroom.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/headroom.min.js" integrity="sha256-DJFC1kqIhelURkuza0AvYal5RxMtpzLjFhsnVIeuk+U=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script>

<!-- pkgdown -->
<link href="pkgdown.css" rel="stylesheet">
<script src="pkgdown.js"></script>



<link href="extra.css" rel="stylesheet">

<meta property="og:title" content="License" />


<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]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->



</head>

<body>
<div class="container template-title-body">
<header>
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<span class="navbar-brand">
<a class="navbar-link" href="index.html">xaringanthemer</a>
<span class="version label label-danger" data-toggle="tooltip" data-placement="bottom" title="In-development version">0.2.0.9100</span>
</span>
</div>

<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="articles/xaringanthemer.html">Get started</a>
</li>
<li>
<a href="reference/index.html">Reference</a>
</li>
<li>
<a href="articles/themes.html">Themes</a>
</li>
<li>
<a href="articles/fonts.html">Fonts</a>
</li>
<li>
<a href="articles/template-variables.html">Template Variables</a>
</li>
<li>
<a href="articles/css-help.html">CSS Help</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="https://github.com/gadenbuie/xaringanthemer">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
<li>
<a href="https://twitter.com/grrrck">
<span class="fa fa-twitter fa-lg"></span>
</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->


</header>

<div class="row">
<div class="contents col-md-9">
<div class="page-header">
<h1>License</h1>
</div>

<pre>YEAR: 2018
COPYRIGHT HOLDER: Garrick Aden-Buie
</pre>

</div>

</div>



<footer>
<div class="copyright">
<p>Developed by <a href='https://www.garrickadenbuie.com'>Garrick Aden-Buie</a>.</p>
</div>

<div class="pkgdown">
<p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.4.1.</p>
</div>

</footer>
</div>



</body>
</html>



+ 164
- 0
dev/LICENSE.html Просмотреть файл

<!-- Generated by pkgdown: do not edit by hand -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>MIT License • xaringanthemer</title>


<!-- jquery -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<!-- Bootstrap -->

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha256-916EbMg70RQy9LHiGkXzG8hSg9EdNy97GazNG/aiY1w=" crossorigin="anonymous" />

<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha256-U5ZEeKfGNOja007MMD3YBI0A3OSZOQbeG6z2f2Y0hu8=" crossorigin="anonymous"></script>

<!-- Font Awesome icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/all.min.css" integrity="sha256-nAmazAk6vS34Xqo0BSrTb+abbtFlgsFK7NKSi6o7Y78=" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/v4-shims.min.css" integrity="sha256-6qHlizsOWFskGlwVOKuns+D1nB6ssZrHQrNj1wGplHc=" crossorigin="anonymous" />

<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.4/clipboard.min.js" integrity="sha256-FiZwavyI2V6+EXO1U+xzLG3IKldpiTFf3153ea9zikQ=" crossorigin="anonymous"></script>

<!-- headroom.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/headroom.min.js" integrity="sha256-DJFC1kqIhelURkuza0AvYal5RxMtpzLjFhsnVIeuk+U=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script>

<!-- pkgdown -->
<link href="pkgdown.css" rel="stylesheet">
<script src="pkgdown.js"></script>



<link href="extra.css" rel="stylesheet">

<meta property="og:title" content="MIT License" />


<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]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->



</head>

<body>
<div class="container template-title-body">
<header>
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<span class="navbar-brand">
<a class="navbar-link" href="index.html">xaringanthemer</a>
<span class="version label label-danger" data-toggle="tooltip" data-placement="bottom" title="In-development version">0.2.0.9100</span>
</span>
</div>

<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="articles/xaringanthemer.html">Get started</a>
</li>
<li>
<a href="reference/index.html">Reference</a>
</li>
<li>
<a href="articles/themes.html">Themes</a>
</li>
<li>
<a href="articles/fonts.html">Fonts</a>
</li>
<li>
<a href="articles/template-variables.html">Template Variables</a>
</li>
<li>
<a href="articles/css-help.html">CSS Help</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="https://github.com/gadenbuie/xaringanthemer">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
<li>
<a href="https://twitter.com/grrrck">
<span class="fa fa-twitter fa-lg"></span>
</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->


</header>

<div class="row">
<div class="contents col-md-9">
<div class="page-header">
<h1>MIT License</h1>
</div>

<div id="mit-license" class="section level1">

<p>Copyright (c) 2018 Garrick Aden-Buie</p>
<p>Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:</p>
<p>The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.</p>
<p>THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.</p>
</div>

</div>

</div>



<footer>
<div class="copyright">
<p>Developed by <a href='https://www.garrickadenbuie.com'>Garrick Aden-Buie</a>.</p>
</div>

<div class="pkgdown">
<p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.4.1.</p>
</div>

</footer>
</div>



</body>
</html>



+ 335
- 0
dev/articles/css-help.html Просмотреть файл

<!DOCTYPE html>
<!-- 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.0">
<title>xaringanthemer CSS Help • xaringanthemer</title>
<!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha256-916EbMg70RQy9LHiGkXzG8hSg9EdNy97GazNG/aiY1w=" crossorigin="anonymous">
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha256-U5ZEeKfGNOja007MMD3YBI0A3OSZOQbeG6z2f2Y0hu8=" crossorigin="anonymous"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/all.min.css" integrity="sha256-nAmazAk6vS34Xqo0BSrTb+abbtFlgsFK7NKSi6o7Y78=" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/v4-shims.min.css" integrity="sha256-6qHlizsOWFskGlwVOKuns+D1nB6ssZrHQrNj1wGplHc=" crossorigin="anonymous">
<!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.4/clipboard.min.js" integrity="sha256-FiZwavyI2V6+EXO1U+xzLG3IKldpiTFf3153ea9zikQ=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/headroom.min.js" integrity="sha256-DJFC1kqIhelURkuza0AvYal5RxMtpzLjFhsnVIeuk+U=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet">
<script src="../pkgdown.js"></script><link href="../extra.css" rel="stylesheet">
<meta property="og:title" content="xaringanthemer CSS Help">
<meta property="og:description" content="">
<meta name="twitter:card" content="summary">
<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]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container template-article">
<header><div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">xaringanthemer</a>
<span class="version label label-danger" data-toggle="tooltip" data-placement="bottom" title="In-development version">0.2.0.9100</span>
</span>
</div>

<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="../index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="../articles/xaringanthemer.html">Get started</a>
</li>
<li>
<a href="../reference/index.html">Reference</a>
</li>
<li>
<a href="../articles/themes.html">Themes</a>
</li>
<li>
<a href="../articles/fonts.html">Fonts</a>
</li>
<li>
<a href="../articles/template-variables.html">Template Variables</a>
</li>
<li>
<a href="../articles/css-help.html">CSS Help</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="https://github.com/gadenbuie/xaringanthemer">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
<li>
<a href="https://twitter.com/grrrck">
<span class="fa fa-twitter fa-lg"></span>
</a>
</li>
</ul>
</div>
<!--/.nav-collapse -->
</div>
<!--/.container -->
</div>
<!--/.navbar -->


</header><div class="row">
<div class="col-md-9 contents">
<div class="page-header toc-ignore">
<h1>xaringanthemer CSS Help</h1>
<small class="dont-index">Source: <a href="https://github.com/gadenbuie/xaringanthemer/blob/master/vignettes/css-help.Rmd"><code>vignettes/css-help.Rmd</code></a></small>
<div class="hidden name"><code>css-help.Rmd</code></div>

</div>

<p>Jump to: <a href="#colors">Colors</a>, <a href="#sizes">Sizes</a>, <a href="#positioning">Positioning</a></p>
<div id="about-this-vignette" class="section level2">
<h2 class="hasAnchor">
<a href="#about-this-vignette" class="anchor"></a>About this vignette</h2>
<p>This vignette cover some basic CSS, in particular to give an idea about the possible values you can use with the various arguments to the xaringan theme functions. See <code><a href="../articles/template-variables.html">vignette("template-variables", package = "xaringanthemer")</a></code> for a full list of the theme functions.</p>
<p>Because we are setting the CSS properties from R, we can either give <strong>xaringanthemer</strong> function arguments a character string or we can call an R function or variable that returns a character string. For example, we can create an R variable with a specific color that is used in several places in a theme</p>
<div class="sourceCode" id="cb1"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb1-1" data-line-number="1">firebrick &lt;-<span class="st"> "#CD2626"</span></a>
<a class="sourceLine" id="cb1-2" data-line-number="2"><span class="kw"><a href="../reference/style_xaringan.html">style_xaringan</a></span>(</a>
<a class="sourceLine" id="cb1-3" data-line-number="3"> <span class="dt">header_color =</span> firebrick,</a>
<a class="sourceLine" id="cb1-4" data-line-number="4"> <span class="dt">link_color =</span> firebrick</a>
<a class="sourceLine" id="cb1-5" data-line-number="5">)</a></code></pre></div>
<p>or we can directly give the character string</p>
<div class="sourceCode" id="cb2"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb2-1" data-line-number="1"><span class="kw"><a href="../reference/style_xaringan.html">style_xaringan</a></span>(</a>
<a class="sourceLine" id="cb2-2" data-line-number="2"> <span class="dt">header_color =</span> <span class="st">"#CD2626"</span>,</a>
<a class="sourceLine" id="cb2-3" data-line-number="3"> <span class="dt">link_color =</span> <span class="st">"#CD2626"</span></a>
<a class="sourceLine" id="cb2-4" data-line-number="4">)</a></code></pre></div>
<p>in both cases, we get CSS like the following that sets the link color</p>
<div class="sourceCode" id="cb3"><pre class="sourceCode css"><code class="sourceCode css"><a class="sourceLine" id="cb3-1" data-line-number="1">a, a &gt; code {</a>
<a class="sourceLine" id="cb3-2" data-line-number="2"> <span class="kw">color</span>: <span class="dv">#CD2626</span>;</a>
<a class="sourceLine" id="cb3-3" data-line-number="3">}</a></code></pre></div>
<p>Note that when a string is given to the theme function, the outer quotes are removed.</p>
<p>In the sections below, R code is represented without quotes – like <code><a href="https://rdrr.io/r/grDevices/rgb.html">rgb(0.8, 0.15, 0.15)</a></code> – and CSS code is represented inside quotes – like <code>"rgb(205, 38, 38)"</code> – to differentiate between R and CSS functions with the same or similar names.</p>
</div>
<div id="colors" class="section level2">
<h2 class="hasAnchor">
<a href="#colors" class="anchor"></a>Colors</h2>
<p>In CSS, text colors are specified with the <code>color:</code> property, background colors use <code>background-color:</code>, and border colors use <code>border-color:</code>.</p>
<p>In <strong>xaringanthemer</strong>, template variables that set</p>
<ul>
<li>text color end with <code>_color</code>;</li>
<li>background color end with <code>_background_color</code>;</li>
<li>border color end with <code>_border_color</code>;</li>
</ul>
<div id="setting-colors" class="section level3">
<h3 class="hasAnchor">
<a href="#setting-colors" class="anchor"></a>Setting colors</h3>
<p>In CSS, there are a number of ways to specify a color:</p>
<ul>
<li><p>You can use a <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#Color_keywords">color keyword</a>, such as <code>"darkslategray"</code> or <code>"red"</code>.</p></li>
<li>
<p>You can use the <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#rgb()_and_rgba()">RGB color specification</a> either via</p>
<ul>
<li>the hexadecimal representation
<ul>
<li>
<code>"#CD2626"</code> or</li>
<li>
<code>"#CD262680"</code> (50% transparency)</li>
</ul>
</li>
<li>or the rgb function notation
<ul>
<li>
<code>"rgb(255, 38, 38)"</code> or</li>
<li>
<code>"rgba(255, 38, 28, 0.5)"</code> (50% transparency).</li>
</ul>
</li>
</ul>
</li>
<li>
<p>You can use the <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#hsl()_and_hsla()">HSL color specification</a> via the functions</p>
<ul>
<li>
<code>"hsl(270,60%,70%)"</code> or</li>
<li>
<code>"hsl(270, 60%, 50%, .15)"</code> (15% transparency).</li>
</ul>
</li>
</ul>
<p>In R, there are a number of ways to specify a color:</p>
<ul>
<li>
<p>Use <code><a href="https://rdrr.io/r/grDevices/rgb.html">rgb(205, 38, 38, maxColorValue = 255)</a></code> as an equivalent to the CSS <code>"rgb()"</code> function.</p>
<ul>
<li>Without the <code>maxColorValue</code> argument, the <code><a href="https://rdrr.io/r/grDevices/rgb.html">rgb()</a></code> function expects decimal numbers in the range [0, 1], like <code><a href="https://rdrr.io/r/grDevices/rgb.html">rgb(0.8039, 0.1490, 0.1490)</a></code>.</li>
<li>The <code><a href="https://rdrr.io/r/grDevices/rgb.html">rgb()</a></code> function also sets transparency via the <code>alpha</code> argument (in the [0, 1] range).</li>
</ul>
</li>
<li>
<p>You can get the hexadecimal representation of a built-in R color using the <code><a href="https://rdrr.io/r/grDevices/col2rgb.html">col2rgb()</a></code> function together with the <code><a href="https://rdrr.io/r/grDevices/rgb.html">rgb()</a></code> function:</p>
<div class="sourceCode" id="cb4"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb4-1" data-line-number="1"><span class="kw"><a href="https://rdrr.io/r/grDevices/rgb.html">rgb</a></span>(<span class="kw"><a href="https://rdrr.io/r/base/t.html">t</a></span>(<span class="kw"><a href="https://rdrr.io/r/grDevices/col2rgb.html">col2rgb</a></span>(<span class="st">"red"</span>)), <span class="dt">maxColorValue =</span> <span class="dv">255</span>)</a>
<a class="sourceLine" id="cb4-2" data-line-number="2"><span class="co">#&gt; [1] "#FF0000"</span></a></code></pre></div>
</li>
</ul>
</div>
</div>
<div id="sizes" class="section level2">
<h2 class="hasAnchor">
<a href="#sizes" class="anchor"></a>Sizes</h2>
<p>In <strong>xaringanthemer</strong>, any template variable that accepts a CSS size (or length unit) ends with <code>_size</code>. Sizes are also used for positioning and those template variables end include <code>position</code> in their name.</p>
<p>There are many units available in CSS sizes, but the three most common and easiest to use are pixels (<code>"px"</code>), percentage (<code>"%"</code>), and em units (<code>"em"</code>). Mozilla’s devloper portal has a <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/length">full list of CSS length units</a>.</p>
<p>These sizes are either <em>absolute</em> or <em>relative</em> values. Relative values are set relative to the size of the parent element, but absolute values ignore the parent element.</p>
<dl>
<dt>Pixels <code>"px"</code>
</dt>
<dd>Pixels are an <em>absolute</em> size unit, traditionally representing one device pixel. E.g. <code>"16px"</code> or <code>"23px"</code>.
</dd>
<dt>Percentage <code>"%"</code>
</dt>
<dd>Percentages are relative to the size of the parent element, scaled linearly. E.g. <code>"75%"</code> or <code>"150%"</code>.
</dd>
<dt>em Units <code>"em"</code>
</dt>
<dd>em Units are just like percentages, except expressed as decimals. E.g. <code>"0.75em"</code> or <code>"1.5em"</code>.
</dd>
</dl>
<p>To make this more concrete, here is a simple “page” containing a section header and two paragraphs.</p>
<div class="sourceCode" id="cb5"><pre class="sourceCode html"><code class="sourceCode html"><a class="sourceLine" id="cb5-1" data-line-number="1"><span class="kw">&lt;div</span><span class="ot"> class=</span><span class="st">"page"</span><span class="kw"><a href="https://rdrr.io/r/base/Comparison.html">&gt;</a></span></a>
<a class="sourceLine" id="cb5-2" data-line-number="2"> <span class="kw">&lt;h1&gt;</span>Section 1<span class="kw">&lt;/h1&gt;</span></a>
<a class="sourceLine" id="cb5-3" data-line-number="3"> <span class="kw">&lt;p&gt;</span>This is paragraph 1...<span class="kw">&lt;/p&gt;</span></a>
<a class="sourceLine" id="cb5-4" data-line-number="4"> <span class="kw">&lt;p&gt;</span>This is paragraph 2...<span class="kw">&lt;/p&gt;</span></a>
<a class="sourceLine" id="cb5-5" data-line-number="5"><span class="kw">&lt;/div&gt;</span></a></code></pre></div>
<p>Intuitively, you might want the section header to have a somewhat bigger font size than the paragraph text, but you don’t want to have to set the text size for each and every paragraph or header.</p>
<p>To do this, we can set the base size of any element inside the <code>&lt;div class="page"&gt;</code>, and adjust the header size relatively.</p>
<div class="sourceCode" id="cb6"><pre class="sourceCode css"><code class="sourceCode css"><a class="sourceLine" id="cb6-1" data-line-number="1"><span class="fu">.page</span> {</a>
<a class="sourceLine" id="cb6-2" data-line-number="2"> <span class="kw">font-size</span>: <span class="dv">16px</span>;</a>
<a class="sourceLine" id="cb6-3" data-line-number="3">}</a>
<a class="sourceLine" id="cb6-4" data-line-number="4">h1 {</a>
<a class="sourceLine" id="cb6-5" data-line-number="5"> <span class="kw">font-size</span>: <span class="dv">2em</span>;</a>
<a class="sourceLine" id="cb6-6" data-line-number="6">}</a></code></pre></div>
<p>Now our paragraph font will be 16 pixels tall, and the level 1 headers will be twice as big. If we later decide to change the base font size, say to <code>"15px"</code>, the header text will still be twice as big as the paragraph text.</p>
</div>
<div id="positioning" class="section level2">
<h2 class="hasAnchor">
<a href="#positioning" class="anchor"></a>Positioning</h2>
<p>If you’re reading this, you’re probably wondering how you make an element be <em>where you want it to be</em>.</p>
<p>There are 3 items that <strong>xaringanthemer</strong> can help you position:</p>
<ul>
<li>
<code>background_position</code> (background image position)</li>
<li>
<code>title_slide_background_position</code> (title slide background image position)</li>
<li>
<code>footnote_position_bottom</code> (footnote location from bottom of screen)</li>
</ul>
<div id="footnote-position" class="section level3">
<h3 class="hasAnchor">
<a href="#footnote-position" class="anchor"></a>Footnote Position</h3>
<p><strong>xaringanthemer</strong> provides one template variable to adjust the position of the footnote element. Footnotes can be insterted into a slide using the <code>.footnote[Here's my quick footnote]</code> syntax.</p>
<p>The <code>footnote_position_bottom</code> argument adjust how far from the bottom of the slide the footnote appears. The default value is <code>"60px"</code>, but you can adjust this value up or down to get the footnote where you want.</p>
</div>
<div id="background-position" class="section level3">
<h3 class="hasAnchor">
<a href="#background-position" class="anchor"></a>Background Position</h3>
<p>The background position is set using the theme function arguments that end with <code>background_position</code>. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/background-position#Syntax">this article on background-position</a> from Mozilla for more information.</p>
<p>Try any of the following values to get started:</p>
<div class="sourceCode" id="cb7"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb7-1" data-line-number="1">background_position =<span class="st"> "center"</span></a>
<a class="sourceLine" id="cb7-2" data-line-number="2">background_position =<span class="st"> "top"</span></a>
<a class="sourceLine" id="cb7-3" data-line-number="3">background_position =<span class="st"> "left"</span></a>
<a class="sourceLine" id="cb7-4" data-line-number="4">background_position =<span class="st"> "bottom"</span></a>
<a class="sourceLine" id="cb7-5" data-line-number="5">background_position =<span class="st"> "25% 75%"</span> <span class="co"># X-value (from left) Y-value (from top)</span></a>
<a class="sourceLine" id="cb7-6" data-line-number="6">background_position =<span class="st"> "bottom 10px right 20px"</span> <span class="co"># 10px from bottom, 20px from right</span></a>
<a class="sourceLine" id="cb7-7" data-line-number="7">background_position =<span class="st"> "top left 10px"</span> <span class="co"># at top but adjusted left 10px</span></a></code></pre></div>
</div>
<div id="general-positioning" class="section level3">
<h3 class="hasAnchor">
<a href="#general-positioning" class="anchor"></a>General Positioning</h3>
<p>Read this section if you want to put a slide element at a specific spot on your slide.</p>
<p>The <code>position</code> CSS element is used to specify where an element is located on the screen. Mozilla provides a <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/position">very good reference on positioning</a> that I’ve summarized here.</p>
<p>An element can be <code>"relative"</code>-ly positioned, <code>"absolute"</code>-ly positioned, <code>"fixed"</code>, <code>"sticky"</code> or <code>"static"</code> (default). For an element with a computed position (i.e. not <code>"static"</code>), you can also specify the <code>top</code>, <code>right</code>, <code>bottom</code>, and <code>left</code> CSS properties for that element. The <code>top</code>/<code>bottom</code> parameters specify vertical displacement, and the <code>right</code>/<code>left</code> specify horizontal displacement.</p>
<dl>
<dt>Relatively positioned <code>position: relative</code>
</dt>
<dd>For relatively positioned elements, the element position is adjusted relative to where it <em>would have been</em> if it were <code>static</code>.
</dd>
<dt>Absolutely positioned <code>position: absolute</code> or <code>position: fixed</code>
</dt>
<dd>Absolutely positioned elements are positioned relative to the block that contains the element (called a containing block). A <code>fixed</code> element won’t move with scrolling (but <code>fixed</code> is not recommended for remarkjs slides).
</dd>
</dl>
<p>If you want something to appear in a specific position on your slide, you’ll need to use the <code>extra_css</code> argument of the <strong>xaringanthemer</strong> functions. For example, lets say you want a 300px by 300px box to appear on the right side of your slide, you’ll need to create a special css class:</p>
<div class="sourceCode" id="cb8"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb8-1" data-line-number="1"><span class="kw"><a href="../reference/style_xaringan.html">style_xaringan</a></span>(</a>
<a class="sourceLine" id="cb8-2" data-line-number="2"> <span class="dt">extra_css =</span> <span class="kw"><a href="https://rdrr.io/r/base/list.html">list</a></span>(</a>
<a class="sourceLine" id="cb8-3" data-line-number="3"> <span class="st">".box-right"</span> =<span class="st"> </span><span class="kw"><a href="https://rdrr.io/r/base/list.html">list</a></span>(</a>
<a class="sourceLine" id="cb8-4" data-line-number="4"> <span class="st">"height"</span> =<span class="st"> "300px"</span>,</a>
<a class="sourceLine" id="cb8-5" data-line-number="5"> <span class="st">"width"</span> =<span class="st"> "300px"</span>,</a>
<a class="sourceLine" id="cb8-6" data-line-number="6"> <span class="st">"position"</span> =<span class="st"> "absolute"</span>,</a>
<a class="sourceLine" id="cb8-7" data-line-number="7"> <span class="st">"top"</span> =<span class="st"> "33%"</span>,</a>
<a class="sourceLine" id="cb8-8" data-line-number="8"> <span class="st">"left"</span> =<span class="st"> "65%"</span></a>
<a class="sourceLine" id="cb8-9" data-line-number="9"> )</a>
<a class="sourceLine" id="cb8-10" data-line-number="10"> )</a>
<a class="sourceLine" id="cb8-11" data-line-number="11">)</a></code></pre></div>
<p>This creates CSS like this:</p>
<div class="sourceCode" id="cb9"><pre class="sourceCode css"><code class="sourceCode css"><a class="sourceLine" id="cb9-1" data-line-number="1"><span class="fu">.box-right</span> {</a>
<a class="sourceLine" id="cb9-2" data-line-number="2"> <span class="kw">height</span>: <span class="dv">300px</span>;</a>
<a class="sourceLine" id="cb9-3" data-line-number="3"> <span class="kw">width</span>: <span class="dv">300px</span>;</a>
<a class="sourceLine" id="cb9-4" data-line-number="4"> <span class="kw">position</span>: <span class="dv">absolute</span>;</a>
<a class="sourceLine" id="cb9-5" data-line-number="5"> <span class="kw">top</span>: <span class="dv">33%</span>;</a>
<a class="sourceLine" id="cb9-6" data-line-number="6"> <span class="kw">left</span>: <span class="dv">65%</span>;</a>
<a class="sourceLine" id="cb9-7" data-line-number="7">}</a></code></pre></div>
<p>which you can then use in your slides by wrapping the slide content in <code>.box-right[]</code>.</p>
<pre><code>.box-right[
Stuff inside the box
]</code></pre>
</div>
</div>
</div>

<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">

<div id="tocnav">
<h2 class="hasAnchor">
<a href="#tocnav" class="anchor"></a>Contents</h2>
<ul class="nav nav-pills nav-stacked">
<li><a href="#about-this-vignette">About this vignette</a></li>
<li><a href="#colors">Colors</a></li>
<li><a href="#sizes">Sizes</a></li>
<li><a href="#positioning">Positioning</a></li>
</ul>
</div>
</div>

</div>



<footer><div class="copyright">
<p>Developed by <a href="https://www.garrickadenbuie.com">Garrick Aden-Buie</a>.</p>
</div>

<div class="pkgdown">
<p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.4.1.</p>
</div>

</footer>
</div>



</body>
</html>

+ 148
- 0
dev/articles/fonts.html Просмотреть файл

<!DOCTYPE html>
<!-- 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.0">
<title>Fonts • xaringanthemer</title>
<!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha256-916EbMg70RQy9LHiGkXzG8hSg9EdNy97GazNG/aiY1w=" crossorigin="anonymous">
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha256-U5ZEeKfGNOja007MMD3YBI0A3OSZOQbeG6z2f2Y0hu8=" crossorigin="anonymous"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/all.min.css" integrity="sha256-nAmazAk6vS34Xqo0BSrTb+abbtFlgsFK7NKSi6o7Y78=" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/v4-shims.min.css" integrity="sha256-6qHlizsOWFskGlwVOKuns+D1nB6ssZrHQrNj1wGplHc=" crossorigin="anonymous">
<!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.4/clipboard.min.js" integrity="sha256-FiZwavyI2V6+EXO1U+xzLG3IKldpiTFf3153ea9zikQ=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/headroom.min.js" integrity="sha256-DJFC1kqIhelURkuza0AvYal5RxMtpzLjFhsnVIeuk+U=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet">
<script src="../pkgdown.js"></script><link href="../extra.css" rel="stylesheet">
<meta property="og:title" content="Fonts">
<meta property="og:description" content="">
<meta name="twitter:card" content="summary">
<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]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container template-article">
<header><div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">xaringanthemer</a>
<span class="version label label-danger" data-toggle="tooltip" data-placement="bottom" title="In-development version">0.2.0.9100</span>
</span>
</div>

<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="../index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="../articles/xaringanthemer.html">Get started</a>
</li>
<li>
<a href="../reference/index.html">Reference</a>
</li>
<li>
<a href="../articles/themes.html">Themes</a>
</li>
<li>
<a href="../articles/fonts.html">Fonts</a>
</li>
<li>
<a href="../articles/template-variables.html">Template Variables</a>
</li>
<li>
<a href="../articles/css-help.html">CSS Help</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="https://github.com/gadenbuie/xaringanthemer">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
<li>
<a href="https://twitter.com/grrrck">
<span class="fa fa-twitter fa-lg"></span>
</a>
</li>
</ul>
</div>
<!--/.nav-collapse -->
</div>
<!--/.container -->
</div>
<!--/.navbar -->


</header><div class="row">
<div class="col-md-9 contents">
<div class="page-header toc-ignore">
<h1>Fonts</h1>
<small class="dont-index">Source: <a href="https://github.com/gadenbuie/xaringanthemer/blob/master/vignettes/fonts.Rmd"><code>vignettes/fonts.Rmd</code></a></small>
<div class="hidden name"><code>fonts.Rmd</code></div>

</div>

<!-- Need to set [adding-custom-css] -->
<p>Yihui picked out great fonts for the <a href="https://slides.yihui.name/xaringan/">default xaringan theme</a>, but sometimes you want something new and interesting.</p>
<p><strong>xaringanthemer</strong> makes it easy to use <a href="https://fonts.google.com">Google Fonts</a> in your presentations (well, as long as you have an internet connection) or to fully specify your font files.</p>
<p>To use <a href="https://fonts.google.com">Google Fonts</a>, set the <code>_font_google</code> theme arguments – <code>text_font_google</code>, <code>header_font_google</code>, <code>code_font_google</code> — using the <code><a href="../reference/google_font.html">google_font()</a></code> helper. See <code><a href="../reference/google_font.html">?google_font</a></code> for more info.</p>
<div class="sourceCode" id="cb1"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb1-1" data-line-number="1"><span class="kw"><a href="../reference/style_mono_light.html">style_mono_light</a></span>(</a>
<a class="sourceLine" id="cb1-2" data-line-number="2"> <span class="dt">header_font_google =</span> <span class="kw"><a href="../reference/google_font.html">google_font</a></span>(<span class="st">"Josefin Slab"</span>, <span class="st">"600"</span>),</a>
<a class="sourceLine" id="cb1-3" data-line-number="3"> <span class="dt">text_font_google =</span> <span class="kw"><a href="../reference/google_font.html">google_font</a></span>(<span class="st">"Work Sans"</span>, <span class="st">"300"</span>, <span class="st">"300i"</span>),</a>
<a class="sourceLine" id="cb1-4" data-line-number="4"> <span class="dt">code_font_google =</span> <span class="kw"><a href="../reference/google_font.html">google_font</a></span>(<span class="st">"IBM Plex Mono"</span>)</a>
<a class="sourceLine" id="cb1-5" data-line-number="5">)</a></code></pre></div>
<p>If you set an <code>xxx_font_google</code> theme arguments, then <code>xxx_font_family</code>, <code>xxx_font_weight</code> and <code>xxx_font_url</code> are overwritten – where <code>xxx</code> in <code>{header, text, code}</code>. Of course, you can manually set <code>header_font_url</code>, etc., and ignore the <code>header_font_google</code> argument.</p>
<p>For example, suppose you want to use a ligature font for the code font, such as <a href="https://github.com/yihui/xaringan/issues/83">Fira Code</a>. Just set <code>code_font_family</code> and <code>code_font_url</code>!</p>
<div class="sourceCode" id="cb2"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb2-1" data-line-number="1"><span class="kw"><a href="../reference/style_solarized_dark.html">style_solarized_dark</a></span>(</a>
<a class="sourceLine" id="cb2-2" data-line-number="2"> <span class="dt">code_font_family =</span> <span class="st">"Fira Code"</span>,</a>
<a class="sourceLine" id="cb2-3" data-line-number="3"> <span class="dt">code_font_url =</span> <span class="st">"https://cdn.rawgit.com/tonsky/FiraCode/1.204/distr/fira_code.css"</span></a>
<a class="sourceLine" id="cb2-4" data-line-number="4">)</a></code></pre></div>
<p>If you need to import additional fonts for use in <a href="xaringanthemer.html#adding-custom-css">custom CSS definitions</a>, you can use the <code>extra_fonts</code> argument to pass a list of URLs or <code><a href="../reference/google_font.html">google_font()</a></code>s.</p>
<div class="sourceCode" id="cb3"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb3-1" data-line-number="1"><span class="kw"><a href="../reference/style_mono_light.html">style_mono_light</a></span>(</a>
<a class="sourceLine" id="cb3-2" data-line-number="2"> <span class="dt">extra_fonts =</span> <span class="kw"><a href="https://rdrr.io/r/base/list.html">list</a></span>(<span class="kw"><a href="../reference/google_font.html">google_font</a></span>(<span class="st">"Sofia"</span>)),</a>
<a class="sourceLine" id="cb3-3" data-line-number="3"> <span class="dt">extra_css =</span> <span class="kw"><a href="https://rdrr.io/r/base/list.html">list</a></span>(<span class="st">".title-slide h2"</span> =<span class="st"> </span><span class="kw"><a href="https://rdrr.io/r/base/list.html">list</a></span>(<span class="st">"font-family"</span> =<span class="st"> "Sofia"</span>))</a>
<a class="sourceLine" id="cb3-4" data-line-number="4">)</a></code></pre></div>
</div>

<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">

</div>

</div>



<footer><div class="copyright">
<p>Developed by <a href="https://www.garrickadenbuie.com">Garrick Aden-Buie</a>.</p>
</div>

<div class="pkgdown">
<p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.4.1.</p>
</div>

</footer>
</div>



</body>
</html>

+ 166
- 0
dev/articles/index.html Просмотреть файл

<!-- Generated by pkgdown: do not edit by hand -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Articles • xaringanthemer</title>


<!-- jquery -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<!-- Bootstrap -->

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha256-916EbMg70RQy9LHiGkXzG8hSg9EdNy97GazNG/aiY1w=" crossorigin="anonymous" />

<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha256-U5ZEeKfGNOja007MMD3YBI0A3OSZOQbeG6z2f2Y0hu8=" crossorigin="anonymous"></script>

<!-- Font Awesome icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/all.min.css" integrity="sha256-nAmazAk6vS34Xqo0BSrTb+abbtFlgsFK7NKSi6o7Y78=" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/v4-shims.min.css" integrity="sha256-6qHlizsOWFskGlwVOKuns+D1nB6ssZrHQrNj1wGplHc=" crossorigin="anonymous" />

<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.4/clipboard.min.js" integrity="sha256-FiZwavyI2V6+EXO1U+xzLG3IKldpiTFf3153ea9zikQ=" crossorigin="anonymous"></script>

<!-- headroom.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/headroom.min.js" integrity="sha256-DJFC1kqIhelURkuza0AvYal5RxMtpzLjFhsnVIeuk+U=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script>

<!-- pkgdown -->
<link href="../pkgdown.css" rel="stylesheet">
<script src="../pkgdown.js"></script>



<link href="../extra.css" rel="stylesheet">

<meta property="og:title" content="Articles" />


<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]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->



</head>

<body>
<div class="container template-article-index">
<header>
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">xaringanthemer</a>
<span class="version label label-danger" data-toggle="tooltip" data-placement="bottom" title="In-development version">0.2.0.9100</span>
</span>
</div>

<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="../index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="../articles/xaringanthemer.html">Get started</a>
</li>
<li>
<a href="../reference/index.html">Reference</a>
</li>
<li>
<a href="../articles/themes.html">Themes</a>
</li>
<li>
<a href="../articles/fonts.html">Fonts</a>
</li>
<li>
<a href="../articles/template-variables.html">Template Variables</a>
</li>
<li>
<a href="../articles/css-help.html">CSS Help</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="https://github.com/gadenbuie/xaringanthemer">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
<li>
<a href="https://twitter.com/grrrck">
<span class="fa fa-twitter fa-lg"></span>
</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->


</header>

<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
<h1>Articles</h1>
</div>

<div class="section ">
<h3>All vignettes</h3>
<p class="section-desc"></p>

<ul>
<li><a href="css-help.html">xaringanthemer CSS Help</a></li>
<li><a href="fonts.html">Fonts</a></li>
<li><a href="template-variables.html">Template Variables</a></li>
<li><a href="themes.html">Themes</a></li>
<li><a href="xaringanthemer.html">Xaringan CSS Theme Generator</a></li>
</ul>
</div>
</div>
</div>


<footer>
<div class="copyright">
<p>Developed by <a href='https://www.garrickadenbuie.com'>Garrick Aden-Buie</a>.</p>
</div>

<div class="pkgdown">
<p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.4.1.</p>
</div>

</footer>
</div>



</body>
</html>



+ 500
- 0
dev/articles/template-variables.html Просмотреть файл

<!DOCTYPE html>
<!-- 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.0">
<title>Template Variables • xaringanthemer</title>
<!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha256-916EbMg70RQy9LHiGkXzG8hSg9EdNy97GazNG/aiY1w=" crossorigin="anonymous">
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha256-U5ZEeKfGNOja007MMD3YBI0A3OSZOQbeG6z2f2Y0hu8=" crossorigin="anonymous"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/all.min.css" integrity="sha256-nAmazAk6vS34Xqo0BSrTb+abbtFlgsFK7NKSi6o7Y78=" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/v4-shims.min.css" integrity="sha256-6qHlizsOWFskGlwVOKuns+D1nB6ssZrHQrNj1wGplHc=" crossorigin="anonymous">
<!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.4/clipboard.min.js" integrity="sha256-FiZwavyI2V6+EXO1U+xzLG3IKldpiTFf3153ea9zikQ=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/headroom.min.js" integrity="sha256-DJFC1kqIhelURkuza0AvYal5RxMtpzLjFhsnVIeuk+U=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet">
<script src="../pkgdown.js"></script><link href="../extra.css" rel="stylesheet">
<meta property="og:title" content="Template Variables">
<meta property="og:description" content="">
<meta name="twitter:card" content="summary">
<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]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container template-article">
<header><div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">xaringanthemer</a>
<span class="version label label-danger" data-toggle="tooltip" data-placement="bottom" title="In-development version">0.2.0.9100</span>
</span>
</div>

<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="../index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="../articles/xaringanthemer.html">Get started</a>
</li>
<li>
<a href="../reference/index.html">Reference</a>
</li>
<li>
<a href="../articles/themes.html">Themes</a>
</li>
<li>
<a href="../articles/fonts.html">Fonts</a>
</li>
<li>
<a href="../articles/template-variables.html">Template Variables</a>
</li>
<li>
<a href="../articles/css-help.html">CSS Help</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="https://github.com/gadenbuie/xaringanthemer">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
<li>
<a href="https://twitter.com/grrrck">
<span class="fa fa-twitter fa-lg"></span>
</a>
</li>
</ul>
</div>
<!--/.nav-collapse -->
</div>
<!--/.container -->
</div>
<!--/.navbar -->


</header><div class="row">
<div class="col-md-9 contents">
<div class="page-header toc-ignore">
<h1>Template Variables</h1>
<small class="dont-index">Source: <a href="https://github.com/gadenbuie/xaringanthemer/blob/master/vignettes/template-variables.Rmd"><code>vignettes/template-variables.Rmd</code></a></small>
<div class="hidden name"><code>template-variables.Rmd</code></div>

</div>

<p>The following table shows the template variables, their default values in the standard <code>xaringan</code> theme, the primary element to which the property is applied, and a brief description of the template variable.</p>
<p>For example, <code>background_color</code> by default sets the <code>background-color</code> CSS property of the <code>.remark-slide-content</code> class to <code>#FFF</code>.</p>
<p>Use this table to find the template variable you would like to modify. You can also use this table to find the CSS class or element associated with a particular template item.</p>
<p>Note that themes, like <code><a href="../reference/xaringanthemer-deprecated.html">mono_accent()</a></code>, have additional parameters, but with any theme function you can override the theme by directly setting the arguments below when calling the theme function. For example, to use <code><a href="../reference/xaringanthemer-deprecated.html">mono_accent()</a></code> with a different slide background color, you can call <code><a href="../reference/xaringanthemer-deprecated.html">mono_accent(background_color = "#abc123")</a></code>.</p>
<table class="table">
<thead><tr class="header">
<th align="left">variable</th>
<th align="left">description</th>
<th align="left">element</th>
<th align="left">default</th>
</tr></thead>
<tbody>
<tr class="odd">
<td align="left"><code>text_color</code></td>
<td align="left">Text Color</td>
<td align="left">body</td>
<td align="left">#000</td>
</tr>
<tr class="even">
<td align="left"><code>header_color</code></td>
<td align="left">Header Color</td>
<td align="left">h1, h2, h3</td>
<td align="left">#000</td>
</tr>
<tr class="odd">
<td align="left"><code>background_color</code></td>
<td align="left">Slide Background Color</td>
<td align="left">.remark-slide-content</td>
<td align="left">#FFF</td>
</tr>
<tr class="even">
<td align="left"><code>link_color</code></td>
<td align="left">Link Color</td>
<td align="left">a, a &gt; code</td>
<td align="left">rgb(249, 38, 114)</td>
</tr>
<tr class="odd">
<td align="left"><code>text_bold_color</code></td>
<td align="left">Bold Text Color</td>
<td align="left">strong</td>
<td align="left">NULL</td>
</tr>
<tr class="even">
<td align="left"><code>text_slide_number_color</code></td>
<td align="left">Slide Number Color</td>
<td align="left">.remark-slide-number</td>
<td align="left">inverse_background_color</td>
</tr>
<tr class="odd">
<td align="left"><code>padding</code></td>
<td align="left">Slide Padding in <code>top right [bottom left]</code> format</td>
<td align="left">.remark-slide-content</td>
<td align="left">16px 64px 16px 64px</td>
</tr>
<tr class="even">
<td align="left"><code>background_image</code></td>
<td align="left">Background image applied to each <em>and every</em> slide. Set <code>title_slide_background_image = "none"</code> to remove the background image from the title slide</td>
<td align="left">.remark-slide-content</td>
<td align="left">NULL</td>
</tr>
<tr class="odd">
<td align="left"><code>background_size</code></td>
<td align="left">Background image size, requires <code>background_image</code> to be set. If <code>background_image</code> is set, <code>background_size</code> will default to <code>cover</code> so the backround fills the screen. If both <code>background_image</code> and <code>background_position</code> are set, will default to 100 percent</td>
<td align="left">.remark-slide-content</td>
<td align="left">NULL</td>
</tr>
<tr class="even">
<td align="left"><code>background_position</code></td>
<td align="left">Background image position, requires <code>background_image</code> to be set, and it is recommended to adjust <code>background_size</code>
</td>
<td align="left">.remark-slide-content</td>
<td align="left">NULL</td>
</tr>
<tr class="odd">
<td align="left"><code>code_highlight_color</code></td>
<td align="left">Code Line Highlight</td>
<td align="left">.remark-code-line-highlighted</td>
<td align="left">rgba(255,255,0,0.5)</td>
</tr>
<tr class="even">
<td align="left"><code>code_inline_color</code></td>
<td align="left">Inline Code Color</td>
<td align="left">.remark-inline-code</td>
<td align="left">#000</td>
</tr>
<tr class="odd">
<td align="left"><code>code_inline_background_color</code></td>
<td align="left">Inline Code Background Color</td>
<td align="left">.remark-inline-code</td>
<td align="left">NULL</td>
</tr>
<tr class="even">
<td align="left"><code>code_inline_font_size</code></td>
<td align="left">Inline Code Text Font Size</td>
<td align="left">.remark-inline-code</td>
<td align="left">1rem</td>
</tr>
<tr class="odd">
<td align="left"><code>inverse_background_color</code></td>
<td align="left">Inverse Background Color</td>
<td align="left">.inverse</td>
<td align="left">#272822</td>
</tr>
<tr class="even">
<td align="left"><code>inverse_text_color</code></td>
<td align="left">Inverse Text Color</td>
<td align="left">.inverse</td>
<td align="left">#d6d6d6</td>
</tr>
<tr class="odd">
<td align="left"><code>inverse_text_shadow</code></td>
<td align="left">Enables Shadow on text of inverse slides</td>
<td align="left">.inverse</td>
<td align="left">FALSE</td>
</tr>
<tr class="even">
<td align="left"><code>inverse_header_color</code></td>
<td align="left">Inverse Header Color</td>
<td align="left">.inverse h1, .inverse h2, .inverse h3</td>
<td align="left">#f3f3f3</td>
</tr>
<tr class="odd">
<td align="left"><code>title_slide_text_color</code></td>
<td align="left">Title Slide Text Color</td>
<td align="left">.title-slide</td>
<td align="left">inverse_text_color</td>
</tr>
<tr class="even">
<td align="left"><code>title_slide_background_color</code></td>
<td align="left">Title Slide Background Color</td>
<td align="left">.title-slide</td>
<td align="left">inverse_background_color</td>
</tr>
<tr class="odd">
<td align="left"><code>title_slide_background_image</code></td>
<td align="left">Title Slide Background Image URL</td>
<td align="left">.title-slide</td>
<td align="left">NULL</td>
</tr>
<tr class="even">
<td align="left"><code>title_slide_background_size</code></td>
<td align="left">Title Slide Background Image Size, defaults to “cover” if background image is set</td>
<td align="left">.title-slide</td>
<td align="left">NULL</td>
</tr>
<tr class="odd">
<td align="left"><code>title_slide_background_position</code></td>
<td align="left">Title Slide Background Image Position</td>
<td align="left">.title-slide</td>
<td align="left">NULL</td>
</tr>
<tr class="even">
<td align="left"><code>footnote_color</code></td>
<td align="left">Footnote text color (if <code>NA</code>, then it will be the same color as <code>text_color</code>)</td>
<td align="left">.footnote</td>
<td align="left">NULL</td>
</tr>
<tr class="odd">
<td align="left"><code>footnote_font_size</code></td>
<td align="left">Footnote font size</td>
<td align="left">.footnote</td>
<td align="left">0.9rem</td>
</tr>
<tr class="even">
<td align="left"><code>footnote_position_bottom</code></td>
<td align="left">Footnote location from bottom of screen</td>
<td align="left">.footnote</td>
<td align="left">60px</td>
</tr>
<tr class="odd">
<td align="left"><code>left_column_subtle_color</code></td>
<td align="left">Left Column Text (not last)</td>
<td align="left">.left-column h2, .left-column h3</td>
<td align="left">#777</td>
</tr>
<tr class="even">
<td align="left"><code>left_column_selected_color</code></td>
<td align="left">Left Column Current Selection</td>
<td align="left">.left-column h2:last-of-type, .left-column h3:last-child</td>
<td align="left">#000</td>
</tr>
<tr class="odd">
<td align="left"><code>blockquote_left_border_color</code></td>
<td align="left">Blockquote Left Border Color</td>
<td align="left">blockquote</td>
<td align="left">lightgray</td>
</tr>
<tr class="even">
<td align="left"><code>table_border_color</code></td>
<td align="left">Table top/bottom border</td>
<td align="left">table: border-top, border-bottom</td>
<td align="left">#666</td>
</tr>
<tr class="odd">
<td align="left"><code>table_row_border_color</code></td>
<td align="left">Table row inner bottom border</td>
<td align="left">table thead th: border-bottom</td>
<td align="left">#ddd</td>
</tr>
<tr class="even">
<td align="left"><code>table_row_even_background_color</code></td>
<td align="left">Table Even Row Background Color</td>
<td align="left">thead, tfoot, tr:nth-child(even)</td>
<td align="left">#eee</td>
</tr>
<tr class="odd">
<td align="left"><code>base_font_size</code></td>
<td align="left">Base Font Size for All Slide Elements (must be <code>px</code>)</td>
<td align="left">html</td>
<td align="left">20px</td>
</tr>
<tr class="even">
<td align="left"><code>text_font_size</code></td>
<td align="left">Slide Body Text Font Size</td>
<td align="left">.remark-slide-content</td>
<td align="left">1rem</td>
</tr>
<tr class="odd">
<td align="left"><code>header_h1_font_size</code></td>
<td align="left">h1 Header Text Font Size</td>
<td align="left">.remark-slide-content h1</td>
<td align="left">2.75rem</td>
</tr>
<tr class="even">
<td align="left"><code>header_h2_font_size</code></td>
<td align="left">h2 Header Text Font Size</td>
<td align="left">.remark-slide-content h2</td>
<td align="left">2.25rem</td>
</tr>
<tr class="odd">
<td align="left"><code>header_h3_font_size</code></td>
<td align="left">h3 Header Text Font Size</td>
<td align="left">.remark-slide-content h3</td>
<td align="left">1.75rem</td>
</tr>
<tr class="even">
<td align="left"><code>header_background_auto</code></td>
<td align="left">Add background under slide title automatically for h1 header elements. If not enabled, use <code>class: header_background</code> to enable</td>
<td align="left"></td>
<td align="left">FALSE</td>
</tr>
<tr class="odd">
<td align="left"><code>header_background_color</code></td>
<td align="left">Background Color for h1 Header with Background</td>
<td align="left">.remark-slide-content h1</td>
<td align="left">header_color</td>
</tr>
<tr class="even">
<td align="left"><code>header_background_text_color</code></td>
<td align="left">Text Color for h1 Header with Background</td>
<td align="left">.remark-slide-content h1</td>
<td align="left">background_color</td>
</tr>
<tr class="odd">
<td align="left"><code>header_background_padding</code></td>
<td align="left">Padding for h1 Header with Background</td>
<td align="left">.remark-slide-content h1</td>
<td align="left">NULL</td>
</tr>
<tr class="even">
<td align="left"><code>header_background_content_padding_top</code></td>
<td align="left">Top Padding for Content in Slide with Header with Background</td>
<td align="left">.remark-slide-content</td>
<td align="left">7rem</td>
</tr>
<tr class="odd">
<td align="left"><code>header_background_ignore_classes</code></td>
<td align="left">Slide Classes Where Header with Background will not be Applied</td>
<td align="left">.remark-slide-content</td>
<td align="left">c(‘normal’, ‘inverse’, ‘title’, ‘middle’, ‘bottom’)</td>
</tr>
<tr class="even">
<td align="left"><code>text_slide_number_font_size</code></td>
<td align="left">Slide Number Text Font Size</td>
<td align="left">.remark-slide-number</td>
<td align="left">0.9rem</td>
</tr>
<tr class="odd">
<td align="left"><code>text_font_google</code></td>
<td align="left">Use <code><a href="../reference/google_font.html">google_font()</a></code> to specify body font</td>
<td align="left">body</td>
<td align="left">NULL</td>
</tr>
<tr class="even">
<td align="left"><code>text_font_family</code></td>
<td align="left">Body Text Font Family (xaringan default is <code>'Droid Serif'</code>)</td>
<td align="left">body</td>
<td align="left">Noto Sans</td>
</tr>
<tr class="odd">
<td align="left"><code>text_font_weight</code></td>
<td align="left">Body Text Font Weight</td>
<td align="left">body</td>
<td align="left">normal</td>
</tr>
<tr class="even">
<td align="left"><code>text_font_url</code></td>
<td align="left">Body Text Font URL(s)</td>
<td align="left">
<span class="citation">@import</span> url()</td>
<td align="left"><a href="https://fonts.googleapis.com/css?family=Noto+Sans:400,400i,700,700i&amp;display=swap" class="uri">https://fonts.googleapis.com/css?family=Noto+Sans:400,400i,700,700i&amp;display=swap</a></td>
</tr>
<tr class="odd">
<td align="left"><code>text_font_family_fallback</code></td>
<td align="left">Body Text Font Fallbacks</td>
<td align="left">body</td>
<td align="left">-apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, Ubuntu, roboto, noto, segoe ui, arial</td>
</tr>
<tr class="even">
<td align="left"><code>text_font_base</code></td>
<td align="left">Body Text Base Font (Total Failure Fallback)</td>
<td align="left">body</td>
<td align="left">sans-serif</td>
</tr>
<tr class="odd">
<td align="left"><code>header_font_google</code></td>
<td align="left">Use <code><a href="../reference/google_font.html">google_font()</a></code> to specify header font</td>
<td align="left">body</td>
<td align="left">NULL</td>
</tr>
<tr class="even">
<td align="left"><code>header_font_family</code></td>
<td align="left">Header Font Family (xaringan default is <code>'Yanone Kaffeesatz'</code>)</td>
<td align="left">h1, h2, h3</td>
<td align="left">Cabin</td>
</tr>
<tr class="odd">
<td align="left"><code>header_font_weight</code></td>
<td align="left">Header Font Weight</td>
<td align="left">h1, h2, h3</td>
<td align="left">600</td>
</tr>
<tr class="even">
<td align="left"><code>header_font_url</code></td>
<td align="left">Header Font URL</td>
<td align="left">
<span class="citation">@import</span> url</td>
<td align="left"><a href="https://fonts.googleapis.com/css?family=Cabin:600,600i&amp;display=swap" class="uri">https://fonts.googleapis.com/css?family=Cabin:600,600i&amp;display=swap</a></td>
</tr>
<tr class="odd">
<td align="left"><code>code_font_google</code></td>
<td align="left">Use <code><a href="../reference/google_font.html">google_font()</a></code> to specify code font</td>
<td align="left">body</td>
<td align="left">NULL</td>
</tr>
<tr class="even">
<td align="left"><code>code_font_family</code></td>
<td align="left">Code Font Family</td>
<td align="left">.remark-code, .remark-inline-code</td>
<td align="left">Source Code Pro</td>
</tr>
<tr class="odd">
<td align="left"><code>code_font_size</code></td>
<td align="left">Code Text Font Size</td>
<td align="left">.remark-inline</td>
<td align="left">0.9rem</td>
</tr>
<tr class="even">
<td align="left"><code>code_font_url</code></td>
<td align="left">Code Font URL</td>
<td align="left">
<span class="citation">@import</span> url</td>
<td align="left"><a href="https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700&amp;display=swap" class="uri">https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700&amp;display=swap</a></td>
</tr>
<tr class="odd">
<td align="left"><code>code_font_family_fallback</code></td>
<td align="left">Code Font Fallback</td>
<td align="left">.remark-code, .remark-inline-code</td>
<td align="left">Menlo, Consolas, Monaco, Liberation Mono, Lucida Console</td>
</tr>
</tbody>
</table>
</div>

<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">

</div>

</div>



<footer><div class="copyright">
<p>Developed by <a href="https://www.garrickadenbuie.com">Garrick Aden-Buie</a>.</p>
</div>

<div class="pkgdown">
<p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.4.1.</p>
</div>

</footer>
</div>



</body>
</html>

+ 222
- 0
dev/articles/themes.html Просмотреть файл

<!DOCTYPE html>
<!-- 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.0">
<title>Themes • xaringanthemer</title>
<!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha256-916EbMg70RQy9LHiGkXzG8hSg9EdNy97GazNG/aiY1w=" crossorigin="anonymous">
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha256-U5ZEeKfGNOja007MMD3YBI0A3OSZOQbeG6z2f2Y0hu8=" crossorigin="anonymous"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/all.min.css" integrity="sha256-nAmazAk6vS34Xqo0BSrTb+abbtFlgsFK7NKSi6o7Y78=" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/v4-shims.min.css" integrity="sha256-6qHlizsOWFskGlwVOKuns+D1nB6ssZrHQrNj1wGplHc=" crossorigin="anonymous">
<!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.4/clipboard.min.js" integrity="sha256-FiZwavyI2V6+EXO1U+xzLG3IKldpiTFf3153ea9zikQ=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/headroom.min.js" integrity="sha256-DJFC1kqIhelURkuza0AvYal5RxMtpzLjFhsnVIeuk+U=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet">
<script src="../pkgdown.js"></script><link href="../extra.css" rel="stylesheet">
<meta property="og:title" content="Themes">
<meta property="og:description" content="">
<meta name="twitter:card" content="summary">
<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]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container template-article">
<header><div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">xaringanthemer</a>
<span class="version label label-danger" data-toggle="tooltip" data-placement="bottom" title="In-development version">0.2.0.9100</span>
</span>
</div>

<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="../index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="../articles/xaringanthemer.html">Get started</a>
</li>
<li>
<a href="../reference/index.html">Reference</a>
</li>
<li>
<a href="../articles/themes.html">Themes</a>
</li>
<li>
<a href="../articles/fonts.html">Fonts</a>
</li>
<li>
<a href="../articles/template-variables.html">Template Variables</a>
</li>
<li>
<a href="../articles/css-help.html">CSS Help</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="https://github.com/gadenbuie/xaringanthemer">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
<li>
<a href="https://twitter.com/grrrck">
<span class="fa fa-twitter fa-lg"></span>
</a>
</li>
</ul>
</div>
<!--/.nav-collapse -->
</div>
<!--/.container -->
</div>
<!--/.navbar -->


</header><div class="row">
<div class="col-md-9 contents">
<div class="page-header toc-ignore">
<h1>Themes</h1>
<small class="dont-index">Source: <a href="https://github.com/gadenbuie/xaringanthemer/blob/master/vignettes/themes.Rmd"><code>vignettes/themes.Rmd</code></a></small>
<div class="hidden name"><code>themes.Rmd</code></div>

</div>

<div id="monotone" class="section level3">
<h3 class="hasAnchor">
<a href="#monotone" class="anchor"></a>Monotone</h3>
<p>Use these functions to automatically create a consistent color palette for your slides, based around a single color.</p>
<div id="style_mono_light" class="section level4">
<h4 class="hasAnchor">
<a href="#style_mono_light" class="anchor"></a><code>style_mono_light()</code>
</h4>
<p>A light theme based around a single color.</p>
<div class="sourceCode" id="cb1"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb1-1" data-line-number="1"><span class="kw"><a href="../reference/style_mono_light.html">style_mono_light</a></span>(<span class="dt">base_color =</span> <span class="st">"#23395b"</span>)</a></code></pre></div>
<p><img src="https://raw.githubusercontent.com/gadenbuie/xaringanthemer/assets/example_mono_light.png"></p>
</div>
<div id="style_mono_dark" class="section level4">
<h4 class="hasAnchor">
<a href="#style_mono_dark" class="anchor"></a><code>style_mono_dark()</code>
</h4>
<p>A dark theme based around a single color.</p>
<div class="sourceCode" id="cb2"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb2-1" data-line-number="1"><span class="kw"><a href="../reference/style_mono_dark.html">style_mono_dark</a></span>(<span class="dt">base_color =</span> <span class="st">"#cbf7ed"</span>)</a></code></pre></div>
<p><img src="https://raw.githubusercontent.com/gadenbuie/xaringanthemer/assets/example_mono_dark.png"></p>
</div>
<div id="style_mono_accent" class="section level4">
<h4 class="hasAnchor">
<a href="#style_mono_accent" class="anchor"></a><code>style_mono_accent()</code>
</h4>
<p>The default xaringan theme with a single color used for color accents on select elements (headers, bold text, etc.).</p>
<div class="sourceCode" id="cb3"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb3-1" data-line-number="1"><span class="kw"><a href="../reference/style_mono_accent.html">style_mono_accent</a></span>(<span class="dt">base_color =</span> <span class="st">"#43418A"</span>)</a></code></pre></div>
<p><img src="https://raw.githubusercontent.com/gadenbuie/xaringanthemer/assets/example_mono_accent.png"></p>
</div>
<div id="style_mono_accent_inverse" class="section level4">
<h4 class="hasAnchor">
<a href="#style_mono_accent_inverse" class="anchor"></a><code>style_mono_accent_inverse()</code>
</h4>
<p>An “inverted” default xaringan theme with a single color used for color accents on select elements (headers, bold text, etc.).</p>
<div class="sourceCode" id="cb4"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb4-1" data-line-number="1"><span class="kw"><a href="../reference/style_mono_accent_inverse.html">style_mono_accent_inverse</a></span>(<span class="dt">base_color =</span> <span class="st">"#3C989E"</span>)</a></code></pre></div>
<p><img src="https://raw.githubusercontent.com/gadenbuie/xaringanthemer/assets/example_mono_accent_inverse.png"></p>
</div>
</div>
<div id="duotone" class="section level3">
<h3 class="hasAnchor">
<a href="#duotone" class="anchor"></a>Duotone</h3>
<p>These themes build from two (ideally) complementary colors.</p>
<div id="style_duo" class="section level4">
<h4 class="hasAnchor">
<a href="#style_duo" class="anchor"></a><code>style_duo()</code>
</h4>
<p>A two-colored theme based on a primary and secondary color.</p>
<div class="sourceCode" id="cb5"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb5-1" data-line-number="1"><span class="kw"><a href="../reference/style_duo.html">style_duo</a></span>(<span class="dt">primary_color =</span> <span class="st">"#1F4257"</span>, <span class="dt">secondary_color =</span> <span class="st">"#F97B64"</span>)</a></code></pre></div>
<p><img src="https://raw.githubusercontent.com/gadenbuie/xaringanthemer/assets/example_duo.png"></p>
</div>
<div id="style_duo_accent" class="section level4">
<h4 class="hasAnchor">
<a href="#style_duo_accent" class="anchor"></a><code>style_duo_accent()</code>
</h4>
<p>The default Xaringan theme with two accent colors.</p>
<div class="sourceCode" id="cb6"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb6-1" data-line-number="1"><span class="kw"><a href="../reference/style_duo_accent.html">style_duo_accent</a></span>(<span class="dt">primary_color =</span> <span class="st">"#006747"</span>, <span class="dt">secondary_color =</span> <span class="st">"#CFC493"</span>)</a></code></pre></div>
<p><img src="https://raw.githubusercontent.com/gadenbuie/xaringanthemer/assets/example_duo_accent.png"></p>
</div>
<div id="style_duo_accent_inverse" class="section level4">
<h4 class="hasAnchor">
<a href="#style_duo_accent_inverse" class="anchor"></a><code>style_duo_accent_inverse()</code>
</h4>
<p>An “inverted” default Xaringan theme with two accent colors.</p>
<div class="sourceCode" id="cb7"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb7-1" data-line-number="1"><span class="kw"><a href="../reference/style_duo_accent_inverse.html">style_duo_accent_inverse</a></span>(<span class="dt">primary_color =</span> <span class="st">"#006747"</span>, <span class="dt">secondary_color =</span> <span class="st">"#CFC493"</span>)</a></code></pre></div>
<p><img src="https://raw.githubusercontent.com/gadenbuie/xaringanthemer/assets/example_duo_accent_inverse.png"></p>
</div>
</div>
<div id="solarized" class="section level3">
<h3 class="hasAnchor">
<a href="#solarized" class="anchor"></a>Solarized</h3>
<p>There are also two themes based around the <a href="http://ethanschoonover.com/solarized">solarized color palette</a>, <code><a href="../reference/style_solarized_light.html">style_solarized_light()</a></code> and <code><a href="../reference/style_solarized_dark.html">style_solarized_dark()</a></code>. For both themes, it is advisted to change the syntax highlighting theme to <code>solarized-light</code> or <code>solarized-dark</code> (looks great paired or constrasted).</p>
<div id="style_solarized_light" class="section level4">
<h4 class="hasAnchor">
<a href="#style_solarized_light" class="anchor"></a><code>style_solarized_light()</code>
</h4>
<div class="sourceCode" id="cb8"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb8-1" data-line-number="1"><span class="kw"><a href="../reference/style_solarized_light.html">style_solarized_light</a></span>()</a></code></pre></div>
<p><img src="https://raw.githubusercontent.com/gadenbuie/xaringanthemer/assets/example_solarized_light.png"></p>
</div>
<div id="style_solarized_dark" class="section level4">
<h4 class="hasAnchor">
<a href="#style_solarized_dark" class="anchor"></a><code>style_solarized_dark()</code>
</h4>
<div class="sourceCode" id="cb9"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb9-1" data-line-number="1"><span class="kw"><a href="../reference/style_solarized_dark.html">style_solarized_dark</a></span>()</a></code></pre></div>
<p><img src="https://raw.githubusercontent.com/gadenbuie/xaringanthemer/assets/example_solarized_dark.png"></p>
<p>To do this, your YAML header should look more-or-less like this:</p>
<div class="sourceCode" id="cb10"><pre class="sourceCode yaml"><code class="sourceCode yaml"><a class="sourceLine" id="cb10-1" data-line-number="1"><span class="fu">output:</span></a>
<a class="sourceLine" id="cb10-2" data-line-number="2"> <span class="fu">xaringan:</span><span class="at">:moon_reader:</span></a>
<a class="sourceLine" id="cb10-3" data-line-number="3"> <span class="fu">lib_dir:</span><span class="at"> libs</span></a>
<a class="sourceLine" id="cb10-4" data-line-number="4"> <span class="fu">css:</span><span class="at"> </span><span class="kw"><a href="https://rdrr.io/r/base/Extract.html">[</a></span><span class="st">"xaringan-themer.css"</span><span class="kw">]</span></a>
<a class="sourceLine" id="cb10-5" data-line-number="5"> <span class="fu">nature:</span></a>
<a class="sourceLine" id="cb10-6" data-line-number="6"> <span class="fu">highlightStyle:</span><span class="at"> solarized-dark</span></a>
<a class="sourceLine" id="cb10-7" data-line-number="7"> <span class="fu">highlightLines:</span><span class="at"> true</span></a>
<a class="sourceLine" id="cb10-8" data-line-number="8"> <span class="fu">countIncrementalSlides:</span><span class="at"> false</span></a></code></pre></div>
</div>
</div>
</div>

<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">

</div>

</div>



<footer><div class="copyright">
<p>Developed by <a href="https://www.garrickadenbuie.com">Garrick Aden-Buie</a>.</p>
</div>

<div class="pkgdown">
<p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.4.1.</p>
</div>

</footer>
</div>



</body>
</html>

+ 368
- 0
dev/articles/xaringanthemer.html Просмотреть файл

<!DOCTYPE html>
<!-- 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.0">
<title>Xaringan CSS Theme Generator • xaringanthemer</title>
<!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha256-916EbMg70RQy9LHiGkXzG8hSg9EdNy97GazNG/aiY1w=" crossorigin="anonymous">
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha256-U5ZEeKfGNOja007MMD3YBI0A3OSZOQbeG6z2f2Y0hu8=" crossorigin="anonymous"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/all.min.css" integrity="sha256-nAmazAk6vS34Xqo0BSrTb+abbtFlgsFK7NKSi6o7Y78=" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/v4-shims.min.css" integrity="sha256-6qHlizsOWFskGlwVOKuns+D1nB6ssZrHQrNj1wGplHc=" crossorigin="anonymous">
<!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.4/clipboard.min.js" integrity="sha256-FiZwavyI2V6+EXO1U+xzLG3IKldpiTFf3153ea9zikQ=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/headroom.min.js" integrity="sha256-DJFC1kqIhelURkuza0AvYal5RxMtpzLjFhsnVIeuk+U=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet">
<script src="../pkgdown.js"></script><link href="../extra.css" rel="stylesheet">
<meta property="og:title" content="Xaringan CSS Theme Generator">
<meta property="og:description" content="">
<meta name="twitter:card" content="summary">
<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]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container template-article">
<header><div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">xaringanthemer</a>
<span class="version label label-danger" data-toggle="tooltip" data-placement="bottom" title="In-development version">0.2.0.9100</span>
</span>
</div>

<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="../index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="../articles/xaringanthemer.html">Get started</a>
</li>
<li>
<a href="../reference/index.html">Reference</a>
</li>
<li>
<a href="../articles/themes.html">Themes</a>
</li>
<li>
<a href="../articles/fonts.html">Fonts</a>
</li>
<li>
<a href="../articles/template-variables.html">Template Variables</a>
</li>
<li>
<a href="../articles/css-help.html">CSS Help</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="https://github.com/gadenbuie/xaringanthemer">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
<li>
<a href="https://twitter.com/grrrck">
<span class="fa fa-twitter fa-lg"></span>
</a>
</li>
</ul>
</div>
<!--/.nav-collapse -->
</div>
<!--/.container -->
</div>
<!--/.navbar -->


</header><div class="row">
<div class="col-md-9 contents">
<div class="page-header toc-ignore">
<h1>Xaringan CSS Theme Generator</h1>
<small class="dont-index">Source: <a href="https://github.com/gadenbuie/xaringanthemer/blob/master/vignettes/xaringanthemer.Rmd"><code>vignettes/xaringanthemer.Rmd</code></a></small>
<div class="hidden name"><code>xaringanthemer.Rmd</code></div>

</div>

<!-- This vignette was automatically created from README.Rmd

Please consider removing installation instructions, badges, and
any other README-specific material.
You can include short independent documents in README.Rmd using
the following chunk argument syntax:
child='vignettes/rmdhunks/example1.Rmd'
https://yihui.name/knitr/demo/child/
or read-in chunks stored in an independent R script using knitr::read_chunk()
https://yihui.name/knitr/demo/externalization/ -->
<!-- README.md is generated from README.Rmd. Please edit that file -->
<p>Jump to: <a href="#quick-intro">Quick Intro</a>, <a href="#themes">Themes</a>, <a href="#theme-settings">Theme Settings</a>, <a href="#adding-custom-css">Adding Custom CSS</a>, <a href="#fonts">Fonts</a></p>
<div id="quick-intro" class="section level2">
<h2 class="hasAnchor">
<a href="#quick-intro" class="anchor"></a>Quick Intro</h2>
<!-- Set link to theme-settings, template-variables, theme functions -->
<p>First, add the <code>xaringan-themer.css</code> file to the YAML header of your xaringan slides.</p>
<div class="sourceCode" id="cb1"><pre class="sourceCode yaml"><code class="sourceCode yaml"><a class="sourceLine" id="cb1-1" data-line-number="1"><span class="fu">output:</span></a>
<a class="sourceLine" id="cb1-2" data-line-number="2"> <span class="fu">xaringan:</span><span class="at">:moon_reader:</span></a>
<a class="sourceLine" id="cb1-3" data-line-number="3"> <span class="fu">lib_dir:</span><span class="at"> libs</span></a>
<a class="sourceLine" id="cb1-4" data-line-number="4"> <span class="fu">css:</span><span class="at"> xaringan-themer.css</span></a></code></pre></div>
<p>Then, in a hidden chunk just after the knitr setup chunk, load <strong>xaringanthemer</strong> and try one of the <a href="#themes">theme functions</a>.</p>
<div class="sourceCode" id="cb2"><pre class="sourceCode markdown"><code class="sourceCode markdown"><a class="sourceLine" id="cb2-1" data-line-number="1">```{r xaringan-themer, include = FALSE}</a>
<a class="sourceLine" id="cb2-2" data-line-number="2">library(xaringanthemer)</a>
<a class="sourceLine" id="cb2-3" data-line-number="3">style_mono_light(</a>
<a class="sourceLine" id="cb2-4" data-line-number="4"> base_color = "#1c5253",</a>
<a class="sourceLine" id="cb2-5" data-line-number="5"> header_font_google = google_font("Josefin Sans"),</a>
<a class="sourceLine" id="cb2-6" data-line-number="6"> text_font_google = google_font("Montserrat", "300", "300i"),</a>
<a class="sourceLine" id="cb2-7" data-line-number="7"> code_font_google = google_font("Droid Mono")</a>
<a class="sourceLine" id="cb2-8" data-line-number="8">)</a>
<a class="sourceLine" id="cb2-9" data-line-number="9">```</a></code></pre></div>
<p><img src="https://raw.githubusercontent.com/gadenbuie/xaringanthemer/assets/example_mono_light_1c5253.png" alt="Example title and normal slides using a green xaringanthemer theme"></p>
<div id="tab-completion" class="section level3">
<h3 class="hasAnchor">
<a href="#tab-completion" class="anchor"></a>Tab Completion</h3>
<p><strong>xaringanthemer</strong> is <kbd>Tab</kbd> friendly – <a href="#theme-settings">use autocomplete to explore</a> the <a href="template-variables.html">template variables</a> that you can adjust in each of the themes!</p>
<p><img src="https://raw.githubusercontent.com/gadenbuie/xaringanthemer/assets/example-rstudio-completion.gif" alt="Demonstration of argument auto-completion with RStudio"></p>
</div>
<div id="r-markdown-template-in-rstudio" class="section level3">
<h3 class="hasAnchor">
<a href="#r-markdown-template-in-rstudio" class="anchor"></a>R Markdown Template in RStudio</h3>
<p>You can also skip the above and just create a <em>Ninja Themed Presentation</em> from the New R Markdown Document menu in RStudio.</p>
<center>
<img src="https://raw.githubusercontent.com/gadenbuie/xaringanthemer/assets/rmarkdown-template-screenshot.png" alt="The 'New R Markdown Document' menu in RStudio">
</center>
</div>
</div>
<div id="themes" class="section level2">
<h2 class="hasAnchor">
<a href="#themes" class="anchor"></a>Themes</h2>
<div id="monotone" class="section level3">
<h3 class="hasAnchor">
<a href="#monotone" class="anchor"></a>Monotone</h3>
<p>Use these functions to automatically create a consistent color palette for your slides, based around a single color.</p>
<div id="style_mono_light" class="section level4">
<h4 class="hasAnchor">
<a href="#style_mono_light" class="anchor"></a><code>style_mono_light()</code>
</h4>
<p>A light theme based around a single color.</p>
<div class="sourceCode" id="cb3"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb3-1" data-line-number="1"><span class="kw"><a href="../reference/style_mono_light.html">style_mono_light</a></span>(<span class="dt">base_color =</span> <span class="st">"#23395b"</span>)</a></code></pre></div>
<p><img src="https://raw.githubusercontent.com/gadenbuie/xaringanthemer/assets/example_mono_light.png"></p>
</div>
<div id="style_mono_dark" class="section level4">
<h4 class="hasAnchor">
<a href="#style_mono_dark" class="anchor"></a><code>style_mono_dark()</code>
</h4>
<p>A dark theme based around a single color.</p>
<div class="sourceCode" id="cb4"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb4-1" data-line-number="1"><span class="kw"><a href="../reference/style_mono_dark.html">style_mono_dark</a></span>(<span class="dt">base_color =</span> <span class="st">"#cbf7ed"</span>)</a></code></pre></div>
<p><img src="https://raw.githubusercontent.com/gadenbuie/xaringanthemer/assets/example_mono_dark.png"></p>
</div>
<div id="style_mono_accent" class="section level4">
<h4 class="hasAnchor">
<a href="#style_mono_accent" class="anchor"></a><code>style_mono_accent()</code>
</h4>
<p>The default xaringan theme with a single color used for color accents on select elements (headers, bold text, etc.).</p>
<div class="sourceCode" id="cb5"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb5-1" data-line-number="1"><span class="kw"><a href="../reference/style_mono_accent.html">style_mono_accent</a></span>(<span class="dt">base_color =</span> <span class="st">"#43418A"</span>)</a></code></pre></div>
<p><img src="https://raw.githubusercontent.com/gadenbuie/xaringanthemer/assets/example_mono_accent.png"></p>
</div>
<div id="style_mono_accent_inverse" class="section level4">
<h4 class="hasAnchor">
<a href="#style_mono_accent_inverse" class="anchor"></a><code>style_mono_accent_inverse()</code>
</h4>
<p>An “inverted” default xaringan theme with a single color used for color accents on select elements (headers, bold text, etc.).</p>
<div class="sourceCode" id="cb6"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb6-1" data-line-number="1"><span class="kw"><a href="../reference/style_mono_accent_inverse.html">style_mono_accent_inverse</a></span>(<span class="dt">base_color =</span> <span class="st">"#3C989E"</span>)</a></code></pre></div>
<p><img src="https://raw.githubusercontent.com/gadenbuie/xaringanthemer/assets/example_mono_accent_inverse.png"></p>
</div>
</div>
<div id="duotone" class="section level3">
<h3 class="hasAnchor">
<a href="#duotone" class="anchor"></a>Duotone</h3>
<p>These themes build from two (ideally) complementary colors.</p>
<div id="style_duo" class="section level4">
<h4 class="hasAnchor">
<a href="#style_duo" class="anchor"></a><code>style_duo()</code>
</h4>
<p>A two-colored theme based on a primary and secondary color.</p>
<div class="sourceCode" id="cb7"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb7-1" data-line-number="1"><span class="kw"><a href="../reference/style_duo.html">style_duo</a></span>(<span class="dt">primary_color =</span> <span class="st">"#1F4257"</span>, <span class="dt">secondary_color =</span> <span class="st">"#F97B64"</span>)</a></code></pre></div>
<p><img src="https://raw.githubusercontent.com/gadenbuie/xaringanthemer/assets/example_duo.png"></p>
</div>
<div id="style_duo_accent" class="section level4">
<h4 class="hasAnchor">
<a href="#style_duo_accent" class="anchor"></a><code>style_duo_accent()</code>
</h4>
<p>The default Xaringan theme with two accent colors.</p>
<div class="sourceCode" id="cb8"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb8-1" data-line-number="1"><span class="kw"><a href="../reference/style_duo_accent.html">style_duo_accent</a></span>(<span class="dt">primary_color =</span> <span class="st">"#006747"</span>, <span class="dt">secondary_color =</span> <span class="st">"#CFC493"</span>)</a></code></pre></div>
<p><img src="https://raw.githubusercontent.com/gadenbuie/xaringanthemer/assets/example_duo_accent.png"></p>
</div>
<div id="style_duo_accent_inverse" class="section level4">
<h4 class="hasAnchor">
<a href="#style_duo_accent_inverse" class="anchor"></a><code>style_duo_accent_inverse()</code>
</h4>
<p>An “inverted” default Xaringan theme with two accent colors.</p>
<div class="sourceCode" id="cb9"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb9-1" data-line-number="1"><span class="kw"><a href="../reference/style_duo_accent_inverse.html">style_duo_accent_inverse</a></span>(<span class="dt">primary_color =</span> <span class="st">"#006747"</span>, <span class="dt">secondary_color =</span> <span class="st">"#CFC493"</span>)</a></code></pre></div>
<p><img src="https://raw.githubusercontent.com/gadenbuie/xaringanthemer/assets/example_duo_accent_inverse.png"></p>
</div>
</div>
<div id="solarized" class="section level3">
<h3 class="hasAnchor">
<a href="#solarized" class="anchor"></a>Solarized</h3>
<p>There are also two themes based around the <a href="http://ethanschoonover.com/solarized">solarized color palette</a>, <code><a href="../reference/style_solarized_light.html">style_solarized_light()</a></code> and <code><a href="../reference/style_solarized_dark.html">style_solarized_dark()</a></code>. For both themes, it is advisted to change the syntax highlighting theme to <code>solarized-light</code> or <code>solarized-dark</code> (looks great paired or constrasted).</p>
<div id="style_solarized_light" class="section level4">
<h4 class="hasAnchor">
<a href="#style_solarized_light" class="anchor"></a><code>style_solarized_light()</code>
</h4>
<div class="sourceCode" id="cb10"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb10-1" data-line-number="1"><span class="kw"><a href="../reference/style_solarized_light.html">style_solarized_light</a></span>()</a></code></pre></div>
<p><img src="https://raw.githubusercontent.com/gadenbuie/xaringanthemer/assets/example_solarized_light.png"></p>
</div>
<div id="style_solarized_dark" class="section level4">
<h4 class="hasAnchor">
<a href="#style_solarized_dark" class="anchor"></a><code>style_solarized_dark()</code>
</h4>
<div class="sourceCode" id="cb11"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb11-1" data-line-number="1"><span class="kw"><a href="../reference/style_solarized_dark.html">style_solarized_dark</a></span>()</a></code></pre></div>
<p><img src="https://raw.githubusercontent.com/gadenbuie/xaringanthemer/assets/example_solarized_dark.png"></p>
<p>To do this, your YAML header should look more-or-less like this:</p>
<div class="sourceCode" id="cb12"><pre class="sourceCode yaml"><code class="sourceCode yaml"><a class="sourceLine" id="cb12-1" data-line-number="1"><span class="fu">output:</span></a>
<a class="sourceLine" id="cb12-2" data-line-number="2"> <span class="fu">xaringan:</span><span class="at">:moon_reader:</span></a>
<a class="sourceLine" id="cb12-3" data-line-number="3"> <span class="fu">lib_dir:</span><span class="at"> libs</span></a>
<a class="sourceLine" id="cb12-4" data-line-number="4"> <span class="fu">css:</span><span class="at"> </span><span class="kw"><a href="https://rdrr.io/r/base/Extract.html">[</a></span><span class="st">"xaringan-themer.css"</span><span class="kw">]</span></a>
<a class="sourceLine" id="cb12-5" data-line-number="5"> <span class="fu">nature:</span></a>
<a class="sourceLine" id="cb12-6" data-line-number="6"> <span class="fu">highlightStyle:</span><span class="at"> solarized-dark</span></a>
<a class="sourceLine" id="cb12-7" data-line-number="7"> <span class="fu">highlightLines:</span><span class="at"> true</span></a>
<a class="sourceLine" id="cb12-8" data-line-number="8"> <span class="fu">countIncrementalSlides:</span><span class="at"> false</span></a></code></pre></div>
</div>
</div>
</div>
<div id="theme-settings" class="section level2">
<h2 class="hasAnchor">
<a href="#theme-settings" class="anchor"></a>Theme Settings</h2>
<p>The theme functions listed above are just wrappers around the central function of this package, <code><a href="../reference/style_xaringan.html">style_xaringan()</a></code>. If you want to start from the default <strong>xaringan</strong> theme and make a few modifications, start there.</p>
<p>All of the theme template variables are repeated in each of the theme functions (instead of relying on <code>...</code>) so that you can use autocompletion to find and change the defaults for any theme function. To override the default value of any theme functions, set the appropriate argument in the theme function. A table of all template variables is included in <a href="template-variables.html"><code><a href="../articles/template-variables.html">vignette("template-variables", "xaringanthemer")</a></code></a>.</p>
<p>As an example, try loading <code>xaringanthemer</code>, type out <code>style_duo_theme(</code> and then press <kbd>Tab</kbd> to see all of the theme options.</p>
<p>All of the theme options are named so that you first think of the element you want to change, then the property of that element.</p>
<p>Here are some of the <code>text_</code> theme options:</p>
<ul>
<li><code>text_color</code></li>
<li><code>text_bold_color</code></li>
<li><code>text_slide_number_color</code></li>
<li><code>text_font_size</code></li>
<li><code>text_slide_number_font_size</code></li>
<li><em>and more …</em></li>
</ul>
<p>And here are the title slide theme options:</p>
<ul>
<li><code>title_slide_text_color</code></li>
<li><code>title_slide_background_color</code></li>
<li><code>title_slide_background_image</code></li>
<li><code>title_slide_background_size</code></li>
<li><code>title_slide_background_position</code></li>
</ul>
</div>
<div id="adding-custom-css" class="section level2">
<h2 class="hasAnchor">
<a href="#adding-custom-css" class="anchor"></a>Adding Custom CSS</h2>
<p>You can also add custom CSS classes using the <code>extra_css</code> argument in the theme functions. This argument takes a named list of CSS definitions each containing a named list of CSS property-value pairs.</p>
<div class="sourceCode" id="cb13"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb13-1" data-line-number="1">extra_css &lt;-<span class="st"> </span><span class="kw"><a href="https://rdrr.io/r/base/list.html">list</a></span>(</a>
<a class="sourceLine" id="cb13-2" data-line-number="2"> <span class="st">".red"</span> =<span class="st"> </span><span class="kw"><a href="https://rdrr.io/r/base/list.html">list</a></span>(<span class="dt">color =</span> <span class="st">"red"</span>),</a>
<a class="sourceLine" id="cb13-3" data-line-number="3"> <span class="st">".small"</span> =<span class="st"> </span><span class="kw"><a href="https://rdrr.io/r/base/list.html">list</a></span>(<span class="st">"font-size"</span> =<span class="st"> "90%"</span>),</a>
<a class="sourceLine" id="cb13-4" data-line-number="4"> <span class="st">".full-width"</span> =<span class="st"> </span><span class="kw"><a href="https://rdrr.io/r/base/list.html">list</a></span>(</a>
<a class="sourceLine" id="cb13-5" data-line-number="5"> <span class="dt">display =</span> <span class="st">"flex"</span>,</a>
<a class="sourceLine" id="cb13-6" data-line-number="6"> <span class="dt">width =</span> <span class="st">"100%"</span>,</a>
<a class="sourceLine" id="cb13-7" data-line-number="7"> <span class="dt">flex =</span> <span class="st">"1 1 auto"</span></a>
<a class="sourceLine" id="cb13-8" data-line-number="8"> )</a>
<a class="sourceLine" id="cb13-9" data-line-number="9">)</a></code></pre></div>
<p>If you would rather keep your additional css definitions in a separate file, you can call <code><a href="../reference/style_extra_css.html">style_extra_css()</a></code> separately. Just be sure to include your new CSS file in the list of applied files in your YAML header.</p>
<div class="sourceCode" id="cb14"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb14-1" data-line-number="1"><span class="kw"><a href="../reference/style_extra_css.html">style_extra_css</a></span>(<span class="dt">css =</span> extra_css, <span class="dt">outfile =</span> <span class="st">"custom.css"</span>)</a></code></pre></div>
<div class="sourceCode" id="cb15"><pre class="sourceCode css"><code class="sourceCode css"><a class="sourceLine" id="cb15-1" data-line-number="1"><span class="co">/* Extra CSS */</span></a>
<a class="sourceLine" id="cb15-2" data-line-number="2"><span class="fu">.red</span> {</a>
<a class="sourceLine" id="cb15-3" data-line-number="3"> <span class="kw">color</span>: <span class="dv">red</span>;</a>
<a class="sourceLine" id="cb15-4" data-line-number="4">}</a>
<a class="sourceLine" id="cb15-5" data-line-number="5"><span class="fu">.small</span> {</a>
<a class="sourceLine" id="cb15-6" data-line-number="6"> <span class="kw">font-size</span>: <span class="dv">90%</span>;</a>
<a class="sourceLine" id="cb15-7" data-line-number="7">}</a>
<a class="sourceLine" id="cb15-8" data-line-number="8"><span class="fu">.full-width</span> {</a>
<a class="sourceLine" id="cb15-9" data-line-number="9"> <span class="kw">display</span>: flex;</a>
<a class="sourceLine" id="cb15-10" data-line-number="10"> <span class="kw">width</span>: <span class="dv">100%</span>;</a>
<a class="sourceLine" id="cb15-11" data-line-number="11"> <span class="kw">flex</span>: <span class="dv">1</span> <span class="dv">1</span> <span class="dv">auto</span>;</a>
<a class="sourceLine" id="cb15-12" data-line-number="12">}</a></code></pre></div>
<p>This is most helpful when wanting to define helper classes to work with the <a href="https://github.com/gnab/remark">remark.js</a> <code>.class[]</code> syntax. Using the above example, we could color text red <code>.red[like this]</code> or write <code>.small[in smaller font size]</code>.</p>
</div>
<div id="fonts" class="section level2">
<h2 class="hasAnchor">
<a href="#fonts" class="anchor"></a>Fonts</h2>
<!-- Need to set [adding-custom-css] -->
<p>Yihui picked out great fonts for the <a href="https://slides.yihui.name/xaringan/">default xaringan theme</a>, but sometimes you want something new and interesting.</p>
<p><strong>xaringanthemer</strong> makes it easy to use <a href="https://fonts.google.com">Google Fonts</a> in your presentations (well, as long as you have an internet connection) or to fully specify your font files.</p>
<p>To use <a href="https://fonts.google.com">Google Fonts</a>, set the <code>_font_google</code> theme arguments – <code>text_font_google</code>, <code>header_font_google</code>, <code>code_font_google</code> — using the <code><a href="../reference/google_font.html">google_font()</a></code> helper. See <code><a href="../reference/google_font.html">?google_font</a></code> for more info.</p>
<div class="sourceCode" id="cb16"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb16-1" data-line-number="1"><span class="kw"><a href="../reference/style_mono_light.html">style_mono_light</a></span>(</a>
<a class="sourceLine" id="cb16-2" data-line-number="2"> <span class="dt">header_font_google =</span> <span class="kw"><a href="../reference/google_font.html">google_font</a></span>(<span class="st">"Josefin Slab"</span>, <span class="st">"600"</span>),</a>
<a class="sourceLine" id="cb16-3" data-line-number="3"> <span class="dt">text_font_google =</span> <span class="kw"><a href="../reference/google_font.html">google_font</a></span>(<span class="st">"Work Sans"</span>, <span class="st">"300"</span>, <span class="st">"300i"</span>),</a>
<a class="sourceLine" id="cb16-4" data-line-number="4"> <span class="dt">code_font_google =</span> <span class="kw"><a href="../reference/google_font.html">google_font</a></span>(<span class="st">"IBM Plex Mono"</span>)</a>
<a class="sourceLine" id="cb16-5" data-line-number="5">)</a></code></pre></div>
<p>If you set an <code>xxx_font_google</code> theme arguments, then <code>xxx_font_family</code>, <code>xxx_font_weight</code> and <code>xxx_font_url</code> are overwritten – where <code>xxx</code> in <code>{header, text, code}</code>. Of course, you can manually set <code>header_font_url</code>, etc., and ignore the <code>header_font_google</code> argument.</p>
<p>For example, suppose you want to use a ligature font for the code font, such as <a href="https://github.com/yihui/xaringan/issues/83">Fira Code</a>. Just set <code>code_font_family</code> and <code>code_font_url</code>!</p>
<div class="sourceCode" id="cb17"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb17-1" data-line-number="1"><span class="kw"><a href="../reference/style_solarized_dark.html">style_solarized_dark</a></span>(</a>
<a class="sourceLine" id="cb17-2" data-line-number="2"> <span class="dt">code_font_family =</span> <span class="st">"Fira Code"</span>,</a>
<a class="sourceLine" id="cb17-3" data-line-number="3"> <span class="dt">code_font_url =</span> <span class="st">"https://cdn.rawgit.com/tonsky/FiraCode/1.204/distr/fira_code.css"</span></a>
<a class="sourceLine" id="cb17-4" data-line-number="4">)</a></code></pre></div>
<p>If you need to import additional fonts for use in <a href="#adding-custom-css">custom CSS definitions</a>, you can use the <code>extra_fonts</code> argument to pass a list of URLs or <code><a href="../reference/google_font.html">google_font()</a></code>s.</p>
<div class="sourceCode" id="cb18"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb18-1" data-line-number="1"><span class="kw"><a href="../reference/style_mono_light.html">style_mono_light</a></span>(</a>
<a class="sourceLine" id="cb18-2" data-line-number="2"> <span class="dt">extra_fonts =</span> <span class="kw"><a href="https://rdrr.io/r/base/list.html">list</a></span>(<span class="kw"><a href="../reference/google_font.html">google_font</a></span>(<span class="st">"Sofia"</span>)),</a>
<a class="sourceLine" id="cb18-3" data-line-number="3"> <span class="dt">extra_css =</span> <span class="kw"><a href="https://rdrr.io/r/base/list.html">list</a></span>(<span class="st">".title-slide h2"</span> =<span class="st"> </span><span class="kw"><a href="https://rdrr.io/r/base/list.html">list</a></span>(<span class="st">"font-family"</span> =<span class="st"> "Sofia"</span>))</a>
<a class="sourceLine" id="cb18-4" data-line-number="4">)</a></code></pre></div>
<hr>
<p><strong>xaringanthemer</strong> was built by <a href="https://www.garrickadenbuie.com">Garrick Aden-Buie</a> (<a href="https://twitter.com/grrrck">@grrrck</a>).</p>
<p>Big thank you to <a href="https://yihui.name">Yihui Xie</a>, especially for <a href="https://github.com/yihui/xaringan">xaringan</a>. Also thanks to <a href="http://gnab.org">Ole Petter Bang</a> for <a href="https://github.com/gnab/remark">remark.js</a>.</p>
<p>Feel free to <a href="https://github.com/gadenbuie/xaringanthemer/issues">file an issue</a> if you find a bug or have a theme suggestion – or better yet, submit a pull request!</p>
</div>
</div>

<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">

<div id="tocnav">
<h2 class="hasAnchor">
<a href="#tocnav" class="anchor"></a>Contents</h2>
<ul class="nav nav-pills nav-stacked">
<li><a href="#quick-intro">Quick Intro</a></li>
<li><a href="#themes">Themes</a></li>
<li><a href="#theme-settings">Theme Settings</a></li>
<li><a href="#adding-custom-css">Adding Custom CSS</a></li>
<li><a href="#fonts">Fonts</a></li>
</ul>
</div>
</div>

</div>



<footer><div class="copyright">
<p>Developed by <a href="https://www.garrickadenbuie.com">Garrick Aden-Buie</a>.</p>
</div>

<div class="pkgdown">
<p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.4.1.</p>
</div>

</footer>
</div>



</body>
</html>

+ 163
- 0
dev/authors.html Просмотреть файл

<!-- Generated by pkgdown: do not edit by hand -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Authors • xaringanthemer</title>


<!-- jquery -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<!-- Bootstrap -->

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha256-916EbMg70RQy9LHiGkXzG8hSg9EdNy97GazNG/aiY1w=" crossorigin="anonymous" />

<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha256-U5ZEeKfGNOja007MMD3YBI0A3OSZOQbeG6z2f2Y0hu8=" crossorigin="anonymous"></script>

<!-- Font Awesome icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/all.min.css" integrity="sha256-nAmazAk6vS34Xqo0BSrTb+abbtFlgsFK7NKSi6o7Y78=" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/v4-shims.min.css" integrity="sha256-6qHlizsOWFskGlwVOKuns+D1nB6ssZrHQrNj1wGplHc=" crossorigin="anonymous" />

<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.4/clipboard.min.js" integrity="sha256-FiZwavyI2V6+EXO1U+xzLG3IKldpiTFf3153ea9zikQ=" crossorigin="anonymous"></script>

<!-- headroom.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/headroom.min.js" integrity="sha256-DJFC1kqIhelURkuza0AvYal5RxMtpzLjFhsnVIeuk+U=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script>

<!-- pkgdown -->
<link href="pkgdown.css" rel="stylesheet">
<script src="pkgdown.js"></script>



<link href="extra.css" rel="stylesheet">

<meta property="og:title" content="Authors" />


<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]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->



</head>

<body>
<div class="container template-authors">
<header>
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<span class="navbar-brand">
<a class="navbar-link" href="index.html">xaringanthemer</a>
<span class="version label label-danger" data-toggle="tooltip" data-placement="bottom" title="In-development version">0.2.0.9100</span>
</span>
</div>

<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="articles/xaringanthemer.html">Get started</a>
</li>
<li>
<a href="reference/index.html">Reference</a>
</li>
<li>
<a href="articles/themes.html">Themes</a>
</li>
<li>
<a href="articles/fonts.html">Fonts</a>
</li>
<li>
<a href="articles/template-variables.html">Template Variables</a>
</li>
<li>
<a href="articles/css-help.html">CSS Help</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="https://github.com/gadenbuie/xaringanthemer">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
<li>
<a href="https://twitter.com/grrrck">
<span class="fa fa-twitter fa-lg"></span>
</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->


</header>

<div class="row">
<div class="contents col-md-9">
<div class="page-header">
<h1>Authors</h1>
</div>

<ul class="list-unstyled">
<li>
<p><strong><a href='https://www.garrickadenbuie.com'>Garrick Aden-Buie</a></strong>. Author, maintainer.
</p>
</li>
</ul>

</div>

</div>



<footer>
<div class="copyright">
<p>Developed by <a href='https://www.garrickadenbuie.com'>Garrick Aden-Buie</a>.</p>
</div>

<div class="pkgdown">
<p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.4.1.</p>
</div>

</footer>
</div>



</body>
</html>



+ 148
- 0
dev/docsearch.css
Разница между файлами не показана из-за своего большого размера
Просмотреть файл


+ 85
- 0
dev/docsearch.js Просмотреть файл

$(function() {

// register a handler to move the focus to the search bar
// upon pressing shift + "/" (i.e. "?")
$(document).on('keydown', function(e) {
if (e.shiftKey && e.keyCode == 191) {
e.preventDefault();
$("#search-input").focus();
}
});

$(document).ready(function() {
// do keyword highlighting
/* modified from https://jsfiddle.net/julmot/bL6bb5oo/ */
var mark = function() {

var referrer = document.URL ;
var paramKey = "q" ;

if (referrer.indexOf("?") !== -1) {
var qs = referrer.substr(referrer.indexOf('?') + 1);
var qs_noanchor = qs.split('#')[0];
var qsa = qs_noanchor.split('&');
var keyword = "";

for (var i = 0; i < qsa.length; i++) {
var currentParam = qsa[i].split('=');

if (currentParam.length !== 2) {
continue;
}

if (currentParam[0] == paramKey) {
keyword = decodeURIComponent(currentParam[1].replace(/\+/g, "%20"));
}
}

if (keyword !== "") {
$(".contents").unmark({
done: function() {
$(".contents").mark(keyword);
}
});
}
}
};

mark();
});
});

/* Search term highlighting ------------------------------*/

function matchedWords(hit) {
var words = [];

var hierarchy = hit._highlightResult.hierarchy;
// loop to fetch from lvl0, lvl1, etc.
for (var idx in hierarchy) {
words = words.concat(hierarchy[idx].matchedWords);
}

var content = hit._highlightResult.content;
if (content) {
words = words.concat(content.matchedWords);
}

// return unique words
var words_uniq = [...new Set(words)];
return words_uniq;
}

function updateHitURL(hit) {

var words = matchedWords(hit);
var url = "";

if (hit.anchor) {
url = hit.url_without_anchor + '?q=' + escape(words.join(" ")) + '#' + hit.anchor;
} else {
url = hit.url + '?q=' + escape(words.join(" "));
}

return url;
}

+ 15
- 0
dev/extra.css
Разница между файлами не показана из-за своего большого размера
Просмотреть файл


+ 397
- 0
dev/index.html Просмотреть файл

<!DOCTYPE html>
<!-- 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.0">
<title>Xaringan CSS Theme Generator • xaringanthemer</title>
<!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha256-916EbMg70RQy9LHiGkXzG8hSg9EdNy97GazNG/aiY1w=" crossorigin="anonymous">
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha256-U5ZEeKfGNOja007MMD3YBI0A3OSZOQbeG6z2f2Y0hu8=" crossorigin="anonymous"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/all.min.css" integrity="sha256-nAmazAk6vS34Xqo0BSrTb+abbtFlgsFK7NKSi6o7Y78=" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/v4-shims.min.css" integrity="sha256-6qHlizsOWFskGlwVOKuns+D1nB6ssZrHQrNj1wGplHc=" crossorigin="anonymous">
<!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.4/clipboard.min.js" integrity="sha256-FiZwavyI2V6+EXO1U+xzLG3IKldpiTFf3153ea9zikQ=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/headroom.min.js" integrity="sha256-DJFC1kqIhelURkuza0AvYal5RxMtpzLjFhsnVIeuk+U=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="pkgdown.css" rel="stylesheet">
<script src="pkgdown.js"></script><link href="extra.css" rel="stylesheet">
<meta property="og:title" content="Xaringan CSS Theme Generator">
<meta property="og:description" content="Give your xaringan slides some style with xaringanthemer.
Easy slide and plot themes for xaringan slides.
">
<meta name="twitter:card" content="summary">
<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]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container template-home">
<header><div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<span class="navbar-brand">
<a class="navbar-link" href="index.html">xaringanthemer</a>
<span class="version label label-danger" data-toggle="tooltip" data-placement="bottom" title="In-development version">0.2.0.9100</span>
</span>
</div>

<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="articles/xaringanthemer.html">Get started</a>
</li>
<li>
<a href="reference/index.html">Reference</a>
</li>
<li>
<a href="articles/themes.html">Themes</a>
</li>
<li>
<a href="articles/fonts.html">Fonts</a>
</li>
<li>
<a href="articles/template-variables.html">Template Variables</a>
</li>
<li>
<a href="articles/css-help.html">CSS Help</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="https://github.com/gadenbuie/xaringanthemer">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
<li>
<a href="https://twitter.com/grrrck">
<span class="fa fa-twitter fa-lg"></span>
</a>
</li>
</ul>
</div>
<!--/.nav-collapse -->
</div>
<!--/.container -->
</div>
<!--/.navbar -->


</header><div class="row">
<div class="contents col-md-9">
<div id="xaringanthemer" class="section level1">
<div class="page-header"><h1 class="hasAnchor">
<a href="#xaringanthemer" class="anchor"></a>xaringanthemer</h1></div>
<!-- badges: start -->

<p>Give your <a href="https://github.com/yihui/xaringan">xaringan</a> slides some style with <strong>xaringanthemer</strong> within your <code>slides.Rmd</code> file without (much) CSS.</p>
<p><img src="https://raw.githubusercontent.com/gadenbuie/xaringanthemer/assets/examples.gif" alt="Animation previewing many xaringanthemer themes"></p>
<ul>
<li><a href="#installation">Installation</a></li>
<li><a href="#quick-intro">Quick Intro</a></li>
<li>
<a href="#themes">Themes</a>
<ul>
<li><a href="#monotone">Monotone</a></li>
<li><a href="#duotone">Duotone</a></li>
<li><a href="#solarized">Solarized</a></li>
</ul>
</li>
<li><a href="#theme-settings">Theme Settings</a></li>
<li><a href="#adding-custom-css">Adding Custom CSS</a></li>
<li><a href="#fonts">Fonts</a></li>
</ul>
<div id="installation" class="section level2">
<h2 class="hasAnchor">
<a href="#installation" class="anchor"></a>Installation</h2>
<p>You can install <strong>xaringanthemer</strong> from CRAN</p>
<div class="sourceCode" id="cb1"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb1-1" data-line-number="1"><span class="kw"><a href="https://rdrr.io/r/utils/install.packages.html">install.packages</a></span>(<span class="st">"xaringanthemer"</span>)</a></code></pre></div>
<p>or you can install the development version of xaringanthemer from <a href="https://github.com/gadenbuie/xaringanthemer">GitHub</a>.</p>
<div class="sourceCode" id="cb2"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb2-1" data-line-number="1"><span class="co"># install.packages("devtools")</span></a>
<a class="sourceLine" id="cb2-2" data-line-number="2">devtools<span class="op">::</span><span class="kw">install_github</span>(<span class="st">"gadenbuie/xaringanthemer"</span>)</a></code></pre></div>
</div>
<div id="quick-intro" class="section level2">
<h2 class="hasAnchor">
<a href="#quick-intro" class="anchor"></a>Quick Intro</h2>
<!-- Set link to theme-settings, template-variables, theme functions -->
<p>First, add the <code>xaringan-themer.css</code> file to the YAML header of your xaringan slides.</p>
<div class="sourceCode" id="cb3"><pre class="sourceCode yaml"><code class="sourceCode yaml"><a class="sourceLine" id="cb3-1" data-line-number="1"><span class="fu">output:</span></a>
<a class="sourceLine" id="cb3-2" data-line-number="2"> <span class="fu">xaringan:</span><span class="at">:moon_reader:</span></a>
<a class="sourceLine" id="cb3-3" data-line-number="3"> <span class="fu">lib_dir:</span><span class="at"> libs</span></a>
<a class="sourceLine" id="cb3-4" data-line-number="4"> <span class="fu">css:</span><span class="at"> xaringan-themer.css</span></a></code></pre></div>
<p>Then, in a hidden chunk just after the knitr setup chunk, load <strong>xaringanthemer</strong> and try one of the <a href="#themes">theme functions</a>.</p>
<div class="sourceCode" id="cb4"><pre class="sourceCode markdown"><code class="sourceCode markdown"><a class="sourceLine" id="cb4-1" data-line-number="1">```{r xaringan-themer, include = FALSE}</a>
<a class="sourceLine" id="cb4-2" data-line-number="2">library(xaringanthemer)</a>
<a class="sourceLine" id="cb4-3" data-line-number="3">style_mono_light(</a>
<a class="sourceLine" id="cb4-4" data-line-number="4"> base_color = "#1c5253",</a>
<a class="sourceLine" id="cb4-5" data-line-number="5"> header_font_google = google_font("Josefin Sans"),</a>
<a class="sourceLine" id="cb4-6" data-line-number="6"> text_font_google = google_font("Montserrat", "300", "300i"),</a>
<a class="sourceLine" id="cb4-7" data-line-number="7"> code_font_google = google_font("Droid Mono")</a>
<a class="sourceLine" id="cb4-8" data-line-number="8">)</a>
<a class="sourceLine" id="cb4-9" data-line-number="9">```</a></code></pre></div>
<p><img src="https://raw.githubusercontent.com/gadenbuie/xaringanthemer/assets/example_mono_light_1c5253.png" alt="Example title and normal slides using a green xaringanthemer theme"></p>
<div id="tab-completion" class="section level3">
<h3 class="hasAnchor">
<a href="#tab-completion" class="anchor"></a>Tab Completion</h3>
<p><strong>xaringanthemer</strong> is <kbd>Tab</kbd> friendly – <a href="#theme-settings">use autocomplete to explore</a> the <a href="vignettes/template-variables.html">template variables</a> that you can adjust in each of the themes!</p>
<p><img src="https://raw.githubusercontent.com/gadenbuie/xaringanthemer/assets/example-rstudio-completion.gif" alt="Demonstration of argument auto-completion with RStudio"></p>
</div>
<div id="r-markdown-template-in-rstudio" class="section level3">
<h3 class="hasAnchor">
<a href="#r-markdown-template-in-rstudio" class="anchor"></a>R Markdown Template in RStudio</h3>
<p>You can also skip the above and just create a <em>Ninja Themed Presentation</em> from the New R Markdown Document menu in RStudio.</p>
<center>

<img src="https://raw.githubusercontent.com/gadenbuie/xaringanthemer/assets/rmarkdown-template-screenshot.png" alt="The 'New R Markdown Document' menu in RStudio">
</center>
</div>
</div>
<div id="themes" class="section level2">
<h2 class="hasAnchor">
<a href="#themes" class="anchor"></a>Themes</h2>
<div id="monotone" class="section level3">
<h3 class="hasAnchor">
<a href="#monotone" class="anchor"></a>Monotone</h3>
<p>Use these functions to automatically create a consistent color palette for your slides, based around a single color.</p>
<div id="style_mono_light" class="section level4">
<h4 class="hasAnchor">
<a href="#style_mono_light" class="anchor"></a><code>style_mono_light()</code>
</h4>
<p>A light theme based around a single color.</p>
<div class="sourceCode" id="cb5"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb5-1" data-line-number="1"><span class="kw"><a href="reference/style_mono_light.html">style_mono_light</a></span>(<span class="dt">base_color =</span> <span class="st">"#23395b"</span>)</a></code></pre></div>
<p><img src="https://raw.githubusercontent.com/gadenbuie/xaringanthemer/assets/example_mono_light.png"></p>
</div>
<div id="style_mono_dark" class="section level4">
<h4 class="hasAnchor">
<a href="#style_mono_dark" class="anchor"></a><code>style_mono_dark()</code>
</h4>
<p>A dark theme based around a single color.</p>
<div class="sourceCode" id="cb6"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb6-1" data-line-number="1"><span class="kw"><a href="reference/style_mono_dark.html">style_mono_dark</a></span>(<span class="dt">base_color =</span> <span class="st">"#cbf7ed"</span>)</a></code></pre></div>
<p><img src="https://raw.githubusercontent.com/gadenbuie/xaringanthemer/assets/example_mono_dark.png"></p>
</div>
<div id="style_mono_accent" class="section level4">
<h4 class="hasAnchor">
<a href="#style_mono_accent" class="anchor"></a><code>style_mono_accent()</code>
</h4>
<p>The default xaringan theme with a single color used for color accents on select elements (headers, bold text, etc.).</p>
<div class="sourceCode" id="cb7"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb7-1" data-line-number="1"><span class="kw"><a href="reference/style_mono_accent.html">style_mono_accent</a></span>(<span class="dt">base_color =</span> <span class="st">"#43418A"</span>)</a></code></pre></div>
<p><img src="https://raw.githubusercontent.com/gadenbuie/xaringanthemer/assets/example_mono_accent.png"></p>
</div>
<div id="style_mono_accent_inverse" class="section level4">
<h4 class="hasAnchor">
<a href="#style_mono_accent_inverse" class="anchor"></a><code>style_mono_accent_inverse()</code>
</h4>
<p>An “inverted” default xaringan theme with a single color used for color accents on select elements (headers, bold text, etc.).</p>
<div class="sourceCode" id="cb8"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb8-1" data-line-number="1"><span class="kw"><a href="reference/style_mono_accent_inverse.html">style_mono_accent_inverse</a></span>(<span class="dt">base_color =</span> <span class="st">"#3C989E"</span>)</a></code></pre></div>
<p><img src="https://raw.githubusercontent.com/gadenbuie/xaringanthemer/assets/example_mono_accent_inverse.png"></p>
</div>
</div>
<div id="duotone" class="section level3">
<h3 class="hasAnchor">
<a href="#duotone" class="anchor"></a>Duotone</h3>
<p>These themes build from two (ideally) complementary colors.</p>
<div id="style_duo" class="section level4">
<h4 class="hasAnchor">
<a href="#style_duo" class="anchor"></a><code>style_duo()</code>
</h4>
<p>A two-colored theme based on a primary and secondary color.</p>
<div class="sourceCode" id="cb9"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb9-1" data-line-number="1"><span class="kw"><a href="reference/style_duo.html">style_duo</a></span>(<span class="dt">primary_color =</span> <span class="st">"#1F4257"</span>, <span class="dt">secondary_color =</span> <span class="st">"#F97B64"</span>)</a></code></pre></div>
<p><img src="https://raw.githubusercontent.com/gadenbuie/xaringanthemer/assets/example_duo.png"></p>
</div>
<div id="style_duo_accent" class="section level4">
<h4 class="hasAnchor">
<a href="#style_duo_accent" class="anchor"></a><code>style_duo_accent()</code>
</h4>
<p>The default Xaringan theme with two accent colors.</p>
<div class="sourceCode" id="cb10"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb10-1" data-line-number="1"><span class="kw"><a href="reference/style_duo_accent.html">style_duo_accent</a></span>(<span class="dt">primary_color =</span> <span class="st">"#006747"</span>, <span class="dt">secondary_color =</span> <span class="st">"#CFC493"</span>)</a></code></pre></div>
<p><img src="https://raw.githubusercontent.com/gadenbuie/xaringanthemer/assets/example_duo_accent.png"></p>
</div>
<div id="style_duo_accent_inverse" class="section level4">
<h4 class="hasAnchor">
<a href="#style_duo_accent_inverse" class="anchor"></a><code>style_duo_accent_inverse()</code>
</h4>
<p>An “inverted” default Xaringan theme with two accent colors.</p>
<div class="sourceCode" id="cb11"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb11-1" data-line-number="1"><span class="kw"><a href="reference/style_duo_accent_inverse.html">style_duo_accent_inverse</a></span>(<span class="dt">primary_color =</span> <span class="st">"#006747"</span>, <span class="dt">secondary_color =</span> <span class="st">"#CFC493"</span>)</a></code></pre></div>
<p><img src="https://raw.githubusercontent.com/gadenbuie/xaringanthemer/assets/example_duo_accent_inverse.png"></p>
</div>
</div>
<div id="solarized" class="section level3">
<h3 class="hasAnchor">
<a href="#solarized" class="anchor"></a>Solarized</h3>
<p>There are also two themes based around the <a href="http://ethanschoonover.com/solarized">solarized color palette</a>, <code><a href="reference/style_solarized_light.html">style_solarized_light()</a></code> and <code><a href="reference/style_solarized_dark.html">style_solarized_dark()</a></code>. For both themes, it is advisted to change the syntax highlighting theme to <code>solarized-light</code> or <code>solarized-dark</code> (looks great paired or constrasted).</p>
<div id="style_solarized_light" class="section level4">
<h4 class="hasAnchor">
<a href="#style_solarized_light" class="anchor"></a><code>style_solarized_light()</code>
</h4>
<div class="sourceCode" id="cb12"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb12-1" data-line-number="1"><span class="kw"><a href="reference/style_solarized_light.html">style_solarized_light</a></span>()</a></code></pre></div>
<p><img src="https://raw.githubusercontent.com/gadenbuie/xaringanthemer/assets/example_solarized_light.png"></p>
</div>
<div id="style_solarized_dark" class="section level4">
<h4 class="hasAnchor">
<a href="#style_solarized_dark" class="anchor"></a><code>style_solarized_dark()</code>
</h4>
<div class="sourceCode" id="cb13"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb13-1" data-line-number="1"><span class="kw"><a href="reference/style_solarized_dark.html">style_solarized_dark</a></span>()</a></code></pre></div>
<p><img src="https://raw.githubusercontent.com/gadenbuie/xaringanthemer/assets/example_solarized_dark.png"></p>
<p>To do this, your YAML header should look more-or-less like this:</p>
<div class="sourceCode" id="cb14"><pre class="sourceCode yaml"><code class="sourceCode yaml"><a class="sourceLine" id="cb14-1" data-line-number="1"><span class="fu">output:</span></a>
<a class="sourceLine" id="cb14-2" data-line-number="2"> <span class="fu">xaringan:</span><span class="at">:moon_reader:</span></a>
<a class="sourceLine" id="cb14-3" data-line-number="3"> <span class="fu">lib_dir:</span><span class="at"> libs</span></a>
<a class="sourceLine" id="cb14-4" data-line-number="4"> <span class="fu">css:</span><span class="at"> </span><span class="kw"><a href="https://rdrr.io/r/base/Extract.html">[</a></span><span class="st">"xaringan-themer.css"</span><span class="kw">]</span></a>
<a class="sourceLine" id="cb14-5" data-line-number="5"> <span class="fu">nature:</span></a>
<a class="sourceLine" id="cb14-6" data-line-number="6"> <span class="fu">highlightStyle:</span><span class="at"> solarized-dark</span></a>
<a class="sourceLine" id="cb14-7" data-line-number="7"> <span class="fu">highlightLines:</span><span class="at"> true</span></a>
<a class="sourceLine" id="cb14-8" data-line-number="8"> <span class="fu">countIncrementalSlides:</span><span class="at"> false</span></a></code></pre></div>
</div>
</div>
</div>
<div id="theme-settings" class="section level2">
<h2 class="hasAnchor">
<a href="#theme-settings" class="anchor"></a>Theme Settings</h2>
<p>The theme functions listed above are just wrappers around the central function of this package, <code><a href="reference/style_xaringan.html">style_xaringan()</a></code>. If you want to start from the default <strong>xaringan</strong> theme and make a few modifications, start there.</p>
<p>All of the <a href="vignettes/template-variables.html">theme template variables</a> are repeated in each of the theme functions (instead of relying on <code>...</code>) so that you can use autocompletion to find and change the defaults for any theme function. To override the default value of any theme functions, set the appropriate argument in the theme function. A table of all template variables is included in <a href="vignettes/template-variables.html"><code><a href="articles/template-variables.html">vignette("template-variables", "xaringanthemer")</a></code></a>.</p>
<p>As an example, try loading <code>xaringanthemer</code>, type out <code>duo_theme(</code> and then press <kbd>Tab</kbd> to see all of the theme options.</p>
<p>All of the theme options are named so that you first think of the element you want to change, then the property of that element.</p>
<p>Here are some of the <code>text_</code> theme options:</p>
<ul>
<li><code>text_color</code></li>
<li><code>text_bold_color</code></li>
<li><code>text_slide_number_color</code></li>
<li><code>text_font_size</code></li>
<li><code>text_slide_number_font_size</code></li>
<li><em>and more …</em></li>
</ul>
<p>And here are the title slide theme options:</p>
<ul>
<li><code>title_slide_text_color</code></li>
<li><code>title_slide_background_color</code></li>
<li><code>title_slide_background_image</code></li>
<li><code>title_slide_background_size</code></li>
<li><code>title_slide_background_position</code></li>
</ul>
</div>
<div id="adding-custom-css" class="section level2">
<h2 class="hasAnchor">
<a href="#adding-custom-css" class="anchor"></a>Adding Custom CSS</h2>
<p>You can also add custom CSS classes using the <code>extra_css</code> argument in the theme functions. This argument takes a named list of CSS definitions each containing a named list of CSS property-value pairs.</p>
<div class="sourceCode" id="cb15"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb15-1" data-line-number="1">extra_css &lt;-<span class="st"> </span><span class="kw"><a href="https://rdrr.io/r/base/list.html">list</a></span>(</a>
<a class="sourceLine" id="cb15-2" data-line-number="2"> <span class="st">".red"</span> =<span class="st"> </span><span class="kw"><a href="https://rdrr.io/r/base/list.html">list</a></span>(<span class="dt">color =</span> <span class="st">"red"</span>),</a>
<a class="sourceLine" id="cb15-3" data-line-number="3"> <span class="st">".small"</span> =<span class="st"> </span><span class="kw"><a href="https://rdrr.io/r/base/list.html">list</a></span>(<span class="st">"font-size"</span> =<span class="st"> "90%"</span>),</a>
<a class="sourceLine" id="cb15-4" data-line-number="4"> <span class="st">".full-width"</span> =<span class="st"> </span><span class="kw"><a href="https://rdrr.io/r/base/list.html">list</a></span>(</a>
<a class="sourceLine" id="cb15-5" data-line-number="5"> <span class="dt">display =</span> <span class="st">"flex"</span>,</a>
<a class="sourceLine" id="cb15-6" data-line-number="6"> <span class="dt">width =</span> <span class="st">"100%"</span>,</a>
<a class="sourceLine" id="cb15-7" data-line-number="7"> <span class="dt">flex =</span> <span class="st">"1 1 auto"</span></a>
<a class="sourceLine" id="cb15-8" data-line-number="8"> )</a>
<a class="sourceLine" id="cb15-9" data-line-number="9">)</a></code></pre></div>
<p>If you would rather keep your additional css definitions in a separate file, you can call <code><a href="reference/style_extra_css.html">style_extra_css()</a></code> separately. Just be sure to include your new CSS file in the list of applied files in your YAML header.</p>
<div class="sourceCode" id="cb16"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb16-1" data-line-number="1"><span class="kw"><a href="reference/style_extra_css.html">style_extra_css</a></span>(<span class="dt">css =</span> extra_css, <span class="dt">outfile =</span> <span class="st">"custom.css"</span>)</a></code></pre></div>
<div class="sourceCode" id="cb17"><pre class="sourceCode css"><code class="sourceCode css"><a class="sourceLine" id="cb17-1" data-line-number="1"><span class="co">/* Extra CSS */</span></a>
<a class="sourceLine" id="cb17-2" data-line-number="2"><span class="fu">.red</span> {</a>
<a class="sourceLine" id="cb17-3" data-line-number="3"> <span class="kw">color</span>: <span class="dv">red</span>;</a>
<a class="sourceLine" id="cb17-4" data-line-number="4">}</a>
<a class="sourceLine" id="cb17-5" data-line-number="5"><span class="fu">.small</span> {</a>
<a class="sourceLine" id="cb17-6" data-line-number="6"> <span class="kw">font-size</span>: <span class="dv">90%</span>;</a>
<a class="sourceLine" id="cb17-7" data-line-number="7">}</a>
<a class="sourceLine" id="cb17-8" data-line-number="8"><span class="fu">.full-width</span> {</a>
<a class="sourceLine" id="cb17-9" data-line-number="9"> <span class="kw">display</span>: flex;</a>
<a class="sourceLine" id="cb17-10" data-line-number="10"> <span class="kw">width</span>: <span class="dv">100%</span>;</a>
<a class="sourceLine" id="cb17-11" data-line-number="11"> <span class="kw">flex</span>: <span class="dv">1</span> <span class="dv">1</span> <span class="dv">auto</span>;</a>
<a class="sourceLine" id="cb17-12" data-line-number="12">}</a></code></pre></div>
<p>This is most helpful when wanting to define helper classes to work with the <a href="https://github.com/gnab/remark">remark.js</a> <code>.class[]</code> syntax. Using the above example, we could color text red <code>.red[like this]</code> or write <code>.small[in smaller font size]</code>.</p>
</div>
<div id="fonts" class="section level2">
<h2 class="hasAnchor">
<a href="#fonts" class="anchor"></a>Fonts</h2>
<!-- Need to set [adding-custom-css] -->
<p>Yihui picked out great fonts for the <a href="https://slides.yihui.name/xaringan/">default xaringan theme</a>, but sometimes you want something new and interesting.</p>
<p><strong>xaringanthemer</strong> makes it easy to use <a href="https://fonts.google.com">Google Fonts</a> in your presentations (well, as long as you have an internet connection) or to fully specify your font files.</p>
<p>To use <a href="https://fonts.google.com">Google Fonts</a>, set the <code>_font_google</code> theme arguments – <code>text_font_google</code>, <code>header_font_google</code>, <code>code_font_google</code> — using the <code><a href="reference/google_font.html">google_font()</a></code> helper. See <code><a href="reference/google_font.html">?google_font</a></code> for more info.</p>
<div class="sourceCode" id="cb18"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb18-1" data-line-number="1"><span class="kw"><a href="reference/style_mono_light.html">style_mono_light</a></span>(</a>
<a class="sourceLine" id="cb18-2" data-line-number="2"> <span class="dt">header_font_google =</span> <span class="kw"><a href="reference/google_font.html">google_font</a></span>(<span class="st">"Josefin Slab"</span>, <span class="st">"600"</span>),</a>
<a class="sourceLine" id="cb18-3" data-line-number="3"> <span class="dt">text_font_google =</span> <span class="kw"><a href="reference/google_font.html">google_font</a></span>(<span class="st">"Work Sans"</span>, <span class="st">"300"</span>, <span class="st">"300i"</span>),</a>
<a class="sourceLine" id="cb18-4" data-line-number="4"> <span class="dt">code_font_google =</span> <span class="kw"><a href="reference/google_font.html">google_font</a></span>(<span class="st">"IBM Plex Mono"</span>)</a>
<a class="sourceLine" id="cb18-5" data-line-number="5">)</a></code></pre></div>
<p>If you set an <code>xxx_font_google</code> theme arguments, then <code>xxx_font_family</code>, <code>xxx_font_weight</code> and <code>xxx_font_url</code> are overwritten – where <code>xxx</code> in <code>{header, text, code}</code>. Of course, you can manually set <code>header_font_url</code>, etc., and ignore the <code>header_font_google</code> argument.</p>
<p>For example, suppose you want to use a ligature font for the code font, such as <a href="https://github.com/yihui/xaringan/issues/83">Fira Code</a>. Just set <code>code_font_family</code> and <code>code_font_url</code>!</p>
<div class="sourceCode" id="cb19"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb19-1" data-line-number="1"><span class="kw"><a href="reference/style_solarized_dark.html">style_solarized_dark</a></span>(</a>
<a class="sourceLine" id="cb19-2" data-line-number="2"> <span class="dt">code_font_family =</span> <span class="st">"Fira Code"</span>,</a>
<a class="sourceLine" id="cb19-3" data-line-number="3"> <span class="dt">code_font_url =</span> <span class="st">"https://cdn.rawgit.com/tonsky/FiraCode/1.204/distr/fira_code.css"</span></a>
<a class="sourceLine" id="cb19-4" data-line-number="4">)</a></code></pre></div>
<p>If you need to import additional fonts for use in <a href="#adding-custom-css">custom CSS definitions</a>, you can use the <code>extra_fonts</code> argument to pass a list of URLs or <code><a href="reference/google_font.html">google_font()</a></code>s.</p>
<div class="sourceCode" id="cb20"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb20-1" data-line-number="1"><span class="kw"><a href="reference/style_mono_light.html">style_mono_light</a></span>(</a>
<a class="sourceLine" id="cb20-2" data-line-number="2"> <span class="dt">extra_fonts =</span> <span class="kw"><a href="https://rdrr.io/r/base/list.html">list</a></span>(<span class="kw"><a href="reference/google_font.html">google_font</a></span>(<span class="st">"Sofia"</span>)),</a>
<a class="sourceLine" id="cb20-3" data-line-number="3"> <span class="dt">extra_css =</span> <span class="kw"><a href="https://rdrr.io/r/base/list.html">list</a></span>(<span class="st">".title-slide h2"</span> =<span class="st"> </span><span class="kw"><a href="https://rdrr.io/r/base/list.html">list</a></span>(<span class="st">"font-family"</span> =<span class="st"> "Sofia"</span>))</a>
<a class="sourceLine" id="cb20-4" data-line-number="4">)</a></code></pre></div>
<hr>
<p><strong>xaringanthemer</strong> was built by <a href="https://www.garrickadenbuie.com">Garrick Aden-Buie</a> (<a href="https://twitter.com/grrrck">@grrrck</a>).</p>
<p>Big thank you to <a href="https://yihui.name">Yihui Xie</a>, especially for <a href="https://github.com/yihui/xaringan">xaringan</a>. Also thanks to <a href="http://gnab.org">Ole Petter Bang</a> for <a href="https://github.com/gnab/remark">remark.js</a>.</p>
<p>Feel free to <a href="https://github.com/gadenbuie/xaringanthemer/issues">file an issue</a> if you find a bug or have a theme suggestion – or better yet, submit a pull request!</p>
</div>
</div>
</div>

<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
<div class="links">
<h2>Links</h2>
<ul class="list-unstyled">
<li>Browse source code at <br><a href="https://github.com/gadenbuie/xaringanthemer">https://​github.com/​gadenbuie/​xaringanthemer</a>
</li>
<li>Report a bug at <br><a href="https://github.com/gadenbuie/xaringanthemer/issues">https://​github.com/​gadenbuie/​xaringanthemer/​issues</a>
</li>
</ul>
</div>
<div class="license">
<h2>License</h2>
<ul class="list-unstyled">
<li><a href="LICENSE.html">Full license</a></li>
<li><small><a href="https://opensource.org/licenses/mit-license.php">MIT</a> + file <a href="LICENSE-text.html">LICENSE</a></small></li>
</ul>
</div>
<div class="developers">
<h2>Developers</h2>
<ul class="list-unstyled">
<li>
<a href="https://www.garrickadenbuie.com">Garrick Aden-Buie</a> <br><small class="roles"> Author, maintainer </small> </li>
</ul>
</div>

<div class="dev-status">
<h2>Dev status</h2>
<ul class="list-unstyled">
<li><a href="https://CRAN.R-project.org/package=xaringanthemer"><img src="https://www.r-pkg.org/badges/version/xaringanthemer" alt="CRAN status"></a></li>
<li><a href="https://www.tidyverse.org/lifecycle/#stable"><img src="https://img.shields.io/badge/lifecycle-stable-brightgreen.svg" alt="Lifecycle: stable"></a></li>
<li><a href="https://travis-ci.org/gadenbuie/xaringanthemer"><img src="https://travis-ci.org/gadenbuie/xaringanthemer.svg?branch=master" alt="travis"></a></li>
<li><a href="https://codecov.io/github/gadenbuie/xaringanthemer"><img src="https://img.shields.io/codecov/c/github/gadenbuie/xaringanthemer" alt="Codecov"></a></li>
</ul>
</div>
</div>
</div>


<footer><div class="copyright">
<p>Developed by <a href="https://www.garrickadenbuie.com">Garrick Aden-Buie</a>.</p>
</div>

<div class="pkgdown">
<p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.4.1.</p>
</div>

</footer>
</div>



</body>
</html>

+ 12
- 0
dev/link.svg Просмотреть файл

<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 19.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 20 20" style="enable-background:new 0 0 20 20;" xml:space="preserve">
<style type="text/css">
.st0{fill:#75AADB;}
</style>
<path class="st0" d="M4,11.3h1.3v1.3H4c-2,0-4-2.3-4-4.7s2.1-4.7,4-4.7h5.3c1.9,0,4,2.3,4,4.7c0,1.9-1.2,3.6-2.7,4.3v-1.5
C11.4,10.2,12,9.1,12,8c0-1.7-1.4-3.3-2.7-3.3H4C2.7,4.7,1.3,6.3,1.3,8S2.7,11.3,4,11.3z M16,7.3h-1.3v1.3H16c1.3,0,2.7,1.6,2.7,3.3
s-1.4,3.3-2.7,3.3h-5.3C9.4,15.3,8,13.7,8,12c0-1.1,0.6-2.2,1.3-2.8V7.7C7.9,8.4,6.7,10.1,6.7,12c0,2.4,2.1,4.7,4,4.7H16
c1.9,0,4-2.3,4-4.7S18,7.3,16,7.3z"/>
</svg>

+ 183
- 0
dev/news/index.html Просмотреть файл

<!-- Generated by pkgdown: do not edit by hand -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Changelog • xaringanthemer</title>


<!-- jquery -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<!-- Bootstrap -->

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha256-916EbMg70RQy9LHiGkXzG8hSg9EdNy97GazNG/aiY1w=" crossorigin="anonymous" />

<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha256-U5ZEeKfGNOja007MMD3YBI0A3OSZOQbeG6z2f2Y0hu8=" crossorigin="anonymous"></script>

<!-- Font Awesome icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/all.min.css" integrity="sha256-nAmazAk6vS34Xqo0BSrTb+abbtFlgsFK7NKSi6o7Y78=" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/v4-shims.min.css" integrity="sha256-6qHlizsOWFskGlwVOKuns+D1nB6ssZrHQrNj1wGplHc=" crossorigin="anonymous" />

<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.4/clipboard.min.js" integrity="sha256-FiZwavyI2V6+EXO1U+xzLG3IKldpiTFf3153ea9zikQ=" crossorigin="anonymous"></script>

<!-- headroom.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/headroom.min.js" integrity="sha256-DJFC1kqIhelURkuza0AvYal5RxMtpzLjFhsnVIeuk+U=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script>

<!-- pkgdown -->
<link href="../pkgdown.css" rel="stylesheet">
<script src="../pkgdown.js"></script>



<link href="../extra.css" rel="stylesheet">

<meta property="og:title" content="Changelog" />


<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]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->



</head>

<body>
<div class="container template-news">
<header>
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">xaringanthemer</a>
<span class="version label label-danger" data-toggle="tooltip" data-placement="bottom" title="In-development version">0.2.0.9100</span>
</span>
</div>

<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="../index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="../articles/xaringanthemer.html">Get started</a>
</li>
<li>
<a href="../reference/index.html">Reference</a>
</li>
<li>
<a href="../articles/themes.html">Themes</a>
</li>
<li>
<a href="../articles/fonts.html">Fonts</a>
</li>
<li>
<a href="../articles/template-variables.html">Template Variables</a>
</li>
<li>
<a href="../articles/css-help.html">CSS Help</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="https://github.com/gadenbuie/xaringanthemer">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
<li>
<a href="https://twitter.com/grrrck">
<span class="fa fa-twitter fa-lg"></span>
</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->


</header>

<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
<h1>Changelog <small></small></h1>
<small>Source: <a href='https://github.com/gadenbuie/xaringanthemer/blob/master/NEWS.md'><code>NEWS.md</code></a></small>
</div>

<div id="xaringanthemer-0-3-0-dev" class="section level1">
<h1 class="page-header">
<a href="#xaringanthemer-0-3-0-dev" class="anchor"></a>xaringanthemer 0.3.0 (dev)</h1>
<ul>
<li><p>Adds <code><a href="../reference/theme_xaringan.html">theme_xaringan()</a></code>, a ggplot2 theme that automatically uses the colors and font styles of your xaringanthemer style. Also adds <code>scale_xaringan_color()</code> and <code>scale_xaringan_fill()</code> functions that use the primary colors for the color or fill aesthetics. These theme functions currently do not work when knitr caching is enabled and require that the xaringanthemer style functions are called within your xaringan slides Rmd file.</p></li>
<li><p>Renamed all xaringanthemer functions that create CSS styles to use the prefix “<code>style_</code>”. For example, <code><a href="../reference/xaringanthemer-deprecated.html">mono_light()</a></code> is now <code><a href="../reference/style_mono_light.html">style_mono_light()</a></code>. Additionally, <code><a href="../reference/xaringanthemer-deprecated.html">write_xaringan_theme()</a></code> is now <code><a href="../reference/style_xaringan.html">style_xaringan()</a></code> and <code><a href="../reference/xaringanthemer-deprecated.html">write_extra_css()</a></code> is <code><a href="../reference/style_extra_css.html">style_extra_css()</a></code>. Overall, this change makes the xarignanthemer API much cleaner and easier to navigate. Previous function names are deprecated but still work.</p></li>
<li><p>Added <code>background_header_auto</code> parameter that adds a background under the first <code>h1</code> element (i.e. <code># Slide Title</code>) on a slide. When enabled, the background is added automatically to slides, as long as they aren’t <code>inverse</code>, <code>center</code>, <code>middle</code>, or <code>bottom</code>-styled slides. When disabled, you can still enable slide title headers by adding the <code>header_background</code> class to a slide. (thanks, <a href='https://github.com/Btibert3'>@Btibert3</a>, <a href='https://github.com/gadenbuie/xaringanthemer/issues/10'>#10</a>)</p></li>
<li><p>The underlying template now uses the <code>whisker</code> package.</p></li>
</ul>
<div id="bugfixes-and-improvements" class="section level2">
<h2 class="hasAnchor">
<a href="#bugfixes-and-improvements" class="anchor"></a>Bugfixes and Improvements</h2>
<ul>
<li><p>Better handling of multiple <code>extra_fonts</code>, including improved error messages. (Thanks <a href='https://github.com/pat-s'>@pat-s</a>, <a href='https://github.com/gadenbuie/xaringanthemer/issues/19'>#19</a>).</p></li>
<li><p><code><a href="../reference/style_extra_css.html">style_extra_css()</a></code> (previously <code><a href="../reference/xaringanthemer-deprecated.html">write_extra_css()</a></code>) gained an <code>append</code> argument so that it can append to or overwrite an existing file (thanks <a href='https://github.com/pat-s'>@pat-s</a>, <a href='https://github.com/gadenbuie/xaringanthemer/issues/17'>#17</a>).</p></li>
</ul>
</div>
</div>
</div>

<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
<div id="tocnav">
<h2>Contents</h2>
<ul class="nav nav-pills nav-stacked">
<li><a href="#xaringanthemer-0-3-0-dev">0.3.0</a></li>
</ul>
</div>
</div>

</div>


<footer>
<div class="copyright">
<p>Developed by <a href='https://www.garrickadenbuie.com'>Garrick Aden-Buie</a>.</p>
</div>

<div class="pkgdown">
<p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.4.1.</p>
</div>

</footer>
</div>



</body>
</html>



+ 256
- 0
dev/pkgdown.css Просмотреть файл

/* Sticky footer */

/**
* Basic idea: https://philipwalton.github.io/solved-by-flexbox/demos/sticky-footer/
* Details: https://github.com/philipwalton/solved-by-flexbox/blob/master/assets/css/components/site.css
*
* .Site -> body > .container
* .Site-content -> body > .container .row
* .footer -> footer
*
* Key idea seems to be to ensure that .container and __all its parents__
* have height set to 100%
*
*/

html, body {
height: 100%;
}

body > .container {
display: flex;
height: 100%;
flex-direction: column;
}

body > .container .row {
flex: 1 0 auto;
}

footer {
margin-top: 45px;
padding: 35px 0 36px;
border-top: 1px solid #e5e5e5;
color: #666;
display: flex;
flex-shrink: 0;
}
footer p {
margin-bottom: 0;
}
footer div {
flex: 1;
}
footer .pkgdown {
text-align: right;
}
footer p {
margin-bottom: 0;
}

img.icon {
float: right;
}

img {
max-width: 100%;
}

/* Fix bug in bootstrap (only seen in firefox) */
summary {
display: list-item;
}

/* Typographic tweaking ---------------------------------*/

.contents .page-header {
margin-top: calc(-60px + 1em);
}

/* Section anchors ---------------------------------*/

a.anchor {
margin-left: -30px;
display:inline-block;
width: 30px;
height: 30px;
visibility: hidden;

background-image: url(./link.svg);
background-repeat: no-repeat;
background-size: 20px 20px;
background-position: center center;
}

.hasAnchor:hover a.anchor {
visibility: visible;
}

@media (max-width: 767px) {
.hasAnchor:hover a.anchor {
visibility: hidden;
}
}


/* Fixes for fixed navbar --------------------------*/

.contents h1, .contents h2, .contents h3, .contents h4 {
padding-top: 60px;
margin-top: -40px;
}

/* Sidebar --------------------------*/

#sidebar {
margin-top: 30px;
position: -webkit-sticky;
position: sticky;
top: 70px;
}
#sidebar h2 {
font-size: 1.5em;
margin-top: 1em;
}

#sidebar h2:first-child {
margin-top: 0;
}

#sidebar .list-unstyled li {
margin-bottom: 0.5em;
}

.orcid {
height: 16px;
/* margins are required by official ORCID trademark and display guidelines */
margin-left:4px;
margin-right:4px;
vertical-align: middle;
}

/* Reference index & topics ----------------------------------------------- */

.ref-index th {font-weight: normal;}

.ref-index td {vertical-align: top;}
.ref-index .icon {width: 40px;}
.ref-index .alias {width: 40%;}
.ref-index-icons .alias {width: calc(40% - 40px);}
.ref-index .title {width: 60%;}

.ref-arguments th {text-align: right; padding-right: 10px;}
.ref-arguments th, .ref-arguments td {vertical-align: top;}
.ref-arguments .name {width: 20%;}
.ref-arguments .desc {width: 80%;}

/* Nice scrolling for wide elements --------------------------------------- */

table {
display: block;
overflow: auto;
}

/* Syntax highlighting ---------------------------------------------------- */

pre {
word-wrap: normal;
word-break: normal;
border: 1px solid #eee;
}

pre, code {
background-color: #f8f8f8;
color: #333;
}

pre code {
overflow: auto;
word-wrap: normal;
white-space: pre;
}

pre .img {
margin: 5px 0;
}

pre .img img {
background-color: #fff;
display: block;
height: auto;
}

code a, pre a {
color: #375f84;
}

a.sourceLine:hover {
text-decoration: none;
}

.fl {color: #1514b5;}
.fu {color: #000000;} /* function */
.ch,.st {color: #036a07;} /* string */
.kw {color: #264D66;} /* keyword */
.co {color: #888888;} /* comment */

.message { color: black; font-weight: bolder;}
.error { color: orange; font-weight: bolder;}
.warning { color: #6A0366; font-weight: bolder;}

/* Clipboard --------------------------*/

.hasCopyButton {
position: relative;
}

.btn-copy-ex {
position: absolute;
right: 0;
top: 0;
visibility: hidden;
}

.hasCopyButton:hover button.btn-copy-ex {
visibility: visible;
}

/* headroom.js ------------------------ */

.headroom {
will-change: transform;
transition: transform 200ms linear;
}
.headroom--pinned {
transform: translateY(0%);
}
.headroom--unpinned {
transform: translateY(-100%);
}

/* mark.js ----------------------------*/

mark {
background-color: rgba(255, 255, 51, 0.5);
border-bottom: 2px solid rgba(255, 153, 51, 0.3);
padding: 1px;
}

/* vertical spacing after htmlwidgets */
.html-widget {
margin-bottom: 10px;
}

/* fontawesome ------------------------ */

.fab {
font-family: "Font Awesome 5 Brands" !important;
}

/* don't display links in code chunks when printing */
/* source: https://stackoverflow.com/a/10781533 */
@media print {
code a:link:after, code a:visited:after {
content: "";
}
}

+ 113
- 0
dev/pkgdown.js Просмотреть файл

/* http://gregfranko.com/blog/jquery-best-practices/ */
(function($) {
$(function() {

$('.navbar-fixed-top').headroom();

$('body').css('padding-top', $('.navbar').height() + 10);
$(window).resize(function(){
$('body').css('padding-top', $('.navbar').height() + 10);
});

$('body').scrollspy({
target: '#sidebar',
offset: 60
});

$('[data-toggle="tooltip"]').tooltip();

var cur_path = paths(location.pathname);
var links = $("#navbar ul li a");
var max_length = -1;
var pos = -1;
for (var i = 0; i < links.length; i++) {
if (links[i].getAttribute("href") === "#")
continue;
// Ignore external links
if (links[i].host !== location.host)
continue;

var nav_path = paths(links[i].pathname);

var length = prefix_length(nav_path, cur_path);
if (length > max_length) {
max_length = length;
pos = i;
}
}

// Add class to parent <li>, and enclosing <li> if in dropdown
if (pos >= 0) {
var menu_anchor = $(links[pos]);
menu_anchor.parent().addClass("active");
menu_anchor.closest("li.dropdown").addClass("active");
}
});

function paths(pathname) {
var pieces = pathname.split("/");
pieces.shift(); // always starts with /

var end = pieces[pieces.length - 1];
if (end === "index.html" || end === "")
pieces.pop();
return(pieces);
}

// Returns -1 if not found
function prefix_length(needle, haystack) {
if (needle.length > haystack.length)
return(-1);

// Special case for length-0 haystack, since for loop won't run
if (haystack.length === 0) {
return(needle.length === 0 ? 0 : -1);
}

for (var i = 0; i < haystack.length; i++) {
if (needle[i] != haystack[i])
return(i);
}

return(haystack.length);
}

/* Clipboard --------------------------*/

function changeTooltipMessage(element, msg) {
var tooltipOriginalTitle=element.getAttribute('data-original-title');
element.setAttribute('data-original-title', msg);
$(element).tooltip('show');
element.setAttribute('data-original-title', tooltipOriginalTitle);
}

if(ClipboardJS.isSupported()) {
$(document).ready(function() {
var copyButton = "<button type='button' class='btn btn-primary btn-copy-ex' type = 'submit' title='Copy to clipboard' aria-label='Copy to clipboard' data-toggle='tooltip' data-placement='left auto' data-trigger='hover' data-clipboard-copy><i class='fa fa-copy'></i></button>";

$(".examples, div.sourceCode").addClass("hasCopyButton");

// Insert copy buttons:
$(copyButton).prependTo(".hasCopyButton");

// Initialize tooltips:
$('.btn-copy-ex').tooltip({container: 'body'});

// Initialize clipboard:
var clipboardBtnCopies = new ClipboardJS('[data-clipboard-copy]', {
text: function(trigger) {
return trigger.parentNode.textContent;
}
});

clipboardBtnCopies.on('success', function(e) {
changeTooltipMessage(e.trigger, 'Copied!');
e.clearSelection();
});

clipboardBtnCopies.on('error', function() {
changeTooltipMessage(e.trigger,'Press Ctrl+C or Command+C to copy');
});
});
}
})(window.jQuery || window.$)

+ 13
- 0
dev/pkgdown.yml Просмотреть файл

pandoc: '2.2'
pkgdown: 1.4.1
pkgdown_sha: ~
articles:
css-help: css-help.html
fonts: fonts.html
template-variables: template-variables.html
themes: themes.html
xaringanthemer: xaringanthemer.html
urls:
reference: https://pkg.garrickadenbuie.com/xaringanthemer//reference
article: https://pkg.garrickadenbuie.com/xaringanthemer//articles


+ 189
- 0
dev/reference/apply_alpha.html Просмотреть файл

<!-- Generated by pkgdown: do not edit by hand -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Add alpha to hex color — apply_alpha • xaringanthemer</title>


<!-- jquery -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<!-- Bootstrap -->

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha256-916EbMg70RQy9LHiGkXzG8hSg9EdNy97GazNG/aiY1w=" crossorigin="anonymous" />

<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha256-U5ZEeKfGNOja007MMD3YBI0A3OSZOQbeG6z2f2Y0hu8=" crossorigin="anonymous"></script>

<!-- Font Awesome icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/all.min.css" integrity="sha256-nAmazAk6vS34Xqo0BSrTb+abbtFlgsFK7NKSi6o7Y78=" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/v4-shims.min.css" integrity="sha256-6qHlizsOWFskGlwVOKuns+D1nB6ssZrHQrNj1wGplHc=" crossorigin="anonymous" />

<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.4/clipboard.min.js" integrity="sha256-FiZwavyI2V6+EXO1U+xzLG3IKldpiTFf3153ea9zikQ=" crossorigin="anonymous"></script>

<!-- headroom.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/headroom.min.js" integrity="sha256-DJFC1kqIhelURkuza0AvYal5RxMtpzLjFhsnVIeuk+U=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script>

<!-- pkgdown -->
<link href="../pkgdown.css" rel="stylesheet">
<script src="../pkgdown.js"></script>



<link href="../extra.css" rel="stylesheet">

<meta property="og:title" content="Add alpha to hex color — apply_alpha" />
<meta property="og:description" content="Applies alpha (or opacity) to a color in hexadecimal form by
converting opacity in the [0, 1] range to hex in the [0, 255] range
and appending to the hex color." />
<meta name="twitter:card" content="summary" />


<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]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->



</head>

<body>
<div class="container template-reference-topic">
<header>
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">xaringanthemer</a>
<span class="version label label-danger" data-toggle="tooltip" data-placement="bottom" title="In-development version">0.2.0.9100</span>
</span>
</div>

<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="../index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="../articles/xaringanthemer.html">Get started</a>
</li>
<li>
<a href="../reference/index.html">Reference</a>
</li>
<li>
<a href="../articles/themes.html">Themes</a>
</li>
<li>
<a href="../articles/fonts.html">Fonts</a>
</li>
<li>
<a href="../articles/template-variables.html">Template Variables</a>
</li>
<li>
<a href="../articles/css-help.html">CSS Help</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="https://github.com/gadenbuie/xaringanthemer">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
<li>
<a href="https://twitter.com/grrrck">
<span class="fa fa-twitter fa-lg"></span>
</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->


</header>

<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
<h1>Add alpha to hex color</h1>
<small class="dont-index">Source: <a href='https://github.com/gadenbuie/xaringanthemer/blob/master/R/color.R'><code>R/color.R</code></a></small>
<div class="hidden name"><code>apply_alpha.Rd</code></div>
</div>

<div class="ref-description">
<p>Applies alpha (or opacity) to a color in hexadecimal form by
converting opacity in the <code>[0, 1]</code> range to hex in the <code>[0, 255]</code> range
and appending to the hex color.</p>
</div>

<pre class="usage"><span class='fu'>apply_alpha</span>(<span class='no'>color_hex</span>, <span class='kw'>opacity</span> <span class='kw'>=</span> <span class='fl'>0.5</span>)</pre>

<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a>Arguments</h2>
<table class="ref-arguments">
<colgroup><col class="name" /><col class="desc" /></colgroup>
<tr>
<th>color_hex</th>
<td><p>A character string representing a hex color</p></td>
</tr>
<tr>
<th>opacity</th>
<td><p>Desired opacity of the output color</p></td>
</tr>
</table>


</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
<h2>Contents</h2>
<ul class="nav nav-pills nav-stacked">
<li><a href="#arguments">Arguments</a></li>
</ul>

</div>
</div>


<footer>
<div class="copyright">
<p>Developed by <a href='https://www.garrickadenbuie.com'>Garrick Aden-Buie</a>.</p>
</div>

<div class="pkgdown">
<p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.4.1.</p>
</div>

</footer>
</div>



</body>
</html>



+ 199
- 0
dev/reference/choose_dark_or_light.html Просмотреть файл

<!-- Generated by pkgdown: do not edit by hand -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Choose dark or light color — choose_dark_or_light • xaringanthemer</title>


<!-- jquery -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<!-- Bootstrap -->

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha256-916EbMg70RQy9LHiGkXzG8hSg9EdNy97GazNG/aiY1w=" crossorigin="anonymous" />

<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha256-U5ZEeKfGNOja007MMD3YBI0A3OSZOQbeG6z2f2Y0hu8=" crossorigin="anonymous"></script>

<!-- Font Awesome icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/all.min.css" integrity="sha256-nAmazAk6vS34Xqo0BSrTb+abbtFlgsFK7NKSi6o7Y78=" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/v4-shims.min.css" integrity="sha256-6qHlizsOWFskGlwVOKuns+D1nB6ssZrHQrNj1wGplHc=" crossorigin="anonymous" />

<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.4/clipboard.min.js" integrity="sha256-FiZwavyI2V6+EXO1U+xzLG3IKldpiTFf3153ea9zikQ=" crossorigin="anonymous"></script>

<!-- headroom.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/headroom.min.js" integrity="sha256-DJFC1kqIhelURkuza0AvYal5RxMtpzLjFhsnVIeuk+U=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script>

<!-- pkgdown -->
<link href="../pkgdown.css" rel="stylesheet">
<script src="../pkgdown.js"></script>



<link href="../extra.css" rel="stylesheet">

<meta property="og:title" content="Choose dark or light color — choose_dark_or_light" />
<meta property="og:description" content="Takes a color input as x and returns either the black or white color (or
expression) if dark or light text should be used over the input color for
best contrast. Follows W3C Recommendations." />
<meta name="twitter:card" content="summary" />


<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]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->



</head>

<body>
<div class="container template-reference-topic">
<header>
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">xaringanthemer</a>
<span class="version label label-danger" data-toggle="tooltip" data-placement="bottom" title="In-development version">0.2.0.9100</span>
</span>
</div>

<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="../index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="../articles/xaringanthemer.html">Get started</a>
</li>
<li>
<a href="../reference/index.html">Reference</a>
</li>
<li>
<a href="../articles/themes.html">Themes</a>
</li>
<li>
<a href="../articles/fonts.html">Fonts</a>
</li>
<li>
<a href="../articles/template-variables.html">Template Variables</a>
</li>
<li>
<a href="../articles/css-help.html">CSS Help</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="https://github.com/gadenbuie/xaringanthemer">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
<li>
<a href="https://twitter.com/grrrck">
<span class="fa fa-twitter fa-lg"></span>
</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->


</header>

<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
<h1>Choose dark or light color</h1>
<small class="dont-index">Source: <a href='https://github.com/gadenbuie/xaringanthemer/blob/master/R/color.R'><code>R/color.R</code></a></small>
<div class="hidden name"><code>choose_dark_or_light.Rd</code></div>
</div>

<div class="ref-description">
<p>Takes a color input as <code>x</code> and returns either the black or white color (or
expression) if dark or light text should be used over the input color for
best contrast. Follows W3C Recommendations.</p>
</div>

<pre class="usage"><span class='fu'>choose_dark_or_light</span>(<span class='no'>x</span>, <span class='kw'>black</span> <span class='kw'>=</span> <span class='st'>"#000000"</span>, <span class='kw'>white</span> <span class='kw'>=</span> <span class='st'>"#FFFFFF"</span>)</pre>

<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a>Arguments</h2>
<table class="ref-arguments">
<colgroup><col class="name" /><col class="desc" /></colgroup>
<tr>
<th>x</th>
<td><p>The background color (hex)</p></td>
</tr>
<tr>
<th>black</th>
<td><p>Text or foreground color, e.g. "#222" or
<code><a href='https://rdrr.io/r/base/substitute.html'>substitute(darken_color(x, 0.8))</a></code>, if black text provides the best contrast.</p></td>
</tr>
<tr>
<th>white</th>
<td><p>Text or foreground color or expression, e.g. "#EEE" or
<code><a href='https://rdrr.io/r/base/substitute.html'>substitute(lighten_color(x, 0.8))</a></code>, if white text provides the best contrast.</p></td>
</tr>
</table>

<h2 class="hasAnchor" id="references"><a class="anchor" href="#references"></a>References</h2>

<p><a href='https://stackoverflow.com/a/3943023/2022615'>https://stackoverflow.com/a/3943023/2022615</a></p>

</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
<h2>Contents</h2>
<ul class="nav nav-pills nav-stacked">
<li><a href="#arguments">Arguments</a></li>
<li><a href="#references">References</a></li>
</ul>

</div>
</div>


<footer>
<div class="copyright">
<p>Developed by <a href='https://www.garrickadenbuie.com'>Garrick Aden-Buie</a>.</p>
</div>

<div class="pkgdown">
<p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.4.1.</p>
</div>

</footer>
</div>



</body>
</html>



+ 223
- 0
dev/reference/google_font.html Просмотреть файл

<!-- Generated by pkgdown: do not edit by hand -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Specify Google Font — google_font • xaringanthemer</title>


<!-- jquery -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<!-- Bootstrap -->

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha256-916EbMg70RQy9LHiGkXzG8hSg9EdNy97GazNG/aiY1w=" crossorigin="anonymous" />

<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha256-U5ZEeKfGNOja007MMD3YBI0A3OSZOQbeG6z2f2Y0hu8=" crossorigin="anonymous"></script>

<!-- Font Awesome icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/all.min.css" integrity="sha256-nAmazAk6vS34Xqo0BSrTb+abbtFlgsFK7NKSi6o7Y78=" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/v4-shims.min.css" integrity="sha256-6qHlizsOWFskGlwVOKuns+D1nB6ssZrHQrNj1wGplHc=" crossorigin="anonymous" />

<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.4/clipboard.min.js" integrity="sha256-FiZwavyI2V6+EXO1U+xzLG3IKldpiTFf3153ea9zikQ=" crossorigin="anonymous"></script>

<!-- headroom.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/headroom.min.js" integrity="sha256-DJFC1kqIhelURkuza0AvYal5RxMtpzLjFhsnVIeuk+U=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script>

<!-- pkgdown -->
<link href="../pkgdown.css" rel="stylesheet">
<script src="../pkgdown.js"></script>



<link href="../extra.css" rel="stylesheet">

<meta property="og:title" content="Specify Google Font — google_font" />
<meta property="og:description" content="Builds Google Fonts URL from family name. Extra weights are given in the
... parameters. Languages can be specified in langauges and must one or
more of the language codes as given by google_language_codes()." />
<meta name="twitter:card" content="summary" />


<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]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->



</head>

<body>
<div class="container template-reference-topic">
<header>
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">xaringanthemer</a>
<span class="version label label-danger" data-toggle="tooltip" data-placement="bottom" title="In-development version">0.2.0.9100</span>
</span>
</div>

<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="../index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="../articles/xaringanthemer.html">Get started</a>
</li>
<li>
<a href="../reference/index.html">Reference</a>
</li>
<li>
<a href="../articles/themes.html">Themes</a>
</li>
<li>
<a href="../articles/fonts.html">Fonts</a>
</li>
<li>
<a href="../articles/template-variables.html">Template Variables</a>
</li>
<li>
<a href="../articles/css-help.html">CSS Help</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="https://github.com/gadenbuie/xaringanthemer">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
<li>
<a href="https://twitter.com/grrrck">
<span class="fa fa-twitter fa-lg"></span>
</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->


</header>

<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
<h1>Specify Google Font</h1>
<small class="dont-index">Source: <a href='https://github.com/gadenbuie/xaringanthemer/blob/master/R/utils.R'><code>R/utils.R</code></a></small>
<div class="hidden name"><code>google_font.Rd</code></div>
</div>

<div class="ref-description">
<p>Builds Google Fonts URL from family name. Extra weights are given in the
<code>...</code> parameters. Languages can be specified in <code>langauges</code> and must one or
more of the language codes as given by <code><a href='google_language_codes.html'>google_language_codes()</a></code>.</p>
</div>

<pre class="usage"><span class='fu'>google_font</span>(<span class='no'>family</span>, <span class='no'>...</span>, <span class='kw'>languages</span> <span class='kw'>=</span> <span class='kw'>NULL</span>)</pre>

<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a>Arguments</h2>
<table class="ref-arguments">
<colgroup><col class="name" /><col class="desc" /></colgroup>
<tr>
<th>family</th>
<td><p>Font family</p></td>
</tr>
<tr>
<th>...</th>
<td><p>Font weights to include, example "400", "400i"</p></td>
</tr>
<tr>
<th>languages</th>
<td><p>Font languages to include (dependent on the font.) See
<code><a href='google_language_codes.html'>google_language_codes()</a></code>.</p></td>
</tr>
</table>


<h2 class="hasAnchor" id="examples"><a class="anchor" href="#examples"></a>Examples</h2>
<pre class="examples"><div class='input'><span class='fu'>google_font</span>(<span class='st'>"Josefin Sans"</span>, <span class='st'>"400"</span>, <span class='st'>"400i"</span>, <span class='st'>"600i"</span>, <span class='st'>"700"</span>)</div><div class='output co'>#&gt; $family
#&gt; [1] "Josefin Sans"
#&gt;
#&gt; $weights
#&gt; [1] "400,400i,600i,700"
#&gt;
#&gt; $languages
#&gt; NULL
#&gt;
#&gt; $url
#&gt; [1] "https://fonts.googleapis.com/css?family=Josefin+Sans:400,400i,600i,700&amp;display=swap"
#&gt;
#&gt; attr(,"class")
#&gt; [1] "google_font"</div><div class='input'><span class='fu'>google_font</span>(<span class='st'>"Josefin Sans"</span>, <span class='kw'>languages</span> <span class='kw'>=</span> <span class='fu'><a href='https://rdrr.io/r/base/c.html'>c</a></span>(<span class='st'>"latin-ext"</span>, <span class='st'>"vietnamese"</span>))</div><div class='output co'>#&gt; $family
#&gt; [1] "Josefin Sans"
#&gt;
#&gt; $weights
#&gt; NULL
#&gt;
#&gt; $languages
#&gt; [1] "latin-ext,vietnamese"
#&gt;
#&gt; $url
#&gt; [1] "https://fonts.googleapis.com/css?family=Josefin+Sans&amp;subset=latin-ext,vietnamese&amp;display=swap"
#&gt;
#&gt; attr(,"class")
#&gt; [1] "google_font"</div></pre>
</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
<h2>Contents</h2>
<ul class="nav nav-pills nav-stacked">
<li><a href="#arguments">Arguments</a></li>
<li><a href="#examples">Examples</a></li>
</ul>

</div>
</div>


<footer>
<div class="copyright">
<p>Developed by <a href='https://www.garrickadenbuie.com'>Garrick Aden-Buie</a>.</p>
</div>

<div class="pkgdown">
<p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.4.1.</p>
</div>

</footer>
</div>



</body>
</html>



+ 192
- 0
dev/reference/google_language_codes.html Просмотреть файл

<!-- Generated by pkgdown: do not edit by hand -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>List Valid Google Language Codes — google_language_codes • xaringanthemer</title>


<!-- jquery -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<!-- Bootstrap -->

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha256-916EbMg70RQy9LHiGkXzG8hSg9EdNy97GazNG/aiY1w=" crossorigin="anonymous" />

<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha256-U5ZEeKfGNOja007MMD3YBI0A3OSZOQbeG6z2f2Y0hu8=" crossorigin="anonymous"></script>

<!-- Font Awesome icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/all.min.css" integrity="sha256-nAmazAk6vS34Xqo0BSrTb+abbtFlgsFK7NKSi6o7Y78=" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/v4-shims.min.css" integrity="sha256-6qHlizsOWFskGlwVOKuns+D1nB6ssZrHQrNj1wGplHc=" crossorigin="anonymous" />

<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.4/clipboard.min.js" integrity="sha256-FiZwavyI2V6+EXO1U+xzLG3IKldpiTFf3153ea9zikQ=" crossorigin="anonymous"></script>

<!-- headroom.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/headroom.min.js" integrity="sha256-DJFC1kqIhelURkuza0AvYal5RxMtpzLjFhsnVIeuk+U=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script>

<!-- pkgdown -->
<link href="../pkgdown.css" rel="stylesheet">
<script src="../pkgdown.js"></script>



<link href="../extra.css" rel="stylesheet">

<meta property="og:title" content="List Valid Google Language Codes — google_language_codes" />
<meta property="og:description" content="Gives a list of valid Language Codes for Google Fonts, or
validates that the language codes given are valid." />
<meta name="twitter:card" content="summary" />


<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]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->



</head>

<body>
<div class="container template-reference-topic">
<header>
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">xaringanthemer</a>
<span class="version label label-danger" data-toggle="tooltip" data-placement="bottom" title="In-development version">0.2.0.9100</span>
</span>
</div>

<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="../index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="../articles/xaringanthemer.html">Get started</a>
</li>
<li>
<a href="../reference/index.html">Reference</a>
</li>
<li>
<a href="../articles/themes.html">Themes</a>
</li>
<li>
<a href="../articles/fonts.html">Fonts</a>
</li>
<li>
<a href="../articles/template-variables.html">Template Variables</a>
</li>
<li>
<a href="../articles/css-help.html">CSS Help</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="https://github.com/gadenbuie/xaringanthemer">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
<li>
<a href="https://twitter.com/grrrck">
<span class="fa fa-twitter fa-lg"></span>
</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->


</header>

<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
<h1>List Valid Google Language Codes</h1>
<small class="dont-index">Source: <a href='https://github.com/gadenbuie/xaringanthemer/blob/master/R/utils.R'><code>R/utils.R</code></a></small>
<div class="hidden name"><code>google_language_codes.Rd</code></div>
</div>

<div class="ref-description">
<p>Gives a list of valid Language Codes for Google Fonts, or
validates that the language codes given are valid.</p>
</div>

<pre class="usage"><span class='fu'>google_language_codes</span>(
<span class='kw'>language_codes</span> <span class='kw'>=</span> <span class='fu'><a href='https://rdrr.io/r/base/c.html'>c</a></span>(<span class='st'>"latin"</span>, <span class='st'>"latin-ext"</span>, <span class='st'>"sinhala"</span>, <span class='st'>"greek"</span>, <span class='st'>"hebrew"</span>, <span class='st'>"vietnamese"</span>,
<span class='st'>"cyrillic"</span>, <span class='st'>"cyrillic-ext"</span>, <span class='st'>"devanagari"</span>, <span class='st'>"arabic"</span>, <span class='st'>"khmer"</span>, <span class='st'>"tamil"</span>, <span class='st'>"greek-ext"</span>,
<span class='st'>"thai"</span>, <span class='st'>"bengali"</span>, <span class='st'>"gujarati"</span>, <span class='st'>"oriya"</span>, <span class='st'>"malayalam"</span>, <span class='st'>"gurmukhi"</span>, <span class='st'>"kannada"</span>, <span class='st'>"telugu"</span>,
<span class='st'>"myanmar"</span>)
)</pre>

<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a>Arguments</h2>
<table class="ref-arguments">
<colgroup><col class="name" /><col class="desc" /></colgroup>
<tr>
<th>language_codes</th>
<td><p>Vector of potential Google language codes</p></td>
</tr>
</table>

<h2 class="hasAnchor" id="see-also"><a class="anchor" href="#see-also"></a>See also</h2>

<div class='dont-index'><p><code><a href='google_font.html'>google_font()</a></code></p></div>

</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
<h2>Contents</h2>
<ul class="nav nav-pills nav-stacked">
<li><a href="#arguments">Arguments</a></li>
<li><a href="#see-also">See also</a></li>
</ul>

</div>
</div>


<footer>
<div class="copyright">
<p>Developed by <a href='https://www.garrickadenbuie.com'>Garrick Aden-Buie</a>.</p>
</div>

<div class="pkgdown">
<p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.4.1.</p>
</div>

</footer>
</div>



</body>
</html>



+ 347
- 0
dev/reference/index.html Просмотреть файл

<!-- Generated by pkgdown: do not edit by hand -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Function reference • xaringanthemer</title>


<!-- jquery -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<!-- Bootstrap -->

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha256-916EbMg70RQy9LHiGkXzG8hSg9EdNy97GazNG/aiY1w=" crossorigin="anonymous" />

<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha256-U5ZEeKfGNOja007MMD3YBI0A3OSZOQbeG6z2f2Y0hu8=" crossorigin="anonymous"></script>

<!-- Font Awesome icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/all.min.css" integrity="sha256-nAmazAk6vS34Xqo0BSrTb+abbtFlgsFK7NKSi6o7Y78=" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/v4-shims.min.css" integrity="sha256-6qHlizsOWFskGlwVOKuns+D1nB6ssZrHQrNj1wGplHc=" crossorigin="anonymous" />

<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.4/clipboard.min.js" integrity="sha256-FiZwavyI2V6+EXO1U+xzLG3IKldpiTFf3153ea9zikQ=" crossorigin="anonymous"></script>

<!-- headroom.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/headroom.min.js" integrity="sha256-DJFC1kqIhelURkuza0AvYal5RxMtpzLjFhsnVIeuk+U=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script>

<!-- pkgdown -->
<link href="../pkgdown.css" rel="stylesheet">
<script src="../pkgdown.js"></script>



<link href="../extra.css" rel="stylesheet">

<meta property="og:title" content="Function reference" />


<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]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->



</head>

<body>
<div class="container template-reference-index">
<header>
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">xaringanthemer</a>
<span class="version label label-danger" data-toggle="tooltip" data-placement="bottom" title="In-development version">0.2.0.9100</span>
</span>
</div>

<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="../index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="../articles/xaringanthemer.html">Get started</a>
</li>
<li>
<a href="../reference/index.html">Reference</a>
</li>
<li>
<a href="../articles/themes.html">Themes</a>
</li>
<li>
<a href="../articles/fonts.html">Fonts</a>
</li>
<li>
<a href="../articles/template-variables.html">Template Variables</a>
</li>
<li>
<a href="../articles/css-help.html">CSS Help</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="https://github.com/gadenbuie/xaringanthemer">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
<li>
<a href="https://twitter.com/grrrck">
<span class="fa fa-twitter fa-lg"></span>
</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->


</header>

<div class="row">
<div class="contents col-md-9">
<div class="page-header">
<h1>Reference</h1>
</div>

<table class="ref-index">

<colgroup>
<col class="alias" />
<col class="title" />
</colgroup>

<tbody>
<tr>
<th colspan="2">
<h2 id="section-writing-css" class="hasAnchor"><a href="#section-writing-css" class="anchor"></a>Writing CSS</h2>
<p class="section-desc"><p>Functions that write CSS from inside a xaringan R markdown document.</p></p>
</th>
</tr>
<tr>
<td>
<p><code><a href="style_xaringan.html">style_xaringan()</a></code> </p>
</td>
<td><p>Write A Customized Xaringan Theme</p></td>
</tr><tr>
<td>
<p><code><a href="style_extra_css.html">style_extra_css()</a></code> </p>
</td>
<td><p>Add Extra CSS Styles</p></td>
</tr>
</tbody><tbody>
<tr>
<th colspan="2">
<h2 id="section-xaringan-themes" class="hasAnchor"><a href="#section-xaringan-themes" class="anchor"></a>xaringan Themes</h2>
<p class="section-desc"><p>Parameterized styles for xaringan slides using one (mono) or two (duo) base colors. Bonus: slide styles based on the solarized color palette.</p></p>
</th>
</tr>
<tr>
<td>
<p><code><a href="style_mono_accent.html">style_mono_accent()</a></code> </p>
</td>
<td><p>Monotone Accent Theme</p></td>
</tr><tr>
<td>
<p><code><a href="style_mono_accent_inverse.html">style_mono_accent_inverse()</a></code> </p>
</td>
<td><p>Monotone Accent Inverse Theme</p></td>
</tr><tr>
<td>
<p><code><a href="style_mono_dark.html">style_mono_dark()</a></code> </p>
</td>
<td><p>Monotone Dark Theme</p></td>
</tr><tr>
<td>
<p><code><a href="style_mono_light.html">style_mono_light()</a></code> </p>
</td>
<td><p>Monotone Light Theme</p></td>
</tr><tr>
<td>
<p><code><a href="style_duo.html">style_duo()</a></code> </p>
</td>
<td><p>Duotone Theme</p></td>
</tr><tr>
<td>
<p><code><a href="style_duo_accent.html">style_duo_accent()</a></code> </p>
</td>
<td><p>Duotone Accent Theme</p></td>
</tr><tr>
<td>
<p><code><a href="style_duo_accent_inverse.html">style_duo_accent_inverse()</a></code> </p>
</td>
<td><p>Duotone Accent Inverse Theme</p></td>
</tr><tr>
<td>
<p><code><a href="style_solarized_dark.html">style_solarized_dark()</a></code> </p>
</td>
<td><p>Solarized Dark Theme</p></td>
</tr><tr>
<td>
<p><code><a href="style_solarized_light.html">style_solarized_light()</a></code> </p>
</td>
<td><p>Solarized Light Theme</p></td>
</tr>
</tbody><tbody>
<tr>
<th colspan="2">
<h2 id="section-google-fonts" class="hasAnchor"><a href="#section-google-fonts" class="anchor"></a>Google Fonts</h2>
<p class="section-desc"><p>Helper functions for using Google Fonts in your slide styles.</p></p>
</th>
</tr>
<tr>
<td>
<p><code><a href="google_font.html">google_font()</a></code> </p>
</td>
<td><p>Specify Google Font</p></td>
</tr><tr>
<td>
<p><code><a href="google_language_codes.html">google_language_codes()</a></code> </p>
</td>
<td><p>List Valid Google Language Codes</p></td>
</tr>
</tbody><tbody>
<tr>
<th colspan="2">
<h2 id="section-ggplot-themes" class="hasAnchor"><a href="#section-ggplot-themes" class="anchor"></a>ggplot2 Themes</h2>
<p class="section-desc"><p>Plot themes for ggplot2 to match your xaringanthemer slide styles.</p></p>
</th>
</tr>
<tr>
<td>
<p><code><a href="theme_xaringan.html">theme_xaringan()</a></code> </p>
</td>
<td><p>A Plot Theme for ggplot2 by xaringanthemer</p></td>
</tr><tr>
<td>
<p><code><a href="theme_xaringan_inverse.html">theme_xaringan_inverse()</a></code> </p>
</td>
<td><p>An Inverse Plot Theme for ggplot2 by xaringanthemer</p></td>
</tr><tr>
<td>
<p><code><a href="theme_xaringan_base.html">theme_xaringan_base()</a></code> </p>
</td>
<td><p>The ggplot2 xaringanthemer base plot theme</p></td>
</tr><tr>
<td>
<p><code><a href="theme_xaringan_set_defaults.html">theme_xaringan_set_defaults()</a></code> <code><a href="theme_xaringan_set_defaults.html">theme_xaringan_restore_defaults()</a></code> </p>
</td>
<td><p>Set and Restore ggplot2 geom Defaults</p></td>
</tr><tr>
<td>
<p><code><a href="scale_xaringan.html">scale_xaringan_discrete()</a></code> <code><a href="scale_xaringan.html">scale_xaringan_fill_discrete()</a></code> <code><a href="scale_xaringan.html">scale_xaringan_color_discrete()</a></code> <code><a href="scale_xaringan.html">scale_xaringan_colour_discrete()</a></code> <code><a href="scale_xaringan.html">scale_xaringan_continuous()</a></code> <code><a href="scale_xaringan.html">scale_xaringan_fill_continuous()</a></code> <code><a href="scale_xaringan.html">scale_xaringan_color_continuous()</a></code> <code><a href="scale_xaringan.html">scale_xaringan_colour_continuous()</a></code> </p>
</td>
<td><p>Xaringan Themer ggplot2 Scales</p></td>
</tr>
</tbody><tbody>
<tr>
<th colspan="2">
<h2 id="section-helper-functions" class="hasAnchor"><a href="#section-helper-functions" class="anchor"></a>Helper functions</h2>
<p class="section-desc"><p>Helpers for Google fonts and color adjustments.</p></p>
</th>
</tr>
<tr>
<td>
<p><code><a href="theme_xaringan_get_value.html">theme_xaringan_get_value()</a></code> </p>
</td>
<td><p>Get the Value of xaringanthemer Style Setting</p></td>
</tr><tr>
<td>
<p><code><a href="lighten_darken_color.html">lighten_color()</a></code> <code><a href="lighten_darken_color.html">darken_color()</a></code> </p>
</td>
<td><p>Generate lighter or darker version of a color</p></td>
</tr><tr>
<td>
<p><code><a href="apply_alpha.html">apply_alpha()</a></code> </p>
</td>
<td><p>Add alpha to hex color</p></td>
</tr><tr>
<td>
<p><code><a href="choose_dark_or_light.html">choose_dark_or_light()</a></code> </p>
</td>
<td><p>Choose dark or light color</p></td>
</tr>
</tbody>
</table>
</div>

<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
<h2>Contents</h2>
<ul class="nav nav-pills nav-stacked">
<li><a href="#section-writing-css">Writing CSS</a></li>
<li><a href="#section-xaringan-themes">xaringan Themes</a></li>
<li><a href="#section-google-fonts">Google Fonts</a></li>
<li><a href="#section-ggplot-themes">ggplot2 Themes</a></li>
<li><a href="#section-helper-functions">Helper functions</a></li>
</ul>
</div>
</div>


<footer>
<div class="copyright">
<p>Developed by <a href='https://www.garrickadenbuie.com'>Garrick Aden-Buie</a>.</p>
</div>

<div class="pkgdown">
<p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.4.1.</p>
</div>

</footer>
</div>



</body>
</html>



+ 189
- 0
dev/reference/lighten_darken_color.html Просмотреть файл

<!-- Generated by pkgdown: do not edit by hand -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Generate lighter or darker version of a color — lighten_darken_color • xaringanthemer</title>


<!-- jquery -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<!-- Bootstrap -->

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha256-916EbMg70RQy9LHiGkXzG8hSg9EdNy97GazNG/aiY1w=" crossorigin="anonymous" />

<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha256-U5ZEeKfGNOja007MMD3YBI0A3OSZOQbeG6z2f2Y0hu8=" crossorigin="anonymous"></script>

<!-- Font Awesome icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/all.min.css" integrity="sha256-nAmazAk6vS34Xqo0BSrTb+abbtFlgsFK7NKSi6o7Y78=" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/v4-shims.min.css" integrity="sha256-6qHlizsOWFskGlwVOKuns+D1nB6ssZrHQrNj1wGplHc=" crossorigin="anonymous" />

<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.4/clipboard.min.js" integrity="sha256-FiZwavyI2V6+EXO1U+xzLG3IKldpiTFf3153ea9zikQ=" crossorigin="anonymous"></script>

<!-- headroom.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/headroom.min.js" integrity="sha256-DJFC1kqIhelURkuza0AvYal5RxMtpzLjFhsnVIeuk+U=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script>

<!-- pkgdown -->
<link href="../pkgdown.css" rel="stylesheet">
<script src="../pkgdown.js"></script>



<link href="../extra.css" rel="stylesheet">

<meta property="og:title" content="Generate lighter or darker version of a color — lighten_darken_color" />
<meta property="og:description" content="Produces a linear blend of the color with white or black." />
<meta name="twitter:card" content="summary" />


<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]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->



</head>

<body>
<div class="container template-reference-topic">
<header>
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">xaringanthemer</a>
<span class="version label label-danger" data-toggle="tooltip" data-placement="bottom" title="In-development version">0.2.0.9100</span>
</span>
</div>

<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="../index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="../articles/xaringanthemer.html">Get started</a>
</li>
<li>
<a href="../reference/index.html">Reference</a>
</li>
<li>
<a href="../articles/themes.html">Themes</a>
</li>
<li>
<a href="../articles/fonts.html">Fonts</a>
</li>
<li>
<a href="../articles/template-variables.html">Template Variables</a>
</li>
<li>
<a href="../articles/css-help.html">CSS Help</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="https://github.com/gadenbuie/xaringanthemer">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
<li>
<a href="https://twitter.com/grrrck">
<span class="fa fa-twitter fa-lg"></span>
</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->


</header>

<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
<h1>Generate lighter or darker version of a color</h1>
<small class="dont-index">Source: <a href='https://github.com/gadenbuie/xaringanthemer/blob/master/R/color.R'><code>R/color.R</code></a></small>
<div class="hidden name"><code>lighten_darken_color.Rd</code></div>
</div>

<div class="ref-description">
<p>Produces a linear blend of the color with white or black.</p>
</div>

<pre class="usage"><span class='fu'>lighten_color</span>(<span class='no'>color_hex</span>, <span class='kw'>strength</span> <span class='kw'>=</span> <span class='fl'>0.7</span>)

<span class='fu'>darken_color</span>(<span class='no'>color_hex</span>, <span class='kw'>strength</span> <span class='kw'>=</span> <span class='fl'>0.8</span>)</pre>

<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a>Arguments</h2>
<table class="ref-arguments">
<colgroup><col class="name" /><col class="desc" /></colgroup>
<tr>
<th>color_hex</th>
<td><p>A character string representing a hex color</p></td>
</tr>
<tr>
<th>strength</th>
<td><p>The "strength" of the blend with white or black,
where 0 is entirely the original color and 1 is entirely white
(<code>lighten_color()</code>) or black (<code>darken_color()</code>).</p></td>
</tr>
</table>


</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
<h2>Contents</h2>
<ul class="nav nav-pills nav-stacked">
<li><a href="#arguments">Arguments</a></li>
</ul>

</div>
</div>


<footer>
<div class="copyright">
<p>Developed by <a href='https://www.garrickadenbuie.com'>Garrick Aden-Buie</a>.</p>
</div>

<div class="pkgdown">
<p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.4.1.</p>
</div>

</footer>
</div>



</body>
</html>



+ 275
- 0
dev/reference/scale_xaringan.html Просмотреть файл

<!-- Generated by pkgdown: do not edit by hand -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Xaringan Themer ggplot2 Scales — scale_xaringan • xaringanthemer</title>


<!-- jquery -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<!-- Bootstrap -->

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha256-916EbMg70RQy9LHiGkXzG8hSg9EdNy97GazNG/aiY1w=" crossorigin="anonymous" />

<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha256-U5ZEeKfGNOja007MMD3YBI0A3OSZOQbeG6z2f2Y0hu8=" crossorigin="anonymous"></script>

<!-- Font Awesome icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/all.min.css" integrity="sha256-nAmazAk6vS34Xqo0BSrTb+abbtFlgsFK7NKSi6o7Y78=" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/v4-shims.min.css" integrity="sha256-6qHlizsOWFskGlwVOKuns+D1nB6ssZrHQrNj1wGplHc=" crossorigin="anonymous" />

<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.4/clipboard.min.js" integrity="sha256-FiZwavyI2V6+EXO1U+xzLG3IKldpiTFf3153ea9zikQ=" crossorigin="anonymous"></script>

<!-- headroom.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/headroom.min.js" integrity="sha256-DJFC1kqIhelURkuza0AvYal5RxMtpzLjFhsnVIeuk+U=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script>

<!-- pkgdown -->
<link href="../pkgdown.css" rel="stylesheet">
<script src="../pkgdown.js"></script>



<link href="../extra.css" rel="stylesheet">

<meta property="og:title" content="Xaringan Themer ggplot2 Scales — scale_xaringan" />
<meta property="og:description" content="Lifecycle: Experimental.
Color and fill single-color scales for discrete and continuous values,
created using the primary accent color of the xaringanthemer styles." />
<meta name="twitter:card" content="summary" />


<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]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->



</head>

<body>
<div class="container template-reference-topic">
<header>
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">xaringanthemer</a>
<span class="version label label-danger" data-toggle="tooltip" data-placement="bottom" title="In-development version">0.2.0.9100</span>
</span>
</div>

<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="../index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="../articles/xaringanthemer.html">Get started</a>
</li>
<li>
<a href="../reference/index.html">Reference</a>
</li>
<li>
<a href="../articles/themes.html">Themes</a>
</li>
<li>
<a href="../articles/fonts.html">Fonts</a>
</li>
<li>
<a href="../articles/template-variables.html">Template Variables</a>
</li>
<li>
<a href="../articles/css-help.html">CSS Help</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="https://github.com/gadenbuie/xaringanthemer">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
<li>
<a href="https://twitter.com/grrrck">
<span class="fa fa-twitter fa-lg"></span>
</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->


</header>

<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
<h1>Xaringan Themer ggplot2 Scales</h1>
<small class="dont-index">Source: <a href='https://github.com/gadenbuie/xaringanthemer/blob/master/R/ggplot2.R'><code>R/ggplot2.R</code></a></small>
<div class="hidden name"><code>scale_xaringan.Rd</code></div>
</div>

<div class="ref-description">
<p><strong>Lifecycle:</strong> <a href='https://www.tidyverse.org/lifecycle/#experimental'>Experimental</a>.</p>
<p>Color and fill single-color scales for discrete and continuous values,
created using the primary accent color of the xaringanthemer styles.</p>
</div>

<pre class="usage"><span class='fu'>scale_xaringan_discrete</span>(
<span class='kw'>aes_type</span> <span class='kw'>=</span> <span class='fu'><a href='https://rdrr.io/r/base/c.html'>c</a></span>(<span class='st'>"color"</span>, <span class='st'>"colour"</span>, <span class='st'>"fill"</span>),
<span class='no'>...</span>,
<span class='kw'>color</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>direction</span> <span class='kw'>=</span> <span class='fl'>1</span>,
<span class='kw'>inverse</span> <span class='kw'>=</span> <span class='fl'>FALSE</span>
)

<span class='fu'>scale_xaringan_fill_discrete</span>(<span class='no'>...</span>, <span class='kw'>color</span> <span class='kw'>=</span> <span class='kw'>NULL</span>, <span class='kw'>direction</span> <span class='kw'>=</span> <span class='fl'>1</span>, <span class='kw'>inverse</span> <span class='kw'>=</span> <span class='fl'>FALSE</span>)

<span class='fu'>scale_xaringan_color_discrete</span>(
<span class='no'>...</span>,
<span class='kw'>color</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>direction</span> <span class='kw'>=</span> <span class='fl'>1</span>,
<span class='kw'>inverse</span> <span class='kw'>=</span> <span class='fl'>FALSE</span>
)

<span class='fu'>scale_xaringan_colour_discrete</span>(
<span class='no'>...</span>,
<span class='kw'>color</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>direction</span> <span class='kw'>=</span> <span class='fl'>1</span>,
<span class='kw'>inverse</span> <span class='kw'>=</span> <span class='fl'>FALSE</span>
)

<span class='fu'>scale_xaringan_continuous</span>(
<span class='kw'>aes_type</span> <span class='kw'>=</span> <span class='fu'><a href='https://rdrr.io/r/base/c.html'>c</a></span>(<span class='st'>"color"</span>, <span class='st'>"colour"</span>, <span class='st'>"fill"</span>),
<span class='no'>...</span>,
<span class='kw'>color</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>begin</span> <span class='kw'>=</span> <span class='fl'>0</span>,
<span class='kw'>end</span> <span class='kw'>=</span> <span class='fl'>1</span>,
<span class='kw'>inverse</span> <span class='kw'>=</span> <span class='fl'>FALSE</span>
)

<span class='fu'>scale_xaringan_fill_continuous</span>(
<span class='no'>...</span>,
<span class='kw'>color</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>begin</span> <span class='kw'>=</span> <span class='fl'>0</span>,
<span class='kw'>end</span> <span class='kw'>=</span> <span class='fl'>1</span>,
<span class='kw'>inverse</span> <span class='kw'>=</span> <span class='fl'>FALSE</span>
)

<span class='fu'>scale_xaringan_color_continuous</span>(
<span class='no'>...</span>,
<span class='kw'>color</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>begin</span> <span class='kw'>=</span> <span class='fl'>0</span>,
<span class='kw'>end</span> <span class='kw'>=</span> <span class='fl'>1</span>,
<span class='kw'>inverse</span> <span class='kw'>=</span> <span class='fl'>FALSE</span>
)

<span class='fu'>scale_xaringan_colour_continuous</span>(
<span class='no'>...</span>,
<span class='kw'>color</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>begin</span> <span class='kw'>=</span> <span class='fl'>0</span>,
<span class='kw'>end</span> <span class='kw'>=</span> <span class='fl'>1</span>,
<span class='kw'>inverse</span> <span class='kw'>=</span> <span class='fl'>FALSE</span>
)</pre>

<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a>Arguments</h2>
<table class="ref-arguments">
<colgroup><col class="name" /><col class="desc" /></colgroup>
<tr>
<th>aes_type</th>
<td><p>The type of aesthetic to which the scale is being applied.
One of "color", "colour", or "fill".</p></td>
</tr>
<tr>
<th>...</th>
<td><p>Arguments passed on to either the <span class="pkg">colorspace</span> scale
functions — one of <a href='http://colorspace.R-Forge.R-project.org//reference/scale_colour_discrete_sequential.html'>colorspace::scale_color_discrete_sequential</a>,
<a href='http://colorspace.R-Forge.R-project.org//reference/scale_colour_continuous_sequential.html'>colorspace::scale_color_continuous_sequential</a>,
<a href='http://colorspace.R-Forge.R-project.org//reference/scale_colour_discrete_sequential.html'>colorspace::scale_fill_discrete_sequential</a>, or
<a href='http://colorspace.R-Forge.R-project.org//reference/scale_colour_continuous_sequential.html'>colorspace::scale_fill_continuous_sequential</a> — or to
<a href='https://ggplot2.tidyverse.org/reference/continuous_scale.html'>ggplot2::continuous_scale</a> or <a href='https://ggplot2.tidyverse.org/reference/discrete_scale.html'>ggplot2::discrete_scale</a>.</p></td>
</tr>
<tr>
<th>color</th>
<td><p>A color value, in hex, to override the default color. Otherwise,
the primary color of the resulting scale is chosen from the xaringanthemer
slide styles.</p></td>
</tr>
<tr>
<th>direction</th>
<td><p>Direction of the discrete scale. Use values less than 0 to
reverse the direction, e.g. <code>direction = -1</code>.</p></td>
</tr>
<tr>
<th>inverse</th>
<td><p>If <code>color</code> is not supplied and <code>inverse = TRUE</code>, a primary
color is chosen to work well with the inverse slide styles, namely the
value of <code>inverse_header_color</code></p></td>
</tr>
<tr>
<th>begin</th>
<td><p>Number in the range of <code>[0, 1]</code> indicating to which point in the color scale the smallest data value should be mapped.</p></td>
</tr>
<tr>
<th>end</th>
<td><p>Number in the range of <code>[0, 1]</code> indicating to which point in the color scale the largest data value should be mapped.</p></td>
</tr>
</table>


</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
<h2>Contents</h2>
<ul class="nav nav-pills nav-stacked">
<li><a href="#arguments">Arguments</a></li>
</ul>

</div>
</div>


<footer>
<div class="copyright">
<p>Developed by <a href='https://www.garrickadenbuie.com'>Garrick Aden-Buie</a>.</p>
</div>

<div class="pkgdown">
<p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.4.1.</p>
</div>

</footer>
</div>



</body>
</html>



+ 535
- 0
dev/reference/style_duo.html Просмотреть файл

<!-- Generated by pkgdown: do not edit by hand -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Duotone Theme — style_duo • xaringanthemer</title>


<!-- jquery -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<!-- Bootstrap -->

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha256-916EbMg70RQy9LHiGkXzG8hSg9EdNy97GazNG/aiY1w=" crossorigin="anonymous" />

<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha256-U5ZEeKfGNOja007MMD3YBI0A3OSZOQbeG6z2f2Y0hu8=" crossorigin="anonymous"></script>

<!-- Font Awesome icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/all.min.css" integrity="sha256-nAmazAk6vS34Xqo0BSrTb+abbtFlgsFK7NKSi6o7Y78=" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/v4-shims.min.css" integrity="sha256-6qHlizsOWFskGlwVOKuns+D1nB6ssZrHQrNj1wGplHc=" crossorigin="anonymous" />

<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.4/clipboard.min.js" integrity="sha256-FiZwavyI2V6+EXO1U+xzLG3IKldpiTFf3153ea9zikQ=" crossorigin="anonymous"></script>

<!-- headroom.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/headroom.min.js" integrity="sha256-DJFC1kqIhelURkuza0AvYal5RxMtpzLjFhsnVIeuk+U=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script>

<!-- pkgdown -->
<link href="../pkgdown.css" rel="stylesheet">
<script src="../pkgdown.js"></script>



<link href="../extra.css" rel="stylesheet">

<meta property="og:title" content="Duotone Theme — style_duo" />
<meta property="og:description" content="A duotone theme designed to work well with two complementary
colors." />
<meta name="twitter:card" content="summary" />


<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]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->



</head>

<body>
<div class="container template-reference-topic">
<header>
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">xaringanthemer</a>
<span class="version label label-danger" data-toggle="tooltip" data-placement="bottom" title="In-development version">0.2.0.9100</span>
</span>
</div>

<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="../index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="../articles/xaringanthemer.html">Get started</a>
</li>
<li>
<a href="../reference/index.html">Reference</a>
</li>
<li>
<a href="../articles/themes.html">Themes</a>
</li>
<li>
<a href="../articles/fonts.html">Fonts</a>
</li>
<li>
<a href="../articles/template-variables.html">Template Variables</a>
</li>
<li>
<a href="../articles/css-help.html">CSS Help</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="https://github.com/gadenbuie/xaringanthemer">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
<li>
<a href="https://twitter.com/grrrck">
<span class="fa fa-twitter fa-lg"></span>
</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->


</header>

<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
<h1>Duotone Theme</h1>
<small class="dont-index">Source: <a href='https://github.com/gadenbuie/xaringanthemer/blob/master/R/style_duo.R'><code>R/style_duo.R</code></a></small>
<div class="hidden name"><code>style_duo.Rd</code></div>
</div>

<div class="ref-description">
<p>A duotone theme designed to work well with two complementary
colors.</p>
</div>

<pre class="usage"><span class='fu'>style_duo</span>(
<span class='kw'>primary_color</span> <span class='kw'>=</span> <span class='st'>"#1F4257"</span>,
<span class='kw'>secondary_color</span> <span class='kw'>=</span> <span class='st'>"#F97B64"</span>,
<span class='kw'>text_color</span> <span class='kw'>=</span> <span class='fu'><a href='choose_dark_or_light.html'>choose_dark_or_light</a></span>(<span class='no'>primary_color</span>, <span class='fu'><a href='lighten_darken_color.html'>darken_color</a></span>(<span class='no'>primary_color</span>, <span class='fl'>0.9</span>),
<span class='fu'><a href='lighten_darken_color.html'>lighten_color</a></span>(<span class='no'>secondary_color</span>, <span class='fl'>0.99</span>)),
<span class='kw'>header_color</span> <span class='kw'>=</span> <span class='no'>secondary_color</span>,
<span class='kw'>background_color</span> <span class='kw'>=</span> <span class='no'>primary_color</span>,
<span class='kw'>link_color</span> <span class='kw'>=</span> <span class='no'>secondary_color</span>,
<span class='kw'>text_bold_color</span> <span class='kw'>=</span> <span class='no'>secondary_color</span>,
<span class='kw'>text_slide_number_color</span> <span class='kw'>=</span> <span class='no'>text_color</span>,
<span class='kw'>padding</span> <span class='kw'>=</span> <span class='st'>"16px 64px 16px 64px"</span>,
<span class='kw'>background_image</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>background_size</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>background_position</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>code_highlight_color</span> <span class='kw'>=</span> <span class='st'>"rgba(255,255,0,0.5)"</span>,
<span class='kw'>code_inline_color</span> <span class='kw'>=</span> <span class='no'>secondary_color</span>,
<span class='kw'>code_inline_background_color</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>code_inline_font_size</span> <span class='kw'>=</span> <span class='st'>"1rem"</span>,
<span class='kw'>inverse_background_color</span> <span class='kw'>=</span> <span class='no'>secondary_color</span>,
<span class='kw'>inverse_text_color</span> <span class='kw'>=</span> <span class='no'>primary_color</span>,
<span class='kw'>inverse_text_shadow</span> <span class='kw'>=</span> <span class='fl'>FALSE</span>,
<span class='kw'>inverse_header_color</span> <span class='kw'>=</span> <span class='no'>primary_color</span>,
<span class='kw'>title_slide_text_color</span> <span class='kw'>=</span> <span class='no'>secondary_color</span>,
<span class='kw'>title_slide_background_color</span> <span class='kw'>=</span> <span class='no'>primary_color</span>,
<span class='kw'>title_slide_background_image</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>title_slide_background_size</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>title_slide_background_position</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>footnote_color</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>footnote_font_size</span> <span class='kw'>=</span> <span class='st'>"0.9rem"</span>,
<span class='kw'>footnote_position_bottom</span> <span class='kw'>=</span> <span class='st'>"60px"</span>,
<span class='kw'>left_column_subtle_color</span> <span class='kw'>=</span> <span class='fu'><a href='apply_alpha.html'>apply_alpha</a></span>(<span class='no'>secondary_color</span>, <span class='fl'>0.6</span>),
<span class='kw'>left_column_selected_color</span> <span class='kw'>=</span> <span class='no'>secondary_color</span>,
<span class='kw'>blockquote_left_border_color</span> <span class='kw'>=</span> <span class='fu'><a href='apply_alpha.html'>apply_alpha</a></span>(<span class='no'>secondary_color</span>, <span class='fl'>0.5</span>),
<span class='kw'>table_border_color</span> <span class='kw'>=</span> <span class='st'>"#666"</span>,
<span class='kw'>table_row_border_color</span> <span class='kw'>=</span> <span class='st'>"#ddd"</span>,
<span class='kw'>table_row_even_background_color</span> <span class='kw'>=</span> <span class='fu'><a href='lighten_darken_color.html'>lighten_color</a></span>(<span class='no'>primary_color</span>, <span class='fl'>0.1</span>),
<span class='kw'>base_font_size</span> <span class='kw'>=</span> <span class='st'>"20px"</span>,
<span class='kw'>text_font_size</span> <span class='kw'>=</span> <span class='st'>"1rem"</span>,
<span class='kw'>header_h1_font_size</span> <span class='kw'>=</span> <span class='st'>"2.75rem"</span>,
<span class='kw'>header_h2_font_size</span> <span class='kw'>=</span> <span class='st'>"2.25rem"</span>,
<span class='kw'>header_h3_font_size</span> <span class='kw'>=</span> <span class='st'>"1.75rem"</span>,
<span class='kw'>header_background_auto</span> <span class='kw'>=</span> <span class='fl'>FALSE</span>,
<span class='kw'>header_background_color</span> <span class='kw'>=</span> <span class='no'>header_color</span>,
<span class='kw'>header_background_text_color</span> <span class='kw'>=</span> <span class='no'>background_color</span>,
<span class='kw'>header_background_padding</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>header_background_content_padding_top</span> <span class='kw'>=</span> <span class='st'>"7rem"</span>,
<span class='kw'>header_background_ignore_classes</span> <span class='kw'>=</span> <span class='fu'><a href='https://rdrr.io/r/base/c.html'>c</a></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='kw'>text_slide_number_font_size</span> <span class='kw'>=</span> <span class='st'>"0.9rem"</span>,
<span class='kw'>text_font_google</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>text_font_family</span> <span class='kw'>=</span> <span class='st'>"Noto Sans"</span>,
<span class='kw'>text_font_weight</span> <span class='kw'>=</span> <span class='st'>"normal"</span>,

<span class='kw'>text_font_url</span> <span class='kw'>=</span> <span class='st'>"https://fonts.googleapis.com/css?family=Noto+Sans:400,400i,700,700i&amp;display=swap"</span>,

<span class='kw'>text_font_family_fallback</span> <span class='kw'>=</span> <span class='st'>"-apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, Ubuntu, roboto, noto, segoe ui, arial"</span>,
<span class='kw'>text_font_base</span> <span class='kw'>=</span> <span class='st'>"sans-serif"</span>,
<span class='kw'>header_font_google</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>header_font_family</span> <span class='kw'>=</span> <span class='st'>"Cabin"</span>,
<span class='kw'>header_font_weight</span> <span class='kw'>=</span> <span class='st'>"600"</span>,

<span class='kw'>header_font_url</span> <span class='kw'>=</span> <span class='st'>"https://fonts.googleapis.com/css?family=Cabin:600,600i&amp;display=swap"</span>,
<span class='kw'>code_font_google</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>code_font_family</span> <span class='kw'>=</span> <span class='st'>"Source Code Pro"</span>,
<span class='kw'>code_font_size</span> <span class='kw'>=</span> <span class='st'>"0.9rem"</span>,

<span class='kw'>code_font_url</span> <span class='kw'>=</span> <span class='st'>"https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700&amp;display=swap"</span>,
<span class='kw'>code_font_family_fallback</span> <span class='kw'>=</span> <span class='st'>"Menlo, Consolas, Monaco, Liberation Mono, Lucida Console"</span>,
<span class='kw'>colors</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>extra_css</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>extra_fonts</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>outfile</span> <span class='kw'>=</span> <span class='st'>"xaringan-themer.css"</span>
)</pre>

<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a>Arguments</h2>
<table class="ref-arguments">
<colgroup><col class="name" /><col class="desc" /></colgroup>
<tr>
<th>primary_color</th>
<td><p>Duotone Primary Color. Defaults to #1F4257. Modifies multiple CSS classes or elements.</p></td>
</tr>
<tr>
<th>secondary_color</th>
<td><p>Duotone Secondary Color. Defaults to #F97B64. Modifies multiple CSS classes or elements.</p></td>
</tr>
<tr>
<th>text_color</th>
<td><p>Text Color. Defaults to <code><a href='choose_dark_or_light.html'>choose_dark_or_light(primary_color, darken_color(primary_color, 0.9), lighten_color(secondary_color, 0.99))</a></code>. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>header_color</th>
<td><p>Header Color. Defaults to <code>secondary_color</code>. Modifies the <code>h1, h2, h3</code> elements.</p></td>
</tr>
<tr>
<th>background_color</th>
<td><p>Slide Background Color. Defaults to <code>primary_color</code>. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>link_color</th>
<td><p>Link Color. Defaults to <code>secondary_color</code>. Modifies the <code>a, a &gt; code</code> elements.</p></td>
</tr>
<tr>
<th>text_bold_color</th>
<td><p>Bold Text Color. Defaults to <code>secondary_color</code>. Modifies the <code>strong</code> element.</p></td>
</tr>
<tr>
<th>text_slide_number_color</th>
<td><p>Slide Number Color. Defaults to <code>text_color</code>. Modifies the <code>.remark-slide-number</code> class.</p></td>
</tr>
<tr>
<th>padding</th>
<td><p>Slide Padding in <code>top right [bottom left]</code> format. Defaults to 16px 64px 16px 64px. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>background_image</th>
<td><p>Background image applied to each <em>and every</em> slide. Set <code>title_slide_background_image = "none"</code> to remove the background image from the title slide. Defaults to <code>NULL</code>. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>background_size</th>
<td><p>Background image size, requires <code>background_image</code> to be set. If <code>background_image</code> is set, <code>background_size</code> will default to <code>cover</code> so the backround fills the screen. If both <code>background_image</code> and <code>background_position</code> are set, will default to 100 percent. Defaults to <code>NULL</code>. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>background_position</th>
<td><p>Background image position, requires <code>background_image</code> to be set, and it is recommended to adjust <code>background_size</code>. Defaults to <code>NULL</code>. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>code_highlight_color</th>
<td><p>Code Line Highlight. Defaults to rgba(255,255,0,0.5). Modifies the <code>.remark-code-line-highlighted</code> class.</p></td>
</tr>
<tr>
<th>code_inline_color</th>
<td><p>Inline Code Color. Defaults to <code>secondary_color</code>. Modifies the <code>.remark-inline-code</code> class.</p></td>
</tr>
<tr>
<th>code_inline_background_color</th>
<td><p>Inline Code Background Color. Defaults to <code>NULL</code>. Modifies the <code>.remark-inline-code</code> class.</p></td>
</tr>
<tr>
<th>code_inline_font_size</th>
<td><p>Inline Code Text Font Size. Defaults to 1rem. Modifies the <code>.remark-inline-code</code> class.</p></td>
</tr>
<tr>
<th>inverse_background_color</th>
<td><p>Inverse Background Color. Defaults to <code>secondary_color</code>. Modifies the <code>.inverse</code> class.</p></td>
</tr>
<tr>
<th>inverse_text_color</th>
<td><p>Inverse Text Color. Defaults to <code>primary_color</code>. Modifies the <code>.inverse</code> class.</p></td>
</tr>
<tr>
<th>inverse_text_shadow</th>
<td><p>Enables Shadow on text of inverse slides. Defaults to <code>FALSE</code>. Modifies the <code>.inverse</code> class.</p></td>
</tr>
<tr>
<th>inverse_header_color</th>
<td><p>Inverse Header Color. Defaults to <code>primary_color</code>. Modifies the <code>.inverse h1, .inverse h2, .inverse h3</code> classes.</p></td>
</tr>
<tr>
<th>title_slide_text_color</th>
<td><p>Title Slide Text Color. Defaults to <code>secondary_color</code>. Modifies the <code>.title-slide</code> class.</p></td>
</tr>
<tr>
<th>title_slide_background_color</th>
<td><p>Title Slide Background Color. Defaults to <code>primary_color</code>. Modifies the <code>.title-slide</code> class.</p></td>
</tr>
<tr>
<th>title_slide_background_image</th>
<td><p>Title Slide Background Image URL. Defaults to <code>NULL</code>. Modifies the <code>.title-slide</code> class.</p></td>
</tr>
<tr>
<th>title_slide_background_size</th>
<td><p>Title Slide Background Image Size, defaults to "cover" if background image is set. Defaults to <code>NULL</code>. Modifies the <code>.title-slide</code> class.</p></td>
</tr>
<tr>
<th>title_slide_background_position</th>
<td><p>Title Slide Background Image Position. Defaults to <code>NULL</code>. Modifies the <code>.title-slide</code> class.</p></td>
</tr>
<tr>
<th>footnote_color</th>
<td><p>Footnote text color (if <code>NA</code>, then it will be the same color as <code>text_color</code>). Defaults to <code>NULL</code>. Modifies the <code>.footnote</code> class.</p></td>
</tr>
<tr>
<th>footnote_font_size</th>
<td><p>Footnote font size. Defaults to 0.9rem. Modifies the <code>.footnote</code> class.</p></td>
</tr>
<tr>
<th>footnote_position_bottom</th>
<td><p>Footnote location from bottom of screen. Defaults to 60px. Modifies the <code>.footnote</code> class.</p></td>
</tr>
<tr>
<th>left_column_subtle_color</th>
<td><p>Left Column Text (not last). Defaults to <code><a href='apply_alpha.html'>apply_alpha(secondary_color, 0.6)</a></code>. Modifies the <code>.left-column h2, .left-column h3</code> classes.</p></td>
</tr>
<tr>
<th>left_column_selected_color</th>
<td><p>Left Column Current Selection. Defaults to <code>secondary_color</code>. Modifies the <code>.left-column h2:last-of-type, .left-column h3:last-child</code> classes.</p></td>
</tr>
<tr>
<th>blockquote_left_border_color</th>
<td><p>Blockquote Left Border Color. Defaults to <code><a href='apply_alpha.html'>apply_alpha(secondary_color, 0.5)</a></code>. Modifies the <code>blockquote</code> element.</p></td>
</tr>
<tr>
<th>table_border_color</th>
<td><p>Table top/bottom border. Defaults to #666. Modifies the <code>table: border-top, border-bottom</code> elements.</p></td>
</tr>
<tr>
<th>table_row_border_color</th>
<td><p>Table row inner bottom border. Defaults to #ddd. Modifies the <code>table thead th: border-bottom</code> elements.</p></td>
</tr>
<tr>
<th>table_row_even_background_color</th>
<td><p>Table Even Row Background Color. Defaults to <code><a href='lighten_darken_color.html'>lighten_color(primary_color, 0.1)</a></code>. Modifies the <code>thead, tfoot, tr:nth-child(even)</code> elements.</p></td>
</tr>
<tr>
<th>base_font_size</th>
<td><p>Base Font Size for All Slide Elements (must be <code>px</code>). Defaults to 20px. Modifies the <code>html</code> element.</p></td>
</tr>
<tr>
<th>text_font_size</th>
<td><p>Slide Body Text Font Size. Defaults to 1rem. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>header_h1_font_size</th>
<td><p>h1 Header Text Font Size. Defaults to 2.75rem. Modifies the <code>.remark-slide-content h1</code> class.</p></td>
</tr>
<tr>
<th>header_h2_font_size</th>
<td><p>h2 Header Text Font Size. Defaults to 2.25rem. Modifies the <code>.remark-slide-content h2</code> class.</p></td>
</tr>
<tr>
<th>header_h3_font_size</th>
<td><p>h3 Header Text Font Size. Defaults to 1.75rem. Modifies the <code>.remark-slide-content h3</code> class.</p></td>
</tr>
<tr>
<th>header_background_auto</th>
<td><p>Add background under slide title automatically for h1 header elements. If not enabled, use <code>class: header_background</code> to enable. Defaults to <code>FALSE</code>.</p></td>
</tr>
<tr>
<th>header_background_color</th>
<td><p>Background Color for h1 Header with Background. Defaults to <code>header_color</code>. Modifies the <code>.remark-slide-content h1</code> class.</p></td>
</tr>
<tr>
<th>header_background_text_color</th>
<td><p>Text Color for h1 Header with Background. Defaults to <code>background_color</code>. Modifies the <code>.remark-slide-content h1</code> class.</p></td>
</tr>
<tr>
<th>header_background_padding</th>
<td><p>Padding for h1 Header with Background. Defaults to <code>NULL</code>. Modifies the <code>.remark-slide-content h1</code> class.</p></td>
</tr>
<tr>
<th>header_background_content_padding_top</th>
<td><p>Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>header_background_ignore_classes</th>
<td><p>Slide Classes Where Header with Background will not be Applied. Defaults to <code><a href='https://rdrr.io/r/base/c.html'>c('normal', 'inverse', 'title', 'middle', 'bottom')</a></code>. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>text_slide_number_font_size</th>
<td><p>Slide Number Text Font Size. Defaults to 0.9rem. Modifies the <code>.remark-slide-number</code> class.</p></td>
</tr>
<tr>
<th>text_font_google</th>
<td><p>Use <code><a href='google_font.html'>google_font()</a></code> to specify body font. Defaults to <code>NULL</code>. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>text_font_family</th>
<td><p>Body Text Font Family (xaringan default is <code>'Droid Serif'</code>). Defaults to Noto Sans. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>text_font_weight</th>
<td><p>Body Text Font Weight. Defaults to normal. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>text_font_url</th>
<td><p>Body Text Font URL(s). Defaults to https://fonts.googleapis.com/css?family=Noto+Sans:400,400i,700,700i&amp;display=swap. Modifies the <code>@import url()</code> elements.</p></td>
</tr>
<tr>
<th>text_font_family_fallback</th>
<td><p>Body Text Font Fallbacks. Defaults to -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, Ubuntu, roboto, noto, segoe ui, arial. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>text_font_base</th>
<td><p>Body Text Base Font (Total Failure Fallback). Defaults to sans-serif. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>header_font_google</th>
<td><p>Use <code><a href='google_font.html'>google_font()</a></code> to specify header font. Defaults to <code>NULL</code>. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>header_font_family</th>
<td><p>Header Font Family (xaringan default is <code>'Yanone Kaffeesatz'</code>). Defaults to Cabin. Modifies the <code>h1, h2, h3</code> elements.</p></td>
</tr>
<tr>
<th>header_font_weight</th>
<td><p>Header Font Weight. Defaults to 600. Modifies the <code>h1, h2, h3</code> elements.</p></td>
</tr>
<tr>
<th>header_font_url</th>
<td><p>Header Font URL. Defaults to https://fonts.googleapis.com/css?family=Cabin:600,600i&amp;display=swap. Modifies the <code>@import url</code> elements.</p></td>
</tr>
<tr>
<th>code_font_google</th>
<td><p>Use <code><a href='google_font.html'>google_font()</a></code> to specify code font. Defaults to <code>NULL</code>. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>code_font_family</th>
<td><p>Code Font Family. Defaults to Source Code Pro. Modifies the <code>.remark-code, .remark-inline-code</code> classes.</p></td>
</tr>
<tr>
<th>code_font_size</th>
<td><p>Code Text Font Size. Defaults to 0.9rem. Modifies the <code>.remark-inline</code> class.</p></td>
</tr>
<tr>
<th>code_font_url</th>
<td><p>Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700&amp;display=swap. Modifies the <code>@import url</code> elements.</p></td>
</tr>
<tr>
<th>code_font_family_fallback</th>
<td><p>Code Font Fallback. Defaults to Menlo, Consolas, Monaco, Liberation Mono, Lucida Console. Modifies the <code>.remark-code, .remark-inline-code</code> classes.</p></td>
</tr>
<tr>
<th>colors</th>
<td><p>A named vector of custom colors. The names of the colors
become CSS variables and classes that can be used within your slides.
For example, <code>colors = c(blue = "#bad4ed")</code> adds a CSS variable
<code>--blue</code>, a <code>.blue</code> CSS class that applies the color to the text or
foreground color, and a <code>.bg-blue</code> CSS class that applies the color
to the background.</p></td>
</tr>
<tr>
<th>extra_css</th>
<td><p>A named list of CSS definitions each containing a named list
of CSS property-value pairs, i.e.
<code><a href='https://rdrr.io/r/base/list.html'>list(".class-id" = list("css-property" = "value"))</a></code></p></td>
</tr>
<tr>
<th>extra_fonts</th>
<td><p>A list of additional fonts to import, each list element
can be either a URL as a character string or a call to
<code><a href='google_font.html'>google_font</a>()</code></p></td>
</tr>
<tr>
<th>outfile</th>
<td><p>Customized xaringan CSS output file name, default is "xaringan-themer.css"</p></td>
</tr>
</table>

<h2 class="hasAnchor" id="see-also"><a class="anchor" href="#see-also"></a>See also</h2>

<div class='dont-index'><p>Other themes:
<code><a href='style_duo_accent_inverse.html'>style_duo_accent_inverse</a>()</code>,
<code><a href='style_duo_accent.html'>style_duo_accent</a>()</code>,
<code><a href='style_mono_accent_inverse.html'>style_mono_accent_inverse</a>()</code>,
<code><a href='style_mono_accent.html'>style_mono_accent</a>()</code>,
<code><a href='style_mono_dark.html'>style_mono_dark</a>()</code>,
<code><a href='style_mono_light.html'>style_mono_light</a>()</code>,
<code><a href='style_solarized_dark.html'>style_solarized_dark</a>()</code>,
<code><a href='style_solarized_light.html'>style_solarized_light</a>()</code>,
<code><a href='style_xaringan.html'>style_xaringan</a>()</code></p>
<p>Other Duotone themes:
<code><a href='style_duo_accent_inverse.html'>style_duo_accent_inverse</a>()</code>,
<code><a href='style_duo_accent.html'>style_duo_accent</a>()</code></p></div>

</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
<h2>Contents</h2>
<ul class="nav nav-pills nav-stacked">
<li><a href="#arguments">Arguments</a></li>
<li><a href="#see-also">See also</a></li>
</ul>

</div>
</div>


<footer>
<div class="copyright">
<p>Developed by <a href='https://www.garrickadenbuie.com'>Garrick Aden-Buie</a>.</p>
</div>

<div class="pkgdown">
<p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.4.1.</p>
</div>

</footer>
</div>



</body>
</html>



+ 546
- 0
dev/reference/style_duo_accent.html Просмотреть файл

<!-- Generated by pkgdown: do not edit by hand -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Duotone Accent Theme — style_duo_accent • xaringanthemer</title>


<!-- jquery -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<!-- Bootstrap -->

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha256-916EbMg70RQy9LHiGkXzG8hSg9EdNy97GazNG/aiY1w=" crossorigin="anonymous" />

<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha256-U5ZEeKfGNOja007MMD3YBI0A3OSZOQbeG6z2f2Y0hu8=" crossorigin="anonymous"></script>

<!-- Font Awesome icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/all.min.css" integrity="sha256-nAmazAk6vS34Xqo0BSrTb+abbtFlgsFK7NKSi6o7Y78=" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/v4-shims.min.css" integrity="sha256-6qHlizsOWFskGlwVOKuns+D1nB6ssZrHQrNj1wGplHc=" crossorigin="anonymous" />

<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.4/clipboard.min.js" integrity="sha256-FiZwavyI2V6+EXO1U+xzLG3IKldpiTFf3153ea9zikQ=" crossorigin="anonymous"></script>

<!-- headroom.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/headroom.min.js" integrity="sha256-DJFC1kqIhelURkuza0AvYal5RxMtpzLjFhsnVIeuk+U=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script>

<!-- pkgdown -->
<link href="../pkgdown.css" rel="stylesheet">
<script src="../pkgdown.js"></script>



<link href="../extra.css" rel="stylesheet">

<meta property="og:title" content="Duotone Accent Theme — style_duo_accent" />
<meta property="og:description" content="An default xaringan theme with a two colors used for color
accents on select elements (headers, bold text, etc.)." />
<meta name="twitter:card" content="summary" />


<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]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->



</head>

<body>
<div class="container template-reference-topic">
<header>
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">xaringanthemer</a>
<span class="version label label-danger" data-toggle="tooltip" data-placement="bottom" title="In-development version">0.2.0.9100</span>
</span>
</div>

<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="../index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="../articles/xaringanthemer.html">Get started</a>
</li>
<li>
<a href="../reference/index.html">Reference</a>
</li>
<li>
<a href="../articles/themes.html">Themes</a>
</li>
<li>
<a href="../articles/fonts.html">Fonts</a>
</li>
<li>
<a href="../articles/template-variables.html">Template Variables</a>
</li>
<li>
<a href="../articles/css-help.html">CSS Help</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="https://github.com/gadenbuie/xaringanthemer">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
<li>
<a href="https://twitter.com/grrrck">
<span class="fa fa-twitter fa-lg"></span>
</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->


</header>

<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
<h1>Duotone Accent Theme</h1>
<small class="dont-index">Source: <a href='https://github.com/gadenbuie/xaringanthemer/blob/master/R/style_duo_accent.R'><code>R/style_duo_accent.R</code></a></small>
<div class="hidden name"><code>style_duo_accent.Rd</code></div>
</div>

<div class="ref-description">
<p>An default xaringan theme with a two colors used for color
accents on select elements (headers, bold text, etc.).</p>
</div>

<pre class="usage"><span class='fu'>style_duo_accent</span>(
<span class='kw'>primary_color</span> <span class='kw'>=</span> <span class='st'>"#006747"</span>,
<span class='kw'>secondary_color</span> <span class='kw'>=</span> <span class='st'>"#CFC493"</span>,
<span class='kw'>white_color</span> <span class='kw'>=</span> <span class='st'>"#FFFFFF"</span>,
<span class='kw'>black_color</span> <span class='kw'>=</span> <span class='st'>"#000000"</span>,
<span class='kw'>text_color</span> <span class='kw'>=</span> <span class='no'>black_color</span>,
<span class='kw'>header_color</span> <span class='kw'>=</span> <span class='no'>primary_color</span>,
<span class='kw'>background_color</span> <span class='kw'>=</span> <span class='no'>white_color</span>,
<span class='kw'>link_color</span> <span class='kw'>=</span> <span class='fu'><a href='choose_dark_or_light.html'>choose_dark_or_light</a></span>(<span class='no'>secondary_color</span>, <span class='no'>primary_color</span>, <span class='no'>secondary_color</span>),
<span class='kw'>text_bold_color</span> <span class='kw'>=</span> <span class='fu'><a href='choose_dark_or_light.html'>choose_dark_or_light</a></span>(<span class='no'>secondary_color</span>, <span class='no'>primary_color</span>,
<span class='no'>secondary_color</span>),
<span class='kw'>text_slide_number_color</span> <span class='kw'>=</span> <span class='no'>primary_color</span>,
<span class='kw'>padding</span> <span class='kw'>=</span> <span class='st'>"16px 64px 16px 64px"</span>,
<span class='kw'>background_image</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>background_size</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>background_position</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>code_highlight_color</span> <span class='kw'>=</span> <span class='st'>"rgba(255,255,0,0.5)"</span>,
<span class='kw'>code_inline_color</span> <span class='kw'>=</span> <span class='fu'><a href='choose_dark_or_light.html'>choose_dark_or_light</a></span>(<span class='no'>secondary_color</span>, <span class='no'>primary_color</span>,
<span class='no'>secondary_color</span>),
<span class='kw'>code_inline_background_color</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>code_inline_font_size</span> <span class='kw'>=</span> <span class='st'>"1rem"</span>,
<span class='kw'>inverse_background_color</span> <span class='kw'>=</span> <span class='no'>secondary_color</span>,
<span class='kw'>inverse_text_color</span> <span class='kw'>=</span> <span class='fu'><a href='choose_dark_or_light.html'>choose_dark_or_light</a></span>(<span class='no'>secondary_color</span>, <span class='no'>black_color</span>, <span class='no'>white_color</span>),
<span class='kw'>inverse_text_shadow</span> <span class='kw'>=</span> <span class='fl'>FALSE</span>,
<span class='kw'>inverse_header_color</span> <span class='kw'>=</span> <span class='fu'><a href='choose_dark_or_light.html'>choose_dark_or_light</a></span>(<span class='no'>secondary_color</span>, <span class='no'>black_color</span>, <span class='no'>white_color</span>),
<span class='kw'>title_slide_text_color</span> <span class='kw'>=</span> <span class='fu'><a href='choose_dark_or_light.html'>choose_dark_or_light</a></span>(<span class='no'>primary_color</span>, <span class='no'>black_color</span>, <span class='no'>white_color</span>),
<span class='kw'>title_slide_background_color</span> <span class='kw'>=</span> <span class='no'>primary_color</span>,
<span class='kw'>title_slide_background_image</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>title_slide_background_size</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>title_slide_background_position</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>footnote_color</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>footnote_font_size</span> <span class='kw'>=</span> <span class='st'>"0.9rem"</span>,
<span class='kw'>footnote_position_bottom</span> <span class='kw'>=</span> <span class='st'>"60px"</span>,
<span class='kw'>left_column_subtle_color</span> <span class='kw'>=</span> <span class='fu'><a href='apply_alpha.html'>apply_alpha</a></span>(<span class='no'>primary_color</span>, <span class='fl'>0.6</span>),
<span class='kw'>left_column_selected_color</span> <span class='kw'>=</span> <span class='no'>primary_color</span>,
<span class='kw'>blockquote_left_border_color</span> <span class='kw'>=</span> <span class='fu'><a href='apply_alpha.html'>apply_alpha</a></span>(<span class='no'>secondary_color</span>, <span class='fl'>0.5</span>),
<span class='kw'>table_border_color</span> <span class='kw'>=</span> <span class='st'>"#666"</span>,
<span class='kw'>table_row_border_color</span> <span class='kw'>=</span> <span class='st'>"#ddd"</span>,
<span class='kw'>table_row_even_background_color</span> <span class='kw'>=</span> <span class='fu'><a href='lighten_darken_color.html'>lighten_color</a></span>(<span class='no'>secondary_color</span>, <span class='fl'>0.2</span>),
<span class='kw'>base_font_size</span> <span class='kw'>=</span> <span class='st'>"20px"</span>,
<span class='kw'>text_font_size</span> <span class='kw'>=</span> <span class='st'>"1rem"</span>,
<span class='kw'>header_h1_font_size</span> <span class='kw'>=</span> <span class='st'>"2.75rem"</span>,
<span class='kw'>header_h2_font_size</span> <span class='kw'>=</span> <span class='st'>"2.25rem"</span>,
<span class='kw'>header_h3_font_size</span> <span class='kw'>=</span> <span class='st'>"1.75rem"</span>,
<span class='kw'>header_background_auto</span> <span class='kw'>=</span> <span class='fl'>FALSE</span>,
<span class='kw'>header_background_color</span> <span class='kw'>=</span> <span class='no'>header_color</span>,
<span class='kw'>header_background_text_color</span> <span class='kw'>=</span> <span class='no'>background_color</span>,
<span class='kw'>header_background_padding</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>header_background_content_padding_top</span> <span class='kw'>=</span> <span class='st'>"7rem"</span>,
<span class='kw'>header_background_ignore_classes</span> <span class='kw'>=</span> <span class='fu'><a href='https://rdrr.io/r/base/c.html'>c</a></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='kw'>text_slide_number_font_size</span> <span class='kw'>=</span> <span class='st'>"0.9rem"</span>,
<span class='kw'>text_font_google</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>text_font_family</span> <span class='kw'>=</span> <span class='st'>"Noto Sans"</span>,
<span class='kw'>text_font_weight</span> <span class='kw'>=</span> <span class='st'>"normal"</span>,

<span class='kw'>text_font_url</span> <span class='kw'>=</span> <span class='st'>"https://fonts.googleapis.com/css?family=Noto+Sans:400,400i,700,700i&amp;display=swap"</span>,

<span class='kw'>text_font_family_fallback</span> <span class='kw'>=</span> <span class='st'>"-apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, Ubuntu, roboto, noto, segoe ui, arial"</span>,
<span class='kw'>text_font_base</span> <span class='kw'>=</span> <span class='st'>"sans-serif"</span>,
<span class='kw'>header_font_google</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>header_font_family</span> <span class='kw'>=</span> <span class='st'>"Cabin"</span>,
<span class='kw'>header_font_weight</span> <span class='kw'>=</span> <span class='st'>"600"</span>,

<span class='kw'>header_font_url</span> <span class='kw'>=</span> <span class='st'>"https://fonts.googleapis.com/css?family=Cabin:600,600i&amp;display=swap"</span>,
<span class='kw'>code_font_google</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>code_font_family</span> <span class='kw'>=</span> <span class='st'>"Source Code Pro"</span>,
<span class='kw'>code_font_size</span> <span class='kw'>=</span> <span class='st'>"0.9rem"</span>,

<span class='kw'>code_font_url</span> <span class='kw'>=</span> <span class='st'>"https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700&amp;display=swap"</span>,
<span class='kw'>code_font_family_fallback</span> <span class='kw'>=</span> <span class='st'>"Menlo, Consolas, Monaco, Liberation Mono, Lucida Console"</span>,
<span class='kw'>colors</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>extra_css</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>extra_fonts</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>outfile</span> <span class='kw'>=</span> <span class='st'>"xaringan-themer.css"</span>
)</pre>

<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a>Arguments</h2>
<table class="ref-arguments">
<colgroup><col class="name" /><col class="desc" /></colgroup>
<tr>
<th>primary_color</th>
<td><p>Duotone Primary Color. Defaults to #006747. Modifies multiple CSS classes or elements.</p></td>
</tr>
<tr>
<th>secondary_color</th>
<td><p>Duotone Secondary Color. Defaults to #CFC493. Modifies multiple CSS classes or elements.</p></td>
</tr>
<tr>
<th>white_color</th>
<td><p>Brightest color used. Defaults to #FFFFFF. Modifies multiple CSS classes or elements.</p></td>
</tr>
<tr>
<th>black_color</th>
<td><p>Darkest color used. Defaults to #000000. Modifies multiple CSS classes or elements.</p></td>
</tr>
<tr>
<th>text_color</th>
<td><p>Text Color. Defaults to <code>black_color</code>. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>header_color</th>
<td><p>Header Color. Defaults to <code>primary_color</code>. Modifies the <code>h1, h2, h3</code> elements.</p></td>
</tr>
<tr>
<th>background_color</th>
<td><p>Slide Background Color. Defaults to <code>white_color</code>. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>link_color</th>
<td><p>Link Color. Defaults to <code><a href='choose_dark_or_light.html'>choose_dark_or_light(secondary_color, primary_color, secondary_color)</a></code>. Modifies the <code>a, a &gt; code</code> elements.</p></td>
</tr>
<tr>
<th>text_bold_color</th>
<td><p>Bold Text Color. Defaults to <code><a href='choose_dark_or_light.html'>choose_dark_or_light(secondary_color, primary_color, secondary_color)</a></code>. Modifies the <code>strong</code> element.</p></td>
</tr>
<tr>
<th>text_slide_number_color</th>
<td><p>Slide Number Color. Defaults to <code>primary_color</code>. Modifies the <code>.remark-slide-number</code> class.</p></td>
</tr>
<tr>
<th>padding</th>
<td><p>Slide Padding in <code>top right [bottom left]</code> format. Defaults to 16px 64px 16px 64px. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>background_image</th>
<td><p>Background image applied to each <em>and every</em> slide. Set <code>title_slide_background_image = "none"</code> to remove the background image from the title slide. Defaults to <code>NULL</code>. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>background_size</th>
<td><p>Background image size, requires <code>background_image</code> to be set. If <code>background_image</code> is set, <code>background_size</code> will default to <code>cover</code> so the backround fills the screen. If both <code>background_image</code> and <code>background_position</code> are set, will default to 100 percent. Defaults to <code>NULL</code>. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>background_position</th>
<td><p>Background image position, requires <code>background_image</code> to be set, and it is recommended to adjust <code>background_size</code>. Defaults to <code>NULL</code>. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>code_highlight_color</th>
<td><p>Code Line Highlight. Defaults to rgba(255,255,0,0.5). Modifies the <code>.remark-code-line-highlighted</code> class.</p></td>
</tr>
<tr>
<th>code_inline_color</th>
<td><p>Inline Code Color. Defaults to <code><a href='choose_dark_or_light.html'>choose_dark_or_light(secondary_color, primary_color, secondary_color)</a></code>. Modifies the <code>.remark-inline-code</code> class.</p></td>
</tr>
<tr>
<th>code_inline_background_color</th>
<td><p>Inline Code Background Color. Defaults to <code>NULL</code>. Modifies the <code>.remark-inline-code</code> class.</p></td>
</tr>
<tr>
<th>code_inline_font_size</th>
<td><p>Inline Code Text Font Size. Defaults to 1rem. Modifies the <code>.remark-inline-code</code> class.</p></td>
</tr>
<tr>
<th>inverse_background_color</th>
<td><p>Inverse Background Color. Defaults to <code>secondary_color</code>. Modifies the <code>.inverse</code> class.</p></td>
</tr>
<tr>
<th>inverse_text_color</th>
<td><p>Inverse Text Color. Defaults to <code><a href='choose_dark_or_light.html'>choose_dark_or_light(secondary_color, black_color, white_color)</a></code>. Modifies the <code>.inverse</code> class.</p></td>
</tr>
<tr>
<th>inverse_text_shadow</th>
<td><p>Enables Shadow on text of inverse slides. Defaults to <code>FALSE</code>. Modifies the <code>.inverse</code> class.</p></td>
</tr>
<tr>
<th>inverse_header_color</th>
<td><p>Inverse Header Color. Defaults to <code><a href='choose_dark_or_light.html'>choose_dark_or_light(secondary_color, black_color, white_color)</a></code>. Modifies the <code>.inverse h1, .inverse h2, .inverse h3</code> classes.</p></td>
</tr>
<tr>
<th>title_slide_text_color</th>
<td><p>Title Slide Text Color. Defaults to <code><a href='choose_dark_or_light.html'>choose_dark_or_light(primary_color, black_color, white_color)</a></code>. Modifies the <code>.title-slide</code> class.</p></td>
</tr>
<tr>
<th>title_slide_background_color</th>
<td><p>Title Slide Background Color. Defaults to <code>primary_color</code>. Modifies the <code>.title-slide</code> class.</p></td>
</tr>
<tr>
<th>title_slide_background_image</th>
<td><p>Title Slide Background Image URL. Defaults to <code>NULL</code>. Modifies the <code>.title-slide</code> class.</p></td>
</tr>
<tr>
<th>title_slide_background_size</th>
<td><p>Title Slide Background Image Size, defaults to "cover" if background image is set. Defaults to <code>NULL</code>. Modifies the <code>.title-slide</code> class.</p></td>
</tr>
<tr>
<th>title_slide_background_position</th>
<td><p>Title Slide Background Image Position. Defaults to <code>NULL</code>. Modifies the <code>.title-slide</code> class.</p></td>
</tr>
<tr>
<th>footnote_color</th>
<td><p>Footnote text color (if <code>NA</code>, then it will be the same color as <code>text_color</code>). Defaults to <code>NULL</code>. Modifies the <code>.footnote</code> class.</p></td>
</tr>
<tr>
<th>footnote_font_size</th>
<td><p>Footnote font size. Defaults to 0.9rem. Modifies the <code>.footnote</code> class.</p></td>
</tr>
<tr>
<th>footnote_position_bottom</th>
<td><p>Footnote location from bottom of screen. Defaults to 60px. Modifies the <code>.footnote</code> class.</p></td>
</tr>
<tr>
<th>left_column_subtle_color</th>
<td><p>Left Column Text (not last). Defaults to <code><a href='apply_alpha.html'>apply_alpha(primary_color, 0.6)</a></code>. Modifies the <code>.left-column h2, .left-column h3</code> classes.</p></td>
</tr>
<tr>
<th>left_column_selected_color</th>
<td><p>Left Column Current Selection. Defaults to <code>primary_color</code>. Modifies the <code>.left-column h2:last-of-type, .left-column h3:last-child</code> classes.</p></td>
</tr>
<tr>
<th>blockquote_left_border_color</th>
<td><p>Blockquote Left Border Color. Defaults to <code><a href='apply_alpha.html'>apply_alpha(secondary_color, 0.5)</a></code>. Modifies the <code>blockquote</code> element.</p></td>
</tr>
<tr>
<th>table_border_color</th>
<td><p>Table top/bottom border. Defaults to #666. Modifies the <code>table: border-top, border-bottom</code> elements.</p></td>
</tr>
<tr>
<th>table_row_border_color</th>
<td><p>Table row inner bottom border. Defaults to #ddd. Modifies the <code>table thead th: border-bottom</code> elements.</p></td>
</tr>
<tr>
<th>table_row_even_background_color</th>
<td><p>Table Even Row Background Color. Defaults to <code><a href='lighten_darken_color.html'>lighten_color(secondary_color, 0.2)</a></code>. Modifies the <code>thead, tfoot, tr:nth-child(even)</code> elements.</p></td>
</tr>
<tr>
<th>base_font_size</th>
<td><p>Base Font Size for All Slide Elements (must be <code>px</code>). Defaults to 20px. Modifies the <code>html</code> element.</p></td>
</tr>
<tr>
<th>text_font_size</th>
<td><p>Slide Body Text Font Size. Defaults to 1rem. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>header_h1_font_size</th>
<td><p>h1 Header Text Font Size. Defaults to 2.75rem. Modifies the <code>.remark-slide-content h1</code> class.</p></td>
</tr>
<tr>
<th>header_h2_font_size</th>
<td><p>h2 Header Text Font Size. Defaults to 2.25rem. Modifies the <code>.remark-slide-content h2</code> class.</p></td>
</tr>
<tr>
<th>header_h3_font_size</th>
<td><p>h3 Header Text Font Size. Defaults to 1.75rem. Modifies the <code>.remark-slide-content h3</code> class.</p></td>
</tr>
<tr>
<th>header_background_auto</th>
<td><p>Add background under slide title automatically for h1 header elements. If not enabled, use <code>class: header_background</code> to enable. Defaults to <code>FALSE</code>.</p></td>
</tr>
<tr>
<th>header_background_color</th>
<td><p>Background Color for h1 Header with Background. Defaults to <code>header_color</code>. Modifies the <code>.remark-slide-content h1</code> class.</p></td>
</tr>
<tr>
<th>header_background_text_color</th>
<td><p>Text Color for h1 Header with Background. Defaults to <code>background_color</code>. Modifies the <code>.remark-slide-content h1</code> class.</p></td>
</tr>
<tr>
<th>header_background_padding</th>
<td><p>Padding for h1 Header with Background. Defaults to <code>NULL</code>. Modifies the <code>.remark-slide-content h1</code> class.</p></td>
</tr>
<tr>
<th>header_background_content_padding_top</th>
<td><p>Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>header_background_ignore_classes</th>
<td><p>Slide Classes Where Header with Background will not be Applied. Defaults to <code><a href='https://rdrr.io/r/base/c.html'>c('normal', 'inverse', 'title', 'middle', 'bottom')</a></code>. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>text_slide_number_font_size</th>
<td><p>Slide Number Text Font Size. Defaults to 0.9rem. Modifies the <code>.remark-slide-number</code> class.</p></td>
</tr>
<tr>
<th>text_font_google</th>
<td><p>Use <code><a href='google_font.html'>google_font()</a></code> to specify body font. Defaults to <code>NULL</code>. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>text_font_family</th>
<td><p>Body Text Font Family (xaringan default is <code>'Droid Serif'</code>). Defaults to Noto Sans. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>text_font_weight</th>
<td><p>Body Text Font Weight. Defaults to normal. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>text_font_url</th>
<td><p>Body Text Font URL(s). Defaults to https://fonts.googleapis.com/css?family=Noto+Sans:400,400i,700,700i&amp;display=swap. Modifies the <code>@import url()</code> elements.</p></td>
</tr>
<tr>
<th>text_font_family_fallback</th>
<td><p>Body Text Font Fallbacks. Defaults to -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, Ubuntu, roboto, noto, segoe ui, arial. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>text_font_base</th>
<td><p>Body Text Base Font (Total Failure Fallback). Defaults to sans-serif. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>header_font_google</th>
<td><p>Use <code><a href='google_font.html'>google_font()</a></code> to specify header font. Defaults to <code>NULL</code>. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>header_font_family</th>
<td><p>Header Font Family (xaringan default is <code>'Yanone Kaffeesatz'</code>). Defaults to Cabin. Modifies the <code>h1, h2, h3</code> elements.</p></td>
</tr>
<tr>
<th>header_font_weight</th>
<td><p>Header Font Weight. Defaults to 600. Modifies the <code>h1, h2, h3</code> elements.</p></td>
</tr>
<tr>
<th>header_font_url</th>
<td><p>Header Font URL. Defaults to https://fonts.googleapis.com/css?family=Cabin:600,600i&amp;display=swap. Modifies the <code>@import url</code> elements.</p></td>
</tr>
<tr>
<th>code_font_google</th>
<td><p>Use <code><a href='google_font.html'>google_font()</a></code> to specify code font. Defaults to <code>NULL</code>. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>code_font_family</th>
<td><p>Code Font Family. Defaults to Source Code Pro. Modifies the <code>.remark-code, .remark-inline-code</code> classes.</p></td>
</tr>
<tr>
<th>code_font_size</th>
<td><p>Code Text Font Size. Defaults to 0.9rem. Modifies the <code>.remark-inline</code> class.</p></td>
</tr>
<tr>
<th>code_font_url</th>
<td><p>Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700&amp;display=swap. Modifies the <code>@import url</code> elements.</p></td>
</tr>
<tr>
<th>code_font_family_fallback</th>
<td><p>Code Font Fallback. Defaults to Menlo, Consolas, Monaco, Liberation Mono, Lucida Console. Modifies the <code>.remark-code, .remark-inline-code</code> classes.</p></td>
</tr>
<tr>
<th>colors</th>
<td><p>A named vector of custom colors. The names of the colors
become CSS variables and classes that can be used within your slides.
For example, <code>colors = c(blue = "#bad4ed")</code> adds a CSS variable
<code>--blue</code>, a <code>.blue</code> CSS class that applies the color to the text or
foreground color, and a <code>.bg-blue</code> CSS class that applies the color
to the background.</p></td>
</tr>
<tr>
<th>extra_css</th>
<td><p>A named list of CSS definitions each containing a named list
of CSS property-value pairs, i.e.
<code><a href='https://rdrr.io/r/base/list.html'>list(".class-id" = list("css-property" = "value"))</a></code></p></td>
</tr>
<tr>
<th>extra_fonts</th>
<td><p>A list of additional fonts to import, each list element
can be either a URL as a character string or a call to
<code><a href='google_font.html'>google_font</a>()</code></p></td>
</tr>
<tr>
<th>outfile</th>
<td><p>Customized xaringan CSS output file name, default is "xaringan-themer.css"</p></td>
</tr>
</table>

<h2 class="hasAnchor" id="see-also"><a class="anchor" href="#see-also"></a>See also</h2>

<div class='dont-index'><p>Other themes:
<code><a href='style_duo_accent_inverse.html'>style_duo_accent_inverse</a>()</code>,
<code><a href='style_duo.html'>style_duo</a>()</code>,
<code><a href='style_mono_accent_inverse.html'>style_mono_accent_inverse</a>()</code>,
<code><a href='style_mono_accent.html'>style_mono_accent</a>()</code>,
<code><a href='style_mono_dark.html'>style_mono_dark</a>()</code>,
<code><a href='style_mono_light.html'>style_mono_light</a>()</code>,
<code><a href='style_solarized_dark.html'>style_solarized_dark</a>()</code>,
<code><a href='style_solarized_light.html'>style_solarized_light</a>()</code>,
<code><a href='style_xaringan.html'>style_xaringan</a>()</code></p>
<p>Other Duotone themes:
<code><a href='style_duo_accent_inverse.html'>style_duo_accent_inverse</a>()</code>,
<code><a href='style_duo.html'>style_duo</a>()</code></p></div>

</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
<h2>Contents</h2>
<ul class="nav nav-pills nav-stacked">
<li><a href="#arguments">Arguments</a></li>
<li><a href="#see-also">See also</a></li>
</ul>

</div>
</div>


<footer>
<div class="copyright">
<p>Developed by <a href='https://www.garrickadenbuie.com'>Garrick Aden-Buie</a>.</p>
</div>

<div class="pkgdown">
<p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.4.1.</p>
</div>

</footer>
</div>



</body>
</html>



+ 547
- 0
dev/reference/style_duo_accent_inverse.html Просмотреть файл

<!-- Generated by pkgdown: do not edit by hand -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Duotone Accent Inverse Theme — style_duo_accent_inverse • xaringanthemer</title>


<!-- jquery -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<!-- Bootstrap -->

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha256-916EbMg70RQy9LHiGkXzG8hSg9EdNy97GazNG/aiY1w=" crossorigin="anonymous" />

<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha256-U5ZEeKfGNOja007MMD3YBI0A3OSZOQbeG6z2f2Y0hu8=" crossorigin="anonymous"></script>

<!-- Font Awesome icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/all.min.css" integrity="sha256-nAmazAk6vS34Xqo0BSrTb+abbtFlgsFK7NKSi6o7Y78=" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/v4-shims.min.css" integrity="sha256-6qHlizsOWFskGlwVOKuns+D1nB6ssZrHQrNj1wGplHc=" crossorigin="anonymous" />

<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.4/clipboard.min.js" integrity="sha256-FiZwavyI2V6+EXO1U+xzLG3IKldpiTFf3153ea9zikQ=" crossorigin="anonymous"></script>

<!-- headroom.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/headroom.min.js" integrity="sha256-DJFC1kqIhelURkuza0AvYal5RxMtpzLjFhsnVIeuk+U=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script>

<!-- pkgdown -->
<link href="../pkgdown.css" rel="stylesheet">
<script src="../pkgdown.js"></script>



<link href="../extra.css" rel="stylesheet">

<meta property="og:title" content="Duotone Accent Inverse Theme — style_duo_accent_inverse" />
<meta property="og:description" content="An &quot;inverted&quot; default xaringan theme with a two colors used
for color accents on select elements (headers, bold text, etc.)." />
<meta name="twitter:card" content="summary" />


<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]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->



</head>

<body>
<div class="container template-reference-topic">
<header>
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">xaringanthemer</a>
<span class="version label label-danger" data-toggle="tooltip" data-placement="bottom" title="In-development version">0.2.0.9100</span>
</span>
</div>

<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="../index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="../articles/xaringanthemer.html">Get started</a>
</li>
<li>
<a href="../reference/index.html">Reference</a>
</li>
<li>
<a href="../articles/themes.html">Themes</a>
</li>
<li>
<a href="../articles/fonts.html">Fonts</a>
</li>
<li>
<a href="../articles/template-variables.html">Template Variables</a>
</li>
<li>
<a href="../articles/css-help.html">CSS Help</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="https://github.com/gadenbuie/xaringanthemer">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
<li>
<a href="https://twitter.com/grrrck">
<span class="fa fa-twitter fa-lg"></span>
</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->


</header>

<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
<h1>Duotone Accent Inverse Theme</h1>
<small class="dont-index">Source: <a href='https://github.com/gadenbuie/xaringanthemer/blob/master/R/style_duo_accent_inverse.R'><code>R/style_duo_accent_inverse.R</code></a></small>
<div class="hidden name"><code>style_duo_accent_inverse.Rd</code></div>
</div>

<div class="ref-description">
<p>An "inverted" default xaringan theme with a two colors used
for color accents on select elements (headers, bold text, etc.).</p>
</div>

<pre class="usage"><span class='fu'>style_duo_accent_inverse</span>(
<span class='kw'>primary_color</span> <span class='kw'>=</span> <span class='st'>"#006747"</span>,
<span class='kw'>secondary_color</span> <span class='kw'>=</span> <span class='st'>"#CFC493"</span>,
<span class='kw'>white_color</span> <span class='kw'>=</span> <span class='st'>"#FFFFFF"</span>,
<span class='kw'>black_color</span> <span class='kw'>=</span> <span class='st'>"#000000"</span>,
<span class='kw'>text_color</span> <span class='kw'>=</span> <span class='no'>white_color</span>,
<span class='kw'>header_color</span> <span class='kw'>=</span> <span class='no'>primary_color</span>,
<span class='kw'>background_color</span> <span class='kw'>=</span> <span class='no'>black_color</span>,
<span class='kw'>link_color</span> <span class='kw'>=</span> <span class='fu'><a href='choose_dark_or_light.html'>choose_dark_or_light</a></span>(<span class='no'>secondary_color</span>, <span class='no'>secondary_color</span>, <span class='no'>primary_color</span>),
<span class='kw'>text_bold_color</span> <span class='kw'>=</span> <span class='fu'><a href='choose_dark_or_light.html'>choose_dark_or_light</a></span>(<span class='no'>secondary_color</span>, <span class='no'>secondary_color</span>,
<span class='no'>primary_color</span>),
<span class='kw'>text_slide_number_color</span> <span class='kw'>=</span> <span class='no'>primary_color</span>,
<span class='kw'>padding</span> <span class='kw'>=</span> <span class='st'>"16px 64px 16px 64px"</span>,
<span class='kw'>background_image</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>background_size</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>background_position</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>code_highlight_color</span> <span class='kw'>=</span> <span class='st'>"rgba(255,255,0,0.5)"</span>,
<span class='kw'>code_inline_color</span> <span class='kw'>=</span> <span class='fu'><a href='choose_dark_or_light.html'>choose_dark_or_light</a></span>(<span class='no'>secondary_color</span>, <span class='no'>secondary_color</span>,
<span class='no'>primary_color</span>),
<span class='kw'>code_inline_background_color</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>code_inline_font_size</span> <span class='kw'>=</span> <span class='st'>"1rem"</span>,
<span class='kw'>inverse_background_color</span> <span class='kw'>=</span> <span class='no'>secondary_color</span>,
<span class='kw'>inverse_text_color</span> <span class='kw'>=</span> <span class='fu'><a href='choose_dark_or_light.html'>choose_dark_or_light</a></span>(<span class='no'>secondary_color</span>, <span class='no'>black_color</span>, <span class='no'>white_color</span>),
<span class='kw'>inverse_text_shadow</span> <span class='kw'>=</span> <span class='fl'>FALSE</span>,
<span class='kw'>inverse_header_color</span> <span class='kw'>=</span> <span class='fu'><a href='choose_dark_or_light.html'>choose_dark_or_light</a></span>(<span class='no'>secondary_color</span>, <span class='no'>black_color</span>, <span class='no'>white_color</span>),
<span class='kw'>title_slide_text_color</span> <span class='kw'>=</span> <span class='fu'><a href='choose_dark_or_light.html'>choose_dark_or_light</a></span>(<span class='no'>primary_color</span>, <span class='no'>black_color</span>, <span class='no'>white_color</span>),
<span class='kw'>title_slide_background_color</span> <span class='kw'>=</span> <span class='no'>primary_color</span>,
<span class='kw'>title_slide_background_image</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>title_slide_background_size</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>title_slide_background_position</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>footnote_color</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>footnote_font_size</span> <span class='kw'>=</span> <span class='st'>"0.9rem"</span>,
<span class='kw'>footnote_position_bottom</span> <span class='kw'>=</span> <span class='st'>"60px"</span>,
<span class='kw'>left_column_subtle_color</span> <span class='kw'>=</span> <span class='fu'><a href='apply_alpha.html'>apply_alpha</a></span>(<span class='no'>primary_color</span>, <span class='fl'>0.6</span>),
<span class='kw'>left_column_selected_color</span> <span class='kw'>=</span> <span class='no'>primary_color</span>,
<span class='kw'>blockquote_left_border_color</span> <span class='kw'>=</span> <span class='fu'><a href='apply_alpha.html'>apply_alpha</a></span>(<span class='no'>secondary_color</span>, <span class='fl'>0.5</span>),
<span class='kw'>table_border_color</span> <span class='kw'>=</span> <span class='st'>"#666"</span>,
<span class='kw'>table_row_border_color</span> <span class='kw'>=</span> <span class='st'>"#ddd"</span>,
<span class='kw'>table_row_even_background_color</span> <span class='kw'>=</span> <span class='fu'><a href='lighten_darken_color.html'>darken_color</a></span>(<span class='fu'><a href='choose_dark_or_light.html'>choose_dark_or_light</a></span>(<span class='no'>primary_color</span>,
<span class='no'>secondary_color</span>, <span class='no'>primary_color</span>), <span class='fl'>0.2</span>),
<span class='kw'>base_font_size</span> <span class='kw'>=</span> <span class='st'>"20px"</span>,
<span class='kw'>text_font_size</span> <span class='kw'>=</span> <span class='st'>"1rem"</span>,
<span class='kw'>header_h1_font_size</span> <span class='kw'>=</span> <span class='st'>"2.75rem"</span>,
<span class='kw'>header_h2_font_size</span> <span class='kw'>=</span> <span class='st'>"2.25rem"</span>,
<span class='kw'>header_h3_font_size</span> <span class='kw'>=</span> <span class='st'>"1.75rem"</span>,
<span class='kw'>header_background_auto</span> <span class='kw'>=</span> <span class='fl'>FALSE</span>,
<span class='kw'>header_background_color</span> <span class='kw'>=</span> <span class='no'>header_color</span>,
<span class='kw'>header_background_text_color</span> <span class='kw'>=</span> <span class='no'>background_color</span>,
<span class='kw'>header_background_padding</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>header_background_content_padding_top</span> <span class='kw'>=</span> <span class='st'>"7rem"</span>,
<span class='kw'>header_background_ignore_classes</span> <span class='kw'>=</span> <span class='fu'><a href='https://rdrr.io/r/base/c.html'>c</a></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='kw'>text_slide_number_font_size</span> <span class='kw'>=</span> <span class='st'>"0.9rem"</span>,
<span class='kw'>text_font_google</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>text_font_family</span> <span class='kw'>=</span> <span class='st'>"Noto Sans"</span>,
<span class='kw'>text_font_weight</span> <span class='kw'>=</span> <span class='st'>"normal"</span>,

<span class='kw'>text_font_url</span> <span class='kw'>=</span> <span class='st'>"https://fonts.googleapis.com/css?family=Noto+Sans:400,400i,700,700i&amp;display=swap"</span>,

<span class='kw'>text_font_family_fallback</span> <span class='kw'>=</span> <span class='st'>"-apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, Ubuntu, roboto, noto, segoe ui, arial"</span>,
<span class='kw'>text_font_base</span> <span class='kw'>=</span> <span class='st'>"sans-serif"</span>,
<span class='kw'>header_font_google</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>header_font_family</span> <span class='kw'>=</span> <span class='st'>"Cabin"</span>,
<span class='kw'>header_font_weight</span> <span class='kw'>=</span> <span class='st'>"600"</span>,

<span class='kw'>header_font_url</span> <span class='kw'>=</span> <span class='st'>"https://fonts.googleapis.com/css?family=Cabin:600,600i&amp;display=swap"</span>,
<span class='kw'>code_font_google</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>code_font_family</span> <span class='kw'>=</span> <span class='st'>"Source Code Pro"</span>,
<span class='kw'>code_font_size</span> <span class='kw'>=</span> <span class='st'>"0.9rem"</span>,

<span class='kw'>code_font_url</span> <span class='kw'>=</span> <span class='st'>"https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700&amp;display=swap"</span>,
<span class='kw'>code_font_family_fallback</span> <span class='kw'>=</span> <span class='st'>"Menlo, Consolas, Monaco, Liberation Mono, Lucida Console"</span>,
<span class='kw'>colors</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>extra_css</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>extra_fonts</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>outfile</span> <span class='kw'>=</span> <span class='st'>"xaringan-themer.css"</span>
)</pre>

<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a>Arguments</h2>
<table class="ref-arguments">
<colgroup><col class="name" /><col class="desc" /></colgroup>
<tr>
<th>primary_color</th>
<td><p>Duotone Primary Color. Defaults to #006747. Modifies multiple CSS classes or elements.</p></td>
</tr>
<tr>
<th>secondary_color</th>
<td><p>Duotone Secondary Color. Defaults to #CFC493. Modifies multiple CSS classes or elements.</p></td>
</tr>
<tr>
<th>white_color</th>
<td><p>Brightest color used. Defaults to #FFFFFF. Modifies multiple CSS classes or elements.</p></td>
</tr>
<tr>
<th>black_color</th>
<td><p>Darkest color used. Defaults to #000000. Modifies multiple CSS classes or elements.</p></td>
</tr>
<tr>
<th>text_color</th>
<td><p>Text Color. Defaults to <code>white_color</code>. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>header_color</th>
<td><p>Header Color. Defaults to <code>primary_color</code>. Modifies the <code>h1, h2, h3</code> elements.</p></td>
</tr>
<tr>
<th>background_color</th>
<td><p>Slide Background Color. Defaults to <code>black_color</code>. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>link_color</th>
<td><p>Link Color. Defaults to <code><a href='choose_dark_or_light.html'>choose_dark_or_light(secondary_color, secondary_color, primary_color)</a></code>. Modifies the <code>a, a &gt; code</code> elements.</p></td>
</tr>
<tr>
<th>text_bold_color</th>
<td><p>Bold Text Color. Defaults to <code><a href='choose_dark_or_light.html'>choose_dark_or_light(secondary_color, secondary_color, primary_color)</a></code>. Modifies the <code>strong</code> element.</p></td>
</tr>
<tr>
<th>text_slide_number_color</th>
<td><p>Slide Number Color. Defaults to <code>primary_color</code>. Modifies the <code>.remark-slide-number</code> class.</p></td>
</tr>
<tr>
<th>padding</th>
<td><p>Slide Padding in <code>top right [bottom left]</code> format. Defaults to 16px 64px 16px 64px. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>background_image</th>
<td><p>Background image applied to each <em>and every</em> slide. Set <code>title_slide_background_image = "none"</code> to remove the background image from the title slide. Defaults to <code>NULL</code>. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>background_size</th>
<td><p>Background image size, requires <code>background_image</code> to be set. If <code>background_image</code> is set, <code>background_size</code> will default to <code>cover</code> so the backround fills the screen. If both <code>background_image</code> and <code>background_position</code> are set, will default to 100 percent. Defaults to <code>NULL</code>. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>background_position</th>
<td><p>Background image position, requires <code>background_image</code> to be set, and it is recommended to adjust <code>background_size</code>. Defaults to <code>NULL</code>. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>code_highlight_color</th>
<td><p>Code Line Highlight. Defaults to rgba(255,255,0,0.5). Modifies the <code>.remark-code-line-highlighted</code> class.</p></td>
</tr>
<tr>
<th>code_inline_color</th>
<td><p>Inline Code Color. Defaults to <code><a href='choose_dark_or_light.html'>choose_dark_or_light(secondary_color, secondary_color, primary_color)</a></code>. Modifies the <code>.remark-inline-code</code> class.</p></td>
</tr>
<tr>
<th>code_inline_background_color</th>
<td><p>Inline Code Background Color. Defaults to <code>NULL</code>. Modifies the <code>.remark-inline-code</code> class.</p></td>
</tr>
<tr>
<th>code_inline_font_size</th>
<td><p>Inline Code Text Font Size. Defaults to 1rem. Modifies the <code>.remark-inline-code</code> class.</p></td>
</tr>
<tr>
<th>inverse_background_color</th>
<td><p>Inverse Background Color. Defaults to <code>secondary_color</code>. Modifies the <code>.inverse</code> class.</p></td>
</tr>
<tr>
<th>inverse_text_color</th>
<td><p>Inverse Text Color. Defaults to <code><a href='choose_dark_or_light.html'>choose_dark_or_light(secondary_color, black_color, white_color)</a></code>. Modifies the <code>.inverse</code> class.</p></td>
</tr>
<tr>
<th>inverse_text_shadow</th>
<td><p>Enables Shadow on text of inverse slides. Defaults to <code>FALSE</code>. Modifies the <code>.inverse</code> class.</p></td>
</tr>
<tr>
<th>inverse_header_color</th>
<td><p>Inverse Header Color. Defaults to <code><a href='choose_dark_or_light.html'>choose_dark_or_light(secondary_color, black_color, white_color)</a></code>. Modifies the <code>.inverse h1, .inverse h2, .inverse h3</code> classes.</p></td>
</tr>
<tr>
<th>title_slide_text_color</th>
<td><p>Title Slide Text Color. Defaults to <code><a href='choose_dark_or_light.html'>choose_dark_or_light(primary_color, black_color, white_color)</a></code>. Modifies the <code>.title-slide</code> class.</p></td>
</tr>
<tr>
<th>title_slide_background_color</th>
<td><p>Title Slide Background Color. Defaults to <code>primary_color</code>. Modifies the <code>.title-slide</code> class.</p></td>
</tr>
<tr>
<th>title_slide_background_image</th>
<td><p>Title Slide Background Image URL. Defaults to <code>NULL</code>. Modifies the <code>.title-slide</code> class.</p></td>
</tr>
<tr>
<th>title_slide_background_size</th>
<td><p>Title Slide Background Image Size, defaults to "cover" if background image is set. Defaults to <code>NULL</code>. Modifies the <code>.title-slide</code> class.</p></td>
</tr>
<tr>
<th>title_slide_background_position</th>
<td><p>Title Slide Background Image Position. Defaults to <code>NULL</code>. Modifies the <code>.title-slide</code> class.</p></td>
</tr>
<tr>
<th>footnote_color</th>
<td><p>Footnote text color (if <code>NA</code>, then it will be the same color as <code>text_color</code>). Defaults to <code>NULL</code>. Modifies the <code>.footnote</code> class.</p></td>
</tr>
<tr>
<th>footnote_font_size</th>
<td><p>Footnote font size. Defaults to 0.9rem. Modifies the <code>.footnote</code> class.</p></td>
</tr>
<tr>
<th>footnote_position_bottom</th>
<td><p>Footnote location from bottom of screen. Defaults to 60px. Modifies the <code>.footnote</code> class.</p></td>
</tr>
<tr>
<th>left_column_subtle_color</th>
<td><p>Left Column Text (not last). Defaults to <code><a href='apply_alpha.html'>apply_alpha(primary_color, 0.6)</a></code>. Modifies the <code>.left-column h2, .left-column h3</code> classes.</p></td>
</tr>
<tr>
<th>left_column_selected_color</th>
<td><p>Left Column Current Selection. Defaults to <code>primary_color</code>. Modifies the <code>.left-column h2:last-of-type, .left-column h3:last-child</code> classes.</p></td>
</tr>
<tr>
<th>blockquote_left_border_color</th>
<td><p>Blockquote Left Border Color. Defaults to <code><a href='apply_alpha.html'>apply_alpha(secondary_color, 0.5)</a></code>. Modifies the <code>blockquote</code> element.</p></td>
</tr>
<tr>
<th>table_border_color</th>
<td><p>Table top/bottom border. Defaults to #666. Modifies the <code>table: border-top, border-bottom</code> elements.</p></td>
</tr>
<tr>
<th>table_row_border_color</th>
<td><p>Table row inner bottom border. Defaults to #ddd. Modifies the <code>table thead th: border-bottom</code> elements.</p></td>
</tr>
<tr>
<th>table_row_even_background_color</th>
<td><p>Table Even Row Background Color. Defaults to <code><a href='lighten_darken_color.html'>darken_color(choose_dark_or_light(primary_color, secondary_color, primary_color), 0.2)</a></code>. Modifies the <code>thead, tfoot, tr:nth-child(even)</code> elements.</p></td>
</tr>
<tr>
<th>base_font_size</th>
<td><p>Base Font Size for All Slide Elements (must be <code>px</code>). Defaults to 20px. Modifies the <code>html</code> element.</p></td>
</tr>
<tr>
<th>text_font_size</th>
<td><p>Slide Body Text Font Size. Defaults to 1rem. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>header_h1_font_size</th>
<td><p>h1 Header Text Font Size. Defaults to 2.75rem. Modifies the <code>.remark-slide-content h1</code> class.</p></td>
</tr>
<tr>
<th>header_h2_font_size</th>
<td><p>h2 Header Text Font Size. Defaults to 2.25rem. Modifies the <code>.remark-slide-content h2</code> class.</p></td>
</tr>
<tr>
<th>header_h3_font_size</th>
<td><p>h3 Header Text Font Size. Defaults to 1.75rem. Modifies the <code>.remark-slide-content h3</code> class.</p></td>
</tr>
<tr>
<th>header_background_auto</th>
<td><p>Add background under slide title automatically for h1 header elements. If not enabled, use <code>class: header_background</code> to enable. Defaults to <code>FALSE</code>.</p></td>
</tr>
<tr>
<th>header_background_color</th>
<td><p>Background Color for h1 Header with Background. Defaults to <code>header_color</code>. Modifies the <code>.remark-slide-content h1</code> class.</p></td>
</tr>
<tr>
<th>header_background_text_color</th>
<td><p>Text Color for h1 Header with Background. Defaults to <code>background_color</code>. Modifies the <code>.remark-slide-content h1</code> class.</p></td>
</tr>
<tr>
<th>header_background_padding</th>
<td><p>Padding for h1 Header with Background. Defaults to <code>NULL</code>. Modifies the <code>.remark-slide-content h1</code> class.</p></td>
</tr>
<tr>
<th>header_background_content_padding_top</th>
<td><p>Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>header_background_ignore_classes</th>
<td><p>Slide Classes Where Header with Background will not be Applied. Defaults to <code><a href='https://rdrr.io/r/base/c.html'>c('normal', 'inverse', 'title', 'middle', 'bottom')</a></code>. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>text_slide_number_font_size</th>
<td><p>Slide Number Text Font Size. Defaults to 0.9rem. Modifies the <code>.remark-slide-number</code> class.</p></td>
</tr>
<tr>
<th>text_font_google</th>
<td><p>Use <code><a href='google_font.html'>google_font()</a></code> to specify body font. Defaults to <code>NULL</code>. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>text_font_family</th>
<td><p>Body Text Font Family (xaringan default is <code>'Droid Serif'</code>). Defaults to Noto Sans. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>text_font_weight</th>
<td><p>Body Text Font Weight. Defaults to normal. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>text_font_url</th>
<td><p>Body Text Font URL(s). Defaults to https://fonts.googleapis.com/css?family=Noto+Sans:400,400i,700,700i&amp;display=swap. Modifies the <code>@import url()</code> elements.</p></td>
</tr>
<tr>
<th>text_font_family_fallback</th>
<td><p>Body Text Font Fallbacks. Defaults to -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, Ubuntu, roboto, noto, segoe ui, arial. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>text_font_base</th>
<td><p>Body Text Base Font (Total Failure Fallback). Defaults to sans-serif. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>header_font_google</th>
<td><p>Use <code><a href='google_font.html'>google_font()</a></code> to specify header font. Defaults to <code>NULL</code>. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>header_font_family</th>
<td><p>Header Font Family (xaringan default is <code>'Yanone Kaffeesatz'</code>). Defaults to Cabin. Modifies the <code>h1, h2, h3</code> elements.</p></td>
</tr>
<tr>
<th>header_font_weight</th>
<td><p>Header Font Weight. Defaults to 600. Modifies the <code>h1, h2, h3</code> elements.</p></td>
</tr>
<tr>
<th>header_font_url</th>
<td><p>Header Font URL. Defaults to https://fonts.googleapis.com/css?family=Cabin:600,600i&amp;display=swap. Modifies the <code>@import url</code> elements.</p></td>
</tr>
<tr>
<th>code_font_google</th>
<td><p>Use <code><a href='google_font.html'>google_font()</a></code> to specify code font. Defaults to <code>NULL</code>. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>code_font_family</th>
<td><p>Code Font Family. Defaults to Source Code Pro. Modifies the <code>.remark-code, .remark-inline-code</code> classes.</p></td>
</tr>
<tr>
<th>code_font_size</th>
<td><p>Code Text Font Size. Defaults to 0.9rem. Modifies the <code>.remark-inline</code> class.</p></td>
</tr>
<tr>
<th>code_font_url</th>
<td><p>Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700&amp;display=swap. Modifies the <code>@import url</code> elements.</p></td>
</tr>
<tr>
<th>code_font_family_fallback</th>
<td><p>Code Font Fallback. Defaults to Menlo, Consolas, Monaco, Liberation Mono, Lucida Console. Modifies the <code>.remark-code, .remark-inline-code</code> classes.</p></td>
</tr>
<tr>
<th>colors</th>
<td><p>A named vector of custom colors. The names of the colors
become CSS variables and classes that can be used within your slides.
For example, <code>colors = c(blue = "#bad4ed")</code> adds a CSS variable
<code>--blue</code>, a <code>.blue</code> CSS class that applies the color to the text or
foreground color, and a <code>.bg-blue</code> CSS class that applies the color
to the background.</p></td>
</tr>
<tr>
<th>extra_css</th>
<td><p>A named list of CSS definitions each containing a named list
of CSS property-value pairs, i.e.
<code><a href='https://rdrr.io/r/base/list.html'>list(".class-id" = list("css-property" = "value"))</a></code></p></td>
</tr>
<tr>
<th>extra_fonts</th>
<td><p>A list of additional fonts to import, each list element
can be either a URL as a character string or a call to
<code><a href='google_font.html'>google_font</a>()</code></p></td>
</tr>
<tr>
<th>outfile</th>
<td><p>Customized xaringan CSS output file name, default is "xaringan-themer.css"</p></td>
</tr>
</table>

<h2 class="hasAnchor" id="see-also"><a class="anchor" href="#see-also"></a>See also</h2>

<div class='dont-index'><p>Other themes:
<code><a href='style_duo_accent.html'>style_duo_accent</a>()</code>,
<code><a href='style_duo.html'>style_duo</a>()</code>,
<code><a href='style_mono_accent_inverse.html'>style_mono_accent_inverse</a>()</code>,
<code><a href='style_mono_accent.html'>style_mono_accent</a>()</code>,
<code><a href='style_mono_dark.html'>style_mono_dark</a>()</code>,
<code><a href='style_mono_light.html'>style_mono_light</a>()</code>,
<code><a href='style_solarized_dark.html'>style_solarized_dark</a>()</code>,
<code><a href='style_solarized_light.html'>style_solarized_light</a>()</code>,
<code><a href='style_xaringan.html'>style_xaringan</a>()</code></p>
<p>Other Duotone themes:
<code><a href='style_duo_accent.html'>style_duo_accent</a>()</code>,
<code><a href='style_duo.html'>style_duo</a>()</code></p></div>

</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
<h2>Contents</h2>
<ul class="nav nav-pills nav-stacked">
<li><a href="#arguments">Arguments</a></li>
<li><a href="#see-also">See also</a></li>
</ul>

</div>
</div>


<footer>
<div class="copyright">
<p>Developed by <a href='https://www.garrickadenbuie.com'>Garrick Aden-Buie</a>.</p>
</div>

<div class="pkgdown">
<p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.4.1.</p>
</div>

</footer>
</div>



</body>
</html>



+ 246
- 0
dev/reference/style_extra_css.html Просмотреть файл

<!-- Generated by pkgdown: do not edit by hand -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Add Extra CSS Styles — style_extra_css • xaringanthemer</title>


<!-- jquery -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<!-- Bootstrap -->

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha256-916EbMg70RQy9LHiGkXzG8hSg9EdNy97GazNG/aiY1w=" crossorigin="anonymous" />

<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha256-U5ZEeKfGNOja007MMD3YBI0A3OSZOQbeG6z2f2Y0hu8=" crossorigin="anonymous"></script>

<!-- Font Awesome icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/all.min.css" integrity="sha256-nAmazAk6vS34Xqo0BSrTb+abbtFlgsFK7NKSi6o7Y78=" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/v4-shims.min.css" integrity="sha256-6qHlizsOWFskGlwVOKuns+D1nB6ssZrHQrNj1wGplHc=" crossorigin="anonymous" />

<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.4/clipboard.min.js" integrity="sha256-FiZwavyI2V6+EXO1U+xzLG3IKldpiTFf3153ea9zikQ=" crossorigin="anonymous"></script>

<!-- headroom.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/headroom.min.js" integrity="sha256-DJFC1kqIhelURkuza0AvYal5RxMtpzLjFhsnVIeuk+U=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script>

<!-- pkgdown -->
<link href="../pkgdown.css" rel="stylesheet">
<script src="../pkgdown.js"></script>



<link href="../extra.css" rel="stylesheet">

<meta property="og:title" content="Add Extra CSS Styles — style_extra_css" />
<meta property="og:description" content="Adds css elements to target outfile, typically a xaringanthemer css file.
The css argument takes a list of CSS classes and definitions (see examples below)
and appends CSS rules to outfile." />
<meta name="twitter:card" content="summary" />


<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]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->



</head>

<body>
<div class="container template-reference-topic">
<header>
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">xaringanthemer</a>
<span class="version label label-danger" data-toggle="tooltip" data-placement="bottom" title="In-development version">0.2.0.9100</span>
</span>
</div>

<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="../index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="../articles/xaringanthemer.html">Get started</a>
</li>
<li>
<a href="../reference/index.html">Reference</a>
</li>
<li>
<a href="../articles/themes.html">Themes</a>
</li>
<li>
<a href="../articles/fonts.html">Fonts</a>
</li>
<li>
<a href="../articles/template-variables.html">Template Variables</a>
</li>
<li>
<a href="../articles/css-help.html">CSS Help</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="https://github.com/gadenbuie/xaringanthemer">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
<li>
<a href="https://twitter.com/grrrck">
<span class="fa fa-twitter fa-lg"></span>
</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->


</header>

<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
<h1>Add Extra CSS Styles</h1>
<small class="dont-index">Source: <a href='https://github.com/gadenbuie/xaringanthemer/blob/master/R/style_extra_css.R'><code>R/style_extra_css.R</code></a></small>
<div class="hidden name"><code>style_extra_css.Rd</code></div>
</div>

<div class="ref-description">
<p>Adds css elements to target <code>outfile</code>, typically a xaringanthemer css file.
The <code>css</code> argument takes a list of CSS classes and definitions (see examples below)
and appends CSS rules to <code>outfile</code>.</p>
</div>

<pre class="usage"><span class='fu'>style_extra_css</span>(
<span class='no'>css</span>,
<span class='kw'>outfile</span> <span class='kw'>=</span> <span class='st'>"xaringan-themer.css"</span>,
<span class='kw'>append</span> <span class='kw'>=</span> <span class='fl'>TRUE</span>,
<span class='kw'>heading</span> <span class='kw'>=</span> <span class='st'>"Extra CSS"</span>
)</pre>

<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a>Arguments</h2>
<table class="ref-arguments">
<colgroup><col class="name" /><col class="desc" /></colgroup>
<tr>
<th>css</th>
<td><p>A named list of CSS definitions each containing a named list
of CSS property-value pairs, i.e.
<code><a href='https://rdrr.io/r/base/list.html'>list(".class-id" = list("css-property" = "value"))</a></code></p></td>
</tr>
<tr>
<th>outfile</th>
<td><p>Customized xaringan CSS output file name, default is "xaringan-themer.css"</p></td>
</tr>
<tr>
<th>append</th>
<td><p>If <code>TRUE</code> output will be appended to <code>outfile</code>; otherwise,
it will overwrite the contents of <code>outfile</code>.</p></td>
</tr>
<tr>
<th>heading</th>
<td><p>Heading added above extra CSS. Use <code>NULL</code> to disable.</p></td>
</tr>
</table>

<h2 class="hasAnchor" id="css-list"><a class="anchor" href="#css-list"></a>css list</h2>


<p>The <code>css</code> input must be a named list of css properties and values within a
named list of class identifiers, for example
<code><a href='https://rdrr.io/r/base/list.html'>list(".class-id" = list("css-property" = "value"))</a></code>.</p>

<h2 class="hasAnchor" id="examples"><a class="anchor" href="#examples"></a>Examples</h2>
<pre class="examples"><div class='input'><span class='fu'>style_extra_css</span>(
<span class='kw'>outfile</span> <span class='kw'>=</span> <span class='fu'><a href='https://rdrr.io/r/base/showConnections.html'>stdout</a></span>(),
<span class='kw'>css</span> <span class='kw'>=</span> <span class='fu'><a href='https://rdrr.io/r/base/list.html'>list</a></span>(
<span class='st'>".red"</span> <span class='kw'>=</span> <span class='fu'><a href='https://rdrr.io/r/base/list.html'>list</a></span>(<span class='kw'>color</span> <span class='kw'>=</span> <span class='st'>"red"</span>),
<span class='st'>".small"</span> <span class='kw'>=</span> <span class='fu'><a href='https://rdrr.io/r/base/list.html'>list</a></span>(<span class='st'>"font-size"</span> <span class='kw'>=</span> <span class='st'>"90%"</span>),
<span class='st'>".full-width"</span> <span class='kw'>=</span> <span class='fu'><a href='https://rdrr.io/r/base/list.html'>list</a></span>(
<span class='kw'>display</span> <span class='kw'>=</span> <span class='st'>"flex"</span>,
<span class='kw'>width</span> <span class='kw'>=</span> <span class='st'>"100%"</span>,
<span class='kw'>flex</span> <span class='kw'>=</span> <span class='st'>"1 1 auto"</span>
)
)
)</div><div class='output co'>#&gt;
#&gt;
#&gt; /* Extra CSS */
#&gt; .red {
#&gt; color: red;
#&gt; }
#&gt;
#&gt;
#&gt; /* Extra CSS */
#&gt; .small {
#&gt; font-size: 90%;
#&gt; }
#&gt;
#&gt;
#&gt; /* Extra CSS */
#&gt; .full-width {
#&gt; display: flex;
#&gt; width: 100%;
#&gt; flex: 1 1 auto;
#&gt; }</div></pre>
</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
<h2>Contents</h2>
<ul class="nav nav-pills nav-stacked">
<li><a href="#arguments">Arguments</a></li>
<li><a href="#css-list">css list</a></li>
<li><a href="#examples">Examples</a></li>
</ul>

</div>
</div>


<footer>
<div class="copyright">
<p>Developed by <a href='https://www.garrickadenbuie.com'>Garrick Aden-Buie</a>.</p>
</div>

<div class="pkgdown">
<p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.4.1.</p>
</div>

</footer>
</div>



</body>
</html>



+ 540
- 0
dev/reference/style_mono_accent.html Просмотреть файл

<!-- Generated by pkgdown: do not edit by hand -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Monotone Accent Theme — style_mono_accent • xaringanthemer</title>


<!-- jquery -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<!-- Bootstrap -->

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha256-916EbMg70RQy9LHiGkXzG8hSg9EdNy97GazNG/aiY1w=" crossorigin="anonymous" />

<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha256-U5ZEeKfGNOja007MMD3YBI0A3OSZOQbeG6z2f2Y0hu8=" crossorigin="anonymous"></script>

<!-- Font Awesome icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/all.min.css" integrity="sha256-nAmazAk6vS34Xqo0BSrTb+abbtFlgsFK7NKSi6o7Y78=" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/v4-shims.min.css" integrity="sha256-6qHlizsOWFskGlwVOKuns+D1nB6ssZrHQrNj1wGplHc=" crossorigin="anonymous" />

<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.4/clipboard.min.js" integrity="sha256-FiZwavyI2V6+EXO1U+xzLG3IKldpiTFf3153ea9zikQ=" crossorigin="anonymous"></script>

<!-- headroom.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/headroom.min.js" integrity="sha256-DJFC1kqIhelURkuza0AvYal5RxMtpzLjFhsnVIeuk+U=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script>

<!-- pkgdown -->
<link href="../pkgdown.css" rel="stylesheet">
<script src="../pkgdown.js"></script>



<link href="../extra.css" rel="stylesheet">

<meta property="og:title" content="Monotone Accent Theme — style_mono_accent" />
<meta property="og:description" content="The default xaringan theme with a single color used for color
accents on select elements (headers, bold text, etc.)." />
<meta name="twitter:card" content="summary" />


<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]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->



</head>

<body>
<div class="container template-reference-topic">
<header>
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">xaringanthemer</a>
<span class="version label label-danger" data-toggle="tooltip" data-placement="bottom" title="In-development version">0.2.0.9100</span>
</span>
</div>

<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="../index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="../articles/xaringanthemer.html">Get started</a>
</li>
<li>
<a href="../reference/index.html">Reference</a>
</li>
<li>
<a href="../articles/themes.html">Themes</a>
</li>
<li>
<a href="../articles/fonts.html">Fonts</a>
</li>
<li>
<a href="../articles/template-variables.html">Template Variables</a>
</li>
<li>
<a href="../articles/css-help.html">CSS Help</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="https://github.com/gadenbuie/xaringanthemer">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
<li>
<a href="https://twitter.com/grrrck">
<span class="fa fa-twitter fa-lg"></span>
</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->


</header>

<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
<h1>Monotone Accent Theme</h1>
<small class="dont-index">Source: <a href='https://github.com/gadenbuie/xaringanthemer/blob/master/R/style_mono_accent.R'><code>R/style_mono_accent.R</code></a></small>
<div class="hidden name"><code>style_mono_accent.Rd</code></div>
</div>

<div class="ref-description">
<p>The default xaringan theme with a single color used for color
accents on select elements (headers, bold text, etc.).</p>
</div>

<pre class="usage"><span class='fu'>style_mono_accent</span>(
<span class='kw'>base_color</span> <span class='kw'>=</span> <span class='st'>"#43418A"</span>,
<span class='kw'>white_color</span> <span class='kw'>=</span> <span class='st'>"#FFFFFF"</span>,
<span class='kw'>black_color</span> <span class='kw'>=</span> <span class='st'>"#272822"</span>,
<span class='kw'>text_color</span> <span class='kw'>=</span> <span class='no'>black_color</span>,
<span class='kw'>header_color</span> <span class='kw'>=</span> <span class='no'>base_color</span>,
<span class='kw'>background_color</span> <span class='kw'>=</span> <span class='no'>white_color</span>,
<span class='kw'>link_color</span> <span class='kw'>=</span> <span class='no'>base_color</span>,
<span class='kw'>text_bold_color</span> <span class='kw'>=</span> <span class='no'>base_color</span>,
<span class='kw'>text_slide_number_color</span> <span class='kw'>=</span> <span class='no'>base_color</span>,
<span class='kw'>padding</span> <span class='kw'>=</span> <span class='st'>"16px 64px 16px 64px"</span>,
<span class='kw'>background_image</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>background_size</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>background_position</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>code_highlight_color</span> <span class='kw'>=</span> <span class='st'>"rgba(255,255,0,0.5)"</span>,
<span class='kw'>code_inline_color</span> <span class='kw'>=</span> <span class='no'>base_color</span>,
<span class='kw'>code_inline_background_color</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>code_inline_font_size</span> <span class='kw'>=</span> <span class='st'>"1rem"</span>,
<span class='kw'>inverse_background_color</span> <span class='kw'>=</span> <span class='no'>base_color</span>,
<span class='kw'>inverse_text_color</span> <span class='kw'>=</span> <span class='no'>white_color</span>,
<span class='kw'>inverse_text_shadow</span> <span class='kw'>=</span> <span class='fl'>FALSE</span>,
<span class='kw'>inverse_header_color</span> <span class='kw'>=</span> <span class='no'>white_color</span>,
<span class='kw'>title_slide_text_color</span> <span class='kw'>=</span> <span class='no'>inverse_text_color</span>,
<span class='kw'>title_slide_background_color</span> <span class='kw'>=</span> <span class='no'>inverse_background_color</span>,
<span class='kw'>title_slide_background_image</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>title_slide_background_size</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>title_slide_background_position</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>footnote_color</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>footnote_font_size</span> <span class='kw'>=</span> <span class='st'>"0.9rem"</span>,
<span class='kw'>footnote_position_bottom</span> <span class='kw'>=</span> <span class='st'>"60px"</span>,
<span class='kw'>left_column_subtle_color</span> <span class='kw'>=</span> <span class='fu'><a href='apply_alpha.html'>apply_alpha</a></span>(<span class='no'>base_color</span>, <span class='fl'>0.6</span>),
<span class='kw'>left_column_selected_color</span> <span class='kw'>=</span> <span class='no'>base_color</span>,
<span class='kw'>blockquote_left_border_color</span> <span class='kw'>=</span> <span class='fu'><a href='apply_alpha.html'>apply_alpha</a></span>(<span class='no'>base_color</span>, <span class='fl'>0.5</span>),
<span class='kw'>table_border_color</span> <span class='kw'>=</span> <span class='st'>"#666"</span>,
<span class='kw'>table_row_border_color</span> <span class='kw'>=</span> <span class='st'>"#ddd"</span>,
<span class='kw'>table_row_even_background_color</span> <span class='kw'>=</span> <span class='fu'><a href='lighten_darken_color.html'>lighten_color</a></span>(<span class='no'>base_color</span>, <span class='fl'>0.7</span>),
<span class='kw'>base_font_size</span> <span class='kw'>=</span> <span class='st'>"20px"</span>,
<span class='kw'>text_font_size</span> <span class='kw'>=</span> <span class='st'>"1rem"</span>,
<span class='kw'>header_h1_font_size</span> <span class='kw'>=</span> <span class='st'>"2.75rem"</span>,
<span class='kw'>header_h2_font_size</span> <span class='kw'>=</span> <span class='st'>"2.25rem"</span>,
<span class='kw'>header_h3_font_size</span> <span class='kw'>=</span> <span class='st'>"1.75rem"</span>,
<span class='kw'>header_background_auto</span> <span class='kw'>=</span> <span class='fl'>FALSE</span>,
<span class='kw'>header_background_color</span> <span class='kw'>=</span> <span class='no'>header_color</span>,
<span class='kw'>header_background_text_color</span> <span class='kw'>=</span> <span class='no'>background_color</span>,
<span class='kw'>header_background_padding</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>header_background_content_padding_top</span> <span class='kw'>=</span> <span class='st'>"7rem"</span>,
<span class='kw'>header_background_ignore_classes</span> <span class='kw'>=</span> <span class='fu'><a href='https://rdrr.io/r/base/c.html'>c</a></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='kw'>text_slide_number_font_size</span> <span class='kw'>=</span> <span class='st'>"0.9rem"</span>,
<span class='kw'>text_font_google</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>text_font_family</span> <span class='kw'>=</span> <span class='st'>"Noto Sans"</span>,
<span class='kw'>text_font_weight</span> <span class='kw'>=</span> <span class='st'>"normal"</span>,

<span class='kw'>text_font_url</span> <span class='kw'>=</span> <span class='st'>"https://fonts.googleapis.com/css?family=Noto+Sans:400,400i,700,700i&amp;display=swap"</span>,

<span class='kw'>text_font_family_fallback</span> <span class='kw'>=</span> <span class='st'>"-apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, Ubuntu, roboto, noto, segoe ui, arial"</span>,
<span class='kw'>text_font_base</span> <span class='kw'>=</span> <span class='st'>"sans-serif"</span>,
<span class='kw'>header_font_google</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>header_font_family</span> <span class='kw'>=</span> <span class='st'>"Cabin"</span>,
<span class='kw'>header_font_weight</span> <span class='kw'>=</span> <span class='st'>"600"</span>,

<span class='kw'>header_font_url</span> <span class='kw'>=</span> <span class='st'>"https://fonts.googleapis.com/css?family=Cabin:600,600i&amp;display=swap"</span>,
<span class='kw'>code_font_google</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>code_font_family</span> <span class='kw'>=</span> <span class='st'>"Source Code Pro"</span>,
<span class='kw'>code_font_size</span> <span class='kw'>=</span> <span class='st'>"0.9rem"</span>,

<span class='kw'>code_font_url</span> <span class='kw'>=</span> <span class='st'>"https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700&amp;display=swap"</span>,
<span class='kw'>code_font_family_fallback</span> <span class='kw'>=</span> <span class='st'>"Menlo, Consolas, Monaco, Liberation Mono, Lucida Console"</span>,
<span class='kw'>colors</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>extra_css</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>extra_fonts</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>outfile</span> <span class='kw'>=</span> <span class='st'>"xaringan-themer.css"</span>
)</pre>

<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a>Arguments</h2>
<table class="ref-arguments">
<colgroup><col class="name" /><col class="desc" /></colgroup>
<tr>
<th>base_color</th>
<td><p>Monotone Base Color, works best with a strong color. Defaults to #43418A. Modifies multiple CSS classes or elements.</p></td>
</tr>
<tr>
<th>white_color</th>
<td><p>Brightest color used. Defaults to #FFFFFF. Modifies multiple CSS classes or elements.</p></td>
</tr>
<tr>
<th>black_color</th>
<td><p>Darkest color used. Defaults to #272822. Modifies multiple CSS classes or elements.</p></td>
</tr>
<tr>
<th>text_color</th>
<td><p>Text Color. Defaults to <code>black_color</code>. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>header_color</th>
<td><p>Header Color. Defaults to <code>base_color</code>. Modifies the <code>h1, h2, h3</code> elements.</p></td>
</tr>
<tr>
<th>background_color</th>
<td><p>Slide Background Color. Defaults to <code>white_color</code>. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>link_color</th>
<td><p>Link Color. Defaults to <code>base_color</code>. Modifies the <code>a, a &gt; code</code> elements.</p></td>
</tr>
<tr>
<th>text_bold_color</th>
<td><p>Bold Text Color. Defaults to <code>base_color</code>. Modifies the <code>strong</code> element.</p></td>
</tr>
<tr>
<th>text_slide_number_color</th>
<td><p>Slide Number Color. Defaults to <code>base_color</code>. Modifies the <code>.remark-slide-number</code> class.</p></td>
</tr>
<tr>
<th>padding</th>
<td><p>Slide Padding in <code>top right [bottom left]</code> format. Defaults to 16px 64px 16px 64px. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>background_image</th>
<td><p>Background image applied to each <em>and every</em> slide. Set <code>title_slide_background_image = "none"</code> to remove the background image from the title slide. Defaults to <code>NULL</code>. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>background_size</th>
<td><p>Background image size, requires <code>background_image</code> to be set. If <code>background_image</code> is set, <code>background_size</code> will default to <code>cover</code> so the backround fills the screen. If both <code>background_image</code> and <code>background_position</code> are set, will default to 100 percent. Defaults to <code>NULL</code>. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>background_position</th>
<td><p>Background image position, requires <code>background_image</code> to be set, and it is recommended to adjust <code>background_size</code>. Defaults to <code>NULL</code>. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>code_highlight_color</th>
<td><p>Code Line Highlight. Defaults to rgba(255,255,0,0.5). Modifies the <code>.remark-code-line-highlighted</code> class.</p></td>
</tr>
<tr>
<th>code_inline_color</th>
<td><p>Inline Code Color. Defaults to <code>base_color</code>. Modifies the <code>.remark-inline-code</code> class.</p></td>
</tr>
<tr>
<th>code_inline_background_color</th>
<td><p>Inline Code Background Color. Defaults to <code>NULL</code>. Modifies the <code>.remark-inline-code</code> class.</p></td>
</tr>
<tr>
<th>code_inline_font_size</th>
<td><p>Inline Code Text Font Size. Defaults to 1rem. Modifies the <code>.remark-inline-code</code> class.</p></td>
</tr>
<tr>
<th>inverse_background_color</th>
<td><p>Inverse Background Color. Defaults to <code>base_color</code>. Modifies the <code>.inverse</code> class.</p></td>
</tr>
<tr>
<th>inverse_text_color</th>
<td><p>Inverse Text Color. Defaults to <code>white_color</code>. Modifies the <code>.inverse</code> class.</p></td>
</tr>
<tr>
<th>inverse_text_shadow</th>
<td><p>Enables Shadow on text of inverse slides. Defaults to <code>FALSE</code>. Modifies the <code>.inverse</code> class.</p></td>
</tr>
<tr>
<th>inverse_header_color</th>
<td><p>Inverse Header Color. Defaults to <code>white_color</code>. Modifies the <code>.inverse h1, .inverse h2, .inverse h3</code> classes.</p></td>
</tr>
<tr>
<th>title_slide_text_color</th>
<td><p>Title Slide Text Color. Defaults to <code>inverse_text_color</code>. Modifies the <code>.title-slide</code> class.</p></td>
</tr>
<tr>
<th>title_slide_background_color</th>
<td><p>Title Slide Background Color. Defaults to <code>inverse_background_color</code>. Modifies the <code>.title-slide</code> class.</p></td>
</tr>
<tr>
<th>title_slide_background_image</th>
<td><p>Title Slide Background Image URL. Defaults to <code>NULL</code>. Modifies the <code>.title-slide</code> class.</p></td>
</tr>
<tr>
<th>title_slide_background_size</th>
<td><p>Title Slide Background Image Size, defaults to "cover" if background image is set. Defaults to <code>NULL</code>. Modifies the <code>.title-slide</code> class.</p></td>
</tr>
<tr>
<th>title_slide_background_position</th>
<td><p>Title Slide Background Image Position. Defaults to <code>NULL</code>. Modifies the <code>.title-slide</code> class.</p></td>
</tr>
<tr>
<th>footnote_color</th>
<td><p>Footnote text color (if <code>NA</code>, then it will be the same color as <code>text_color</code>). Defaults to <code>NULL</code>. Modifies the <code>.footnote</code> class.</p></td>
</tr>
<tr>
<th>footnote_font_size</th>
<td><p>Footnote font size. Defaults to 0.9rem. Modifies the <code>.footnote</code> class.</p></td>
</tr>
<tr>
<th>footnote_position_bottom</th>
<td><p>Footnote location from bottom of screen. Defaults to 60px. Modifies the <code>.footnote</code> class.</p></td>
</tr>
<tr>
<th>left_column_subtle_color</th>
<td><p>Left Column Text (not last). Defaults to <code><a href='apply_alpha.html'>apply_alpha(base_color, 0.6)</a></code>. Modifies the <code>.left-column h2, .left-column h3</code> classes.</p></td>
</tr>
<tr>
<th>left_column_selected_color</th>
<td><p>Left Column Current Selection. Defaults to <code>base_color</code>. Modifies the <code>.left-column h2:last-of-type, .left-column h3:last-child</code> classes.</p></td>
</tr>
<tr>
<th>blockquote_left_border_color</th>
<td><p>Blockquote Left Border Color. Defaults to <code><a href='apply_alpha.html'>apply_alpha(base_color, 0.5)</a></code>. Modifies the <code>blockquote</code> element.</p></td>
</tr>
<tr>
<th>table_border_color</th>
<td><p>Table top/bottom border. Defaults to #666. Modifies the <code>table: border-top, border-bottom</code> elements.</p></td>
</tr>
<tr>
<th>table_row_border_color</th>
<td><p>Table row inner bottom border. Defaults to #ddd. Modifies the <code>table thead th: border-bottom</code> elements.</p></td>
</tr>
<tr>
<th>table_row_even_background_color</th>
<td><p>Table Even Row Background Color. Defaults to <code><a href='lighten_darken_color.html'>lighten_color(base_color, 0.7)</a></code>. Modifies the <code>thead, tfoot, tr:nth-child(even)</code> elements.</p></td>
</tr>
<tr>
<th>base_font_size</th>
<td><p>Base Font Size for All Slide Elements (must be <code>px</code>). Defaults to 20px. Modifies the <code>html</code> element.</p></td>
</tr>
<tr>
<th>text_font_size</th>
<td><p>Slide Body Text Font Size. Defaults to 1rem. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>header_h1_font_size</th>
<td><p>h1 Header Text Font Size. Defaults to 2.75rem. Modifies the <code>.remark-slide-content h1</code> class.</p></td>
</tr>
<tr>
<th>header_h2_font_size</th>
<td><p>h2 Header Text Font Size. Defaults to 2.25rem. Modifies the <code>.remark-slide-content h2</code> class.</p></td>
</tr>
<tr>
<th>header_h3_font_size</th>
<td><p>h3 Header Text Font Size. Defaults to 1.75rem. Modifies the <code>.remark-slide-content h3</code> class.</p></td>
</tr>
<tr>
<th>header_background_auto</th>
<td><p>Add background under slide title automatically for h1 header elements. If not enabled, use <code>class: header_background</code> to enable. Defaults to <code>FALSE</code>.</p></td>
</tr>
<tr>
<th>header_background_color</th>
<td><p>Background Color for h1 Header with Background. Defaults to <code>header_color</code>. Modifies the <code>.remark-slide-content h1</code> class.</p></td>
</tr>
<tr>
<th>header_background_text_color</th>
<td><p>Text Color for h1 Header with Background. Defaults to <code>background_color</code>. Modifies the <code>.remark-slide-content h1</code> class.</p></td>
</tr>
<tr>
<th>header_background_padding</th>
<td><p>Padding for h1 Header with Background. Defaults to <code>NULL</code>. Modifies the <code>.remark-slide-content h1</code> class.</p></td>
</tr>
<tr>
<th>header_background_content_padding_top</th>
<td><p>Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>header_background_ignore_classes</th>
<td><p>Slide Classes Where Header with Background will not be Applied. Defaults to <code><a href='https://rdrr.io/r/base/c.html'>c('normal', 'inverse', 'title', 'middle', 'bottom')</a></code>. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>text_slide_number_font_size</th>
<td><p>Slide Number Text Font Size. Defaults to 0.9rem. Modifies the <code>.remark-slide-number</code> class.</p></td>
</tr>
<tr>
<th>text_font_google</th>
<td><p>Use <code><a href='google_font.html'>google_font()</a></code> to specify body font. Defaults to <code>NULL</code>. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>text_font_family</th>
<td><p>Body Text Font Family (xaringan default is <code>'Droid Serif'</code>). Defaults to Noto Sans. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>text_font_weight</th>
<td><p>Body Text Font Weight. Defaults to normal. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>text_font_url</th>
<td><p>Body Text Font URL(s). Defaults to https://fonts.googleapis.com/css?family=Noto+Sans:400,400i,700,700i&amp;display=swap. Modifies the <code>@import url()</code> elements.</p></td>
</tr>
<tr>
<th>text_font_family_fallback</th>
<td><p>Body Text Font Fallbacks. Defaults to -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, Ubuntu, roboto, noto, segoe ui, arial. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>text_font_base</th>
<td><p>Body Text Base Font (Total Failure Fallback). Defaults to sans-serif. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>header_font_google</th>
<td><p>Use <code><a href='google_font.html'>google_font()</a></code> to specify header font. Defaults to <code>NULL</code>. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>header_font_family</th>
<td><p>Header Font Family (xaringan default is <code>'Yanone Kaffeesatz'</code>). Defaults to Cabin. Modifies the <code>h1, h2, h3</code> elements.</p></td>
</tr>
<tr>
<th>header_font_weight</th>
<td><p>Header Font Weight. Defaults to 600. Modifies the <code>h1, h2, h3</code> elements.</p></td>
</tr>
<tr>
<th>header_font_url</th>
<td><p>Header Font URL. Defaults to https://fonts.googleapis.com/css?family=Cabin:600,600i&amp;display=swap. Modifies the <code>@import url</code> elements.</p></td>
</tr>
<tr>
<th>code_font_google</th>
<td><p>Use <code><a href='google_font.html'>google_font()</a></code> to specify code font. Defaults to <code>NULL</code>. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>code_font_family</th>
<td><p>Code Font Family. Defaults to Source Code Pro. Modifies the <code>.remark-code, .remark-inline-code</code> classes.</p></td>
</tr>
<tr>
<th>code_font_size</th>
<td><p>Code Text Font Size. Defaults to 0.9rem. Modifies the <code>.remark-inline</code> class.</p></td>
</tr>
<tr>
<th>code_font_url</th>
<td><p>Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700&amp;display=swap. Modifies the <code>@import url</code> elements.</p></td>
</tr>
<tr>
<th>code_font_family_fallback</th>
<td><p>Code Font Fallback. Defaults to Menlo, Consolas, Monaco, Liberation Mono, Lucida Console. Modifies the <code>.remark-code, .remark-inline-code</code> classes.</p></td>
</tr>
<tr>
<th>colors</th>
<td><p>A named vector of custom colors. The names of the colors
become CSS variables and classes that can be used within your slides.
For example, <code>colors = c(blue = "#bad4ed")</code> adds a CSS variable
<code>--blue</code>, a <code>.blue</code> CSS class that applies the color to the text or
foreground color, and a <code>.bg-blue</code> CSS class that applies the color
to the background.</p></td>
</tr>
<tr>
<th>extra_css</th>
<td><p>A named list of CSS definitions each containing a named list
of CSS property-value pairs, i.e.
<code><a href='https://rdrr.io/r/base/list.html'>list(".class-id" = list("css-property" = "value"))</a></code></p></td>
</tr>
<tr>
<th>extra_fonts</th>
<td><p>A list of additional fonts to import, each list element
can be either a URL as a character string or a call to
<code><a href='google_font.html'>google_font</a>()</code></p></td>
</tr>
<tr>
<th>outfile</th>
<td><p>Customized xaringan CSS output file name, default is "xaringan-themer.css"</p></td>
</tr>
</table>

<h2 class="hasAnchor" id="see-also"><a class="anchor" href="#see-also"></a>See also</h2>

<div class='dont-index'><p>Other themes:
<code><a href='style_duo_accent_inverse.html'>style_duo_accent_inverse</a>()</code>,
<code><a href='style_duo_accent.html'>style_duo_accent</a>()</code>,
<code><a href='style_duo.html'>style_duo</a>()</code>,
<code><a href='style_mono_accent_inverse.html'>style_mono_accent_inverse</a>()</code>,
<code><a href='style_mono_dark.html'>style_mono_dark</a>()</code>,
<code><a href='style_mono_light.html'>style_mono_light</a>()</code>,
<code><a href='style_solarized_dark.html'>style_solarized_dark</a>()</code>,
<code><a href='style_solarized_light.html'>style_solarized_light</a>()</code>,
<code><a href='style_xaringan.html'>style_xaringan</a>()</code></p>
<p>Other Monotone themes:
<code><a href='style_mono_accent_inverse.html'>style_mono_accent_inverse</a>()</code>,
<code><a href='style_mono_dark.html'>style_mono_dark</a>()</code>,
<code><a href='style_mono_light.html'>style_mono_light</a>()</code></p></div>

</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
<h2>Contents</h2>
<ul class="nav nav-pills nav-stacked">
<li><a href="#arguments">Arguments</a></li>
<li><a href="#see-also">See also</a></li>
</ul>

</div>
</div>


<footer>
<div class="copyright">
<p>Developed by <a href='https://www.garrickadenbuie.com'>Garrick Aden-Buie</a>.</p>
</div>

<div class="pkgdown">
<p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.4.1.</p>
</div>

</footer>
</div>



</body>
</html>



+ 540
- 0
dev/reference/style_mono_accent_inverse.html Просмотреть файл

<!-- Generated by pkgdown: do not edit by hand -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Monotone Accent Inverse Theme — style_mono_accent_inverse • xaringanthemer</title>


<!-- jquery -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<!-- Bootstrap -->

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha256-916EbMg70RQy9LHiGkXzG8hSg9EdNy97GazNG/aiY1w=" crossorigin="anonymous" />

<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha256-U5ZEeKfGNOja007MMD3YBI0A3OSZOQbeG6z2f2Y0hu8=" crossorigin="anonymous"></script>

<!-- Font Awesome icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/all.min.css" integrity="sha256-nAmazAk6vS34Xqo0BSrTb+abbtFlgsFK7NKSi6o7Y78=" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/v4-shims.min.css" integrity="sha256-6qHlizsOWFskGlwVOKuns+D1nB6ssZrHQrNj1wGplHc=" crossorigin="anonymous" />

<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.4/clipboard.min.js" integrity="sha256-FiZwavyI2V6+EXO1U+xzLG3IKldpiTFf3153ea9zikQ=" crossorigin="anonymous"></script>

<!-- headroom.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/headroom.min.js" integrity="sha256-DJFC1kqIhelURkuza0AvYal5RxMtpzLjFhsnVIeuk+U=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script>

<!-- pkgdown -->
<link href="../pkgdown.css" rel="stylesheet">
<script src="../pkgdown.js"></script>



<link href="../extra.css" rel="stylesheet">

<meta property="og:title" content="Monotone Accent Inverse Theme — style_mono_accent_inverse" />
<meta property="og:description" content="An &quot;inverted&quot; default xaringan theme with a single color used
for color accents on select elements (headers, bold text, etc.)." />
<meta name="twitter:card" content="summary" />


<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]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->



</head>

<body>
<div class="container template-reference-topic">
<header>
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">xaringanthemer</a>
<span class="version label label-danger" data-toggle="tooltip" data-placement="bottom" title="In-development version">0.2.0.9100</span>
</span>
</div>

<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="../index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="../articles/xaringanthemer.html">Get started</a>
</li>
<li>
<a href="../reference/index.html">Reference</a>
</li>
<li>
<a href="../articles/themes.html">Themes</a>
</li>
<li>
<a href="../articles/fonts.html">Fonts</a>
</li>
<li>
<a href="../articles/template-variables.html">Template Variables</a>
</li>
<li>
<a href="../articles/css-help.html">CSS Help</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="https://github.com/gadenbuie/xaringanthemer">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
<li>
<a href="https://twitter.com/grrrck">
<span class="fa fa-twitter fa-lg"></span>
</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->


</header>

<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
<h1>Monotone Accent Inverse Theme</h1>
<small class="dont-index">Source: <a href='https://github.com/gadenbuie/xaringanthemer/blob/master/R/style_mono_accent_inverse.R'><code>R/style_mono_accent_inverse.R</code></a></small>
<div class="hidden name"><code>style_mono_accent_inverse.Rd</code></div>
</div>

<div class="ref-description">
<p>An "inverted" default xaringan theme with a single color used
for color accents on select elements (headers, bold text, etc.).</p>
</div>

<pre class="usage"><span class='fu'>style_mono_accent_inverse</span>(
<span class='kw'>base_color</span> <span class='kw'>=</span> <span class='st'>"#3C989E"</span>,
<span class='kw'>white_color</span> <span class='kw'>=</span> <span class='st'>"#FFFFFF"</span>,
<span class='kw'>black_color</span> <span class='kw'>=</span> <span class='fu'><a href='lighten_darken_color.html'>darken_color</a></span>(<span class='no'>base_color</span>, <span class='fl'>0.9</span>),
<span class='kw'>text_color</span> <span class='kw'>=</span> <span class='no'>white_color</span>,
<span class='kw'>header_color</span> <span class='kw'>=</span> <span class='no'>base_color</span>,
<span class='kw'>background_color</span> <span class='kw'>=</span> <span class='no'>black_color</span>,
<span class='kw'>link_color</span> <span class='kw'>=</span> <span class='no'>base_color</span>,
<span class='kw'>text_bold_color</span> <span class='kw'>=</span> <span class='no'>base_color</span>,
<span class='kw'>text_slide_number_color</span> <span class='kw'>=</span> <span class='no'>base_color</span>,
<span class='kw'>padding</span> <span class='kw'>=</span> <span class='st'>"16px 64px 16px 64px"</span>,
<span class='kw'>background_image</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>background_size</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>background_position</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>code_highlight_color</span> <span class='kw'>=</span> <span class='st'>"rgba(255,255,0,0.5)"</span>,
<span class='kw'>code_inline_color</span> <span class='kw'>=</span> <span class='no'>base_color</span>,
<span class='kw'>code_inline_background_color</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>code_inline_font_size</span> <span class='kw'>=</span> <span class='st'>"1rem"</span>,
<span class='kw'>inverse_background_color</span> <span class='kw'>=</span> <span class='no'>base_color</span>,
<span class='kw'>inverse_text_color</span> <span class='kw'>=</span> <span class='no'>black_color</span>,
<span class='kw'>inverse_text_shadow</span> <span class='kw'>=</span> <span class='fl'>FALSE</span>,
<span class='kw'>inverse_header_color</span> <span class='kw'>=</span> <span class='no'>black_color</span>,
<span class='kw'>title_slide_text_color</span> <span class='kw'>=</span> <span class='no'>inverse_text_color</span>,
<span class='kw'>title_slide_background_color</span> <span class='kw'>=</span> <span class='no'>inverse_background_color</span>,
<span class='kw'>title_slide_background_image</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>title_slide_background_size</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>title_slide_background_position</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>footnote_color</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>footnote_font_size</span> <span class='kw'>=</span> <span class='st'>"0.9rem"</span>,
<span class='kw'>footnote_position_bottom</span> <span class='kw'>=</span> <span class='st'>"60px"</span>,
<span class='kw'>left_column_subtle_color</span> <span class='kw'>=</span> <span class='fu'><a href='apply_alpha.html'>apply_alpha</a></span>(<span class='no'>base_color</span>, <span class='fl'>0.6</span>),
<span class='kw'>left_column_selected_color</span> <span class='kw'>=</span> <span class='no'>base_color</span>,
<span class='kw'>blockquote_left_border_color</span> <span class='kw'>=</span> <span class='fu'><a href='apply_alpha.html'>apply_alpha</a></span>(<span class='no'>base_color</span>, <span class='fl'>0.5</span>),
<span class='kw'>table_border_color</span> <span class='kw'>=</span> <span class='st'>"#666"</span>,
<span class='kw'>table_row_border_color</span> <span class='kw'>=</span> <span class='st'>"#ddd"</span>,
<span class='kw'>table_row_even_background_color</span> <span class='kw'>=</span> <span class='fu'><a href='lighten_darken_color.html'>darken_color</a></span>(<span class='no'>base_color</span>, <span class='fl'>0.7</span>),
<span class='kw'>base_font_size</span> <span class='kw'>=</span> <span class='st'>"20px"</span>,
<span class='kw'>text_font_size</span> <span class='kw'>=</span> <span class='st'>"1rem"</span>,
<span class='kw'>header_h1_font_size</span> <span class='kw'>=</span> <span class='st'>"2.75rem"</span>,
<span class='kw'>header_h2_font_size</span> <span class='kw'>=</span> <span class='st'>"2.25rem"</span>,
<span class='kw'>header_h3_font_size</span> <span class='kw'>=</span> <span class='st'>"1.75rem"</span>,
<span class='kw'>header_background_auto</span> <span class='kw'>=</span> <span class='fl'>FALSE</span>,
<span class='kw'>header_background_color</span> <span class='kw'>=</span> <span class='no'>header_color</span>,
<span class='kw'>header_background_text_color</span> <span class='kw'>=</span> <span class='no'>background_color</span>,
<span class='kw'>header_background_padding</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>header_background_content_padding_top</span> <span class='kw'>=</span> <span class='st'>"7rem"</span>,
<span class='kw'>header_background_ignore_classes</span> <span class='kw'>=</span> <span class='fu'><a href='https://rdrr.io/r/base/c.html'>c</a></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='kw'>text_slide_number_font_size</span> <span class='kw'>=</span> <span class='st'>"0.9rem"</span>,
<span class='kw'>text_font_google</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>text_font_family</span> <span class='kw'>=</span> <span class='st'>"Noto Sans"</span>,
<span class='kw'>text_font_weight</span> <span class='kw'>=</span> <span class='st'>"normal"</span>,

<span class='kw'>text_font_url</span> <span class='kw'>=</span> <span class='st'>"https://fonts.googleapis.com/css?family=Noto+Sans:400,400i,700,700i&amp;display=swap"</span>,

<span class='kw'>text_font_family_fallback</span> <span class='kw'>=</span> <span class='st'>"-apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, Ubuntu, roboto, noto, segoe ui, arial"</span>,
<span class='kw'>text_font_base</span> <span class='kw'>=</span> <span class='st'>"sans-serif"</span>,
<span class='kw'>header_font_google</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>header_font_family</span> <span class='kw'>=</span> <span class='st'>"Cabin"</span>,
<span class='kw'>header_font_weight</span> <span class='kw'>=</span> <span class='st'>"600"</span>,

<span class='kw'>header_font_url</span> <span class='kw'>=</span> <span class='st'>"https://fonts.googleapis.com/css?family=Cabin:600,600i&amp;display=swap"</span>,
<span class='kw'>code_font_google</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>code_font_family</span> <span class='kw'>=</span> <span class='st'>"Source Code Pro"</span>,
<span class='kw'>code_font_size</span> <span class='kw'>=</span> <span class='st'>"0.9rem"</span>,

<span class='kw'>code_font_url</span> <span class='kw'>=</span> <span class='st'>"https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700&amp;display=swap"</span>,
<span class='kw'>code_font_family_fallback</span> <span class='kw'>=</span> <span class='st'>"Menlo, Consolas, Monaco, Liberation Mono, Lucida Console"</span>,
<span class='kw'>colors</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>extra_css</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>extra_fonts</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>outfile</span> <span class='kw'>=</span> <span class='st'>"xaringan-themer.css"</span>
)</pre>

<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a>Arguments</h2>
<table class="ref-arguments">
<colgroup><col class="name" /><col class="desc" /></colgroup>
<tr>
<th>base_color</th>
<td><p>Monotone Base Color, works best with a light color. Defaults to #3C989E. Modifies multiple CSS classes or elements.</p></td>
</tr>
<tr>
<th>white_color</th>
<td><p>Brightest color used, default is a very light version of <code>base_color</code>. Defaults to #FFFFFF. Modifies multiple CSS classes or elements.</p></td>
</tr>
<tr>
<th>black_color</th>
<td><p>Darkest color used, default is a very dark, version of <code>base_color</code>. Defaults to <code><a href='lighten_darken_color.html'>darken_color(base_color, 0.9)</a></code>. Modifies multiple CSS classes or elements.</p></td>
</tr>
<tr>
<th>text_color</th>
<td><p>Text Color. Defaults to <code>white_color</code>. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>header_color</th>
<td><p>Header Color. Defaults to <code>base_color</code>. Modifies the <code>h1, h2, h3</code> elements.</p></td>
</tr>
<tr>
<th>background_color</th>
<td><p>Slide Background Color. Defaults to <code>black_color</code>. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>link_color</th>
<td><p>Link Color. Defaults to <code>base_color</code>. Modifies the <code>a, a &gt; code</code> elements.</p></td>
</tr>
<tr>
<th>text_bold_color</th>
<td><p>Bold Text Color. Defaults to <code>base_color</code>. Modifies the <code>strong</code> element.</p></td>
</tr>
<tr>
<th>text_slide_number_color</th>
<td><p>Slide Number Color. Defaults to <code>base_color</code>. Modifies the <code>.remark-slide-number</code> class.</p></td>
</tr>
<tr>
<th>padding</th>
<td><p>Slide Padding in <code>top right [bottom left]</code> format. Defaults to 16px 64px 16px 64px. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>background_image</th>
<td><p>Background image applied to each <em>and every</em> slide. Set <code>title_slide_background_image = "none"</code> to remove the background image from the title slide. Defaults to <code>NULL</code>. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>background_size</th>
<td><p>Background image size, requires <code>background_image</code> to be set. If <code>background_image</code> is set, <code>background_size</code> will default to <code>cover</code> so the backround fills the screen. If both <code>background_image</code> and <code>background_position</code> are set, will default to 100 percent. Defaults to <code>NULL</code>. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>background_position</th>
<td><p>Background image position, requires <code>background_image</code> to be set, and it is recommended to adjust <code>background_size</code>. Defaults to <code>NULL</code>. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>code_highlight_color</th>
<td><p>Code Line Highlight. Defaults to rgba(255,255,0,0.5). Modifies the <code>.remark-code-line-highlighted</code> class.</p></td>
</tr>
<tr>
<th>code_inline_color</th>
<td><p>Inline Code Color. Defaults to <code>base_color</code>. Modifies the <code>.remark-inline-code</code> class.</p></td>
</tr>
<tr>
<th>code_inline_background_color</th>
<td><p>Inline Code Background Color. Defaults to <code>NULL</code>. Modifies the <code>.remark-inline-code</code> class.</p></td>
</tr>
<tr>
<th>code_inline_font_size</th>
<td><p>Inline Code Text Font Size. Defaults to 1rem. Modifies the <code>.remark-inline-code</code> class.</p></td>
</tr>
<tr>
<th>inverse_background_color</th>
<td><p>Inverse Background Color. Defaults to <code>base_color</code>. Modifies the <code>.inverse</code> class.</p></td>
</tr>
<tr>
<th>inverse_text_color</th>
<td><p>Inverse Text Color. Defaults to <code>black_color</code>. Modifies the <code>.inverse</code> class.</p></td>
</tr>
<tr>
<th>inverse_text_shadow</th>
<td><p>Enables Shadow on text of inverse slides. Defaults to <code>FALSE</code>. Modifies the <code>.inverse</code> class.</p></td>
</tr>
<tr>
<th>inverse_header_color</th>
<td><p>Inverse Header Color. Defaults to <code>black_color</code>. Modifies the <code>.inverse h1, .inverse h2, .inverse h3</code> classes.</p></td>
</tr>
<tr>
<th>title_slide_text_color</th>
<td><p>Title Slide Text Color. Defaults to <code>inverse_text_color</code>. Modifies the <code>.title-slide</code> class.</p></td>
</tr>
<tr>
<th>title_slide_background_color</th>
<td><p>Title Slide Background Color. Defaults to <code>inverse_background_color</code>. Modifies the <code>.title-slide</code> class.</p></td>
</tr>
<tr>
<th>title_slide_background_image</th>
<td><p>Title Slide Background Image URL. Defaults to <code>NULL</code>. Modifies the <code>.title-slide</code> class.</p></td>
</tr>
<tr>
<th>title_slide_background_size</th>
<td><p>Title Slide Background Image Size, defaults to "cover" if background image is set. Defaults to <code>NULL</code>. Modifies the <code>.title-slide</code> class.</p></td>
</tr>
<tr>
<th>title_slide_background_position</th>
<td><p>Title Slide Background Image Position. Defaults to <code>NULL</code>. Modifies the <code>.title-slide</code> class.</p></td>
</tr>
<tr>
<th>footnote_color</th>
<td><p>Footnote text color (if <code>NA</code>, then it will be the same color as <code>text_color</code>). Defaults to <code>NULL</code>. Modifies the <code>.footnote</code> class.</p></td>
</tr>
<tr>
<th>footnote_font_size</th>
<td><p>Footnote font size. Defaults to 0.9rem. Modifies the <code>.footnote</code> class.</p></td>
</tr>
<tr>
<th>footnote_position_bottom</th>
<td><p>Footnote location from bottom of screen. Defaults to 60px. Modifies the <code>.footnote</code> class.</p></td>
</tr>
<tr>
<th>left_column_subtle_color</th>
<td><p>Left Column Text (not last). Defaults to <code><a href='apply_alpha.html'>apply_alpha(base_color, 0.6)</a></code>. Modifies the <code>.left-column h2, .left-column h3</code> classes.</p></td>
</tr>
<tr>
<th>left_column_selected_color</th>
<td><p>Left Column Current Selection. Defaults to <code>base_color</code>. Modifies the <code>.left-column h2:last-of-type, .left-column h3:last-child</code> classes.</p></td>
</tr>
<tr>
<th>blockquote_left_border_color</th>
<td><p>Blockquote Left Border Color. Defaults to <code><a href='apply_alpha.html'>apply_alpha(base_color, 0.5)</a></code>. Modifies the <code>blockquote</code> element.</p></td>
</tr>
<tr>
<th>table_border_color</th>
<td><p>Table top/bottom border. Defaults to #666. Modifies the <code>table: border-top, border-bottom</code> elements.</p></td>
</tr>
<tr>
<th>table_row_border_color</th>
<td><p>Table row inner bottom border. Defaults to #ddd. Modifies the <code>table thead th: border-bottom</code> elements.</p></td>
</tr>
<tr>
<th>table_row_even_background_color</th>
<td><p>Table Even Row Background Color. Defaults to <code><a href='lighten_darken_color.html'>darken_color(base_color, 0.7)</a></code>. Modifies the <code>thead, tfoot, tr:nth-child(even)</code> elements.</p></td>
</tr>
<tr>
<th>base_font_size</th>
<td><p>Base Font Size for All Slide Elements (must be <code>px</code>). Defaults to 20px. Modifies the <code>html</code> element.</p></td>
</tr>
<tr>
<th>text_font_size</th>
<td><p>Slide Body Text Font Size. Defaults to 1rem. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>header_h1_font_size</th>
<td><p>h1 Header Text Font Size. Defaults to 2.75rem. Modifies the <code>.remark-slide-content h1</code> class.</p></td>
</tr>
<tr>
<th>header_h2_font_size</th>
<td><p>h2 Header Text Font Size. Defaults to 2.25rem. Modifies the <code>.remark-slide-content h2</code> class.</p></td>
</tr>
<tr>
<th>header_h3_font_size</th>
<td><p>h3 Header Text Font Size. Defaults to 1.75rem. Modifies the <code>.remark-slide-content h3</code> class.</p></td>
</tr>
<tr>
<th>header_background_auto</th>
<td><p>Add background under slide title automatically for h1 header elements. If not enabled, use <code>class: header_background</code> to enable. Defaults to <code>FALSE</code>.</p></td>
</tr>
<tr>
<th>header_background_color</th>
<td><p>Background Color for h1 Header with Background. Defaults to <code>header_color</code>. Modifies the <code>.remark-slide-content h1</code> class.</p></td>
</tr>
<tr>
<th>header_background_text_color</th>
<td><p>Text Color for h1 Header with Background. Defaults to <code>background_color</code>. Modifies the <code>.remark-slide-content h1</code> class.</p></td>
</tr>
<tr>
<th>header_background_padding</th>
<td><p>Padding for h1 Header with Background. Defaults to <code>NULL</code>. Modifies the <code>.remark-slide-content h1</code> class.</p></td>
</tr>
<tr>
<th>header_background_content_padding_top</th>
<td><p>Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>header_background_ignore_classes</th>
<td><p>Slide Classes Where Header with Background will not be Applied. Defaults to <code><a href='https://rdrr.io/r/base/c.html'>c('normal', 'inverse', 'title', 'middle', 'bottom')</a></code>. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>text_slide_number_font_size</th>
<td><p>Slide Number Text Font Size. Defaults to 0.9rem. Modifies the <code>.remark-slide-number</code> class.</p></td>
</tr>
<tr>
<th>text_font_google</th>
<td><p>Use <code><a href='google_font.html'>google_font()</a></code> to specify body font. Defaults to <code>NULL</code>. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>text_font_family</th>
<td><p>Body Text Font Family (xaringan default is <code>'Droid Serif'</code>). Defaults to Noto Sans. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>text_font_weight</th>
<td><p>Body Text Font Weight. Defaults to normal. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>text_font_url</th>
<td><p>Body Text Font URL(s). Defaults to https://fonts.googleapis.com/css?family=Noto+Sans:400,400i,700,700i&amp;display=swap. Modifies the <code>@import url()</code> elements.</p></td>
</tr>
<tr>
<th>text_font_family_fallback</th>
<td><p>Body Text Font Fallbacks. Defaults to -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, Ubuntu, roboto, noto, segoe ui, arial. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>text_font_base</th>
<td><p>Body Text Base Font (Total Failure Fallback). Defaults to sans-serif. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>header_font_google</th>
<td><p>Use <code><a href='google_font.html'>google_font()</a></code> to specify header font. Defaults to <code>NULL</code>. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>header_font_family</th>
<td><p>Header Font Family (xaringan default is <code>'Yanone Kaffeesatz'</code>). Defaults to Cabin. Modifies the <code>h1, h2, h3</code> elements.</p></td>
</tr>
<tr>
<th>header_font_weight</th>
<td><p>Header Font Weight. Defaults to 600. Modifies the <code>h1, h2, h3</code> elements.</p></td>
</tr>
<tr>
<th>header_font_url</th>
<td><p>Header Font URL. Defaults to https://fonts.googleapis.com/css?family=Cabin:600,600i&amp;display=swap. Modifies the <code>@import url</code> elements.</p></td>
</tr>
<tr>
<th>code_font_google</th>
<td><p>Use <code><a href='google_font.html'>google_font()</a></code> to specify code font. Defaults to <code>NULL</code>. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>code_font_family</th>
<td><p>Code Font Family. Defaults to Source Code Pro. Modifies the <code>.remark-code, .remark-inline-code</code> classes.</p></td>
</tr>
<tr>
<th>code_font_size</th>
<td><p>Code Text Font Size. Defaults to 0.9rem. Modifies the <code>.remark-inline</code> class.</p></td>
</tr>
<tr>
<th>code_font_url</th>
<td><p>Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700&amp;display=swap. Modifies the <code>@import url</code> elements.</p></td>
</tr>
<tr>
<th>code_font_family_fallback</th>
<td><p>Code Font Fallback. Defaults to Menlo, Consolas, Monaco, Liberation Mono, Lucida Console. Modifies the <code>.remark-code, .remark-inline-code</code> classes.</p></td>
</tr>
<tr>
<th>colors</th>
<td><p>A named vector of custom colors. The names of the colors
become CSS variables and classes that can be used within your slides.
For example, <code>colors = c(blue = "#bad4ed")</code> adds a CSS variable
<code>--blue</code>, a <code>.blue</code> CSS class that applies the color to the text or
foreground color, and a <code>.bg-blue</code> CSS class that applies the color
to the background.</p></td>
</tr>
<tr>
<th>extra_css</th>
<td><p>A named list of CSS definitions each containing a named list
of CSS property-value pairs, i.e.
<code><a href='https://rdrr.io/r/base/list.html'>list(".class-id" = list("css-property" = "value"))</a></code></p></td>
</tr>
<tr>
<th>extra_fonts</th>
<td><p>A list of additional fonts to import, each list element
can be either a URL as a character string or a call to
<code><a href='google_font.html'>google_font</a>()</code></p></td>
</tr>
<tr>
<th>outfile</th>
<td><p>Customized xaringan CSS output file name, default is "xaringan-themer.css"</p></td>
</tr>
</table>

<h2 class="hasAnchor" id="see-also"><a class="anchor" href="#see-also"></a>See also</h2>

<div class='dont-index'><p>Other themes:
<code><a href='style_duo_accent_inverse.html'>style_duo_accent_inverse</a>()</code>,
<code><a href='style_duo_accent.html'>style_duo_accent</a>()</code>,
<code><a href='style_duo.html'>style_duo</a>()</code>,
<code><a href='style_mono_accent.html'>style_mono_accent</a>()</code>,
<code><a href='style_mono_dark.html'>style_mono_dark</a>()</code>,
<code><a href='style_mono_light.html'>style_mono_light</a>()</code>,
<code><a href='style_solarized_dark.html'>style_solarized_dark</a>()</code>,
<code><a href='style_solarized_light.html'>style_solarized_light</a>()</code>,
<code><a href='style_xaringan.html'>style_xaringan</a>()</code></p>
<p>Other Monotone themes:
<code><a href='style_mono_accent.html'>style_mono_accent</a>()</code>,
<code><a href='style_mono_dark.html'>style_mono_dark</a>()</code>,
<code><a href='style_mono_light.html'>style_mono_light</a>()</code></p></div>

</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
<h2>Contents</h2>
<ul class="nav nav-pills nav-stacked">
<li><a href="#arguments">Arguments</a></li>
<li><a href="#see-also">See also</a></li>
</ul>

</div>
</div>


<footer>
<div class="copyright">
<p>Developed by <a href='https://www.garrickadenbuie.com'>Garrick Aden-Buie</a>.</p>
</div>

<div class="pkgdown">
<p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.4.1.</p>
</div>

</footer>
</div>



</body>
</html>



+ 538
- 0
dev/reference/style_mono_dark.html Просмотреть файл

<!-- Generated by pkgdown: do not edit by hand -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Monotone Dark Theme — style_mono_dark • xaringanthemer</title>


<!-- jquery -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<!-- Bootstrap -->

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha256-916EbMg70RQy9LHiGkXzG8hSg9EdNy97GazNG/aiY1w=" crossorigin="anonymous" />

<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha256-U5ZEeKfGNOja007MMD3YBI0A3OSZOQbeG6z2f2Y0hu8=" crossorigin="anonymous"></script>

<!-- Font Awesome icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/all.min.css" integrity="sha256-nAmazAk6vS34Xqo0BSrTb+abbtFlgsFK7NKSi6o7Y78=" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/v4-shims.min.css" integrity="sha256-6qHlizsOWFskGlwVOKuns+D1nB6ssZrHQrNj1wGplHc=" crossorigin="anonymous" />

<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.4/clipboard.min.js" integrity="sha256-FiZwavyI2V6+EXO1U+xzLG3IKldpiTFf3153ea9zikQ=" crossorigin="anonymous"></script>

<!-- headroom.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/headroom.min.js" integrity="sha256-DJFC1kqIhelURkuza0AvYal5RxMtpzLjFhsnVIeuk+U=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script>

<!-- pkgdown -->
<link href="../pkgdown.css" rel="stylesheet">
<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 name="twitter:card" content="summary" />


<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]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->



</head>

<body>
<div class="container template-reference-topic">
<header>
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">xaringanthemer</a>
<span class="version label label-danger" data-toggle="tooltip" data-placement="bottom" title="In-development version">0.2.0.9100</span>
</span>
</div>

<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="../index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="../articles/xaringanthemer.html">Get started</a>
</li>
<li>
<a href="../reference/index.html">Reference</a>
</li>
<li>
<a href="../articles/themes.html">Themes</a>
</li>
<li>
<a href="../articles/fonts.html">Fonts</a>
</li>
<li>
<a href="../articles/template-variables.html">Template Variables</a>
</li>
<li>
<a href="../articles/css-help.html">CSS Help</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="https://github.com/gadenbuie/xaringanthemer">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
<li>
<a href="https://twitter.com/grrrck">
<span class="fa fa-twitter fa-lg"></span>
</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->


</header>

<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
<h1>Monotone Dark Theme</h1>
<small class="dont-index">Source: <a href='https://github.com/gadenbuie/xaringanthemer/blob/master/R/style_mono_dark.R'><code>R/style_mono_dark.R</code></a></small>
<div class="hidden name"><code>style_mono_dark.Rd</code></div>
</div>

<div class="ref-description">
<p>A dark monotone theme based around a single color.</p>
</div>

<pre class="usage"><span class='fu'>style_mono_dark</span>(
<span class='kw'>base_color</span> <span class='kw'>=</span> <span class='st'>"#cbf7ed"</span>,
<span class='kw'>white_color</span> <span class='kw'>=</span> <span class='fu'><a href='lighten_darken_color.html'>lighten_color</a></span>(<span class='no'>base_color</span>, <span class='fl'>0.8</span>),
<span class='kw'>black_color</span> <span class='kw'>=</span> <span class='fu'><a href='lighten_darken_color.html'>darken_color</a></span>(<span class='no'>base_color</span>, <span class='fl'>0.85</span>),
<span class='kw'>text_color</span> <span class='kw'>=</span> <span class='no'>white_color</span>,
<span class='kw'>header_color</span> <span class='kw'>=</span> <span class='no'>base_color</span>,
<span class='kw'>background_color</span> <span class='kw'>=</span> <span class='no'>black_color</span>,
<span class='kw'>link_color</span> <span class='kw'>=</span> <span class='no'>base_color</span>,
<span class='kw'>text_bold_color</span> <span class='kw'>=</span> <span class='no'>base_color</span>,
<span class='kw'>text_slide_number_color</span> <span class='kw'>=</span> <span class='no'>base_color</span>,
<span class='kw'>padding</span> <span class='kw'>=</span> <span class='st'>"16px 64px 16px 64px"</span>,
<span class='kw'>background_image</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>background_size</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>background_position</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>code_highlight_color</span> <span class='kw'>=</span> <span class='st'>"rgba(255,255,0,0.5)"</span>,
<span class='kw'>code_inline_color</span> <span class='kw'>=</span> <span class='no'>base_color</span>,
<span class='kw'>code_inline_background_color</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>code_inline_font_size</span> <span class='kw'>=</span> <span class='st'>"1rem"</span>,
<span class='kw'>inverse_background_color</span> <span class='kw'>=</span> <span class='no'>base_color</span>,
<span class='kw'>inverse_text_color</span> <span class='kw'>=</span> <span class='no'>black_color</span>,
<span class='kw'>inverse_text_shadow</span> <span class='kw'>=</span> <span class='fl'>FALSE</span>,
<span class='kw'>inverse_header_color</span> <span class='kw'>=</span> <span class='no'>black_color</span>,
<span class='kw'>title_slide_text_color</span> <span class='kw'>=</span> <span class='no'>inverse_text_color</span>,
<span class='kw'>title_slide_background_color</span> <span class='kw'>=</span> <span class='no'>inverse_background_color</span>,
<span class='kw'>title_slide_background_image</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>title_slide_background_size</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>title_slide_background_position</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>footnote_color</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>footnote_font_size</span> <span class='kw'>=</span> <span class='st'>"0.9rem"</span>,
<span class='kw'>footnote_position_bottom</span> <span class='kw'>=</span> <span class='st'>"60px"</span>,
<span class='kw'>left_column_subtle_color</span> <span class='kw'>=</span> <span class='fu'><a href='apply_alpha.html'>apply_alpha</a></span>(<span class='no'>base_color</span>, <span class='fl'>0.6</span>),
<span class='kw'>left_column_selected_color</span> <span class='kw'>=</span> <span class='no'>base_color</span>,
<span class='kw'>blockquote_left_border_color</span> <span class='kw'>=</span> <span class='fu'><a href='apply_alpha.html'>apply_alpha</a></span>(<span class='no'>base_color</span>, <span class='fl'>0.5</span>),
<span class='kw'>table_border_color</span> <span class='kw'>=</span> <span class='st'>"#666"</span>,
<span class='kw'>table_row_border_color</span> <span class='kw'>=</span> <span class='st'>"#ddd"</span>,
<span class='kw'>table_row_even_background_color</span> <span class='kw'>=</span> <span class='fu'><a href='lighten_darken_color.html'>darken_color</a></span>(<span class='no'>base_color</span>, <span class='fl'>0.7</span>),
<span class='kw'>base_font_size</span> <span class='kw'>=</span> <span class='st'>"20px"</span>,
<span class='kw'>text_font_size</span> <span class='kw'>=</span> <span class='st'>"1rem"</span>,
<span class='kw'>header_h1_font_size</span> <span class='kw'>=</span> <span class='st'>"2.75rem"</span>,
<span class='kw'>header_h2_font_size</span> <span class='kw'>=</span> <span class='st'>"2.25rem"</span>,
<span class='kw'>header_h3_font_size</span> <span class='kw'>=</span> <span class='st'>"1.75rem"</span>,
<span class='kw'>header_background_auto</span> <span class='kw'>=</span> <span class='fl'>FALSE</span>,
<span class='kw'>header_background_color</span> <span class='kw'>=</span> <span class='no'>header_color</span>,
<span class='kw'>header_background_text_color</span> <span class='kw'>=</span> <span class='no'>background_color</span>,
<span class='kw'>header_background_padding</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>header_background_content_padding_top</span> <span class='kw'>=</span> <span class='st'>"7rem"</span>,
<span class='kw'>header_background_ignore_classes</span> <span class='kw'>=</span> <span class='fu'><a href='https://rdrr.io/r/base/c.html'>c</a></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='kw'>text_slide_number_font_size</span> <span class='kw'>=</span> <span class='st'>"0.9rem"</span>,
<span class='kw'>text_font_google</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>text_font_family</span> <span class='kw'>=</span> <span class='st'>"Noto Sans"</span>,
<span class='kw'>text_font_weight</span> <span class='kw'>=</span> <span class='st'>"normal"</span>,

<span class='kw'>text_font_url</span> <span class='kw'>=</span> <span class='st'>"https://fonts.googleapis.com/css?family=Noto+Sans:400,400i,700,700i&amp;display=swap"</span>,

<span class='kw'>text_font_family_fallback</span> <span class='kw'>=</span> <span class='st'>"-apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, Ubuntu, roboto, noto, segoe ui, arial"</span>,
<span class='kw'>text_font_base</span> <span class='kw'>=</span> <span class='st'>"sans-serif"</span>,
<span class='kw'>header_font_google</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>header_font_family</span> <span class='kw'>=</span> <span class='st'>"Cabin"</span>,
<span class='kw'>header_font_weight</span> <span class='kw'>=</span> <span class='st'>"600"</span>,

<span class='kw'>header_font_url</span> <span class='kw'>=</span> <span class='st'>"https://fonts.googleapis.com/css?family=Cabin:600,600i&amp;display=swap"</span>,
<span class='kw'>code_font_google</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>code_font_family</span> <span class='kw'>=</span> <span class='st'>"Source Code Pro"</span>,
<span class='kw'>code_font_size</span> <span class='kw'>=</span> <span class='st'>"0.9rem"</span>,

<span class='kw'>code_font_url</span> <span class='kw'>=</span> <span class='st'>"https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700&amp;display=swap"</span>,
<span class='kw'>code_font_family_fallback</span> <span class='kw'>=</span> <span class='st'>"Menlo, Consolas, Monaco, Liberation Mono, Lucida Console"</span>,
<span class='kw'>colors</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>extra_css</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>extra_fonts</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>outfile</span> <span class='kw'>=</span> <span class='st'>"xaringan-themer.css"</span>
)</pre>

<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a>Arguments</h2>
<table class="ref-arguments">
<colgroup><col class="name" /><col class="desc" /></colgroup>
<tr>
<th>base_color</th>
<td><p>Monotone Base Color, works best with a light color.. Defaults to #cbf7ed. Modifies multiple CSS classes or elements.</p></td>
</tr>
<tr>
<th>white_color</th>
<td><p>Brightest color used, default is a very light version of <code>base_color</code>. Defaults to <code><a href='lighten_darken_color.html'>lighten_color(base_color, 0.8)</a></code>. Modifies multiple CSS classes or elements.</p></td>
</tr>
<tr>
<th>black_color</th>
<td><p>Darkest color used, default is a very dark, version of <code>base_color</code>. Defaults to <code><a href='lighten_darken_color.html'>darken_color(base_color, 0.85)</a></code>. Modifies multiple CSS classes or elements.</p></td>
</tr>
<tr>
<th>text_color</th>
<td><p>Text Color. Defaults to <code>white_color</code>. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>header_color</th>
<td><p>Header Color. Defaults to <code>base_color</code>. Modifies the <code>h1, h2, h3</code> elements.</p></td>
</tr>
<tr>
<th>background_color</th>
<td><p>Slide Background Color. Defaults to <code>black_color</code>. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>link_color</th>
<td><p>Link Color. Defaults to <code>base_color</code>. Modifies the <code>a, a &gt; code</code> elements.</p></td>
</tr>
<tr>
<th>text_bold_color</th>
<td><p>Bold Text Color. Defaults to <code>base_color</code>. Modifies the <code>strong</code> element.</p></td>
</tr>
<tr>
<th>text_slide_number_color</th>
<td><p>Slide Number Color. Defaults to <code>base_color</code>. Modifies the <code>.remark-slide-number</code> class.</p></td>
</tr>
<tr>
<th>padding</th>
<td><p>Slide Padding in <code>top right [bottom left]</code> format. Defaults to 16px 64px 16px 64px. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>background_image</th>
<td><p>Background image applied to each <em>and every</em> slide. Set <code>title_slide_background_image = "none"</code> to remove the background image from the title slide. Defaults to <code>NULL</code>. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>background_size</th>
<td><p>Background image size, requires <code>background_image</code> to be set. If <code>background_image</code> is set, <code>background_size</code> will default to <code>cover</code> so the backround fills the screen. If both <code>background_image</code> and <code>background_position</code> are set, will default to 100 percent. Defaults to <code>NULL</code>. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>background_position</th>
<td><p>Background image position, requires <code>background_image</code> to be set, and it is recommended to adjust <code>background_size</code>. Defaults to <code>NULL</code>. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>code_highlight_color</th>
<td><p>Code Line Highlight. Defaults to rgba(255,255,0,0.5). Modifies the <code>.remark-code-line-highlighted</code> class.</p></td>
</tr>
<tr>
<th>code_inline_color</th>
<td><p>Inline Code Color. Defaults to <code>base_color</code>. Modifies the <code>.remark-inline-code</code> class.</p></td>
</tr>
<tr>
<th>code_inline_background_color</th>
<td><p>Inline Code Background Color. Defaults to <code>NULL</code>. Modifies the <code>.remark-inline-code</code> class.</p></td>
</tr>
<tr>
<th>code_inline_font_size</th>
<td><p>Inline Code Text Font Size. Defaults to 1rem. Modifies the <code>.remark-inline-code</code> class.</p></td>
</tr>
<tr>
<th>inverse_background_color</th>
<td><p>Inverse Background Color. Defaults to <code>base_color</code>. Modifies the <code>.inverse</code> class.</p></td>
</tr>
<tr>
<th>inverse_text_color</th>
<td><p>Inverse Text Color. Defaults to <code>black_color</code>. Modifies the <code>.inverse</code> class.</p></td>
</tr>
<tr>
<th>inverse_text_shadow</th>
<td><p>Enables Shadow on text of inverse slides. Defaults to <code>FALSE</code>. Modifies the <code>.inverse</code> class.</p></td>
</tr>
<tr>
<th>inverse_header_color</th>
<td><p>Inverse Header Color. Defaults to <code>black_color</code>. Modifies the <code>.inverse h1, .inverse h2, .inverse h3</code> classes.</p></td>
</tr>
<tr>
<th>title_slide_text_color</th>
<td><p>Title Slide Text Color. Defaults to <code>inverse_text_color</code>. Modifies the <code>.title-slide</code> class.</p></td>
</tr>
<tr>
<th>title_slide_background_color</th>
<td><p>Title Slide Background Color. Defaults to <code>inverse_background_color</code>. Modifies the <code>.title-slide</code> class.</p></td>
</tr>
<tr>
<th>title_slide_background_image</th>
<td><p>Title Slide Background Image URL. Defaults to <code>NULL</code>. Modifies the <code>.title-slide</code> class.</p></td>
</tr>
<tr>
<th>title_slide_background_size</th>
<td><p>Title Slide Background Image Size, defaults to "cover" if background image is set. Defaults to <code>NULL</code>. Modifies the <code>.title-slide</code> class.</p></td>
</tr>
<tr>
<th>title_slide_background_position</th>
<td><p>Title Slide Background Image Position. Defaults to <code>NULL</code>. Modifies the <code>.title-slide</code> class.</p></td>
</tr>
<tr>
<th>footnote_color</th>
<td><p>Footnote text color (if <code>NA</code>, then it will be the same color as <code>text_color</code>). Defaults to <code>NULL</code>. Modifies the <code>.footnote</code> class.</p></td>
</tr>
<tr>
<th>footnote_font_size</th>
<td><p>Footnote font size. Defaults to 0.9rem. Modifies the <code>.footnote</code> class.</p></td>
</tr>
<tr>
<th>footnote_position_bottom</th>
<td><p>Footnote location from bottom of screen. Defaults to 60px. Modifies the <code>.footnote</code> class.</p></td>
</tr>
<tr>
<th>left_column_subtle_color</th>
<td><p>Left Column Text (not last). Defaults to <code><a href='apply_alpha.html'>apply_alpha(base_color, 0.6)</a></code>. Modifies the <code>.left-column h2, .left-column h3</code> classes.</p></td>
</tr>
<tr>
<th>left_column_selected_color</th>
<td><p>Left Column Current Selection. Defaults to <code>base_color</code>. Modifies the <code>.left-column h2:last-of-type, .left-column h3:last-child</code> classes.</p></td>
</tr>
<tr>
<th>blockquote_left_border_color</th>
<td><p>Blockquote Left Border Color. Defaults to <code><a href='apply_alpha.html'>apply_alpha(base_color, 0.5)</a></code>. Modifies the <code>blockquote</code> element.</p></td>
</tr>
<tr>
<th>table_border_color</th>
<td><p>Table top/bottom border. Defaults to #666. Modifies the <code>table: border-top, border-bottom</code> elements.</p></td>
</tr>
<tr>
<th>table_row_border_color</th>
<td><p>Table row inner bottom border. Defaults to #ddd. Modifies the <code>table thead th: border-bottom</code> elements.</p></td>
</tr>
<tr>
<th>table_row_even_background_color</th>
<td><p>Table Even Row Background Color. Defaults to <code><a href='lighten_darken_color.html'>darken_color(base_color, 0.7)</a></code>. Modifies the <code>thead, tfoot, tr:nth-child(even)</code> elements.</p></td>
</tr>
<tr>
<th>base_font_size</th>
<td><p>Base Font Size for All Slide Elements (must be <code>px</code>). Defaults to 20px. Modifies the <code>html</code> element.</p></td>
</tr>
<tr>
<th>text_font_size</th>
<td><p>Slide Body Text Font Size. Defaults to 1rem. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>header_h1_font_size</th>
<td><p>h1 Header Text Font Size. Defaults to 2.75rem. Modifies the <code>.remark-slide-content h1</code> class.</p></td>
</tr>
<tr>
<th>header_h2_font_size</th>
<td><p>h2 Header Text Font Size. Defaults to 2.25rem. Modifies the <code>.remark-slide-content h2</code> class.</p></td>
</tr>
<tr>
<th>header_h3_font_size</th>
<td><p>h3 Header Text Font Size. Defaults to 1.75rem. Modifies the <code>.remark-slide-content h3</code> class.</p></td>
</tr>
<tr>
<th>header_background_auto</th>
<td><p>Add background under slide title automatically for h1 header elements. If not enabled, use <code>class: header_background</code> to enable. Defaults to <code>FALSE</code>.</p></td>
</tr>
<tr>
<th>header_background_color</th>
<td><p>Background Color for h1 Header with Background. Defaults to <code>header_color</code>. Modifies the <code>.remark-slide-content h1</code> class.</p></td>
</tr>
<tr>
<th>header_background_text_color</th>
<td><p>Text Color for h1 Header with Background. Defaults to <code>background_color</code>. Modifies the <code>.remark-slide-content h1</code> class.</p></td>
</tr>
<tr>
<th>header_background_padding</th>
<td><p>Padding for h1 Header with Background. Defaults to <code>NULL</code>. Modifies the <code>.remark-slide-content h1</code> class.</p></td>
</tr>
<tr>
<th>header_background_content_padding_top</th>
<td><p>Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>header_background_ignore_classes</th>
<td><p>Slide Classes Where Header with Background will not be Applied. Defaults to <code><a href='https://rdrr.io/r/base/c.html'>c('normal', 'inverse', 'title', 'middle', 'bottom')</a></code>. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>text_slide_number_font_size</th>
<td><p>Slide Number Text Font Size. Defaults to 0.9rem. Modifies the <code>.remark-slide-number</code> class.</p></td>
</tr>
<tr>
<th>text_font_google</th>
<td><p>Use <code><a href='google_font.html'>google_font()</a></code> to specify body font. Defaults to <code>NULL</code>. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>text_font_family</th>
<td><p>Body Text Font Family (xaringan default is <code>'Droid Serif'</code>). Defaults to Noto Sans. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>text_font_weight</th>
<td><p>Body Text Font Weight. Defaults to normal. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>text_font_url</th>
<td><p>Body Text Font URL(s). Defaults to https://fonts.googleapis.com/css?family=Noto+Sans:400,400i,700,700i&amp;display=swap. Modifies the <code>@import url()</code> elements.</p></td>
</tr>
<tr>
<th>text_font_family_fallback</th>
<td><p>Body Text Font Fallbacks. Defaults to -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, Ubuntu, roboto, noto, segoe ui, arial. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>text_font_base</th>
<td><p>Body Text Base Font (Total Failure Fallback). Defaults to sans-serif. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>header_font_google</th>
<td><p>Use <code><a href='google_font.html'>google_font()</a></code> to specify header font. Defaults to <code>NULL</code>. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>header_font_family</th>
<td><p>Header Font Family (xaringan default is <code>'Yanone Kaffeesatz'</code>). Defaults to Cabin. Modifies the <code>h1, h2, h3</code> elements.</p></td>
</tr>
<tr>
<th>header_font_weight</th>
<td><p>Header Font Weight. Defaults to 600. Modifies the <code>h1, h2, h3</code> elements.</p></td>
</tr>
<tr>
<th>header_font_url</th>
<td><p>Header Font URL. Defaults to https://fonts.googleapis.com/css?family=Cabin:600,600i&amp;display=swap. Modifies the <code>@import url</code> elements.</p></td>
</tr>
<tr>
<th>code_font_google</th>
<td><p>Use <code><a href='google_font.html'>google_font()</a></code> to specify code font. Defaults to <code>NULL</code>. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>code_font_family</th>
<td><p>Code Font Family. Defaults to Source Code Pro. Modifies the <code>.remark-code, .remark-inline-code</code> classes.</p></td>
</tr>
<tr>
<th>code_font_size</th>
<td><p>Code Text Font Size. Defaults to 0.9rem. Modifies the <code>.remark-inline</code> class.</p></td>
</tr>
<tr>
<th>code_font_url</th>
<td><p>Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700&amp;display=swap. Modifies the <code>@import url</code> elements.</p></td>
</tr>
<tr>
<th>code_font_family_fallback</th>
<td><p>Code Font Fallback. Defaults to Menlo, Consolas, Monaco, Liberation Mono, Lucida Console. Modifies the <code>.remark-code, .remark-inline-code</code> classes.</p></td>
</tr>
<tr>
<th>colors</th>
<td><p>A named vector of custom colors. The names of the colors
become CSS variables and classes that can be used within your slides.
For example, <code>colors = c(blue = "#bad4ed")</code> adds a CSS variable
<code>--blue</code>, a <code>.blue</code> CSS class that applies the color to the text or
foreground color, and a <code>.bg-blue</code> CSS class that applies the color
to the background.</p></td>
</tr>
<tr>
<th>extra_css</th>
<td><p>A named list of CSS definitions each containing a named list
of CSS property-value pairs, i.e.
<code><a href='https://rdrr.io/r/base/list.html'>list(".class-id" = list("css-property" = "value"))</a></code></p></td>
</tr>
<tr>
<th>extra_fonts</th>
<td><p>A list of additional fonts to import, each list element
can be either a URL as a character string or a call to
<code><a href='google_font.html'>google_font</a>()</code></p></td>
</tr>
<tr>
<th>outfile</th>
<td><p>Customized xaringan CSS output file name, default is "xaringan-themer.css"</p></td>
</tr>
</table>

<h2 class="hasAnchor" id="see-also"><a class="anchor" href="#see-also"></a>See also</h2>

<div class='dont-index'><p>Other themes:
<code><a href='style_duo_accent_inverse.html'>style_duo_accent_inverse</a>()</code>,
<code><a href='style_duo_accent.html'>style_duo_accent</a>()</code>,
<code><a href='style_duo.html'>style_duo</a>()</code>,
<code><a href='style_mono_accent_inverse.html'>style_mono_accent_inverse</a>()</code>,
<code><a href='style_mono_accent.html'>style_mono_accent</a>()</code>,
<code><a href='style_mono_light.html'>style_mono_light</a>()</code>,
<code><a href='style_solarized_dark.html'>style_solarized_dark</a>()</code>,
<code><a href='style_solarized_light.html'>style_solarized_light</a>()</code>,
<code><a href='style_xaringan.html'>style_xaringan</a>()</code></p>
<p>Other Monotone themes:
<code><a href='style_mono_accent_inverse.html'>style_mono_accent_inverse</a>()</code>,
<code><a href='style_mono_accent.html'>style_mono_accent</a>()</code>,
<code><a href='style_mono_light.html'>style_mono_light</a>()</code></p></div>

</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
<h2>Contents</h2>
<ul class="nav nav-pills nav-stacked">
<li><a href="#arguments">Arguments</a></li>
<li><a href="#see-also">See also</a></li>
</ul>

</div>
</div>


<footer>
<div class="copyright">
<p>Developed by <a href='https://www.garrickadenbuie.com'>Garrick Aden-Buie</a>.</p>
</div>

<div class="pkgdown">
<p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.4.1.</p>
</div>

</footer>
</div>



</body>
</html>



+ 538
- 0
dev/reference/style_mono_light.html Просмотреть файл

<!-- Generated by pkgdown: do not edit by hand -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Monotone Light Theme — style_mono_light • xaringanthemer</title>


<!-- jquery -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<!-- Bootstrap -->

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha256-916EbMg70RQy9LHiGkXzG8hSg9EdNy97GazNG/aiY1w=" crossorigin="anonymous" />

<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha256-U5ZEeKfGNOja007MMD3YBI0A3OSZOQbeG6z2f2Y0hu8=" crossorigin="anonymous"></script>

<!-- Font Awesome icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/all.min.css" integrity="sha256-nAmazAk6vS34Xqo0BSrTb+abbtFlgsFK7NKSi6o7Y78=" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/v4-shims.min.css" integrity="sha256-6qHlizsOWFskGlwVOKuns+D1nB6ssZrHQrNj1wGplHc=" crossorigin="anonymous" />

<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.4/clipboard.min.js" integrity="sha256-FiZwavyI2V6+EXO1U+xzLG3IKldpiTFf3153ea9zikQ=" crossorigin="anonymous"></script>

<!-- headroom.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/headroom.min.js" integrity="sha256-DJFC1kqIhelURkuza0AvYal5RxMtpzLjFhsnVIeuk+U=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script>

<!-- pkgdown -->
<link href="../pkgdown.css" rel="stylesheet">
<script src="../pkgdown.js"></script>



<link href="../extra.css" rel="stylesheet">

<meta property="og:title" content="Monotone Light Theme — style_mono_light" />
<meta property="og:description" content="A light monotone theme based around a single color." />
<meta name="twitter:card" content="summary" />


<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]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->



</head>

<body>
<div class="container template-reference-topic">
<header>
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">xaringanthemer</a>
<span class="version label label-danger" data-toggle="tooltip" data-placement="bottom" title="In-development version">0.2.0.9100</span>
</span>
</div>

<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="../index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="../articles/xaringanthemer.html">Get started</a>
</li>
<li>
<a href="../reference/index.html">Reference</a>
</li>
<li>
<a href="../articles/themes.html">Themes</a>
</li>
<li>
<a href="../articles/fonts.html">Fonts</a>
</li>
<li>
<a href="../articles/template-variables.html">Template Variables</a>
</li>
<li>
<a href="../articles/css-help.html">CSS Help</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="https://github.com/gadenbuie/xaringanthemer">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
<li>
<a href="https://twitter.com/grrrck">
<span class="fa fa-twitter fa-lg"></span>
</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->


</header>

<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
<h1>Monotone Light Theme</h1>
<small class="dont-index">Source: <a href='https://github.com/gadenbuie/xaringanthemer/blob/master/R/style_mono_light.R'><code>R/style_mono_light.R</code></a></small>
<div class="hidden name"><code>style_mono_light.Rd</code></div>
</div>

<div class="ref-description">
<p>A light monotone theme based around a single color.</p>
</div>

<pre class="usage"><span class='fu'>style_mono_light</span>(
<span class='kw'>base_color</span> <span class='kw'>=</span> <span class='st'>"#23395b"</span>,
<span class='kw'>white_color</span> <span class='kw'>=</span> <span class='fu'><a href='lighten_darken_color.html'>lighten_color</a></span>(<span class='no'>base_color</span>, <span class='fl'>0.9</span>),
<span class='kw'>black_color</span> <span class='kw'>=</span> <span class='fu'><a href='lighten_darken_color.html'>darken_color</a></span>(<span class='no'>base_color</span>, <span class='fl'>0.3</span>),
<span class='kw'>text_color</span> <span class='kw'>=</span> <span class='no'>black_color</span>,
<span class='kw'>header_color</span> <span class='kw'>=</span> <span class='no'>base_color</span>,
<span class='kw'>background_color</span> <span class='kw'>=</span> <span class='no'>white_color</span>,
<span class='kw'>link_color</span> <span class='kw'>=</span> <span class='no'>base_color</span>,
<span class='kw'>text_bold_color</span> <span class='kw'>=</span> <span class='no'>base_color</span>,
<span class='kw'>text_slide_number_color</span> <span class='kw'>=</span> <span class='no'>base_color</span>,
<span class='kw'>padding</span> <span class='kw'>=</span> <span class='st'>"16px 64px 16px 64px"</span>,
<span class='kw'>background_image</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>background_size</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>background_position</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>code_highlight_color</span> <span class='kw'>=</span> <span class='st'>"rgba(255,255,0,0.5)"</span>,
<span class='kw'>code_inline_color</span> <span class='kw'>=</span> <span class='no'>base_color</span>,
<span class='kw'>code_inline_background_color</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>code_inline_font_size</span> <span class='kw'>=</span> <span class='st'>"1rem"</span>,
<span class='kw'>inverse_background_color</span> <span class='kw'>=</span> <span class='no'>base_color</span>,
<span class='kw'>inverse_text_color</span> <span class='kw'>=</span> <span class='no'>white_color</span>,
<span class='kw'>inverse_text_shadow</span> <span class='kw'>=</span> <span class='fl'>FALSE</span>,
<span class='kw'>inverse_header_color</span> <span class='kw'>=</span> <span class='no'>white_color</span>,
<span class='kw'>title_slide_text_color</span> <span class='kw'>=</span> <span class='no'>inverse_text_color</span>,
<span class='kw'>title_slide_background_color</span> <span class='kw'>=</span> <span class='no'>inverse_background_color</span>,
<span class='kw'>title_slide_background_image</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>title_slide_background_size</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>title_slide_background_position</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>footnote_color</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>footnote_font_size</span> <span class='kw'>=</span> <span class='st'>"0.9rem"</span>,
<span class='kw'>footnote_position_bottom</span> <span class='kw'>=</span> <span class='st'>"60px"</span>,
<span class='kw'>left_column_subtle_color</span> <span class='kw'>=</span> <span class='fu'><a href='apply_alpha.html'>apply_alpha</a></span>(<span class='no'>base_color</span>, <span class='fl'>0.6</span>),
<span class='kw'>left_column_selected_color</span> <span class='kw'>=</span> <span class='no'>base_color</span>,
<span class='kw'>blockquote_left_border_color</span> <span class='kw'>=</span> <span class='fu'><a href='apply_alpha.html'>apply_alpha</a></span>(<span class='no'>base_color</span>, <span class='fl'>0.5</span>),
<span class='kw'>table_border_color</span> <span class='kw'>=</span> <span class='st'>"#666"</span>,
<span class='kw'>table_row_border_color</span> <span class='kw'>=</span> <span class='st'>"#ddd"</span>,
<span class='kw'>table_row_even_background_color</span> <span class='kw'>=</span> <span class='fu'><a href='lighten_darken_color.html'>lighten_color</a></span>(<span class='no'>base_color</span>, <span class='fl'>0.8</span>),
<span class='kw'>base_font_size</span> <span class='kw'>=</span> <span class='st'>"20px"</span>,
<span class='kw'>text_font_size</span> <span class='kw'>=</span> <span class='st'>"1rem"</span>,
<span class='kw'>header_h1_font_size</span> <span class='kw'>=</span> <span class='st'>"2.75rem"</span>,
<span class='kw'>header_h2_font_size</span> <span class='kw'>=</span> <span class='st'>"2.25rem"</span>,
<span class='kw'>header_h3_font_size</span> <span class='kw'>=</span> <span class='st'>"1.75rem"</span>,
<span class='kw'>header_background_auto</span> <span class='kw'>=</span> <span class='fl'>FALSE</span>,
<span class='kw'>header_background_color</span> <span class='kw'>=</span> <span class='no'>header_color</span>,
<span class='kw'>header_background_text_color</span> <span class='kw'>=</span> <span class='no'>background_color</span>,
<span class='kw'>header_background_padding</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>header_background_content_padding_top</span> <span class='kw'>=</span> <span class='st'>"7rem"</span>,
<span class='kw'>header_background_ignore_classes</span> <span class='kw'>=</span> <span class='fu'><a href='https://rdrr.io/r/base/c.html'>c</a></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='kw'>text_slide_number_font_size</span> <span class='kw'>=</span> <span class='st'>"0.9rem"</span>,
<span class='kw'>text_font_google</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>text_font_family</span> <span class='kw'>=</span> <span class='st'>"Noto Sans"</span>,
<span class='kw'>text_font_weight</span> <span class='kw'>=</span> <span class='st'>"normal"</span>,

<span class='kw'>text_font_url</span> <span class='kw'>=</span> <span class='st'>"https://fonts.googleapis.com/css?family=Noto+Sans:400,400i,700,700i&amp;display=swap"</span>,

<span class='kw'>text_font_family_fallback</span> <span class='kw'>=</span> <span class='st'>"-apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, Ubuntu, roboto, noto, segoe ui, arial"</span>,
<span class='kw'>text_font_base</span> <span class='kw'>=</span> <span class='st'>"sans-serif"</span>,
<span class='kw'>header_font_google</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>header_font_family</span> <span class='kw'>=</span> <span class='st'>"Cabin"</span>,
<span class='kw'>header_font_weight</span> <span class='kw'>=</span> <span class='st'>"600"</span>,

<span class='kw'>header_font_url</span> <span class='kw'>=</span> <span class='st'>"https://fonts.googleapis.com/css?family=Cabin:600,600i&amp;display=swap"</span>,
<span class='kw'>code_font_google</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>code_font_family</span> <span class='kw'>=</span> <span class='st'>"Source Code Pro"</span>,
<span class='kw'>code_font_size</span> <span class='kw'>=</span> <span class='st'>"0.9rem"</span>,

<span class='kw'>code_font_url</span> <span class='kw'>=</span> <span class='st'>"https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700&amp;display=swap"</span>,
<span class='kw'>code_font_family_fallback</span> <span class='kw'>=</span> <span class='st'>"Menlo, Consolas, Monaco, Liberation Mono, Lucida Console"</span>,
<span class='kw'>colors</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>extra_css</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>extra_fonts</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>outfile</span> <span class='kw'>=</span> <span class='st'>"xaringan-themer.css"</span>
)</pre>

<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a>Arguments</h2>
<table class="ref-arguments">
<colgroup><col class="name" /><col class="desc" /></colgroup>
<tr>
<th>base_color</th>
<td><p>Monotone base color, works best with a strong color. Defaults to #23395b. Modifies multiple CSS classes or elements.</p></td>
</tr>
<tr>
<th>white_color</th>
<td><p>Brightest color used, default is a very light version of <code>base_color</code>. Defaults to <code><a href='lighten_darken_color.html'>lighten_color(base_color, 0.9)</a></code>. Modifies multiple CSS classes or elements.</p></td>
</tr>
<tr>
<th>black_color</th>
<td><p>Darkest color used, default is a very dark, version of <code>base_color</code>. Defaults to <code><a href='lighten_darken_color.html'>darken_color(base_color, 0.3)</a></code>. Modifies multiple CSS classes or elements.</p></td>
</tr>
<tr>
<th>text_color</th>
<td><p>Text Color. Defaults to <code>black_color</code>. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>header_color</th>
<td><p>Header Color. Defaults to <code>base_color</code>. Modifies the <code>h1, h2, h3</code> elements.</p></td>
</tr>
<tr>
<th>background_color</th>
<td><p>Slide Background Color. Defaults to <code>white_color</code>. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>link_color</th>
<td><p>Link Color. Defaults to <code>base_color</code>. Modifies the <code>a, a &gt; code</code> elements.</p></td>
</tr>
<tr>
<th>text_bold_color</th>
<td><p>Bold Text Color. Defaults to <code>base_color</code>. Modifies the <code>strong</code> element.</p></td>
</tr>
<tr>
<th>text_slide_number_color</th>
<td><p>Slide Number Color. Defaults to <code>base_color</code>. Modifies the <code>.remark-slide-number</code> class.</p></td>
</tr>
<tr>
<th>padding</th>
<td><p>Slide Padding in <code>top right [bottom left]</code> format. Defaults to 16px 64px 16px 64px. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>background_image</th>
<td><p>Background image applied to each <em>and every</em> slide. Set <code>title_slide_background_image = "none"</code> to remove the background image from the title slide. Defaults to <code>NULL</code>. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>background_size</th>
<td><p>Background image size, requires <code>background_image</code> to be set. If <code>background_image</code> is set, <code>background_size</code> will default to <code>cover</code> so the backround fills the screen. If both <code>background_image</code> and <code>background_position</code> are set, will default to 100 percent. Defaults to <code>NULL</code>. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>background_position</th>
<td><p>Background image position, requires <code>background_image</code> to be set, and it is recommended to adjust <code>background_size</code>. Defaults to <code>NULL</code>. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>code_highlight_color</th>
<td><p>Code Line Highlight. Defaults to rgba(255,255,0,0.5). Modifies the <code>.remark-code-line-highlighted</code> class.</p></td>
</tr>
<tr>
<th>code_inline_color</th>
<td><p>Inline Code Color. Defaults to <code>base_color</code>. Modifies the <code>.remark-inline-code</code> class.</p></td>
</tr>
<tr>
<th>code_inline_background_color</th>
<td><p>Inline Code Background Color. Defaults to <code>NULL</code>. Modifies the <code>.remark-inline-code</code> class.</p></td>
</tr>
<tr>
<th>code_inline_font_size</th>
<td><p>Inline Code Text Font Size. Defaults to 1rem. Modifies the <code>.remark-inline-code</code> class.</p></td>
</tr>
<tr>
<th>inverse_background_color</th>
<td><p>Inverse Background Color. Defaults to <code>base_color</code>. Modifies the <code>.inverse</code> class.</p></td>
</tr>
<tr>
<th>inverse_text_color</th>
<td><p>Inverse Text Color. Defaults to <code>white_color</code>. Modifies the <code>.inverse</code> class.</p></td>
</tr>
<tr>
<th>inverse_text_shadow</th>
<td><p>Enables Shadow on text of inverse slides. Defaults to <code>FALSE</code>. Modifies the <code>.inverse</code> class.</p></td>
</tr>
<tr>
<th>inverse_header_color</th>
<td><p>Inverse Header Color. Defaults to <code>white_color</code>. Modifies the <code>.inverse h1, .inverse h2, .inverse h3</code> classes.</p></td>
</tr>
<tr>
<th>title_slide_text_color</th>
<td><p>Title Slide Text Color. Defaults to <code>inverse_text_color</code>. Modifies the <code>.title-slide</code> class.</p></td>
</tr>
<tr>
<th>title_slide_background_color</th>
<td><p>Title Slide Background Color. Defaults to <code>inverse_background_color</code>. Modifies the <code>.title-slide</code> class.</p></td>
</tr>
<tr>
<th>title_slide_background_image</th>
<td><p>Title Slide Background Image URL. Defaults to <code>NULL</code>. Modifies the <code>.title-slide</code> class.</p></td>
</tr>
<tr>
<th>title_slide_background_size</th>
<td><p>Title Slide Background Image Size, defaults to "cover" if background image is set. Defaults to <code>NULL</code>. Modifies the <code>.title-slide</code> class.</p></td>
</tr>
<tr>
<th>title_slide_background_position</th>
<td><p>Title Slide Background Image Position. Defaults to <code>NULL</code>. Modifies the <code>.title-slide</code> class.</p></td>
</tr>
<tr>
<th>footnote_color</th>
<td><p>Footnote text color (if <code>NA</code>, then it will be the same color as <code>text_color</code>). Defaults to <code>NULL</code>. Modifies the <code>.footnote</code> class.</p></td>
</tr>
<tr>
<th>footnote_font_size</th>
<td><p>Footnote font size. Defaults to 0.9rem. Modifies the <code>.footnote</code> class.</p></td>
</tr>
<tr>
<th>footnote_position_bottom</th>
<td><p>Footnote location from bottom of screen. Defaults to 60px. Modifies the <code>.footnote</code> class.</p></td>
</tr>
<tr>
<th>left_column_subtle_color</th>
<td><p>Left Column Text (not last). Defaults to <code><a href='apply_alpha.html'>apply_alpha(base_color, 0.6)</a></code>. Modifies the <code>.left-column h2, .left-column h3</code> classes.</p></td>
</tr>
<tr>
<th>left_column_selected_color</th>
<td><p>Left Column Current Selection. Defaults to <code>base_color</code>. Modifies the <code>.left-column h2:last-of-type, .left-column h3:last-child</code> classes.</p></td>
</tr>
<tr>
<th>blockquote_left_border_color</th>
<td><p>Blockquote Left Border Color. Defaults to <code><a href='apply_alpha.html'>apply_alpha(base_color, 0.5)</a></code>. Modifies the <code>blockquote</code> element.</p></td>
</tr>
<tr>
<th>table_border_color</th>
<td><p>Table top/bottom border. Defaults to #666. Modifies the <code>table: border-top, border-bottom</code> elements.</p></td>
</tr>
<tr>
<th>table_row_border_color</th>
<td><p>Table row inner bottom border. Defaults to #ddd. Modifies the <code>table thead th: border-bottom</code> elements.</p></td>
</tr>
<tr>
<th>table_row_even_background_color</th>
<td><p>Table Even Row Background Color. Defaults to <code><a href='lighten_darken_color.html'>lighten_color(base_color, 0.8)</a></code>. Modifies the <code>thead, tfoot, tr:nth-child(even)</code> elements.</p></td>
</tr>
<tr>
<th>base_font_size</th>
<td><p>Base Font Size for All Slide Elements (must be <code>px</code>). Defaults to 20px. Modifies the <code>html</code> element.</p></td>
</tr>
<tr>
<th>text_font_size</th>
<td><p>Slide Body Text Font Size. Defaults to 1rem. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>header_h1_font_size</th>
<td><p>h1 Header Text Font Size. Defaults to 2.75rem. Modifies the <code>.remark-slide-content h1</code> class.</p></td>
</tr>
<tr>
<th>header_h2_font_size</th>
<td><p>h2 Header Text Font Size. Defaults to 2.25rem. Modifies the <code>.remark-slide-content h2</code> class.</p></td>
</tr>
<tr>
<th>header_h3_font_size</th>
<td><p>h3 Header Text Font Size. Defaults to 1.75rem. Modifies the <code>.remark-slide-content h3</code> class.</p></td>
</tr>
<tr>
<th>header_background_auto</th>
<td><p>Add background under slide title automatically for h1 header elements. If not enabled, use <code>class: header_background</code> to enable. Defaults to <code>FALSE</code>.</p></td>
</tr>
<tr>
<th>header_background_color</th>
<td><p>Background Color for h1 Header with Background. Defaults to <code>header_color</code>. Modifies the <code>.remark-slide-content h1</code> class.</p></td>
</tr>
<tr>
<th>header_background_text_color</th>
<td><p>Text Color for h1 Header with Background. Defaults to <code>background_color</code>. Modifies the <code>.remark-slide-content h1</code> class.</p></td>
</tr>
<tr>
<th>header_background_padding</th>
<td><p>Padding for h1 Header with Background. Defaults to <code>NULL</code>. Modifies the <code>.remark-slide-content h1</code> class.</p></td>
</tr>
<tr>
<th>header_background_content_padding_top</th>
<td><p>Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>header_background_ignore_classes</th>
<td><p>Slide Classes Where Header with Background will not be Applied. Defaults to <code><a href='https://rdrr.io/r/base/c.html'>c('normal', 'inverse', 'title', 'middle', 'bottom')</a></code>. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>text_slide_number_font_size</th>
<td><p>Slide Number Text Font Size. Defaults to 0.9rem. Modifies the <code>.remark-slide-number</code> class.</p></td>
</tr>
<tr>
<th>text_font_google</th>
<td><p>Use <code><a href='google_font.html'>google_font()</a></code> to specify body font. Defaults to <code>NULL</code>. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>text_font_family</th>
<td><p>Body Text Font Family (xaringan default is <code>'Droid Serif'</code>). Defaults to Noto Sans. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>text_font_weight</th>
<td><p>Body Text Font Weight. Defaults to normal. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>text_font_url</th>
<td><p>Body Text Font URL(s). Defaults to https://fonts.googleapis.com/css?family=Noto+Sans:400,400i,700,700i&amp;display=swap. Modifies the <code>@import url()</code> elements.</p></td>
</tr>
<tr>
<th>text_font_family_fallback</th>
<td><p>Body Text Font Fallbacks. Defaults to -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, Ubuntu, roboto, noto, segoe ui, arial. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>text_font_base</th>
<td><p>Body Text Base Font (Total Failure Fallback). Defaults to sans-serif. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>header_font_google</th>
<td><p>Use <code><a href='google_font.html'>google_font()</a></code> to specify header font. Defaults to <code>NULL</code>. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>header_font_family</th>
<td><p>Header Font Family (xaringan default is <code>'Yanone Kaffeesatz'</code>). Defaults to Cabin. Modifies the <code>h1, h2, h3</code> elements.</p></td>
</tr>
<tr>
<th>header_font_weight</th>
<td><p>Header Font Weight. Defaults to 600. Modifies the <code>h1, h2, h3</code> elements.</p></td>
</tr>
<tr>
<th>header_font_url</th>
<td><p>Header Font URL. Defaults to https://fonts.googleapis.com/css?family=Cabin:600,600i&amp;display=swap. Modifies the <code>@import url</code> elements.</p></td>
</tr>
<tr>
<th>code_font_google</th>
<td><p>Use <code><a href='google_font.html'>google_font()</a></code> to specify code font. Defaults to <code>NULL</code>. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>code_font_family</th>
<td><p>Code Font Family. Defaults to Source Code Pro. Modifies the <code>.remark-code, .remark-inline-code</code> classes.</p></td>
</tr>
<tr>
<th>code_font_size</th>
<td><p>Code Text Font Size. Defaults to 0.9rem. Modifies the <code>.remark-inline</code> class.</p></td>
</tr>
<tr>
<th>code_font_url</th>
<td><p>Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700&amp;display=swap. Modifies the <code>@import url</code> elements.</p></td>
</tr>
<tr>
<th>code_font_family_fallback</th>
<td><p>Code Font Fallback. Defaults to Menlo, Consolas, Monaco, Liberation Mono, Lucida Console. Modifies the <code>.remark-code, .remark-inline-code</code> classes.</p></td>
</tr>
<tr>
<th>colors</th>
<td><p>A named vector of custom colors. The names of the colors
become CSS variables and classes that can be used within your slides.
For example, <code>colors = c(blue = "#bad4ed")</code> adds a CSS variable
<code>--blue</code>, a <code>.blue</code> CSS class that applies the color to the text or
foreground color, and a <code>.bg-blue</code> CSS class that applies the color
to the background.</p></td>
</tr>
<tr>
<th>extra_css</th>
<td><p>A named list of CSS definitions each containing a named list
of CSS property-value pairs, i.e.
<code><a href='https://rdrr.io/r/base/list.html'>list(".class-id" = list("css-property" = "value"))</a></code></p></td>
</tr>
<tr>
<th>extra_fonts</th>
<td><p>A list of additional fonts to import, each list element
can be either a URL as a character string or a call to
<code><a href='google_font.html'>google_font</a>()</code></p></td>
</tr>
<tr>
<th>outfile</th>
<td><p>Customized xaringan CSS output file name, default is "xaringan-themer.css"</p></td>
</tr>
</table>

<h2 class="hasAnchor" id="see-also"><a class="anchor" href="#see-also"></a>See also</h2>

<div class='dont-index'><p>Other themes:
<code><a href='style_duo_accent_inverse.html'>style_duo_accent_inverse</a>()</code>,
<code><a href='style_duo_accent.html'>style_duo_accent</a>()</code>,
<code><a href='style_duo.html'>style_duo</a>()</code>,
<code><a href='style_mono_accent_inverse.html'>style_mono_accent_inverse</a>()</code>,
<code><a href='style_mono_accent.html'>style_mono_accent</a>()</code>,
<code><a href='style_mono_dark.html'>style_mono_dark</a>()</code>,
<code><a href='style_solarized_dark.html'>style_solarized_dark</a>()</code>,
<code><a href='style_solarized_light.html'>style_solarized_light</a>()</code>,
<code><a href='style_xaringan.html'>style_xaringan</a>()</code></p>
<p>Other Monotone themes:
<code><a href='style_mono_accent_inverse.html'>style_mono_accent_inverse</a>()</code>,
<code><a href='style_mono_accent.html'>style_mono_accent</a>()</code>,
<code><a href='style_mono_dark.html'>style_mono_dark</a>()</code></p></div>

</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
<h2>Contents</h2>
<ul class="nav nav-pills nav-stacked">
<li><a href="#arguments">Arguments</a></li>
<li><a href="#see-also">See also</a></li>
</ul>

</div>
</div>


<footer>
<div class="copyright">
<p>Developed by <a href='https://www.garrickadenbuie.com'>Garrick Aden-Buie</a>.</p>
</div>

<div class="pkgdown">
<p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.4.1.</p>
</div>

</footer>
</div>



</body>
</html>



+ 529
- 0
dev/reference/style_solarized_dark.html Просмотреть файл

<!-- Generated by pkgdown: do not edit by hand -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Solarized Dark Theme — style_solarized_dark • xaringanthemer</title>


<!-- jquery -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<!-- Bootstrap -->

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha256-916EbMg70RQy9LHiGkXzG8hSg9EdNy97GazNG/aiY1w=" crossorigin="anonymous" />

<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha256-U5ZEeKfGNOja007MMD3YBI0A3OSZOQbeG6z2f2Y0hu8=" crossorigin="anonymous"></script>

<!-- Font Awesome icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/all.min.css" integrity="sha256-nAmazAk6vS34Xqo0BSrTb+abbtFlgsFK7NKSi6o7Y78=" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/v4-shims.min.css" integrity="sha256-6qHlizsOWFskGlwVOKuns+D1nB6ssZrHQrNj1wGplHc=" crossorigin="anonymous" />

<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.4/clipboard.min.js" integrity="sha256-FiZwavyI2V6+EXO1U+xzLG3IKldpiTFf3153ea9zikQ=" crossorigin="anonymous"></script>

<!-- headroom.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/headroom.min.js" integrity="sha256-DJFC1kqIhelURkuza0AvYal5RxMtpzLjFhsnVIeuk+U=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script>

<!-- pkgdown -->
<link href="../pkgdown.css" rel="stylesheet">
<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.
Works well with &quot;highlightStyle: solarized-dark&quot; or
&quot;highlighStyle: solarized-light&quot;." />
<meta name="twitter:card" content="summary" />


<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]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->



</head>

<body>
<div class="container template-reference-topic">
<header>
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">xaringanthemer</a>
<span class="version label label-danger" data-toggle="tooltip" data-placement="bottom" title="In-development version">0.2.0.9100</span>
</span>
</div>

<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="../index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="../articles/xaringanthemer.html">Get started</a>
</li>
<li>
<a href="../reference/index.html">Reference</a>
</li>
<li>
<a href="../articles/themes.html">Themes</a>
</li>
<li>
<a href="../articles/fonts.html">Fonts</a>
</li>
<li>
<a href="../articles/template-variables.html">Template Variables</a>
</li>
<li>
<a href="../articles/css-help.html">CSS Help</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="https://github.com/gadenbuie/xaringanthemer">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
<li>
<a href="https://twitter.com/grrrck">
<span class="fa fa-twitter fa-lg"></span>
</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->


</header>

<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
<h1>Solarized Dark Theme</h1>
<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>
<div class="hidden name"><code>style_solarized_dark.Rd</code></div>
</div>

<div class="ref-description">
<p>A dark theme based around on the solarized color scheme.
Works well with "<code>highlightStyle: solarized-dark</code>" or
"<code>highlighStyle: solarized-light</code>".</p>
</div>

<pre class="usage"><span class='fu'>style_solarized_dark</span>(
<span class='kw'>text_color</span> <span class='kw'>=</span> <span class='st'>"#839496"</span>,
<span class='kw'>header_color</span> <span class='kw'>=</span> <span class='st'>"#dc322f"</span>,
<span class='kw'>background_color</span> <span class='kw'>=</span> <span class='st'>"#002b36"</span>,
<span class='kw'>link_color</span> <span class='kw'>=</span> <span class='st'>"#b58900"</span>,
<span class='kw'>text_bold_color</span> <span class='kw'>=</span> <span class='st'>"#d33682"</span>,
<span class='kw'>text_slide_number_color</span> <span class='kw'>=</span> <span class='st'>"#586e75"</span>,
<span class='kw'>padding</span> <span class='kw'>=</span> <span class='st'>"16px 64px 16px 64px"</span>,
<span class='kw'>background_image</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>background_size</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>background_position</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>code_highlight_color</span> <span class='kw'>=</span> <span class='st'>"#268bd240"</span>,
<span class='kw'>code_inline_color</span> <span class='kw'>=</span> <span class='st'>"#6c71c4"</span>,
<span class='kw'>code_inline_background_color</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>code_inline_font_size</span> <span class='kw'>=</span> <span class='st'>"1rem"</span>,
<span class='kw'>inverse_background_color</span> <span class='kw'>=</span> <span class='st'>"#fdf6e3"</span>,
<span class='kw'>inverse_text_color</span> <span class='kw'>=</span> <span class='st'>"#002b36"</span>,
<span class='kw'>inverse_text_shadow</span> <span class='kw'>=</span> <span class='fl'>FALSE</span>,
<span class='kw'>inverse_header_color</span> <span class='kw'>=</span> <span class='no'>inverse_text_color</span>,
<span class='kw'>title_slide_text_color</span> <span class='kw'>=</span> <span class='no'>inverse_text_color</span>,
<span class='kw'>title_slide_background_color</span> <span class='kw'>=</span> <span class='no'>inverse_background_color</span>,
<span class='kw'>title_slide_background_image</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>title_slide_background_size</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>title_slide_background_position</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>footnote_color</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>footnote_font_size</span> <span class='kw'>=</span> <span class='st'>"0.9rem"</span>,
<span class='kw'>footnote_position_bottom</span> <span class='kw'>=</span> <span class='st'>"60px"</span>,
<span class='kw'>left_column_subtle_color</span> <span class='kw'>=</span> <span class='st'>"#586e75"</span>,
<span class='kw'>left_column_selected_color</span> <span class='kw'>=</span> <span class='st'>"#93a1a1"</span>,
<span class='kw'>blockquote_left_border_color</span> <span class='kw'>=</span> <span class='st'>"#cb4b16"</span>,
<span class='kw'>table_border_color</span> <span class='kw'>=</span> <span class='st'>"#657b83"</span>,
<span class='kw'>table_row_border_color</span> <span class='kw'>=</span> <span class='st'>"#657b83"</span>,
<span class='kw'>table_row_even_background_color</span> <span class='kw'>=</span> <span class='st'>"#073642"</span>,
<span class='kw'>base_font_size</span> <span class='kw'>=</span> <span class='st'>"20px"</span>,
<span class='kw'>text_font_size</span> <span class='kw'>=</span> <span class='st'>"1rem"</span>,
<span class='kw'>header_h1_font_size</span> <span class='kw'>=</span> <span class='st'>"2.75rem"</span>,
<span class='kw'>header_h2_font_size</span> <span class='kw'>=</span> <span class='st'>"2.25rem"</span>,
<span class='kw'>header_h3_font_size</span> <span class='kw'>=</span> <span class='st'>"1.75rem"</span>,
<span class='kw'>header_background_auto</span> <span class='kw'>=</span> <span class='fl'>FALSE</span>,
<span class='kw'>header_background_color</span> <span class='kw'>=</span> <span class='no'>header_color</span>,
<span class='kw'>header_background_text_color</span> <span class='kw'>=</span> <span class='no'>background_color</span>,
<span class='kw'>header_background_padding</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>header_background_content_padding_top</span> <span class='kw'>=</span> <span class='st'>"7rem"</span>,
<span class='kw'>header_background_ignore_classes</span> <span class='kw'>=</span> <span class='fu'><a href='https://rdrr.io/r/base/c.html'>c</a></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='kw'>text_slide_number_font_size</span> <span class='kw'>=</span> <span class='st'>"0.9rem"</span>,
<span class='kw'>text_font_google</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>text_font_family</span> <span class='kw'>=</span> <span class='st'>"Noto Sans"</span>,
<span class='kw'>text_font_weight</span> <span class='kw'>=</span> <span class='st'>"normal"</span>,

<span class='kw'>text_font_url</span> <span class='kw'>=</span> <span class='st'>"https://fonts.googleapis.com/css?family=Noto+Sans:400,400i,700,700i&amp;display=swap"</span>,

<span class='kw'>text_font_family_fallback</span> <span class='kw'>=</span> <span class='st'>"-apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, Ubuntu, roboto, noto, segoe ui, arial"</span>,
<span class='kw'>text_font_base</span> <span class='kw'>=</span> <span class='st'>"sans-serif"</span>,
<span class='kw'>header_font_google</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>header_font_family</span> <span class='kw'>=</span> <span class='st'>"Cabin"</span>,
<span class='kw'>header_font_weight</span> <span class='kw'>=</span> <span class='st'>"600"</span>,

<span class='kw'>header_font_url</span> <span class='kw'>=</span> <span class='st'>"https://fonts.googleapis.com/css?family=Cabin:600,600i&amp;display=swap"</span>,
<span class='kw'>code_font_google</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>code_font_family</span> <span class='kw'>=</span> <span class='st'>"Source Code Pro"</span>,
<span class='kw'>code_font_size</span> <span class='kw'>=</span> <span class='st'>"0.9rem"</span>,

<span class='kw'>code_font_url</span> <span class='kw'>=</span> <span class='st'>"https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700&amp;display=swap"</span>,
<span class='kw'>code_font_family_fallback</span> <span class='kw'>=</span> <span class='st'>"Menlo, Consolas, Monaco, Liberation Mono, Lucida Console"</span>,
<span class='kw'>colors</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>extra_css</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>extra_fonts</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>outfile</span> <span class='kw'>=</span> <span class='st'>"xaringan-themer.css"</span>
)</pre>

<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a>Arguments</h2>
<table class="ref-arguments">
<colgroup><col class="name" /><col class="desc" /></colgroup>
<tr>
<th>text_color</th>
<td><p>Text Color. Defaults to #839496. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>header_color</th>
<td><p>Header Color. Defaults to #dc322f. Modifies the <code>h1, h2, h3</code> elements.</p></td>
</tr>
<tr>
<th>background_color</th>
<td><p>Slide Background Color. Defaults to #002b36. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>link_color</th>
<td><p>Link Color. Defaults to #b58900. Modifies the <code>a, a &gt; code</code> elements.</p></td>
</tr>
<tr>
<th>text_bold_color</th>
<td><p>Bold Text Color. Defaults to #d33682. Modifies the <code>strong</code> element.</p></td>
</tr>
<tr>
<th>text_slide_number_color</th>
<td><p>Slide Number Color. Defaults to #586e75. Modifies the <code>.remark-slide-number</code> class.</p></td>
</tr>
<tr>
<th>padding</th>
<td><p>Slide Padding in <code>top right [bottom left]</code> format. Defaults to 16px 64px 16px 64px. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>background_image</th>
<td><p>Background image applied to each <em>and every</em> slide. Set <code>title_slide_background_image = "none"</code> to remove the background image from the title slide. Defaults to <code>NULL</code>. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>background_size</th>
<td><p>Background image size, requires <code>background_image</code> to be set. If <code>background_image</code> is set, <code>background_size</code> will default to <code>cover</code> so the backround fills the screen. If both <code>background_image</code> and <code>background_position</code> are set, will default to 100 percent. Defaults to <code>NULL</code>. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>background_position</th>
<td><p>Background image position, requires <code>background_image</code> to be set, and it is recommended to adjust <code>background_size</code>. Defaults to <code>NULL</code>. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>code_highlight_color</th>
<td><p>Code Line Highlight. Defaults to #268bd240. Modifies the <code>.remark-code-line-highlighted</code> class.</p></td>
</tr>
<tr>
<th>code_inline_color</th>
<td><p>Inline Code Color. Defaults to #6c71c4. Modifies the <code>.remark-inline-code</code> class.</p></td>
</tr>
<tr>
<th>code_inline_background_color</th>
<td><p>Inline Code Background Color. Defaults to <code>NULL</code>. Modifies the <code>.remark-inline-code</code> class.</p></td>
</tr>
<tr>
<th>code_inline_font_size</th>
<td><p>Inline Code Text Font Size. Defaults to 1rem. Modifies the <code>.remark-inline-code</code> class.</p></td>
</tr>
<tr>
<th>inverse_background_color</th>
<td><p>Inverse Background Color. Defaults to #fdf6e3. Modifies the <code>.inverse</code> class.</p></td>
</tr>
<tr>
<th>inverse_text_color</th>
<td><p>Inverse Text Color. Defaults to #002b36. Modifies the <code>.inverse</code> class.</p></td>
</tr>
<tr>
<th>inverse_text_shadow</th>
<td><p>Enables Shadow on text of inverse slides. Defaults to <code>FALSE</code>. Modifies the <code>.inverse</code> class.</p></td>
</tr>
<tr>
<th>inverse_header_color</th>
<td><p>Inverse Header Color. Defaults to <code>inverse_text_color</code>. Modifies the <code>.inverse h1, .inverse h2, .inverse h3</code> classes.</p></td>
</tr>
<tr>
<th>title_slide_text_color</th>
<td><p>Title Slide Text Color. Defaults to <code>inverse_text_color</code>. Modifies the <code>.title-slide</code> class.</p></td>
</tr>
<tr>
<th>title_slide_background_color</th>
<td><p>Title Slide Background Color. Defaults to <code>inverse_background_color</code>. Modifies the <code>.title-slide</code> class.</p></td>
</tr>
<tr>
<th>title_slide_background_image</th>
<td><p>Title Slide Background Image URL. Defaults to <code>NULL</code>. Modifies the <code>.title-slide</code> class.</p></td>
</tr>
<tr>
<th>title_slide_background_size</th>
<td><p>Title Slide Background Image Size, defaults to "cover" if background image is set. Defaults to <code>NULL</code>. Modifies the <code>.title-slide</code> class.</p></td>
</tr>
<tr>
<th>title_slide_background_position</th>
<td><p>Title Slide Background Image Position. Defaults to <code>NULL</code>. Modifies the <code>.title-slide</code> class.</p></td>
</tr>
<tr>
<th>footnote_color</th>
<td><p>Footnote text color (if <code>NA</code>, then it will be the same color as <code>text_color</code>). Defaults to <code>NULL</code>. Modifies the <code>.footnote</code> class.</p></td>
</tr>
<tr>
<th>footnote_font_size</th>
<td><p>Footnote font size. Defaults to 0.9rem. Modifies the <code>.footnote</code> class.</p></td>
</tr>
<tr>
<th>footnote_position_bottom</th>
<td><p>Footnote location from bottom of screen. Defaults to 60px. Modifies the <code>.footnote</code> class.</p></td>
</tr>
<tr>
<th>left_column_subtle_color</th>
<td><p>Left Column Text (not last). Defaults to #586e75. Modifies the <code>.left-column h2, .left-column h3</code> classes.</p></td>
</tr>
<tr>
<th>left_column_selected_color</th>
<td><p>Left Column Current Selection. Defaults to #93a1a1. Modifies the <code>.left-column h2:last-of-type, .left-column h3:last-child</code> classes.</p></td>
</tr>
<tr>
<th>blockquote_left_border_color</th>
<td><p>Blockquote Left Border Color. Defaults to #cb4b16. Modifies the <code>blockquote</code> element.</p></td>
</tr>
<tr>
<th>table_border_color</th>
<td><p>Table top/bottom border. Defaults to #657b83. Modifies the <code>table: border-top, border-bottom</code> elements.</p></td>
</tr>
<tr>
<th>table_row_border_color</th>
<td><p>Table row inner bottom border. Defaults to #657b83. Modifies the <code>table thead th: border-bottom</code> elements.</p></td>
</tr>
<tr>
<th>table_row_even_background_color</th>
<td><p>Table Even Row Background Color. Defaults to #073642. Modifies the <code>thead, tfoot, tr:nth-child(even)</code> elements.</p></td>
</tr>
<tr>
<th>base_font_size</th>
<td><p>Base Font Size for All Slide Elements (must be <code>px</code>). Defaults to 20px. Modifies the <code>html</code> element.</p></td>
</tr>
<tr>
<th>text_font_size</th>
<td><p>Slide Body Text Font Size. Defaults to 1rem. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>header_h1_font_size</th>
<td><p>h1 Header Text Font Size. Defaults to 2.75rem. Modifies the <code>.remark-slide-content h1</code> class.</p></td>
</tr>
<tr>
<th>header_h2_font_size</th>
<td><p>h2 Header Text Font Size. Defaults to 2.25rem. Modifies the <code>.remark-slide-content h2</code> class.</p></td>
</tr>
<tr>
<th>header_h3_font_size</th>
<td><p>h3 Header Text Font Size. Defaults to 1.75rem. Modifies the <code>.remark-slide-content h3</code> class.</p></td>
</tr>
<tr>
<th>header_background_auto</th>
<td><p>Add background under slide title automatically for h1 header elements. If not enabled, use <code>class: header_background</code> to enable. Defaults to <code>FALSE</code>.</p></td>
</tr>
<tr>
<th>header_background_color</th>
<td><p>Background Color for h1 Header with Background. Defaults to <code>header_color</code>. Modifies the <code>.remark-slide-content h1</code> class.</p></td>
</tr>
<tr>
<th>header_background_text_color</th>
<td><p>Text Color for h1 Header with Background. Defaults to <code>background_color</code>. Modifies the <code>.remark-slide-content h1</code> class.</p></td>
</tr>
<tr>
<th>header_background_padding</th>
<td><p>Padding for h1 Header with Background. Defaults to <code>NULL</code>. Modifies the <code>.remark-slide-content h1</code> class.</p></td>
</tr>
<tr>
<th>header_background_content_padding_top</th>
<td><p>Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>header_background_ignore_classes</th>
<td><p>Slide Classes Where Header with Background will not be Applied. Defaults to <code><a href='https://rdrr.io/r/base/c.html'>c('normal', 'inverse', 'title', 'middle', 'bottom')</a></code>. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>text_slide_number_font_size</th>
<td><p>Slide Number Text Font Size. Defaults to 0.9rem. Modifies the <code>.remark-slide-number</code> class.</p></td>
</tr>
<tr>
<th>text_font_google</th>
<td><p>Use <code><a href='google_font.html'>google_font()</a></code> to specify body font. Defaults to <code>NULL</code>. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>text_font_family</th>
<td><p>Body Text Font Family (xaringan default is <code>'Droid Serif'</code>). Defaults to Noto Sans. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>text_font_weight</th>
<td><p>Body Text Font Weight. Defaults to normal. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>text_font_url</th>
<td><p>Body Text Font URL(s). Defaults to https://fonts.googleapis.com/css?family=Noto+Sans:400,400i,700,700i&amp;display=swap. Modifies the <code>@import url()</code> elements.</p></td>
</tr>
<tr>
<th>text_font_family_fallback</th>
<td><p>Body Text Font Fallbacks. Defaults to -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, Ubuntu, roboto, noto, segoe ui, arial. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>text_font_base</th>
<td><p>Body Text Base Font (Total Failure Fallback). Defaults to sans-serif. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>header_font_google</th>
<td><p>Use <code><a href='google_font.html'>google_font()</a></code> to specify header font. Defaults to <code>NULL</code>. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>header_font_family</th>
<td><p>Header Font Family (xaringan default is <code>'Yanone Kaffeesatz'</code>). Defaults to Cabin. Modifies the <code>h1, h2, h3</code> elements.</p></td>
</tr>
<tr>
<th>header_font_weight</th>
<td><p>Header Font Weight. Defaults to 600. Modifies the <code>h1, h2, h3</code> elements.</p></td>
</tr>
<tr>
<th>header_font_url</th>
<td><p>Header Font URL. Defaults to https://fonts.googleapis.com/css?family=Cabin:600,600i&amp;display=swap. Modifies the <code>@import url</code> elements.</p></td>
</tr>
<tr>
<th>code_font_google</th>
<td><p>Use <code><a href='google_font.html'>google_font()</a></code> to specify code font. Defaults to <code>NULL</code>. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>code_font_family</th>
<td><p>Code Font Family. Defaults to Source Code Pro. Modifies the <code>.remark-code, .remark-inline-code</code> classes.</p></td>
</tr>
<tr>
<th>code_font_size</th>
<td><p>Code Text Font Size. Defaults to 0.9rem. Modifies the <code>.remark-inline</code> class.</p></td>
</tr>
<tr>
<th>code_font_url</th>
<td><p>Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700&amp;display=swap. Modifies the <code>@import url</code> elements.</p></td>
</tr>
<tr>
<th>code_font_family_fallback</th>
<td><p>Code Font Fallback. Defaults to Menlo, Consolas, Monaco, Liberation Mono, Lucida Console. Modifies the <code>.remark-code, .remark-inline-code</code> classes.</p></td>
</tr>
<tr>
<th>colors</th>
<td><p>A named vector of custom colors. The names of the colors
become CSS variables and classes that can be used within your slides.
For example, <code>colors = c(blue = "#bad4ed")</code> adds a CSS variable
<code>--blue</code>, a <code>.blue</code> CSS class that applies the color to the text or
foreground color, and a <code>.bg-blue</code> CSS class that applies the color
to the background.</p></td>
</tr>
<tr>
<th>extra_css</th>
<td><p>A named list of CSS definitions each containing a named list
of CSS property-value pairs, i.e.
<code><a href='https://rdrr.io/r/base/list.html'>list(".class-id" = list("css-property" = "value"))</a></code></p></td>
</tr>
<tr>
<th>extra_fonts</th>
<td><p>A list of additional fonts to import, each list element
can be either a URL as a character string or a call to
<code><a href='google_font.html'>google_font</a>()</code></p></td>
</tr>
<tr>
<th>outfile</th>
<td><p>Customized xaringan CSS output file name, default is "xaringan-themer.css"</p></td>
</tr>
</table>

<h2 class="hasAnchor" id="references"><a class="anchor" href="#references"></a>References</h2>

<p><a href='http://ethanschoonover.com/solarized'>http://ethanschoonover.com/solarized</a></p>
<h2 class="hasAnchor" id="see-also"><a class="anchor" href="#see-also"></a>See also</h2>

<div class='dont-index'><p>Other themes:
<code><a href='style_duo_accent_inverse.html'>style_duo_accent_inverse</a>()</code>,
<code><a href='style_duo_accent.html'>style_duo_accent</a>()</code>,
<code><a href='style_duo.html'>style_duo</a>()</code>,
<code><a href='style_mono_accent_inverse.html'>style_mono_accent_inverse</a>()</code>,
<code><a href='style_mono_accent.html'>style_mono_accent</a>()</code>,
<code><a href='style_mono_dark.html'>style_mono_dark</a>()</code>,
<code><a href='style_mono_light.html'>style_mono_light</a>()</code>,
<code><a href='style_solarized_light.html'>style_solarized_light</a>()</code>,
<code><a href='style_xaringan.html'>style_xaringan</a>()</code></p>
<p>Other Solarized themes:
<code><a href='style_solarized_light.html'>style_solarized_light</a>()</code></p></div>

</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
<h2>Contents</h2>
<ul class="nav nav-pills nav-stacked">
<li><a href="#arguments">Arguments</a></li>
<li><a href="#references">References</a></li>
<li><a href="#see-also">See also</a></li>
</ul>

</div>
</div>


<footer>
<div class="copyright">
<p>Developed by <a href='https://www.garrickadenbuie.com'>Garrick Aden-Buie</a>.</p>
</div>

<div class="pkgdown">
<p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.4.1.</p>
</div>

</footer>
</div>



</body>
</html>



+ 529
- 0
dev/reference/style_solarized_light.html Просмотреть файл

<!-- Generated by pkgdown: do not edit by hand -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Solarized Light Theme — style_solarized_light • xaringanthemer</title>


<!-- jquery -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<!-- Bootstrap -->

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha256-916EbMg70RQy9LHiGkXzG8hSg9EdNy97GazNG/aiY1w=" crossorigin="anonymous" />

<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha256-U5ZEeKfGNOja007MMD3YBI0A3OSZOQbeG6z2f2Y0hu8=" crossorigin="anonymous"></script>

<!-- Font Awesome icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/all.min.css" integrity="sha256-nAmazAk6vS34Xqo0BSrTb+abbtFlgsFK7NKSi6o7Y78=" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/v4-shims.min.css" integrity="sha256-6qHlizsOWFskGlwVOKuns+D1nB6ssZrHQrNj1wGplHc=" crossorigin="anonymous" />

<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.4/clipboard.min.js" integrity="sha256-FiZwavyI2V6+EXO1U+xzLG3IKldpiTFf3153ea9zikQ=" crossorigin="anonymous"></script>

<!-- headroom.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/headroom.min.js" integrity="sha256-DJFC1kqIhelURkuza0AvYal5RxMtpzLjFhsnVIeuk+U=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script>

<!-- pkgdown -->
<link href="../pkgdown.css" rel="stylesheet">
<script src="../pkgdown.js"></script>



<link href="../extra.css" rel="stylesheet">

<meta property="og:title" content="Solarized Light Theme — style_solarized_light" />
<meta property="og:description" content="A light theme based around on the solarized color scheme.
Works well with &quot;highlightStyle: solarized-dark&quot; or
&quot;highlighStyle: solarized-light&quot;." />
<meta name="twitter:card" content="summary" />


<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]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->



</head>

<body>
<div class="container template-reference-topic">
<header>
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">xaringanthemer</a>
<span class="version label label-danger" data-toggle="tooltip" data-placement="bottom" title="In-development version">0.2.0.9100</span>
</span>
</div>

<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="../index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="../articles/xaringanthemer.html">Get started</a>
</li>
<li>
<a href="../reference/index.html">Reference</a>
</li>
<li>
<a href="../articles/themes.html">Themes</a>
</li>
<li>
<a href="../articles/fonts.html">Fonts</a>
</li>
<li>
<a href="../articles/template-variables.html">Template Variables</a>
</li>
<li>
<a href="../articles/css-help.html">CSS Help</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="https://github.com/gadenbuie/xaringanthemer">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
<li>
<a href="https://twitter.com/grrrck">
<span class="fa fa-twitter fa-lg"></span>
</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->


</header>

<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
<h1>Solarized Light Theme</h1>
<small class="dont-index">Source: <a href='https://github.com/gadenbuie/xaringanthemer/blob/master/R/style_solarized_light.R'><code>R/style_solarized_light.R</code></a></small>
<div class="hidden name"><code>style_solarized_light.Rd</code></div>
</div>

<div class="ref-description">
<p>A light theme based around on the solarized color scheme.
Works well with "<code>highlightStyle: solarized-dark</code>" or
"<code>highlighStyle: solarized-light</code>".</p>
</div>

<pre class="usage"><span class='fu'>style_solarized_light</span>(
<span class='kw'>text_color</span> <span class='kw'>=</span> <span class='st'>"#657b83"</span>,
<span class='kw'>header_color</span> <span class='kw'>=</span> <span class='st'>"#dc322f"</span>,
<span class='kw'>background_color</span> <span class='kw'>=</span> <span class='st'>"#fdf6e3"</span>,
<span class='kw'>link_color</span> <span class='kw'>=</span> <span class='st'>"#b58900"</span>,
<span class='kw'>text_bold_color</span> <span class='kw'>=</span> <span class='st'>"#d33682"</span>,
<span class='kw'>text_slide_number_color</span> <span class='kw'>=</span> <span class='st'>"#93a1a1"</span>,
<span class='kw'>padding</span> <span class='kw'>=</span> <span class='st'>"16px 64px 16px 64px"</span>,
<span class='kw'>background_image</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>background_size</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>background_position</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>code_highlight_color</span> <span class='kw'>=</span> <span class='st'>"#268bd240"</span>,
<span class='kw'>code_inline_color</span> <span class='kw'>=</span> <span class='st'>"#6c71c4"</span>,
<span class='kw'>code_inline_background_color</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>code_inline_font_size</span> <span class='kw'>=</span> <span class='st'>"1rem"</span>,
<span class='kw'>inverse_background_color</span> <span class='kw'>=</span> <span class='st'>"#002b36"</span>,
<span class='kw'>inverse_text_color</span> <span class='kw'>=</span> <span class='st'>"#fdf6e3"</span>,
<span class='kw'>inverse_text_shadow</span> <span class='kw'>=</span> <span class='fl'>FALSE</span>,
<span class='kw'>inverse_header_color</span> <span class='kw'>=</span> <span class='no'>inverse_text_color</span>,
<span class='kw'>title_slide_text_color</span> <span class='kw'>=</span> <span class='no'>inverse_text_color</span>,
<span class='kw'>title_slide_background_color</span> <span class='kw'>=</span> <span class='no'>inverse_background_color</span>,
<span class='kw'>title_slide_background_image</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>title_slide_background_size</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>title_slide_background_position</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>footnote_color</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>footnote_font_size</span> <span class='kw'>=</span> <span class='st'>"0.9rem"</span>,
<span class='kw'>footnote_position_bottom</span> <span class='kw'>=</span> <span class='st'>"60px"</span>,
<span class='kw'>left_column_subtle_color</span> <span class='kw'>=</span> <span class='st'>"#93a1a1"</span>,
<span class='kw'>left_column_selected_color</span> <span class='kw'>=</span> <span class='st'>"#586e75"</span>,
<span class='kw'>blockquote_left_border_color</span> <span class='kw'>=</span> <span class='st'>"#cb4b16"</span>,
<span class='kw'>table_border_color</span> <span class='kw'>=</span> <span class='st'>"#839496"</span>,
<span class='kw'>table_row_border_color</span> <span class='kw'>=</span> <span class='st'>"#839496"</span>,
<span class='kw'>table_row_even_background_color</span> <span class='kw'>=</span> <span class='st'>"#eee8d5"</span>,
<span class='kw'>base_font_size</span> <span class='kw'>=</span> <span class='st'>"20px"</span>,
<span class='kw'>text_font_size</span> <span class='kw'>=</span> <span class='st'>"1rem"</span>,
<span class='kw'>header_h1_font_size</span> <span class='kw'>=</span> <span class='st'>"2.75rem"</span>,
<span class='kw'>header_h2_font_size</span> <span class='kw'>=</span> <span class='st'>"2.25rem"</span>,
<span class='kw'>header_h3_font_size</span> <span class='kw'>=</span> <span class='st'>"1.75rem"</span>,
<span class='kw'>header_background_auto</span> <span class='kw'>=</span> <span class='fl'>FALSE</span>,
<span class='kw'>header_background_color</span> <span class='kw'>=</span> <span class='no'>header_color</span>,
<span class='kw'>header_background_text_color</span> <span class='kw'>=</span> <span class='no'>background_color</span>,
<span class='kw'>header_background_padding</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>header_background_content_padding_top</span> <span class='kw'>=</span> <span class='st'>"7rem"</span>,
<span class='kw'>header_background_ignore_classes</span> <span class='kw'>=</span> <span class='fu'><a href='https://rdrr.io/r/base/c.html'>c</a></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='kw'>text_slide_number_font_size</span> <span class='kw'>=</span> <span class='st'>"0.9rem"</span>,
<span class='kw'>text_font_google</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>text_font_family</span> <span class='kw'>=</span> <span class='st'>"Noto Sans"</span>,
<span class='kw'>text_font_weight</span> <span class='kw'>=</span> <span class='st'>"normal"</span>,

<span class='kw'>text_font_url</span> <span class='kw'>=</span> <span class='st'>"https://fonts.googleapis.com/css?family=Noto+Sans:400,400i,700,700i&amp;display=swap"</span>,

<span class='kw'>text_font_family_fallback</span> <span class='kw'>=</span> <span class='st'>"-apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, Ubuntu, roboto, noto, segoe ui, arial"</span>,
<span class='kw'>text_font_base</span> <span class='kw'>=</span> <span class='st'>"sans-serif"</span>,
<span class='kw'>header_font_google</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>header_font_family</span> <span class='kw'>=</span> <span class='st'>"Cabin"</span>,
<span class='kw'>header_font_weight</span> <span class='kw'>=</span> <span class='st'>"600"</span>,

<span class='kw'>header_font_url</span> <span class='kw'>=</span> <span class='st'>"https://fonts.googleapis.com/css?family=Cabin:600,600i&amp;display=swap"</span>,
<span class='kw'>code_font_google</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>code_font_family</span> <span class='kw'>=</span> <span class='st'>"Source Code Pro"</span>,
<span class='kw'>code_font_size</span> <span class='kw'>=</span> <span class='st'>"0.9rem"</span>,

<span class='kw'>code_font_url</span> <span class='kw'>=</span> <span class='st'>"https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700&amp;display=swap"</span>,
<span class='kw'>code_font_family_fallback</span> <span class='kw'>=</span> <span class='st'>"Menlo, Consolas, Monaco, Liberation Mono, Lucida Console"</span>,
<span class='kw'>colors</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>extra_css</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>extra_fonts</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>outfile</span> <span class='kw'>=</span> <span class='st'>"xaringan-themer.css"</span>
)</pre>

<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a>Arguments</h2>
<table class="ref-arguments">
<colgroup><col class="name" /><col class="desc" /></colgroup>
<tr>
<th>text_color</th>
<td><p>Text Color. Defaults to #657b83. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>header_color</th>
<td><p>Header Color. Defaults to #dc322f. Modifies the <code>h1, h2, h3</code> elements.</p></td>
</tr>
<tr>
<th>background_color</th>
<td><p>Slide Background Color. Defaults to #fdf6e3. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>link_color</th>
<td><p>Link Color. Defaults to #b58900. Modifies the <code>a, a &gt; code</code> elements.</p></td>
</tr>
<tr>
<th>text_bold_color</th>
<td><p>Bold Text Color. Defaults to #d33682. Modifies the <code>strong</code> element.</p></td>
</tr>
<tr>
<th>text_slide_number_color</th>
<td><p>Slide Number Color. Defaults to #93a1a1. Modifies the <code>.remark-slide-number</code> class.</p></td>
</tr>
<tr>
<th>padding</th>
<td><p>Slide Padding in <code>top right [bottom left]</code> format. Defaults to 16px 64px 16px 64px. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>background_image</th>
<td><p>Background image applied to each <em>and every</em> slide. Set <code>title_slide_background_image = "none"</code> to remove the background image from the title slide. Defaults to <code>NULL</code>. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>background_size</th>
<td><p>Background image size, requires <code>background_image</code> to be set. If <code>background_image</code> is set, <code>background_size</code> will default to <code>cover</code> so the backround fills the screen. If both <code>background_image</code> and <code>background_position</code> are set, will default to 100 percent. Defaults to <code>NULL</code>. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>background_position</th>
<td><p>Background image position, requires <code>background_image</code> to be set, and it is recommended to adjust <code>background_size</code>. Defaults to <code>NULL</code>. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>code_highlight_color</th>
<td><p>Code Line Highlight. Defaults to #268bd240. Modifies the <code>.remark-code-line-highlighted</code> class.</p></td>
</tr>
<tr>
<th>code_inline_color</th>
<td><p>Inline Code Color. Defaults to #6c71c4. Modifies the <code>.remark-inline-code</code> class.</p></td>
</tr>
<tr>
<th>code_inline_background_color</th>
<td><p>Inline Code Background Color. Defaults to <code>NULL</code>. Modifies the <code>.remark-inline-code</code> class.</p></td>
</tr>
<tr>
<th>code_inline_font_size</th>
<td><p>Inline Code Text Font Size. Defaults to 1rem. Modifies the <code>.remark-inline-code</code> class.</p></td>
</tr>
<tr>
<th>inverse_background_color</th>
<td><p>Inverse Background Color. Defaults to #002b36. Modifies the <code>.inverse</code> class.</p></td>
</tr>
<tr>
<th>inverse_text_color</th>
<td><p>Inverse Text Color. Defaults to #fdf6e3. Modifies the <code>.inverse</code> class.</p></td>
</tr>
<tr>
<th>inverse_text_shadow</th>
<td><p>Enables Shadow on text of inverse slides. Defaults to <code>FALSE</code>. Modifies the <code>.inverse</code> class.</p></td>
</tr>
<tr>
<th>inverse_header_color</th>
<td><p>Inverse Header Color. Defaults to <code>inverse_text_color</code>. Modifies the <code>.inverse h1, .inverse h2, .inverse h3</code> classes.</p></td>
</tr>
<tr>
<th>title_slide_text_color</th>
<td><p>Title Slide Text Color. Defaults to <code>inverse_text_color</code>. Modifies the <code>.title-slide</code> class.</p></td>
</tr>
<tr>
<th>title_slide_background_color</th>
<td><p>Title Slide Background Color. Defaults to <code>inverse_background_color</code>. Modifies the <code>.title-slide</code> class.</p></td>
</tr>
<tr>
<th>title_slide_background_image</th>
<td><p>Title Slide Background Image URL. Defaults to <code>NULL</code>. Modifies the <code>.title-slide</code> class.</p></td>
</tr>
<tr>
<th>title_slide_background_size</th>
<td><p>Title Slide Background Image Size, defaults to "cover" if background image is set. Defaults to <code>NULL</code>. Modifies the <code>.title-slide</code> class.</p></td>
</tr>
<tr>
<th>title_slide_background_position</th>
<td><p>Title Slide Background Image Position. Defaults to <code>NULL</code>. Modifies the <code>.title-slide</code> class.</p></td>
</tr>
<tr>
<th>footnote_color</th>
<td><p>Footnote text color (if <code>NA</code>, then it will be the same color as <code>text_color</code>). Defaults to <code>NULL</code>. Modifies the <code>.footnote</code> class.</p></td>
</tr>
<tr>
<th>footnote_font_size</th>
<td><p>Footnote font size. Defaults to 0.9rem. Modifies the <code>.footnote</code> class.</p></td>
</tr>
<tr>
<th>footnote_position_bottom</th>
<td><p>Footnote location from bottom of screen. Defaults to 60px. Modifies the <code>.footnote</code> class.</p></td>
</tr>
<tr>
<th>left_column_subtle_color</th>
<td><p>Left Column Text (not last). Defaults to #93a1a1. Modifies the <code>.left-column h2, .left-column h3</code> classes.</p></td>
</tr>
<tr>
<th>left_column_selected_color</th>
<td><p>Left Column Current Selection. Defaults to #586e75. Modifies the <code>.left-column h2:last-of-type, .left-column h3:last-child</code> classes.</p></td>
</tr>
<tr>
<th>blockquote_left_border_color</th>
<td><p>Blockquote Left Border Color. Defaults to #cb4b16. Modifies the <code>blockquote</code> element.</p></td>
</tr>
<tr>
<th>table_border_color</th>
<td><p>Table top/bottom border. Defaults to #839496. Modifies the <code>table: border-top, border-bottom</code> elements.</p></td>
</tr>
<tr>
<th>table_row_border_color</th>
<td><p>Table row inner bottom border. Defaults to #839496. Modifies the <code>table thead th: border-bottom</code> elements.</p></td>
</tr>
<tr>
<th>table_row_even_background_color</th>
<td><p>Table Even Row Background Color. Defaults to #eee8d5. Modifies the <code>thead, tfoot, tr:nth-child(even)</code> elements.</p></td>
</tr>
<tr>
<th>base_font_size</th>
<td><p>Base Font Size for All Slide Elements (must be <code>px</code>). Defaults to 20px. Modifies the <code>html</code> element.</p></td>
</tr>
<tr>
<th>text_font_size</th>
<td><p>Slide Body Text Font Size. Defaults to 1rem. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>header_h1_font_size</th>
<td><p>h1 Header Text Font Size. Defaults to 2.75rem. Modifies the <code>.remark-slide-content h1</code> class.</p></td>
</tr>
<tr>
<th>header_h2_font_size</th>
<td><p>h2 Header Text Font Size. Defaults to 2.25rem. Modifies the <code>.remark-slide-content h2</code> class.</p></td>
</tr>
<tr>
<th>header_h3_font_size</th>
<td><p>h3 Header Text Font Size. Defaults to 1.75rem. Modifies the <code>.remark-slide-content h3</code> class.</p></td>
</tr>
<tr>
<th>header_background_auto</th>
<td><p>Add background under slide title automatically for h1 header elements. If not enabled, use <code>class: header_background</code> to enable. Defaults to <code>FALSE</code>.</p></td>
</tr>
<tr>
<th>header_background_color</th>
<td><p>Background Color for h1 Header with Background. Defaults to <code>header_color</code>. Modifies the <code>.remark-slide-content h1</code> class.</p></td>
</tr>
<tr>
<th>header_background_text_color</th>
<td><p>Text Color for h1 Header with Background. Defaults to <code>background_color</code>. Modifies the <code>.remark-slide-content h1</code> class.</p></td>
</tr>
<tr>
<th>header_background_padding</th>
<td><p>Padding for h1 Header with Background. Defaults to <code>NULL</code>. Modifies the <code>.remark-slide-content h1</code> class.</p></td>
</tr>
<tr>
<th>header_background_content_padding_top</th>
<td><p>Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>header_background_ignore_classes</th>
<td><p>Slide Classes Where Header with Background will not be Applied. Defaults to <code><a href='https://rdrr.io/r/base/c.html'>c('normal', 'inverse', 'title', 'middle', 'bottom')</a></code>. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>text_slide_number_font_size</th>
<td><p>Slide Number Text Font Size. Defaults to 0.9rem. Modifies the <code>.remark-slide-number</code> class.</p></td>
</tr>
<tr>
<th>text_font_google</th>
<td><p>Use <code><a href='google_font.html'>google_font()</a></code> to specify body font. Defaults to <code>NULL</code>. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>text_font_family</th>
<td><p>Body Text Font Family (xaringan default is <code>'Droid Serif'</code>). Defaults to Noto Sans. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>text_font_weight</th>
<td><p>Body Text Font Weight. Defaults to normal. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>text_font_url</th>
<td><p>Body Text Font URL(s). Defaults to https://fonts.googleapis.com/css?family=Noto+Sans:400,400i,700,700i&amp;display=swap. Modifies the <code>@import url()</code> elements.</p></td>
</tr>
<tr>
<th>text_font_family_fallback</th>
<td><p>Body Text Font Fallbacks. Defaults to -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, Ubuntu, roboto, noto, segoe ui, arial. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>text_font_base</th>
<td><p>Body Text Base Font (Total Failure Fallback). Defaults to sans-serif. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>header_font_google</th>
<td><p>Use <code><a href='google_font.html'>google_font()</a></code> to specify header font. Defaults to <code>NULL</code>. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>header_font_family</th>
<td><p>Header Font Family (xaringan default is <code>'Yanone Kaffeesatz'</code>). Defaults to Cabin. Modifies the <code>h1, h2, h3</code> elements.</p></td>
</tr>
<tr>
<th>header_font_weight</th>
<td><p>Header Font Weight. Defaults to 600. Modifies the <code>h1, h2, h3</code> elements.</p></td>
</tr>
<tr>
<th>header_font_url</th>
<td><p>Header Font URL. Defaults to https://fonts.googleapis.com/css?family=Cabin:600,600i&amp;display=swap. Modifies the <code>@import url</code> elements.</p></td>
</tr>
<tr>
<th>code_font_google</th>
<td><p>Use <code><a href='google_font.html'>google_font()</a></code> to specify code font. Defaults to <code>NULL</code>. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>code_font_family</th>
<td><p>Code Font Family. Defaults to Source Code Pro. Modifies the <code>.remark-code, .remark-inline-code</code> classes.</p></td>
</tr>
<tr>
<th>code_font_size</th>
<td><p>Code Text Font Size. Defaults to 0.9rem. Modifies the <code>.remark-inline</code> class.</p></td>
</tr>
<tr>
<th>code_font_url</th>
<td><p>Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700&amp;display=swap. Modifies the <code>@import url</code> elements.</p></td>
</tr>
<tr>
<th>code_font_family_fallback</th>
<td><p>Code Font Fallback. Defaults to Menlo, Consolas, Monaco, Liberation Mono, Lucida Console. Modifies the <code>.remark-code, .remark-inline-code</code> classes.</p></td>
</tr>
<tr>
<th>colors</th>
<td><p>A named vector of custom colors. The names of the colors
become CSS variables and classes that can be used within your slides.
For example, <code>colors = c(blue = "#bad4ed")</code> adds a CSS variable
<code>--blue</code>, a <code>.blue</code> CSS class that applies the color to the text or
foreground color, and a <code>.bg-blue</code> CSS class that applies the color
to the background.</p></td>
</tr>
<tr>
<th>extra_css</th>
<td><p>A named list of CSS definitions each containing a named list
of CSS property-value pairs, i.e.
<code><a href='https://rdrr.io/r/base/list.html'>list(".class-id" = list("css-property" = "value"))</a></code></p></td>
</tr>
<tr>
<th>extra_fonts</th>
<td><p>A list of additional fonts to import, each list element
can be either a URL as a character string or a call to
<code><a href='google_font.html'>google_font</a>()</code></p></td>
</tr>
<tr>
<th>outfile</th>
<td><p>Customized xaringan CSS output file name, default is "xaringan-themer.css"</p></td>
</tr>
</table>

<h2 class="hasAnchor" id="references"><a class="anchor" href="#references"></a>References</h2>

<p><a href='http://ethanschoonover.com/solarized'>http://ethanschoonover.com/solarized</a></p>
<h2 class="hasAnchor" id="see-also"><a class="anchor" href="#see-also"></a>See also</h2>

<div class='dont-index'><p>Other themes:
<code><a href='style_duo_accent_inverse.html'>style_duo_accent_inverse</a>()</code>,
<code><a href='style_duo_accent.html'>style_duo_accent</a>()</code>,
<code><a href='style_duo.html'>style_duo</a>()</code>,
<code><a href='style_mono_accent_inverse.html'>style_mono_accent_inverse</a>()</code>,
<code><a href='style_mono_accent.html'>style_mono_accent</a>()</code>,
<code><a href='style_mono_dark.html'>style_mono_dark</a>()</code>,
<code><a href='style_mono_light.html'>style_mono_light</a>()</code>,
<code><a href='style_solarized_dark.html'>style_solarized_dark</a>()</code>,
<code><a href='style_xaringan.html'>style_xaringan</a>()</code></p>
<p>Other Solarized themes:
<code><a href='style_solarized_dark.html'>style_solarized_dark</a>()</code></p></div>

</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
<h2>Contents</h2>
<ul class="nav nav-pills nav-stacked">
<li><a href="#arguments">Arguments</a></li>
<li><a href="#references">References</a></li>
<li><a href="#see-also">See also</a></li>
</ul>

</div>
</div>


<footer>
<div class="copyright">
<p>Developed by <a href='https://www.garrickadenbuie.com'>Garrick Aden-Buie</a>.</p>
</div>

<div class="pkgdown">
<p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.4.1.</p>
</div>

</footer>
</div>



</body>
</html>



+ 519
- 0
dev/reference/style_xaringan.html Просмотреть файл

<!-- Generated by pkgdown: do not edit by hand -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Write A Customized Xaringan Theme — style_xaringan • xaringanthemer</title>


<!-- jquery -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<!-- Bootstrap -->

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha256-916EbMg70RQy9LHiGkXzG8hSg9EdNy97GazNG/aiY1w=" crossorigin="anonymous" />

<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha256-U5ZEeKfGNOja007MMD3YBI0A3OSZOQbeG6z2f2Y0hu8=" crossorigin="anonymous"></script>

<!-- Font Awesome icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/all.min.css" integrity="sha256-nAmazAk6vS34Xqo0BSrTb+abbtFlgsFK7NKSi6o7Y78=" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/v4-shims.min.css" integrity="sha256-6qHlizsOWFskGlwVOKuns+D1nB6ssZrHQrNj1wGplHc=" crossorigin="anonymous" />

<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.4/clipboard.min.js" integrity="sha256-FiZwavyI2V6+EXO1U+xzLG3IKldpiTFf3153ea9zikQ=" crossorigin="anonymous"></script>

<!-- headroom.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/headroom.min.js" integrity="sha256-DJFC1kqIhelURkuza0AvYal5RxMtpzLjFhsnVIeuk+U=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script>

<!-- pkgdown -->
<link href="../pkgdown.css" rel="stylesheet">
<script src="../pkgdown.js"></script>



<link href="../extra.css" rel="stylesheet">

<meta property="og:title" content="Write A Customized Xaringan Theme — style_xaringan" />
<meta property="og:description" content="Creates a customized Xaringan theme CSS file." />
<meta name="twitter:card" content="summary" />


<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]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->



</head>

<body>
<div class="container template-reference-topic">
<header>
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">xaringanthemer</a>
<span class="version label label-danger" data-toggle="tooltip" data-placement="bottom" title="In-development version">0.2.0.9100</span>
</span>
</div>

<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="../index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="../articles/xaringanthemer.html">Get started</a>
</li>
<li>
<a href="../reference/index.html">Reference</a>
</li>
<li>
<a href="../articles/themes.html">Themes</a>
</li>
<li>
<a href="../articles/fonts.html">Fonts</a>
</li>
<li>
<a href="../articles/template-variables.html">Template Variables</a>
</li>
<li>
<a href="../articles/css-help.html">CSS Help</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="https://github.com/gadenbuie/xaringanthemer">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
<li>
<a href="https://twitter.com/grrrck">
<span class="fa fa-twitter fa-lg"></span>
</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->


</header>

<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
<h1>Write A Customized Xaringan Theme</h1>
<small class="dont-index">Source: <a href='https://github.com/gadenbuie/xaringanthemer/blob/master/R/style_xaringan.R'><code>R/style_xaringan.R</code></a></small>
<div class="hidden name"><code>style_xaringan.Rd</code></div>
</div>

<div class="ref-description">
<p>Creates a customized Xaringan theme CSS file.</p>
</div>

<pre class="usage"><span class='fu'>style_xaringan</span>(
<span class='kw'>text_color</span> <span class='kw'>=</span> <span class='st'>"#000"</span>,
<span class='kw'>header_color</span> <span class='kw'>=</span> <span class='st'>"#000"</span>,
<span class='kw'>background_color</span> <span class='kw'>=</span> <span class='st'>"#FFF"</span>,
<span class='kw'>link_color</span> <span class='kw'>=</span> <span class='st'>"rgb(249, 38, 114)"</span>,
<span class='kw'>text_bold_color</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>text_slide_number_color</span> <span class='kw'>=</span> <span class='no'>inverse_background_color</span>,
<span class='kw'>padding</span> <span class='kw'>=</span> <span class='st'>"16px 64px 16px 64px"</span>,
<span class='kw'>background_image</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>background_size</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>background_position</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>code_highlight_color</span> <span class='kw'>=</span> <span class='st'>"rgba(255,255,0,0.5)"</span>,
<span class='kw'>code_inline_color</span> <span class='kw'>=</span> <span class='st'>"#000"</span>,
<span class='kw'>code_inline_background_color</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>code_inline_font_size</span> <span class='kw'>=</span> <span class='st'>"1rem"</span>,
<span class='kw'>inverse_background_color</span> <span class='kw'>=</span> <span class='st'>"#272822"</span>,
<span class='kw'>inverse_text_color</span> <span class='kw'>=</span> <span class='st'>"#d6d6d6"</span>,
<span class='kw'>inverse_text_shadow</span> <span class='kw'>=</span> <span class='fl'>FALSE</span>,
<span class='kw'>inverse_header_color</span> <span class='kw'>=</span> <span class='st'>"#f3f3f3"</span>,
<span class='kw'>title_slide_text_color</span> <span class='kw'>=</span> <span class='no'>inverse_text_color</span>,
<span class='kw'>title_slide_background_color</span> <span class='kw'>=</span> <span class='no'>inverse_background_color</span>,
<span class='kw'>title_slide_background_image</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>title_slide_background_size</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>title_slide_background_position</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>footnote_color</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>footnote_font_size</span> <span class='kw'>=</span> <span class='st'>"0.9rem"</span>,
<span class='kw'>footnote_position_bottom</span> <span class='kw'>=</span> <span class='st'>"60px"</span>,
<span class='kw'>left_column_subtle_color</span> <span class='kw'>=</span> <span class='st'>"#777"</span>,
<span class='kw'>left_column_selected_color</span> <span class='kw'>=</span> <span class='st'>"#000"</span>,
<span class='kw'>blockquote_left_border_color</span> <span class='kw'>=</span> <span class='st'>"lightgray"</span>,
<span class='kw'>table_border_color</span> <span class='kw'>=</span> <span class='st'>"#666"</span>,
<span class='kw'>table_row_border_color</span> <span class='kw'>=</span> <span class='st'>"#ddd"</span>,
<span class='kw'>table_row_even_background_color</span> <span class='kw'>=</span> <span class='st'>"#eee"</span>,
<span class='kw'>base_font_size</span> <span class='kw'>=</span> <span class='st'>"20px"</span>,
<span class='kw'>text_font_size</span> <span class='kw'>=</span> <span class='st'>"1rem"</span>,
<span class='kw'>header_h1_font_size</span> <span class='kw'>=</span> <span class='st'>"2.75rem"</span>,
<span class='kw'>header_h2_font_size</span> <span class='kw'>=</span> <span class='st'>"2.25rem"</span>,
<span class='kw'>header_h3_font_size</span> <span class='kw'>=</span> <span class='st'>"1.75rem"</span>,
<span class='kw'>header_background_auto</span> <span class='kw'>=</span> <span class='fl'>FALSE</span>,
<span class='kw'>header_background_color</span> <span class='kw'>=</span> <span class='no'>header_color</span>,
<span class='kw'>header_background_text_color</span> <span class='kw'>=</span> <span class='no'>background_color</span>,
<span class='kw'>header_background_padding</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>header_background_content_padding_top</span> <span class='kw'>=</span> <span class='st'>"7rem"</span>,
<span class='kw'>header_background_ignore_classes</span> <span class='kw'>=</span> <span class='fu'><a href='https://rdrr.io/r/base/c.html'>c</a></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='kw'>text_slide_number_font_size</span> <span class='kw'>=</span> <span class='st'>"0.9rem"</span>,
<span class='kw'>text_font_google</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>text_font_family</span> <span class='kw'>=</span> <span class='st'>"Noto Sans"</span>,
<span class='kw'>text_font_weight</span> <span class='kw'>=</span> <span class='st'>"normal"</span>,

<span class='kw'>text_font_url</span> <span class='kw'>=</span> <span class='st'>"https://fonts.googleapis.com/css?family=Noto+Sans:400,400i,700,700i&amp;display=swap"</span>,

<span class='kw'>text_font_family_fallback</span> <span class='kw'>=</span> <span class='st'>"-apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, Ubuntu, roboto, noto, segoe ui, arial"</span>,
<span class='kw'>text_font_base</span> <span class='kw'>=</span> <span class='st'>"sans-serif"</span>,
<span class='kw'>header_font_google</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>header_font_family</span> <span class='kw'>=</span> <span class='st'>"Cabin"</span>,
<span class='kw'>header_font_weight</span> <span class='kw'>=</span> <span class='st'>"600"</span>,

<span class='kw'>header_font_url</span> <span class='kw'>=</span> <span class='st'>"https://fonts.googleapis.com/css?family=Cabin:600,600i&amp;display=swap"</span>,
<span class='kw'>code_font_google</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>code_font_family</span> <span class='kw'>=</span> <span class='st'>"Source Code Pro"</span>,
<span class='kw'>code_font_size</span> <span class='kw'>=</span> <span class='st'>"0.9rem"</span>,

<span class='kw'>code_font_url</span> <span class='kw'>=</span> <span class='st'>"https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700&amp;display=swap"</span>,
<span class='kw'>code_font_family_fallback</span> <span class='kw'>=</span> <span class='st'>"Menlo, Consolas, Monaco, Liberation Mono, Lucida Console"</span>,
<span class='kw'>colors</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>extra_css</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>extra_fonts</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>outfile</span> <span class='kw'>=</span> <span class='st'>"xaringan-themer.css"</span>
)</pre>

<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a>Arguments</h2>
<table class="ref-arguments">
<colgroup><col class="name" /><col class="desc" /></colgroup>
<tr>
<th>text_color</th>
<td><p>Text Color. Defaults to #000. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>header_color</th>
<td><p>Header Color. Defaults to #000. Modifies the <code>h1, h2, h3</code> elements.</p></td>
</tr>
<tr>
<th>background_color</th>
<td><p>Slide Background Color. Defaults to #FFF. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>link_color</th>
<td><p>Link Color. Defaults to rgb(249, 38, 114). Modifies the <code>a, a &gt; code</code> elements.</p></td>
</tr>
<tr>
<th>text_bold_color</th>
<td><p>Bold Text Color. Defaults to <code>NULL</code>. Modifies the <code>strong</code> element.</p></td>
</tr>
<tr>
<th>text_slide_number_color</th>
<td><p>Slide Number Color. Defaults to <code>inverse_background_color</code>. Modifies the <code>.remark-slide-number</code> class.</p></td>
</tr>
<tr>
<th>padding</th>
<td><p>Slide Padding in <code>top right [bottom left]</code> format. Defaults to 16px 64px 16px 64px. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>background_image</th>
<td><p>Background image applied to each <em>and every</em> slide. Set <code>title_slide_background_image = "none"</code> to remove the background image from the title slide. Defaults to <code>NULL</code>. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>background_size</th>
<td><p>Background image size, requires <code>background_image</code> to be set. If <code>background_image</code> is set, <code>background_size</code> will default to <code>cover</code> so the backround fills the screen. If both <code>background_image</code> and <code>background_position</code> are set, will default to 100 percent. Defaults to <code>NULL</code>. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>background_position</th>
<td><p>Background image position, requires <code>background_image</code> to be set, and it is recommended to adjust <code>background_size</code>. Defaults to <code>NULL</code>. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>code_highlight_color</th>
<td><p>Code Line Highlight. Defaults to rgba(255,255,0,0.5). Modifies the <code>.remark-code-line-highlighted</code> class.</p></td>
</tr>
<tr>
<th>code_inline_color</th>
<td><p>Inline Code Color. Defaults to #000. Modifies the <code>.remark-inline-code</code> class.</p></td>
</tr>
<tr>
<th>code_inline_background_color</th>
<td><p>Inline Code Background Color. Defaults to <code>NULL</code>. Modifies the <code>.remark-inline-code</code> class.</p></td>
</tr>
<tr>
<th>code_inline_font_size</th>
<td><p>Inline Code Text Font Size. Defaults to 1rem. Modifies the <code>.remark-inline-code</code> class.</p></td>
</tr>
<tr>
<th>inverse_background_color</th>
<td><p>Inverse Background Color. Defaults to #272822. Modifies the <code>.inverse</code> class.</p></td>
</tr>
<tr>
<th>inverse_text_color</th>
<td><p>Inverse Text Color. Defaults to #d6d6d6. Modifies the <code>.inverse</code> class.</p></td>
</tr>
<tr>
<th>inverse_text_shadow</th>
<td><p>Enables Shadow on text of inverse slides. Defaults to <code>FALSE</code>. Modifies the <code>.inverse</code> class.</p></td>
</tr>
<tr>
<th>inverse_header_color</th>
<td><p>Inverse Header Color. Defaults to #f3f3f3. Modifies the <code>.inverse h1, .inverse h2, .inverse h3</code> classes.</p></td>
</tr>
<tr>
<th>title_slide_text_color</th>
<td><p>Title Slide Text Color. Defaults to <code>inverse_text_color</code>. Modifies the <code>.title-slide</code> class.</p></td>
</tr>
<tr>
<th>title_slide_background_color</th>
<td><p>Title Slide Background Color. Defaults to <code>inverse_background_color</code>. Modifies the <code>.title-slide</code> class.</p></td>
</tr>
<tr>
<th>title_slide_background_image</th>
<td><p>Title Slide Background Image URL. Defaults to <code>NULL</code>. Modifies the <code>.title-slide</code> class.</p></td>
</tr>
<tr>
<th>title_slide_background_size</th>
<td><p>Title Slide Background Image Size, defaults to "cover" if background image is set. Defaults to <code>NULL</code>. Modifies the <code>.title-slide</code> class.</p></td>
</tr>
<tr>
<th>title_slide_background_position</th>
<td><p>Title Slide Background Image Position. Defaults to <code>NULL</code>. Modifies the <code>.title-slide</code> class.</p></td>
</tr>
<tr>
<th>footnote_color</th>
<td><p>Footnote text color (if <code>NA</code>, then it will be the same color as <code>text_color</code>). Defaults to <code>NULL</code>. Modifies the <code>.footnote</code> class.</p></td>
</tr>
<tr>
<th>footnote_font_size</th>
<td><p>Footnote font size. Defaults to 0.9rem. Modifies the <code>.footnote</code> class.</p></td>
</tr>
<tr>
<th>footnote_position_bottom</th>
<td><p>Footnote location from bottom of screen. Defaults to 60px. Modifies the <code>.footnote</code> class.</p></td>
</tr>
<tr>
<th>left_column_subtle_color</th>
<td><p>Left Column Text (not last). Defaults to #777. Modifies the <code>.left-column h2, .left-column h3</code> classes.</p></td>
</tr>
<tr>
<th>left_column_selected_color</th>
<td><p>Left Column Current Selection. Defaults to #000. Modifies the <code>.left-column h2:last-of-type, .left-column h3:last-child</code> classes.</p></td>
</tr>
<tr>
<th>blockquote_left_border_color</th>
<td><p>Blockquote Left Border Color. Defaults to lightgray. Modifies the <code>blockquote</code> element.</p></td>
</tr>
<tr>
<th>table_border_color</th>
<td><p>Table top/bottom border. Defaults to #666. Modifies the <code>table: border-top, border-bottom</code> elements.</p></td>
</tr>
<tr>
<th>table_row_border_color</th>
<td><p>Table row inner bottom border. Defaults to #ddd. Modifies the <code>table thead th: border-bottom</code> elements.</p></td>
</tr>
<tr>
<th>table_row_even_background_color</th>
<td><p>Table Even Row Background Color. Defaults to #eee. Modifies the <code>thead, tfoot, tr:nth-child(even)</code> elements.</p></td>
</tr>
<tr>
<th>base_font_size</th>
<td><p>Base Font Size for All Slide Elements (must be <code>px</code>). Defaults to 20px. Modifies the <code>html</code> element.</p></td>
</tr>
<tr>
<th>text_font_size</th>
<td><p>Slide Body Text Font Size. Defaults to 1rem. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>header_h1_font_size</th>
<td><p>h1 Header Text Font Size. Defaults to 2.75rem. Modifies the <code>.remark-slide-content h1</code> class.</p></td>
</tr>
<tr>
<th>header_h2_font_size</th>
<td><p>h2 Header Text Font Size. Defaults to 2.25rem. Modifies the <code>.remark-slide-content h2</code> class.</p></td>
</tr>
<tr>
<th>header_h3_font_size</th>
<td><p>h3 Header Text Font Size. Defaults to 1.75rem. Modifies the <code>.remark-slide-content h3</code> class.</p></td>
</tr>
<tr>
<th>header_background_auto</th>
<td><p>Add background under slide title automatically for h1 header elements. If not enabled, use <code>class: header_background</code> to enable. Defaults to <code>FALSE</code>.</p></td>
</tr>
<tr>
<th>header_background_color</th>
<td><p>Background Color for h1 Header with Background. Defaults to <code>header_color</code>. Modifies the <code>.remark-slide-content h1</code> class.</p></td>
</tr>
<tr>
<th>header_background_text_color</th>
<td><p>Text Color for h1 Header with Background. Defaults to <code>background_color</code>. Modifies the <code>.remark-slide-content h1</code> class.</p></td>
</tr>
<tr>
<th>header_background_padding</th>
<td><p>Padding for h1 Header with Background. Defaults to <code>NULL</code>. Modifies the <code>.remark-slide-content h1</code> class.</p></td>
</tr>
<tr>
<th>header_background_content_padding_top</th>
<td><p>Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>header_background_ignore_classes</th>
<td><p>Slide Classes Where Header with Background will not be Applied. Defaults to <code><a href='https://rdrr.io/r/base/c.html'>c('normal', 'inverse', 'title', 'middle', 'bottom')</a></code>. Modifies the <code>.remark-slide-content</code> class.</p></td>
</tr>
<tr>
<th>text_slide_number_font_size</th>
<td><p>Slide Number Text Font Size. Defaults to 0.9rem. Modifies the <code>.remark-slide-number</code> class.</p></td>
</tr>
<tr>
<th>text_font_google</th>
<td><p>Use <code><a href='google_font.html'>google_font()</a></code> to specify body font. Defaults to <code>NULL</code>. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>text_font_family</th>
<td><p>Body Text Font Family (xaringan default is <code>'Droid Serif'</code>). Defaults to Noto Sans. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>text_font_weight</th>
<td><p>Body Text Font Weight. Defaults to normal. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>text_font_url</th>
<td><p>Body Text Font URL(s). Defaults to https://fonts.googleapis.com/css?family=Noto+Sans:400,400i,700,700i&amp;display=swap. Modifies the <code>@import url()</code> elements.</p></td>
</tr>
<tr>
<th>text_font_family_fallback</th>
<td><p>Body Text Font Fallbacks. Defaults to -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, Ubuntu, roboto, noto, segoe ui, arial. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>text_font_base</th>
<td><p>Body Text Base Font (Total Failure Fallback). Defaults to sans-serif. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>header_font_google</th>
<td><p>Use <code><a href='google_font.html'>google_font()</a></code> to specify header font. Defaults to <code>NULL</code>. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>header_font_family</th>
<td><p>Header Font Family (xaringan default is <code>'Yanone Kaffeesatz'</code>). Defaults to Cabin. Modifies the <code>h1, h2, h3</code> elements.</p></td>
</tr>
<tr>
<th>header_font_weight</th>
<td><p>Header Font Weight. Defaults to 600. Modifies the <code>h1, h2, h3</code> elements.</p></td>
</tr>
<tr>
<th>header_font_url</th>
<td><p>Header Font URL. Defaults to https://fonts.googleapis.com/css?family=Cabin:600,600i&amp;display=swap. Modifies the <code>@import url</code> elements.</p></td>
</tr>
<tr>
<th>code_font_google</th>
<td><p>Use <code><a href='google_font.html'>google_font()</a></code> to specify code font. Defaults to <code>NULL</code>. Modifies the <code>body</code> element.</p></td>
</tr>
<tr>
<th>code_font_family</th>
<td><p>Code Font Family. Defaults to Source Code Pro. Modifies the <code>.remark-code, .remark-inline-code</code> classes.</p></td>
</tr>
<tr>
<th>code_font_size</th>
<td><p>Code Text Font Size. Defaults to 0.9rem. Modifies the <code>.remark-inline</code> class.</p></td>
</tr>
<tr>
<th>code_font_url</th>
<td><p>Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700&amp;display=swap. Modifies the <code>@import url</code> elements.</p></td>
</tr>
<tr>
<th>code_font_family_fallback</th>
<td><p>Code Font Fallback. Defaults to Menlo, Consolas, Monaco, Liberation Mono, Lucida Console. Modifies the <code>.remark-code, .remark-inline-code</code> classes.</p></td>
</tr>
<tr>
<th>colors</th>
<td><p>A named vector of custom colors. The names of the colors
become CSS variables and classes that can be used within your slides.
For example, <code>colors = c(blue = "#bad4ed")</code> adds a CSS variable
<code>--blue</code>, a <code>.blue</code> CSS class that applies the color to the text or
foreground color, and a <code>.bg-blue</code> CSS class that applies the color
to the background.</p></td>
</tr>
<tr>
<th>extra_css</th>
<td><p>A named list of CSS definitions each containing a named list
of CSS property-value pairs, i.e.
<code><a href='https://rdrr.io/r/base/list.html'>list(".class-id" = list("css-property" = "value"))</a></code></p></td>
</tr>
<tr>
<th>extra_fonts</th>
<td><p>A list of additional fonts to import, each list element
can be either a URL as a character string or a call to
<code><a href='google_font.html'>google_font</a>()</code></p></td>
</tr>
<tr>
<th>outfile</th>
<td><p>Customized xaringan CSS output file name, default is "xaringan-themer.css"</p></td>
</tr>
</table>

<h2 class="hasAnchor" id="see-also"><a class="anchor" href="#see-also"></a>See also</h2>

<div class='dont-index'><p>Other themes:
<code><a href='style_duo_accent_inverse.html'>style_duo_accent_inverse</a>()</code>,
<code><a href='style_duo_accent.html'>style_duo_accent</a>()</code>,
<code><a href='style_duo.html'>style_duo</a>()</code>,
<code><a href='style_mono_accent_inverse.html'>style_mono_accent_inverse</a>()</code>,
<code><a href='style_mono_accent.html'>style_mono_accent</a>()</code>,
<code><a href='style_mono_dark.html'>style_mono_dark</a>()</code>,
<code><a href='style_mono_light.html'>style_mono_light</a>()</code>,
<code><a href='style_solarized_dark.html'>style_solarized_dark</a>()</code>,
<code><a href='style_solarized_light.html'>style_solarized_light</a>()</code></p></div>

</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
<h2>Contents</h2>
<ul class="nav nav-pills nav-stacked">
<li><a href="#arguments">Arguments</a></li>
<li><a href="#see-also">See also</a></li>
</ul>

</div>
</div>


<footer>
<div class="copyright">
<p>Developed by <a href='https://www.garrickadenbuie.com'>Garrick Aden-Buie</a>.</p>
</div>

<div class="pkgdown">
<p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.4.1.</p>
</div>

</footer>
</div>



</body>
</html>



Двоичные данные
dev/reference/theme_xaringan-1.png Просмотреть файл

Before After
Width: 1400  |  Height: 866  |  Size: 73KB

+ 277
- 0
dev/reference/theme_xaringan.html Просмотреть файл

<!-- Generated by pkgdown: do not edit by hand -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>A Plot Theme for ggplot2 by xaringanthemer — theme_xaringan • xaringanthemer</title>


<!-- jquery -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<!-- Bootstrap -->

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha256-916EbMg70RQy9LHiGkXzG8hSg9EdNy97GazNG/aiY1w=" crossorigin="anonymous" />

<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha256-U5ZEeKfGNOja007MMD3YBI0A3OSZOQbeG6z2f2Y0hu8=" crossorigin="anonymous"></script>

<!-- Font Awesome icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/all.min.css" integrity="sha256-nAmazAk6vS34Xqo0BSrTb+abbtFlgsFK7NKSi6o7Y78=" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/v4-shims.min.css" integrity="sha256-6qHlizsOWFskGlwVOKuns+D1nB6ssZrHQrNj1wGplHc=" crossorigin="anonymous" />

<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.4/clipboard.min.js" integrity="sha256-FiZwavyI2V6+EXO1U+xzLG3IKldpiTFf3153ea9zikQ=" crossorigin="anonymous"></script>

<!-- headroom.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/headroom.min.js" integrity="sha256-DJFC1kqIhelURkuza0AvYal5RxMtpzLjFhsnVIeuk+U=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script>

<!-- pkgdown -->
<link href="../pkgdown.css" rel="stylesheet">
<script src="../pkgdown.js"></script>



<link href="../extra.css" rel="stylesheet">

<meta property="og:title" content="A Plot Theme for ggplot2 by xaringanthemer — theme_xaringan" />
<meta property="og:description" content="Lifecycle: Experimental.
Creates ggplot2 themes to match the xaringanthemer theme used in the
xaringan slides that seamlessly matches the &quot;normal&quot; slide colors and
styles." />
<meta name="twitter:card" content="summary" />


<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]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->



</head>

<body>
<div class="container template-reference-topic">
<header>
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">xaringanthemer</a>
<span class="version label label-danger" data-toggle="tooltip" data-placement="bottom" title="In-development version">0.2.0.9100</span>
</span>
</div>

<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="../index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="../articles/xaringanthemer.html">Get started</a>
</li>
<li>
<a href="../reference/index.html">Reference</a>
</li>
<li>
<a href="../articles/themes.html">Themes</a>
</li>
<li>
<a href="../articles/fonts.html">Fonts</a>
</li>
<li>
<a href="../articles/template-variables.html">Template Variables</a>
</li>
<li>
<a href="../articles/css-help.html">CSS Help</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="https://github.com/gadenbuie/xaringanthemer">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
<li>
<a href="https://twitter.com/grrrck">
<span class="fa fa-twitter fa-lg"></span>
</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->


</header>

<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
<h1>A Plot Theme for ggplot2 by xaringanthemer</h1>
<small class="dont-index">Source: <a href='https://github.com/gadenbuie/xaringanthemer/blob/master/R/ggplot2.R'><code>R/ggplot2.R</code></a></small>
<div class="hidden name"><code>theme_xaringan.Rd</code></div>
</div>

<div class="ref-description">
<p><strong>Lifecycle:</strong> <a href='https://www.tidyverse.org/lifecycle/#experimental'>Experimental</a>.</p>
<p>Creates <span class="pkg">ggplot2</span> themes to match the xaringanthemer theme used in the
<span class="pkg">xaringan</span> slides that seamlessly matches the "normal" slide colors and
styles.</p>
</div>

<pre class="usage"><span class='fu'>theme_xaringan</span>(
<span class='kw'>text_color</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>background_color</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>accent_color</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>accent_secondary_color</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>css_file</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='no'>...</span>
)</pre>

<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a>Arguments</h2>
<table class="ref-arguments">
<colgroup><col class="name" /><col class="desc" /></colgroup>
<tr>
<th>text_color</th>
<td><p>Color for text and foreground, inherits from <code>text_color</code></p></td>
</tr>
<tr>
<th>background_color</th>
<td><p>Color for background, inherits from
<code>background_color</code></p></td>
</tr>
<tr>
<th>accent_color</th>
<td><p>Color for titles and accents, inherits from
<code>header_color</code></p></td>
</tr>
<tr>
<th>accent_secondary_color</th>
<td><p>Color for secondary accents, inherits from
<code>text_bold_color</code></p></td>
</tr>
<tr>
<th>css_file</th>
<td><p>Path to a <span class="pkg">xaringanthemer</span> CSS file, from which the
theme variables and values will be inferred. In general, if you use the
<span class="pkg">xaringathemer</span> defaults, you will not need to set this. This feature
lets you create a <span class="pkg">ggplot2</span> theme for your <span class="pkg">xaringan</span> slides, even
if you have only saved your theme CSS file and you aren't creating your
CSS theme with <span class="pkg">xaringanthemer</span> in your slides' source file.</p></td>
</tr>
<tr>
<th>...</th>
<td><p>Arguments passed on to <code><a href='theme_xaringan_base.html'>theme_xaringan_base</a></code></p><dl class='dl-horizontal'>
<dt><code>set_ggplot_defaults</code></dt><dd><p>Should defaults be set for <span class="pkg">ggplot2</span> <em>geoms</em>?
Defaults to TRUE. To restore ggplot's defaults, or the previously set geom
defaults, see <code><a href='theme_xaringan_set_defaults.html'>theme_xaringan_restore_defaults()</a></code>.</p></dd>
<dt><code>text_font</code></dt><dd><p>Font to use for text elements, passed to
<code><a href='https://rdrr.io/pkg/sysfonts/man/font_add_google.html'>sysfonts::font_add_google()</a></code>, if available and <code>text_font_use_google</code> is
<code>TRUE</code>. Inherits from <code>text_font_family</code>.</p></dd>
<dt><code>text_font_use_google</code></dt><dd><p>Is <code>text_font</code> available on <a href='https://fonts.google.com'>Google Fonts</a>?</p></dd>
<dt><code>text_font_size</code></dt><dd><p>Base text font size, inherits from <code>text_font_size</code>, or
defaults to 11.</p></dd>
<dt><code>title_font</code></dt><dd><p>Font to use for title elements, passed to
<code><a href='https://rdrr.io/pkg/sysfonts/man/font_add_google.html'>sysfonts::font_add_google()</a></code>, if available and <code>title_font_use_google</code> is
<code>TRUE</code>. Inherits from <code>title_font_family</code>.</p></dd>
<dt><code>title_font_use_google</code></dt><dd><p>Is <code>title_font</code> available on <a href='https://fonts.google.com'>Google Fonts</a>?</p></dd>
<dt><code>title_font_size</code></dt><dd><p>Base text font size, inherits from <code>title_font_size</code>,
or defaults to 14.</p></dd>
</dl></td>
</tr>
</table>

<h2 class="hasAnchor" id="value"><a class="anchor" href="#value"></a>Value</h2>

<p>A ggplot2 theme</p>
<h2 class="hasAnchor" id="see-also"><a class="anchor" href="#see-also"></a>See also</h2>

<div class='dont-index'><p>Other xaringanthemer ggplot2 themes:
<code><a href='theme_xaringan_base.html'>theme_xaringan_base</a>()</code>,
<code><a href='theme_xaringan_inverse.html'>theme_xaringan_inverse</a>()</code>,
<code><a href='theme_xaringan_set_defaults.html'>theme_xaringan_set_defaults</a>()</code></p></div>

<h2 class="hasAnchor" id="examples"><a class="anchor" href="#examples"></a>Examples</h2>
<pre class="examples"><div class='input'><span class='co'># Requires ggplot2</span>
<span class='no'>has_ggplot2</span> <span class='kw'>&lt;-</span> <span class='fu'><a href='https://rdrr.io/r/base/ns-load.html'>requireNamespace</a></span>(<span class='st'>"ggplot2"</span>, <span class='kw'>quietly</span> <span class='kw'>=</span> <span class='fl'>TRUE</span>)

<span class='kw'>if</span> (<span class='no'>has_ggplot2</span>) {
<span class='co'># Because this is an example, we'll save the CSS to a temp file</span>
<span class='no'>path_to_css_file</span> <span class='kw'>&lt;-</span> <span class='fu'><a href='https://rdrr.io/r/base/tempfile.html'>tempfile</a></span>(<span class='kw'>fileext</span> <span class='kw'>=</span> <span class='st'>".css"</span>)

<span class='co'># Create the xaringan theme: dark blue background with teal green accents</span>
<span class='fu'><a href='style_duo.html'>style_duo</a></span>(
<span class='kw'>primary_color</span> <span class='kw'>=</span> <span class='st'>"#002b36"</span>,
<span class='kw'>secondary_color</span> <span class='kw'>=</span> <span class='st'>"#31b09e"</span>,
<span class='co'># Using basic fonts for this example, but the plot theme will</span>
<span class='co'># automatically use your theme font if you use Google fonts</span>
<span class='kw'>text_font_family</span> <span class='kw'>=</span> <span class='st'>"sans"</span>,
<span class='kw'>header_font_family</span> <span class='kw'>=</span> <span class='st'>"serif"</span>,
<span class='kw'>outfile</span> <span class='kw'>=</span> <span class='no'>path_to_css_file</span>
)

<span class='fu'><a href='https://rdrr.io/r/base/library.html'>library</a></span>(<span class='no'>ggplot2</span>)
<span class='fu'><a href='https://ggplot2.tidyverse.org/reference/ggplot.html'>ggplot</a></span>(<span class='no'>iris</span>) +
<span class='fu'><a href='https://ggplot2.tidyverse.org/reference/aes.html'>aes</a></span>(<span class='no'>Petal.Length</span>, <span class='no'>Petal.Width</span>) +
<span class='fu'><a href='https://ggplot2.tidyverse.org/reference/geom_point.html'>geom_point</a></span>() +
<span class='fu'><a href='https://ggplot2.tidyverse.org/reference/labs.html'>ggtitle</a></span>(<span class='st'>"Yet another Iris plot"</span>) +
<span class='fu'>theme_xaringan</span>()
}</div><div class='img'><img src='theme_xaringan-1.png' alt='' width='700' height='433' /></div></pre>
</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
<h2>Contents</h2>
<ul class="nav nav-pills nav-stacked">
<li><a href="#arguments">Arguments</a></li>
<li><a href="#value">Value</a></li>
<li><a href="#see-also">See also</a></li>
<li><a href="#examples">Examples</a></li>
</ul>

</div>
</div>


<footer>
<div class="copyright">
<p>Developed by <a href='https://www.garrickadenbuie.com'>Garrick Aden-Buie</a>.</p>
</div>

<div class="pkgdown">
<p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.4.1.</p>
</div>

</footer>
</div>



</body>
</html>



Двоичные данные
dev/reference/theme_xaringan_base-1.png Просмотреть файл

Before After
Width: 1400  |  Height: 866  |  Size: 91KB

Двоичные данные
dev/reference/theme_xaringan_base-2.png Просмотреть файл

Before After
Width: 1400  |  Height: 866  |  Size: 57KB

+ 322
- 0
dev/reference/theme_xaringan_base.html Просмотреть файл

<!-- Generated by pkgdown: do not edit by hand -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>The ggplot2 xaringanthemer base plot theme — theme_xaringan_base • xaringanthemer</title>


<!-- jquery -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<!-- Bootstrap -->

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha256-916EbMg70RQy9LHiGkXzG8hSg9EdNy97GazNG/aiY1w=" crossorigin="anonymous" />

<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha256-U5ZEeKfGNOja007MMD3YBI0A3OSZOQbeG6z2f2Y0hu8=" crossorigin="anonymous"></script>

<!-- Font Awesome icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/all.min.css" integrity="sha256-nAmazAk6vS34Xqo0BSrTb+abbtFlgsFK7NKSi6o7Y78=" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/v4-shims.min.css" integrity="sha256-6qHlizsOWFskGlwVOKuns+D1nB6ssZrHQrNj1wGplHc=" crossorigin="anonymous" />

<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.4/clipboard.min.js" integrity="sha256-FiZwavyI2V6+EXO1U+xzLG3IKldpiTFf3153ea9zikQ=" crossorigin="anonymous"></script>

<!-- headroom.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/headroom.min.js" integrity="sha256-DJFC1kqIhelURkuza0AvYal5RxMtpzLjFhsnVIeuk+U=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script>

<!-- pkgdown -->
<link href="../pkgdown.css" rel="stylesheet">
<script src="../pkgdown.js"></script>



<link href="../extra.css" rel="stylesheet">

<meta property="og:title" content="The ggplot2 xaringanthemer base plot theme — theme_xaringan_base" />
<meta property="og:description" content="Lifecycle: Experimental.
Provides a base plot theme for ggplot2 to match the xaringan slide theme
created by xaringanthemer. The theme is designed to create a general plot
style from two colors, a background_color and a text_color (or foreground
color). Also accepts an accent_color and an accent_secondary_color that are
xaringanthemer is not required for the base theme. Use
theme_xaringan() or theme_xaringan_inverse() in xaringan slides styled by
xaringanthemer for a plot theme that matches the slide style." />
<meta name="twitter:card" content="summary" />


<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]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->



</head>

<body>
<div class="container template-reference-topic">
<header>
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">xaringanthemer</a>
<span class="version label label-danger" data-toggle="tooltip" data-placement="bottom" title="In-development version">0.2.0.9100</span>
</span>
</div>

<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="../index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="../articles/xaringanthemer.html">Get started</a>
</li>
<li>
<a href="../reference/index.html">Reference</a>
</li>
<li>
<a href="../articles/themes.html">Themes</a>
</li>
<li>
<a href="../articles/fonts.html">Fonts</a>
</li>
<li>
<a href="../articles/template-variables.html">Template Variables</a>
</li>
<li>
<a href="../articles/css-help.html">CSS Help</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="https://github.com/gadenbuie/xaringanthemer">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
<li>
<a href="https://twitter.com/grrrck">
<span class="fa fa-twitter fa-lg"></span>
</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->


</header>

<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
<h1>The ggplot2 xaringanthemer base plot theme</h1>
<small class="dont-index">Source: <a href='https://github.com/gadenbuie/xaringanthemer/blob/master/R/ggplot2.R'><code>R/ggplot2.R</code></a></small>
<div class="hidden name"><code>theme_xaringan_base.Rd</code></div>
</div>

<div class="ref-description">
<p><strong>Lifecycle:</strong> <a href='https://www.tidyverse.org/lifecycle/#experimental'>Experimental</a>.</p>
<p>Provides a base plot theme for <span class="pkg">ggplot2</span> to match the <span class="pkg">xaringan</span> slide theme
created by <a href='xaringanthemer-package.html'>xaringanthemer</a>. The theme is designed to create a general plot
style from two colors, a <code>background_color</code> and a <code>text_color</code> (or foreground
color). Also accepts an <code>accent_color</code> and an <code>accent_secondary_color</code> that are
<a href='xaringanthemer-package.html'>xaringanthemer</a> is not required for the base theme. Use
<code><a href='theme_xaringan.html'>theme_xaringan()</a></code> or <code><a href='theme_xaringan_inverse.html'>theme_xaringan_inverse()</a></code> in xaringan slides styled by
xaringanthemer for a plot theme that matches the slide style.</p>
</div>

<pre class="usage"><span class='fu'>theme_xaringan_base</span>(
<span class='no'>text_color</span>,
<span class='no'>background_color</span>,
<span class='no'>...</span>,
<span class='kw'>set_ggplot_defaults</span> <span class='kw'>=</span> <span class='fl'>TRUE</span>,
<span class='kw'>accent_color</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>accent_secondary_color</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>text_font</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>text_font_use_google</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>text_font_size</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>title_font</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>title_font_use_google</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>title_font_size</span> <span class='kw'>=</span> <span class='kw'>NULL</span>
)</pre>

<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a>Arguments</h2>
<table class="ref-arguments">
<colgroup><col class="name" /><col class="desc" /></colgroup>
<tr>
<th>text_color</th>
<td><p>Color for text and foreground</p></td>
</tr>
<tr>
<th>background_color</th>
<td><p>Color for background</p></td>
</tr>
<tr>
<th>...</th>
<td><p>Ignored</p></td>
</tr>
<tr>
<th>set_ggplot_defaults</th>
<td><p>Should defaults be set for <span class="pkg">ggplot2</span> <em>geoms</em>?
Defaults to TRUE. To restore ggplot's defaults, or the previously set geom
defaults, see <code><a href='theme_xaringan_set_defaults.html'>theme_xaringan_restore_defaults()</a></code>.</p></td>
</tr>
<tr>
<th>accent_color</th>
<td><p>Color for titles and accents, inherits from
<code>header_color</code> or <code>text_color</code>. Used for the <code>title</code> base setting in
<code><a href='https://ggplot2.tidyverse.org/reference/theme.html'>ggplot2::theme()</a></code>, and additionally for setting the <code>color</code> or <code>fill</code> of
<span class="pkg">ggplot2</span> geom defaults.</p></td>
</tr>
<tr>
<th>accent_secondary_color</th>
<td><p>Color for secondary accents, inherits from
<code>text_bold_color</code> or <code>accent_color</code>. Used only when setting <span class="pkg">ggplot2</span> geom
defaults.</p></td>
</tr>
<tr>
<th>text_font</th>
<td><p>Font to use for text elements, passed to
<code><a href='https://rdrr.io/pkg/sysfonts/man/font_add_google.html'>sysfonts::font_add_google()</a></code>, if available and <code>text_font_use_google</code> is
<code>TRUE</code>. Inherits from <code>text_font_family</code>.</p></td>
</tr>
<tr>
<th>text_font_use_google</th>
<td><p>Is <code>text_font</code> available on <a href='https://fonts.google.com'>Google Fonts</a>?</p></td>
</tr>
<tr>
<th>text_font_size</th>
<td><p>Base text font size, inherits from <code>text_font_size</code>, or
defaults to 11.</p></td>
</tr>
<tr>
<th>title_font</th>
<td><p>Font to use for title elements, passed to
<code><a href='https://rdrr.io/pkg/sysfonts/man/font_add_google.html'>sysfonts::font_add_google()</a></code>, if available and <code>title_font_use_google</code> is
<code>TRUE</code>. Inherits from <code>title_font_family</code>.</p></td>
</tr>
<tr>
<th>title_font_use_google</th>
<td><p>Is <code>title_font</code> available on <a href='https://fonts.google.com'>Google Fonts</a>?</p></td>
</tr>
<tr>
<th>title_font_size</th>
<td><p>Base text font size, inherits from <code>title_font_size</code>,
or defaults to 14.</p></td>
</tr>
</table>

<h2 class="hasAnchor" id="value"><a class="anchor" href="#value"></a>Value</h2>

<p>A ggplot2 theme</p>
<h2 class="hasAnchor" id="see-also"><a class="anchor" href="#see-also"></a>See also</h2>

<div class='dont-index'><p>Other xaringanthemer ggplot2 themes:
<code><a href='theme_xaringan_inverse.html'>theme_xaringan_inverse</a>()</code>,
<code><a href='theme_xaringan_set_defaults.html'>theme_xaringan_set_defaults</a>()</code>,
<code><a href='theme_xaringan.html'>theme_xaringan</a>()</code></p></div>

<h2 class="hasAnchor" id="examples"><a class="anchor" href="#examples"></a>Examples</h2>
<pre class="examples"><div class='input'><span class='co'># Requires ggplot2</span>
<span class='no'>has_ggplot2</span> <span class='kw'>&lt;-</span> <span class='fu'><a href='https://rdrr.io/r/base/ns-load.html'>requireNamespace</a></span>(<span class='st'>"ggplot2"</span>, <span class='kw'>quietly</span> <span class='kw'>=</span> <span class='fl'>TRUE</span>)

<span class='kw'>if</span> (<span class='no'>has_ggplot2</span>) {
<span class='fu'><a href='https://rdrr.io/r/base/library.html'>library</a></span>(<span class='no'>ggplot2</span>)

<span class='no'>plot1</span> <span class='kw'>&lt;-</span> <span class='fu'><a href='https://ggplot2.tidyverse.org/reference/ggplot.html'>ggplot</a></span>(<span class='no'>iris</span>) +
<span class='fu'><a href='https://ggplot2.tidyverse.org/reference/aes.html'>aes</a></span>(<span class='no'>Petal.Length</span>, <span class='no'>Petal.Width</span>) +
<span class='fu'><a href='https://ggplot2.tidyverse.org/reference/geom_point.html'>geom_point</a></span>() +
<span class='fu'>theme_xaringan_base</span>(
<span class='kw'>text_color</span> <span class='kw'>=</span> <span class='st'>"#602f6b"</span>, <span class='co'># imperial</span>
<span class='kw'>background_color</span> <span class='kw'>=</span> <span class='st'>"#fcfafc"</span>, <span class='co'># warm gray</span>
<span class='kw'>accent_color</span> <span class='kw'>=</span> <span class='st'>"#317873"</span>, <span class='co'># myrtle green</span>
<span class='kw'>title_font</span> <span class='kw'>=</span> <span class='st'>"sans"</span>,
<span class='kw'>text_font</span> <span class='kw'>=</span> <span class='st'>"serif"</span>,
<span class='kw'>set_ggplot_defaults</span> <span class='kw'>=</span> <span class='fl'>TRUE</span>
) +
<span class='fu'><a href='https://ggplot2.tidyverse.org/reference/labs.html'>labs</a></span>(
<span class='kw'>title</span> <span class='kw'>=</span> <span class='st'>"Basic Iris Plot"</span>,
<span class='kw'>subtitle</span> <span class='kw'>=</span> <span class='st'>"+ theme_xaringan_base()"</span>,
<span class='kw'>caption</span> <span class='kw'>=</span> <span class='st'>"xaringanthemer"</span>
)

<span class='fu'><a href='https://rdrr.io/r/base/print.html'>print</a></span>(<span class='no'>plot1</span>)

<span class='no'>plot2</span> <span class='kw'>&lt;-</span> <span class='fu'><a href='https://ggplot2.tidyverse.org/reference/ggplot.html'>ggplot</a></span>(<span class='no'>iris</span>) +
<span class='fu'><a href='https://ggplot2.tidyverse.org/reference/aes.html'>aes</a></span>(<span class='no'>Sepal.Width</span>) +
<span class='fu'><a href='https://ggplot2.tidyverse.org/reference/geom_histogram.html'>geom_histogram</a></span>(<span class='kw'>binwidth</span> <span class='kw'>=</span> <span class='fl'>0.1</span>) +
<span class='fu'>theme_xaringan_base</span>(
<span class='kw'>text_color</span> <span class='kw'>=</span> <span class='st'>"#a8a9c8"</span>, <span class='co'># light purple</span>
<span class='kw'>background_color</span> <span class='kw'>=</span> <span class='st'>"#303163"</span>, <span class='co'># deep slate purple</span>
<span class='kw'>accent_color</span> <span class='kw'>=</span> <span class='st'>"#ffff99"</span>, <span class='co'># canary yellow</span>
<span class='kw'>title_font</span> <span class='kw'>=</span> <span class='st'>"sans"</span>,
<span class='kw'>text_font</span> <span class='kw'>=</span> <span class='st'>"serif"</span>,
<span class='kw'>set_ggplot_defaults</span> <span class='kw'>=</span> <span class='fl'>TRUE</span>
) +
<span class='fu'><a href='https://ggplot2.tidyverse.org/reference/labs.html'>labs</a></span>(
<span class='kw'>title</span> <span class='kw'>=</span> <span class='st'>"Basic Iris Plot"</span>,
<span class='kw'>subtitle</span> <span class='kw'>=</span> <span class='st'>"+ theme_xaringan_base()"</span>,
<span class='kw'>caption</span> <span class='kw'>=</span> <span class='st'>"xaringanthemer"</span>
)

<span class='fu'><a href='https://rdrr.io/r/base/print.html'>print</a></span>(<span class='no'>plot2</span>)
}</div><div class='img'><img src='theme_xaringan_base-1.png' alt='' width='700' height='433' /></div><div class='img'><img src='theme_xaringan_base-2.png' alt='' width='700' height='433' /></div></pre>
</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
<h2>Contents</h2>
<ul class="nav nav-pills nav-stacked">
<li><a href="#arguments">Arguments</a></li>
<li><a href="#value">Value</a></li>
<li><a href="#see-also">See also</a></li>
<li><a href="#examples">Examples</a></li>
</ul>

</div>
</div>


<footer>
<div class="copyright">
<p>Developed by <a href='https://www.garrickadenbuie.com'>Garrick Aden-Buie</a>.</p>
</div>

<div class="pkgdown">
<p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.4.1.</p>
</div>

</footer>
</div>



</body>
</html>



+ 263
- 0
dev/reference/theme_xaringan_get_value.html Просмотреть файл

<!-- Generated by pkgdown: do not edit by hand -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Get the Value of xaringanthemer Style Setting — theme_xaringan_get_value • xaringanthemer</title>


<!-- jquery -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<!-- Bootstrap -->

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha256-916EbMg70RQy9LHiGkXzG8hSg9EdNy97GazNG/aiY1w=" crossorigin="anonymous" />

<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha256-U5ZEeKfGNOja007MMD3YBI0A3OSZOQbeG6z2f2Y0hu8=" crossorigin="anonymous"></script>

<!-- Font Awesome icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/all.min.css" integrity="sha256-nAmazAk6vS34Xqo0BSrTb+abbtFlgsFK7NKSi6o7Y78=" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/v4-shims.min.css" integrity="sha256-6qHlizsOWFskGlwVOKuns+D1nB6ssZrHQrNj1wGplHc=" crossorigin="anonymous" />

<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.4/clipboard.min.js" integrity="sha256-FiZwavyI2V6+EXO1U+xzLG3IKldpiTFf3153ea9zikQ=" crossorigin="anonymous"></script>

<!-- headroom.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/headroom.min.js" integrity="sha256-DJFC1kqIhelURkuza0AvYal5RxMtpzLjFhsnVIeuk+U=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script>

<!-- pkgdown -->
<link href="../pkgdown.css" rel="stylesheet">
<script src="../pkgdown.js"></script>



<link href="../extra.css" rel="stylesheet">

<meta property="og:title" content="Get the Value of xaringanthemer Style Setting — theme_xaringan_get_value" />
<meta property="og:description" content="A helper function to retrieve the value of style settings as set by a
xaringanthemer style function, for use in plotting and other circumstances." />
<meta name="twitter:card" content="summary" />


<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]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->



</head>

<body>
<div class="container template-reference-topic">
<header>
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">xaringanthemer</a>
<span class="version label label-danger" data-toggle="tooltip" data-placement="bottom" title="In-development version">0.2.0.9100</span>
</span>
</div>

<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="../index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="../articles/xaringanthemer.html">Get started</a>
</li>
<li>
<a href="../reference/index.html">Reference</a>
</li>
<li>
<a href="../articles/themes.html">Themes</a>
</li>
<li>
<a href="../articles/fonts.html">Fonts</a>
</li>
<li>
<a href="../articles/template-variables.html">Template Variables</a>
</li>
<li>
<a href="../articles/css-help.html">CSS Help</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="https://github.com/gadenbuie/xaringanthemer">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
<li>
<a href="https://twitter.com/grrrck">
<span class="fa fa-twitter fa-lg"></span>
</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->


</header>

<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
<h1>Get the Value of xaringanthemer Style Setting</h1>
<small class="dont-index">Source: <a href='https://github.com/gadenbuie/xaringanthemer/blob/master/R/ggplot2.R'><code>R/ggplot2.R</code></a></small>
<div class="hidden name"><code>theme_xaringan_get_value.Rd</code></div>
</div>

<div class="ref-description">
<p>A helper function to retrieve the value of style settings as set by a
xaringanthemer style function, for use in plotting and other circumstances.</p>
</div>

<pre class="usage"><span class='fu'>theme_xaringan_get_value</span>(<span class='no'>setting</span>, <span class='kw'>css_file</span> <span class='kw'>=</span> <span class='kw'>NULL</span>)</pre>

<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a>Arguments</h2>
<table class="ref-arguments">
<colgroup><col class="name" /><col class="desc" /></colgroup>
<tr>
<th>setting</th>
<td><p>A xaringanthemer style setting</p></td>
</tr>
<tr>
<th>css_file</th>
<td><p>Path to a <span class="pkg">xaringanthemer</span> CSS file, from which the
theme variables and values will be inferred. In general, if you use the
<span class="pkg">xaringathemer</span> defaults, you will not need to set this. This feature
lets you create a <span class="pkg">ggplot2</span> theme for your <span class="pkg">xaringan</span> slides, even
if you have only saved your theme CSS file and you aren't creating your
CSS theme with <span class="pkg">xaringanthemer</span> in your slides' source file.</p></td>
</tr>
</table>

<h2 class="hasAnchor" id="style-settings"><a class="anchor" href="#style-settings"></a>Style Settings</h2>


<p>Style settings used by xaringanthemer include:</p><ul>
<li><p><code>background_color</code></p></li>
<li><p><code>background_image</code></p></li>
<li><p><code>background_position</code></p></li>
<li><p><code>background_size</code></p></li>
<li><p><code>blockquote_left_border_color</code></p></li>
<li><p><code>code_font_family</code></p></li>
<li><p><code>code_font_family_fallback</code></p></li>
<li><p><code>code_font_google</code></p></li>
<li><p><code>code_font_is_google</code></p></li>
<li><p><code>code_font_size</code></p></li>
<li><p><code>code_font_url</code></p></li>
<li><p><code>code_highlight_color</code></p></li>
<li><p><code>code_inline_background_color</code></p></li>
<li><p><code>code_inline_color</code></p></li>
<li><p><code>code_inline_font_size</code></p></li>
<li><p><code>extra_css</code></p></li>
<li><p><code>extra_fonts</code></p></li>
<li><p><code>footnote_color</code></p></li>
<li><p><code>footnote_font_size</code></p></li>
<li><p><code>footnote_position_bottom</code></p></li>
<li><p><code>header_background_auto</code></p></li>
<li><p><code>header_background_color</code></p></li>
<li><p><code>header_background_content_padding_top</code></p></li>
<li><p><code>header_background_ignore_classes</code></p></li>
<li><p><code>header_background_padding</code></p></li>
<li><p><code>header_background_text_color</code></p></li>
<li><p><code>header_color</code></p></li>
<li><p><code>header_font_family</code></p></li>
<li><p><code>header_font_google</code></p></li>
<li><p><code>hedaer_font_is_google</code></p></li>
<li><p><code>header_font_url</code></p></li>
<li><p><code>header_font_weight</code></p></li>
<li><p><code>header_h1_font_size</code></p></li>
<li><p><code>header_h2_font_size</code></p></li>
<li><p><code>header_h3_font_size</code></p></li>
<li><p><code>inverse_background_color</code></p></li>
<li><p><code>inverse_header_color</code></p></li>
<li><p><code>inverse_text_color</code></p></li>
<li><p><code>inverse_text_shadow</code></p></li>
<li><p><code>left_column_selected_color</code></p></li>
<li><p><code>left_column_subtle_color</code></p></li>
<li><p><code>link_color</code></p></li>
<li><p><code>padding</code></p></li>
<li><p><code>table_border_color</code></p></li>
<li><p><code>table_row_border_color</code></p></li>
<li><p><code>table_row_even_background_color</code></p></li>
<li><p><code>text_bold_color</code></p></li>
<li><p><code>text_color</code></p></li>
<li><p><code>text_font_base</code></p></li>
<li><p><code>text_font_family</code></p></li>
<li><p><code>text_font_family_fallback</code></p></li>
<li><p><code>text_font_google</code></p></li>
<li><p><code>text_font_is_google</code></p></li>
<li><p><code>text_font_size</code></p></li>
<li><p><code>text_font_url</code></p></li>
<li><p><code>text_font_weight</code></p></li>
<li><p><code>text_slide_number_color</code></p></li>
<li><p><code>text_slide_number_font_size</code></p></li>
<li><p><code>title_slide_background_color</code></p></li>
<li><p><code>title_slide_background_image</code></p></li>
<li><p><code>title_slide_background_position</code></p></li>
<li><p><code>title_slide_background_size</code></p></li>
<li><p><code>title_slide_text_color</code></p></li>
</ul>


</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
<h2>Contents</h2>
<ul class="nav nav-pills nav-stacked">
<li><a href="#arguments">Arguments</a></li>
<li><a href="#style-settings">Style Settings</a></li>
</ul>

</div>
</div>


<footer>
<div class="copyright">
<p>Developed by <a href='https://www.garrickadenbuie.com'>Garrick Aden-Buie</a>.</p>
</div>

<div class="pkgdown">
<p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.4.1.</p>
</div>

</footer>
</div>



</body>
</html>



Двоичные данные
dev/reference/theme_xaringan_inverse-1.png Просмотреть файл

Before After
Width: 1400  |  Height: 866  |  Size: 70KB

+ 276
- 0
dev/reference/theme_xaringan_inverse.html Просмотреть файл

<!-- Generated by pkgdown: do not edit by hand -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>An Inverse Plot Theme for ggplot2 by xaringanthemer — theme_xaringan_inverse • xaringanthemer</title>


<!-- jquery -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<!-- Bootstrap -->

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha256-916EbMg70RQy9LHiGkXzG8hSg9EdNy97GazNG/aiY1w=" crossorigin="anonymous" />

<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha256-U5ZEeKfGNOja007MMD3YBI0A3OSZOQbeG6z2f2Y0hu8=" crossorigin="anonymous"></script>

<!-- Font Awesome icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/all.min.css" integrity="sha256-nAmazAk6vS34Xqo0BSrTb+abbtFlgsFK7NKSi6o7Y78=" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/v4-shims.min.css" integrity="sha256-6qHlizsOWFskGlwVOKuns+D1nB6ssZrHQrNj1wGplHc=" crossorigin="anonymous" />

<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.4/clipboard.min.js" integrity="sha256-FiZwavyI2V6+EXO1U+xzLG3IKldpiTFf3153ea9zikQ=" crossorigin="anonymous"></script>

<!-- headroom.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/headroom.min.js" integrity="sha256-DJFC1kqIhelURkuza0AvYal5RxMtpzLjFhsnVIeuk+U=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script>

<!-- pkgdown -->
<link href="../pkgdown.css" rel="stylesheet">
<script src="../pkgdown.js"></script>



<link href="../extra.css" rel="stylesheet">

<meta property="og:title" content="An Inverse Plot Theme for ggplot2 by xaringanthemer — theme_xaringan_inverse" />
<meta property="og:description" content="Lifecycle: Experimental.
A ggplot2 xaringanthemer plot theme to seamlessly match the &quot;inverse&quot;
xaringan slide colors and styles as styled by xaringanthemer." />
<meta name="twitter:card" content="summary" />


<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]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->



</head>

<body>
<div class="container template-reference-topic">
<header>
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">xaringanthemer</a>
<span class="version label label-danger" data-toggle="tooltip" data-placement="bottom" title="In-development version">0.2.0.9100</span>
</span>
</div>

<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="../index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="../articles/xaringanthemer.html">Get started</a>
</li>
<li>
<a href="../reference/index.html">Reference</a>
</li>
<li>
<a href="../articles/themes.html">Themes</a>
</li>
<li>
<a href="../articles/fonts.html">Fonts</a>
</li>
<li>
<a href="../articles/template-variables.html">Template Variables</a>
</li>
<li>
<a href="../articles/css-help.html">CSS Help</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="https://github.com/gadenbuie/xaringanthemer">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
<li>
<a href="https://twitter.com/grrrck">
<span class="fa fa-twitter fa-lg"></span>
</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->


</header>

<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
<h1>An Inverse Plot Theme for ggplot2 by xaringanthemer</h1>
<small class="dont-index">Source: <a href='https://github.com/gadenbuie/xaringanthemer/blob/master/R/ggplot2.R'><code>R/ggplot2.R</code></a></small>
<div class="hidden name"><code>theme_xaringan_inverse.Rd</code></div>
</div>

<div class="ref-description">
<p><strong>Lifecycle:</strong> <a href='https://www.tidyverse.org/lifecycle/#experimental'>Experimental</a>.</p>
<p>A <span class="pkg">ggplot2</span> xaringanthemer plot theme to seamlessly match the "inverse"
<span class="pkg">xaringan</span> slide colors and styles as styled by <a href='xaringanthemer-package.html'>xaringanthemer</a>.</p>
</div>

<pre class="usage"><span class='fu'>theme_xaringan_inverse</span>(
<span class='kw'>text_color</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>background_color</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>accent_color</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>accent_secondary_color</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>css_file</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='no'>...</span>
)</pre>

<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a>Arguments</h2>
<table class="ref-arguments">
<colgroup><col class="name" /><col class="desc" /></colgroup>
<tr>
<th>text_color</th>
<td><p>Color for text and foreground, inherits from <code>text_color</code></p></td>
</tr>
<tr>
<th>background_color</th>
<td><p>Color for background, inherits from
<code>background_color</code></p></td>
</tr>
<tr>
<th>accent_color</th>
<td><p>Color for titles and accents, inherits from
<code>header_color</code></p></td>
</tr>
<tr>
<th>accent_secondary_color</th>
<td><p>Color for secondary accents, inherits from
<code>text_bold_color</code></p></td>
</tr>
<tr>
<th>css_file</th>
<td><p>Path to a <span class="pkg">xaringanthemer</span> CSS file, from which the
theme variables and values will be inferred. In general, if you use the
<span class="pkg">xaringathemer</span> defaults, you will not need to set this. This feature
lets you create a <span class="pkg">ggplot2</span> theme for your <span class="pkg">xaringan</span> slides, even
if you have only saved your theme CSS file and you aren't creating your
CSS theme with <span class="pkg">xaringanthemer</span> in your slides' source file.</p></td>
</tr>
<tr>
<th>...</th>
<td><p>Arguments passed on to <code><a href='theme_xaringan_base.html'>theme_xaringan_base</a></code></p><dl class='dl-horizontal'>
<dt><code>set_ggplot_defaults</code></dt><dd><p>Should defaults be set for <span class="pkg">ggplot2</span> <em>geoms</em>?
Defaults to TRUE. To restore ggplot's defaults, or the previously set geom
defaults, see <code><a href='theme_xaringan_set_defaults.html'>theme_xaringan_restore_defaults()</a></code>.</p></dd>
<dt><code>text_font</code></dt><dd><p>Font to use for text elements, passed to
<code><a href='https://rdrr.io/pkg/sysfonts/man/font_add_google.html'>sysfonts::font_add_google()</a></code>, if available and <code>text_font_use_google</code> is
<code>TRUE</code>. Inherits from <code>text_font_family</code>.</p></dd>
<dt><code>text_font_use_google</code></dt><dd><p>Is <code>text_font</code> available on <a href='https://fonts.google.com'>Google Fonts</a>?</p></dd>
<dt><code>text_font_size</code></dt><dd><p>Base text font size, inherits from <code>text_font_size</code>, or
defaults to 11.</p></dd>
<dt><code>title_font</code></dt><dd><p>Font to use for title elements, passed to
<code><a href='https://rdrr.io/pkg/sysfonts/man/font_add_google.html'>sysfonts::font_add_google()</a></code>, if available and <code>title_font_use_google</code> is
<code>TRUE</code>. Inherits from <code>title_font_family</code>.</p></dd>
<dt><code>title_font_use_google</code></dt><dd><p>Is <code>title_font</code> available on <a href='https://fonts.google.com'>Google Fonts</a>?</p></dd>
<dt><code>title_font_size</code></dt><dd><p>Base text font size, inherits from <code>title_font_size</code>,
or defaults to 14.</p></dd>
</dl></td>
</tr>
</table>

<h2 class="hasAnchor" id="value"><a class="anchor" href="#value"></a>Value</h2>

<p>A ggplot2 theme</p>
<h2 class="hasAnchor" id="see-also"><a class="anchor" href="#see-also"></a>See also</h2>

<div class='dont-index'><p>Other xaringanthemer ggplot2 themes:
<code><a href='theme_xaringan_base.html'>theme_xaringan_base</a>()</code>,
<code><a href='theme_xaringan_set_defaults.html'>theme_xaringan_set_defaults</a>()</code>,
<code><a href='theme_xaringan.html'>theme_xaringan</a>()</code></p></div>

<h2 class="hasAnchor" id="examples"><a class="anchor" href="#examples"></a>Examples</h2>
<pre class="examples"><div class='input'><span class='co'># Requires ggplot2</span>
<span class='no'>has_ggplot2</span> <span class='kw'>&lt;-</span> <span class='fu'><a href='https://rdrr.io/r/base/ns-load.html'>requireNamespace</a></span>(<span class='st'>"ggplot2"</span>, <span class='kw'>quietly</span> <span class='kw'>=</span> <span class='fl'>TRUE</span>)

<span class='kw'>if</span> (<span class='no'>has_ggplot2</span>) {
<span class='co'># Because this is an example, we'll save the CSS to a temp file</span>
<span class='no'>path_to_css_file</span> <span class='kw'>&lt;-</span> <span class='fu'><a href='https://rdrr.io/r/base/tempfile.html'>tempfile</a></span>(<span class='kw'>fileext</span> <span class='kw'>=</span> <span class='st'>".css"</span>)

<span class='co'># Create the xaringan theme: dark blue background with teal green accents</span>
<span class='fu'><a href='style_duo.html'>style_duo</a></span>(
<span class='kw'>primary_color</span> <span class='kw'>=</span> <span class='st'>"#002b36"</span>,
<span class='kw'>secondary_color</span> <span class='kw'>=</span> <span class='st'>"#31b09e"</span>,
<span class='co'># Using basic fonts for this example, but the plot theme will</span>
<span class='co'># automatically use your theme font if you use Google fonts</span>
<span class='kw'>text_font_family</span> <span class='kw'>=</span> <span class='st'>"sans"</span>,
<span class='kw'>header_font_family</span> <span class='kw'>=</span> <span class='st'>"serif"</span>,
<span class='kw'>outfile</span> <span class='kw'>=</span> <span class='no'>path_to_css_file</span>
)

<span class='fu'><a href='https://rdrr.io/r/base/library.html'>library</a></span>(<span class='no'>ggplot2</span>)
<span class='fu'><a href='https://ggplot2.tidyverse.org/reference/ggplot.html'>ggplot</a></span>(<span class='no'>iris</span>) +
<span class='fu'><a href='https://ggplot2.tidyverse.org/reference/aes.html'>aes</a></span>(<span class='no'>Petal.Length</span>, <span class='no'>Petal.Width</span>) +
<span class='fu'><a href='https://ggplot2.tidyverse.org/reference/geom_point.html'>geom_point</a></span>() +
<span class='fu'><a href='https://ggplot2.tidyverse.org/reference/labs.html'>ggtitle</a></span>(<span class='st'>"Yet another Iris plot"</span>) +
<span class='co'># themed to match the inverse slides: teal background with dark blue text</span>
<span class='fu'>theme_xaringan_inverse</span>()
}</div><div class='img'><img src='theme_xaringan_inverse-1.png' alt='' width='700' height='433' /></div></pre>
</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
<h2>Contents</h2>
<ul class="nav nav-pills nav-stacked">
<li><a href="#arguments">Arguments</a></li>
<li><a href="#value">Value</a></li>
<li><a href="#see-also">See also</a></li>
<li><a href="#examples">Examples</a></li>
</ul>

</div>
</div>


<footer>
<div class="copyright">
<p>Developed by <a href='https://www.garrickadenbuie.com'>Garrick Aden-Buie</a>.</p>
</div>

<div class="pkgdown">
<p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.4.1.</p>
</div>

</footer>
</div>



</body>
</html>



+ 240
- 0
dev/reference/theme_xaringan_set_defaults.html Просмотреть файл

<!-- Generated by pkgdown: do not edit by hand -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Set and Restore ggplot2 geom Defaults — theme_xaringan_set_defaults • xaringanthemer</title>


<!-- jquery -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<!-- Bootstrap -->

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha256-916EbMg70RQy9LHiGkXzG8hSg9EdNy97GazNG/aiY1w=" crossorigin="anonymous" />

<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha256-U5ZEeKfGNOja007MMD3YBI0A3OSZOQbeG6z2f2Y0hu8=" crossorigin="anonymous"></script>

<!-- Font Awesome icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/all.min.css" integrity="sha256-nAmazAk6vS34Xqo0BSrTb+abbtFlgsFK7NKSi6o7Y78=" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/v4-shims.min.css" integrity="sha256-6qHlizsOWFskGlwVOKuns+D1nB6ssZrHQrNj1wGplHc=" crossorigin="anonymous" />

<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.4/clipboard.min.js" integrity="sha256-FiZwavyI2V6+EXO1U+xzLG3IKldpiTFf3153ea9zikQ=" crossorigin="anonymous"></script>

<!-- headroom.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/headroom.min.js" integrity="sha256-DJFC1kqIhelURkuza0AvYal5RxMtpzLjFhsnVIeuk+U=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script>

<!-- pkgdown -->
<link href="../pkgdown.css" rel="stylesheet">
<script src="../pkgdown.js"></script>



<link href="../extra.css" rel="stylesheet">

<meta property="og:title" content="Set and Restore ggplot2 geom Defaults — theme_xaringan_set_defaults" />
<meta property="og:description" content="Lifecycle: Experimental.
Set ggplot2 geom defaults to match theme_xaringan() with
theme_xaringan_set_defaults() and restore the standard or previously-set
defaults with theme_xaringan_restore_defaults(). By default,
theme_xaringan_set_defaults() is run with theme_xaringan() or
theme_xaringan_inverse()." />
<meta name="twitter:card" content="summary" />


<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]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->



</head>

<body>
<div class="container template-reference-topic">
<header>
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">xaringanthemer</a>
<span class="version label label-danger" data-toggle="tooltip" data-placement="bottom" title="In-development version">0.2.0.9100</span>
</span>
</div>

<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="../index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="../articles/xaringanthemer.html">Get started</a>
</li>
<li>
<a href="../reference/index.html">Reference</a>
</li>
<li>
<a href="../articles/themes.html">Themes</a>
</li>
<li>
<a href="../articles/fonts.html">Fonts</a>
</li>
<li>
<a href="../articles/template-variables.html">Template Variables</a>
</li>
<li>
<a href="../articles/css-help.html">CSS Help</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="https://github.com/gadenbuie/xaringanthemer">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
<li>
<a href="https://twitter.com/grrrck">
<span class="fa fa-twitter fa-lg"></span>
</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->


</header>

<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
<h1>Set and Restore ggplot2 geom Defaults</h1>
<small class="dont-index">Source: <a href='https://github.com/gadenbuie/xaringanthemer/blob/master/R/ggplot2.R'><code>R/ggplot2.R</code></a></small>
<div class="hidden name"><code>theme_xaringan_set_defaults.Rd</code></div>
</div>

<div class="ref-description">
<p><strong>Lifecycle:</strong> <a href='https://www.tidyverse.org/lifecycle/#experimental'>Experimental</a>.</p>
<p>Set <span class="pkg">ggplot2</span> <em>geom</em> defaults to match <code><a href='theme_xaringan.html'>theme_xaringan()</a></code> with
<code>theme_xaringan_set_defaults()</code> and restore the standard or previously-set
defaults with <code>theme_xaringan_restore_defaults()</code>. By default,
<code>theme_xaringan_set_defaults()</code> is run with <code><a href='theme_xaringan.html'>theme_xaringan()</a></code> or
<code><a href='theme_xaringan_inverse.html'>theme_xaringan_inverse()</a></code>.</p>
</div>

<pre class="usage"><span class='fu'>theme_xaringan_set_defaults</span>(
<span class='kw'>text_color</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>background_color</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>accent_color</span> <span class='kw'>=</span> <span class='no'>text_color</span>,
<span class='kw'>accent_secondary_color</span> <span class='kw'>=</span> <span class='no'>accent_color</span>,
<span class='kw'>text_font</span> <span class='kw'>=</span> <span class='kw'>NULL</span>
)

<span class='fu'>theme_xaringan_restore_defaults</span>()</pre>

<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a>Arguments</h2>
<table class="ref-arguments">
<colgroup><col class="name" /><col class="desc" /></colgroup>
<tr>
<th>text_color</th>
<td><p>Color for text and foreground, inherits from <code>text_color</code></p></td>
</tr>
<tr>
<th>background_color</th>
<td><p>Color for background, inherits from
<code>background_color</code></p></td>
</tr>
<tr>
<th>accent_color</th>
<td><p>Color for titles and accents, inherits from
<code>header_color</code></p></td>
</tr>
<tr>
<th>accent_secondary_color</th>
<td><p>Color for secondary accents, inherits from
<code>text_bold_color</code></p></td>
</tr>
<tr>
<th>text_font</th>
<td><p>Font to use for text elements, passed to
<code><a href='https://rdrr.io/pkg/sysfonts/man/font_add_google.html'>sysfonts::font_add_google()</a></code>, if available and <code>text_font_use_google</code> is
<code>TRUE</code>. Inherits from <code>text_font_family</code>.</p></td>
</tr>
</table>

<h2 class="hasAnchor" id="value"><a class="anchor" href="#value"></a>Value</h2>

<p>Invisibly returns a list of the current ggplot2 geom defaults</p>
<p>Invisibly returns a list of the current ggplot2 geom defaults</p>
<h2 class="hasAnchor" id="functions"><a class="anchor" href="#functions"></a>Functions</h2>

<ul>
<li><p><code>theme_xaringan_restore_defaults</code>: Restore previous or standard
<span class="pkg">ggplot2</span> <em>geom</em> defaults.</p></li>
</ul>
<h2 class="hasAnchor" id="see-also"><a class="anchor" href="#see-also"></a>See also</h2>

<div class='dont-index'><p>Other xaringanthemer ggplot2 themes:
<code><a href='theme_xaringan_base.html'>theme_xaringan_base</a>()</code>,
<code><a href='theme_xaringan_inverse.html'>theme_xaringan_inverse</a>()</code>,
<code><a href='theme_xaringan.html'>theme_xaringan</a>()</code></p></div>

</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
<h2>Contents</h2>
<ul class="nav nav-pills nav-stacked">
<li><a href="#arguments">Arguments</a></li>
<li><a href="#value">Value</a></li>
<li><a href="#functions">Functions</a></li>
<li><a href="#see-also">See also</a></li>
</ul>

</div>
</div>


<footer>
<div class="copyright">
<p>Developed by <a href='https://www.garrickadenbuie.com'>Garrick Aden-Buie</a>.</p>
</div>

<div class="pkgdown">
<p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.4.1.</p>
</div>

</footer>
</div>



</body>
</html>



+ 214
- 0
dev/reference/xaringanthemer-deprecated.html Просмотреть файл

<!-- Generated by pkgdown: do not edit by hand -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Deprecated or renamed functions — xaringanthemer-deprecated • xaringanthemer</title>


<!-- jquery -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<!-- Bootstrap -->

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha256-916EbMg70RQy9LHiGkXzG8hSg9EdNy97GazNG/aiY1w=" crossorigin="anonymous" />

<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha256-U5ZEeKfGNOja007MMD3YBI0A3OSZOQbeG6z2f2Y0hu8=" crossorigin="anonymous"></script>

<!-- Font Awesome icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/all.min.css" integrity="sha256-nAmazAk6vS34Xqo0BSrTb+abbtFlgsFK7NKSi6o7Y78=" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/v4-shims.min.css" integrity="sha256-6qHlizsOWFskGlwVOKuns+D1nB6ssZrHQrNj1wGplHc=" crossorigin="anonymous" />

<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.4/clipboard.min.js" integrity="sha256-FiZwavyI2V6+EXO1U+xzLG3IKldpiTFf3153ea9zikQ=" crossorigin="anonymous"></script>

<!-- headroom.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/headroom.min.js" integrity="sha256-DJFC1kqIhelURkuza0AvYal5RxMtpzLjFhsnVIeuk+U=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script>

<!-- pkgdown -->
<link href="../pkgdown.css" rel="stylesheet">
<script src="../pkgdown.js"></script>



<link href="../extra.css" rel="stylesheet">

<meta property="og:title" content="Deprecated or renamed functions — xaringanthemer-deprecated" />
<meta property="og:description" content="These functions in xaringanthemer have been deprecated or renamed.
Use style_xaringan() instead of write_xaringan_theme().
Use style_extra_css() instead of write_extra_css().
Use style_mono_light() instead of mono_light().
Use style_mono_dark() instead of mono_dark().
Use style_mono_accent() instead of mono_accent().
Use style_mono_accent_inverse() instead of mono_accent_inverse().
Use style_duo() instead of duo().
Use style_duo_accent() instead of duo_accent().
Use style_duo_accent_inverse() instead of duo_accent_inverse().
Use style_solarized_light() instead of solarized_light().
Use style_solarized_dark() instead of solarized_dark()." />
<meta name="twitter:card" content="summary" />


<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]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->



</head>

<body>
<div class="container template-reference-topic">
<header>
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">xaringanthemer</a>
<span class="version label label-danger" data-toggle="tooltip" data-placement="bottom" title="In-development version">0.2.0.9100</span>
</span>
</div>

<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="../index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="../articles/xaringanthemer.html">Get started</a>
</li>
<li>
<a href="../reference/index.html">Reference</a>
</li>
<li>
<a href="../articles/themes.html">Themes</a>
</li>
<li>
<a href="../articles/fonts.html">Fonts</a>
</li>
<li>
<a href="../articles/template-variables.html">Template Variables</a>
</li>
<li>
<a href="../articles/css-help.html">CSS Help</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="https://github.com/gadenbuie/xaringanthemer">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
<li>
<a href="https://twitter.com/grrrck">
<span class="fa fa-twitter fa-lg"></span>
</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->


</header>

<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
<h1>Deprecated or renamed functions</h1>
<small class="dont-index">Source: <a href='https://github.com/gadenbuie/xaringanthemer/blob/master/R/xaringanthemer-deprecated.R'><code>R/xaringanthemer-deprecated.R</code></a></small>
<div class="hidden name"><code>xaringanthemer-deprecated.Rd</code></div>
</div>

<div class="ref-description">
<p>These functions in xaringanthemer have been deprecated or renamed.</p>
<p>Use <code><a href='style_xaringan.html'>style_xaringan()</a></code> instead of <code>write_xaringan_theme()</code>.</p>
<p>Use <code><a href='style_extra_css.html'>style_extra_css()</a></code> instead of <code>write_extra_css()</code>.</p>
<p>Use <code><a href='style_mono_light.html'>style_mono_light()</a></code> instead of <code>mono_light()</code>.</p>
<p>Use <code><a href='style_mono_dark.html'>style_mono_dark()</a></code> instead of <code>mono_dark()</code>.</p>
<p>Use <code><a href='style_mono_accent.html'>style_mono_accent()</a></code> instead of <code>mono_accent()</code>.</p>
<p>Use <code><a href='style_mono_accent_inverse.html'>style_mono_accent_inverse()</a></code> instead of <code>mono_accent_inverse()</code>.</p>
<p>Use <code><a href='style_duo.html'>style_duo()</a></code> instead of <code>duo()</code>.</p>
<p>Use <code><a href='style_duo_accent.html'>style_duo_accent()</a></code> instead of <code>duo_accent()</code>.</p>
<p>Use <code><a href='style_duo_accent_inverse.html'>style_duo_accent_inverse()</a></code> instead of <code>duo_accent_inverse()</code>.</p>
<p>Use <code><a href='style_solarized_light.html'>style_solarized_light()</a></code> instead of <code>solarized_light()</code>.</p>
<p>Use <code><a href='style_solarized_dark.html'>style_solarized_dark()</a></code> instead of <code>solarized_dark()</code>.</p>
</div>

<pre class="usage"><span class='fu'>write_xaringan_theme</span>(<span class='no'>...</span>)

<span class='fu'>write_extra_css</span>(<span class='no'>...</span>)

<span class='fu'>mono_light</span>(<span class='no'>...</span>)

<span class='fu'>mono_dark</span>(<span class='no'>...</span>)

<span class='fu'>mono_accent</span>(<span class='no'>...</span>)

<span class='fu'>mono_accent_inverse</span>(<span class='no'>...</span>)

<span class='fu'>duo</span>(<span class='no'>...</span>)

<span class='fu'>duo_accent</span>(<span class='no'>...</span>)

<span class='fu'>duo_accent_inverse</span>(<span class='no'>...</span>)

<span class='fu'>solarized_light</span>(<span class='no'>...</span>)

<span class='fu'>solarized_dark</span>(<span class='no'>...</span>)</pre>



</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
<h2>Contents</h2>
<ul class="nav nav-pills nav-stacked">
</ul>

</div>
</div>


<footer>
<div class="copyright">
<p>Developed by <a href='https://www.garrickadenbuie.com'>Garrick Aden-Buie</a>.</p>
</div>

<div class="pkgdown">
<p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.4.1.</p>
</div>

</footer>
</div>



</body>
</html>



+ 188
- 0
dev/reference/xaringanthemer-package.html Просмотреть файл

<!-- Generated by pkgdown: do not edit by hand -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>xaringanthemer: Xaringan CSS Theme Generator — xaringanthemer-package • xaringanthemer</title>


<!-- jquery -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<!-- Bootstrap -->

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha256-916EbMg70RQy9LHiGkXzG8hSg9EdNy97GazNG/aiY1w=" crossorigin="anonymous" />

<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha256-U5ZEeKfGNOja007MMD3YBI0A3OSZOQbeG6z2f2Y0hu8=" crossorigin="anonymous"></script>

<!-- Font Awesome icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/all.min.css" integrity="sha256-nAmazAk6vS34Xqo0BSrTb+abbtFlgsFK7NKSi6o7Y78=" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/v4-shims.min.css" integrity="sha256-6qHlizsOWFskGlwVOKuns+D1nB6ssZrHQrNj1wGplHc=" crossorigin="anonymous" />

<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.4/clipboard.min.js" integrity="sha256-FiZwavyI2V6+EXO1U+xzLG3IKldpiTFf3153ea9zikQ=" crossorigin="anonymous"></script>

<!-- headroom.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/headroom.min.js" integrity="sha256-DJFC1kqIhelURkuza0AvYal5RxMtpzLjFhsnVIeuk+U=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script>

<!-- pkgdown -->
<link href="../pkgdown.css" rel="stylesheet">
<script src="../pkgdown.js"></script>



<link href="../extra.css" rel="stylesheet">

<meta property="og:title" content="xaringanthemer: Xaringan CSS Theme Generator — xaringanthemer-package" />
<meta property="og:description" content="Create and edit your xaringan CSS files from within
your R R Markdown slide source. More technically, this package
actually creates valid remarkjs CSS themes that are easily used by
xarangan." />
<meta name="twitter:card" content="summary" />


<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]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->



</head>

<body>
<div class="container template-reference-topic">
<header>
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">xaringanthemer</a>
<span class="version label label-danger" data-toggle="tooltip" data-placement="bottom" title="In-development version">0.2.0.9100</span>
</span>
</div>

<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="../index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="../articles/xaringanthemer.html">Get started</a>
</li>
<li>
<a href="../reference/index.html">Reference</a>
</li>
<li>
<a href="../articles/themes.html">Themes</a>
</li>
<li>
<a href="../articles/fonts.html">Fonts</a>
</li>
<li>
<a href="../articles/template-variables.html">Template Variables</a>
</li>
<li>
<a href="../articles/css-help.html">CSS Help</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="https://github.com/gadenbuie/xaringanthemer">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
<li>
<a href="https://twitter.com/grrrck">
<span class="fa fa-twitter fa-lg"></span>
</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->


</header>

<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
<h1>xaringanthemer: Xaringan CSS Theme Generator</h1>
<small class="dont-index">Source: <a href='https://github.com/gadenbuie/xaringanthemer/blob/master/R/xaringanthemer-package.R'><code>R/xaringanthemer-package.R</code></a></small>
<div class="hidden name"><code>xaringanthemer-package.Rd</code></div>
</div>

<div class="ref-description">
<p>Create and edit your xaringan CSS files from within
your R R Markdown slide source. More technically, this package
actually creates valid remarkjs CSS themes that are easily used by
xarangan.</p>
</div>



<h2 class="hasAnchor" id="see-also"><a class="anchor" href="#see-also"></a>See also</h2>

<div class='dont-index'><p>Useful links:</p><ul>
<li><p><a href='https://github.com/gadenbuie/xaringanthemer'>https://github.com/gadenbuie/xaringanthemer</a></p></li>
<li><p>Report bugs at <a href='https://github.com/gadenbuie/xaringanthemer/issues'>https://github.com/gadenbuie/xaringanthemer/issues</a></p></li>
</ul>

</div>

</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
<h2>Contents</h2>
<ul class="nav nav-pills nav-stacked">
<li><a href="#see-also">See also</a></li>
</ul>

<h2>Author</h2>
<p><strong>Maintainer</strong>: Garrick Aden-Buie <a href='mailto:garrick@adenbuie.com'>garrick@adenbuie.com</a></p>
</div>
</div>


<footer>
<div class="copyright">
<p>Developed by <a href='https://www.garrickadenbuie.com'>Garrick Aden-Buie</a>.</p>
</div>

<div class="pkgdown">
<p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.4.1.</p>
</div>

</footer>
</div>



</body>
</html>



+ 93
- 0
dev/sitemap.xml Просмотреть файл

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://pkg.garrickadenbuie.com/xaringanthemer//index.html</loc>
</url>
<url>
<loc>https://pkg.garrickadenbuie.com/xaringanthemer//reference/apply_alpha.html</loc>
</url>
<url>
<loc>https://pkg.garrickadenbuie.com/xaringanthemer//reference/choose_dark_or_light.html</loc>
</url>
<url>
<loc>https://pkg.garrickadenbuie.com/xaringanthemer//reference/google_font.html</loc>
</url>
<url>
<loc>https://pkg.garrickadenbuie.com/xaringanthemer//reference/google_language_codes.html</loc>
</url>
<url>
<loc>https://pkg.garrickadenbuie.com/xaringanthemer//reference/lighten_darken_color.html</loc>
</url>
<url>
<loc>https://pkg.garrickadenbuie.com/xaringanthemer//reference/scale_xaringan.html</loc>
</url>
<url>
<loc>https://pkg.garrickadenbuie.com/xaringanthemer//reference/style_duo.html</loc>
</url>
<url>
<loc>https://pkg.garrickadenbuie.com/xaringanthemer//reference/style_duo_accent.html</loc>
</url>
<url>
<loc>https://pkg.garrickadenbuie.com/xaringanthemer//reference/style_duo_accent_inverse.html</loc>
</url>
<url>
<loc>https://pkg.garrickadenbuie.com/xaringanthemer//reference/style_extra_css.html</loc>
</url>
<url>
<loc>https://pkg.garrickadenbuie.com/xaringanthemer//reference/style_mono_accent.html</loc>
</url>
<url>
<loc>https://pkg.garrickadenbuie.com/xaringanthemer//reference/style_mono_accent_inverse.html</loc>
</url>
<url>
<loc>https://pkg.garrickadenbuie.com/xaringanthemer//reference/style_mono_dark.html</loc>
</url>
<url>
<loc>https://pkg.garrickadenbuie.com/xaringanthemer//reference/style_mono_light.html</loc>
</url>
<url>
<loc>https://pkg.garrickadenbuie.com/xaringanthemer//reference/style_solarized_dark.html</loc>
</url>
<url>
<loc>https://pkg.garrickadenbuie.com/xaringanthemer//reference/style_solarized_light.html</loc>
</url>
<url>
<loc>https://pkg.garrickadenbuie.com/xaringanthemer//reference/style_xaringan.html</loc>
</url>
<url>
<loc>https://pkg.garrickadenbuie.com/xaringanthemer//reference/theme_xaringan.html</loc>
</url>
<url>
<loc>https://pkg.garrickadenbuie.com/xaringanthemer//reference/theme_xaringan_base.html</loc>
</url>
<url>
<loc>https://pkg.garrickadenbuie.com/xaringanthemer//reference/theme_xaringan_get_value.html</loc>
</url>
<url>
<loc>https://pkg.garrickadenbuie.com/xaringanthemer//reference/theme_xaringan_inverse.html</loc>
</url>
<url>
<loc>https://pkg.garrickadenbuie.com/xaringanthemer//reference/theme_xaringan_set_defaults.html</loc>
</url>
<url>
<loc>https://pkg.garrickadenbuie.com/xaringanthemer//reference/xaringanthemer-deprecated.html</loc>
</url>
<url>
<loc>https://pkg.garrickadenbuie.com/xaringanthemer//reference/xaringanthemer-package.html</loc>
</url>
<url>
<loc>https://pkg.garrickadenbuie.com/xaringanthemer//articles/css-help.html</loc>
</url>
<url>
<loc>https://pkg.garrickadenbuie.com/xaringanthemer//articles/fonts.html</loc>
</url>
<url>
<loc>https://pkg.garrickadenbuie.com/xaringanthemer//articles/template-variables.html</loc>
</url>
<url>
<loc>https://pkg.garrickadenbuie.com/xaringanthemer//articles/themes.html</loc>
</url>
<url>
<loc>https://pkg.garrickadenbuie.com/xaringanthemer//articles/xaringanthemer.html</loc>
</url>
</urlset>

Загрузка…
Отмена
Сохранить