|
- <!DOCTYPE html>
- <!-- Generated by pkgdown: do not edit by hand --><html>
- <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://code.jquery.com/jquery-3.1.0.min.js" integrity="sha384-nrOSfDHtoPMzJHjVTdCopGqIqeYETSXhZDFyniQ8ZHcVy08QesyHcnOUpMpqnmWq" crossorigin="anonymous"></script><!-- Bootstrap --><link href="https://maxcdn.bootstrapcdn.com/bootswatch/3.3.7/yeti/bootstrap.min.css" rel="stylesheet" crossorigin="anonymous">
- <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script><!-- Font Awesome icons --><link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-T8Gy5hrqNKT+hzMclPo118YTQO6cYprQmhrYwIiQ/3axmI1hQomh7Ud2hPOy8SP1" crossorigin="anonymous">
- <!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.7.1/clipboard.min.js" integrity="sha384-cV+rhyOuRHc9Ub/91rihWcGmMmCXDeksTtCihMupQHSsi8GIIRDG0ThDc3HGQFJ3" crossorigin="anonymous"></script><!-- pkgdown --><link href="pkgdown.css" rel="stylesheet">
- <script src="jquery.sticky-kit.min.js"></script><script src="pkgdown.js"></script><meta property="og:title" content="Xaringan CSS Theme Generator">
- <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">
- <!-- mathjax --><script src="https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></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">
- <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="label label-default" data-toggle="tooltip" data-placement="bottom" title="Released package">0.1.0.9000</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="articles/singles/themes.html">Themes</a>
- </li>
- <li>
- <a href="articles/singles/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>
- <li>
- <a href="reference/index.html">Reference</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">
-
-
-
-
- <!-- index.md is generated from index.Rmd. Please edit that file -->
- <div id="xaringanthemer" class="section level1">
- <div class="page-header"><h1 class="hasAnchor">
- <a href="#xaringanthemer" class="anchor"></a>xaringanthemer</h1></div>
- <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="articles/images/examples.gif" width="100%"></p>
- <div id="installation" class="section level2">
- <h2 class="hasAnchor">
- <a href="#installation" class="anchor"></a>Installation</h2>
- <p><strong>xaringanthemer</strong> currently lives on GitHub.</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="co"># install.packages("devtools")</span></a>
- <a class="sourceLine" id="cb1-2" data-line-number="2">devtools<span class="op">::</span><span class="kw"><a href="http://www.rdocumentation.org/packages/devtools/topics/install_github">install_github</a></span>(<span class="st">"gadenbuie/xaringanthemer"</span>)</a></code></pre></div>
- </div>
- <div id="usage" class="section level2">
- <h2 class="hasAnchor">
- <a href="#usage" class="anchor"></a>Usage</h2>
- <!-- Set link to theme-settings, template-variables, theme functions -->
- <p>First, add <code>css: xaringan-themer.css</code> to your xaringan slides YAML header under <code>xaringan::moonreader:</code>.</p>
- <div class="sourceCode" id="cb2"><pre class="sourceCode yaml"><code class="sourceCode yaml"><a class="sourceLine" id="cb2-1" data-line-number="1"><span class="fu">output:</span></a>
- <a class="sourceLine" id="cb2-2" data-line-number="2"> <span class="fu">xaringan:</span><span class="at">:moon_reader:</span></a>
- <a class="sourceLine" id="cb2-3" data-line-number="3"> <span class="fu">lib_dir:</span><span class="at"> libs</span></a>
- <a class="sourceLine" id="cb2-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="articles/singles/themes.html">theme functions</a>.</p>
- <div class="sourceCode" id="cb3"><pre class="sourceCode markdown"><code class="sourceCode markdown"><a class="sourceLine" id="cb3-1" data-line-number="1">```{r xaringan-themer, include = FALSE}</a>
- <a class="sourceLine" id="cb3-2" data-line-number="2">library(xaringanthemer)</a>
- <a class="sourceLine" id="cb3-3" data-line-number="3">mono_light(</a>
- <a class="sourceLine" id="cb3-4" data-line-number="4"> base_color = "#1c5253",</a>
- <a class="sourceLine" id="cb3-5" data-line-number="5"> header_font_google = google_font("Josefin Sans"),</a>
- <a class="sourceLine" id="cb3-6" data-line-number="6"> text_font_google = google_font("Montserrat", "300", "300i"),</a>
- <a class="sourceLine" id="cb3-7" data-line-number="7"> code_font_google = google_font("Droid Mono")</a>
- <a class="sourceLine" id="cb3-8" data-line-number="8">)</a>
- <a class="sourceLine" id="cb3-9" data-line-number="9">```</a></code></pre></div>
- <p><img src="articles/images/example_mono_light_1c5253.png" width="100%"></p>
- <p><strong>xaringanthemer</strong> is <kbd>Tab</kbd> friendly – <a href="articles/xaringanthemer.html#theme-settings">use autocomplete to explore</a> the <a href="articles/template-variables.html">template variables</a> that you can adjust in each of the themes!</p>
- <center>
- <img src="articles/images/rmarkdown-template-screenshot.png" width="350px">
- </center>
- <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>
- </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>
-
- </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="http://pkgdown.r-lib.org/">pkgdown</a>.</p>
- </div>
-
- </footer>
- </div>
-
-
-
- </body>
- </html>
|