Themes are written using Sass to keep things modular and reduce the need for repeated selectors across files. Make sure that you have the reveal.js development environment including the Grunt dependencies installed before proceeding: https://github.com/hakimel/reveal.js#full-setup
Themes are written using Sass to keep things modular and reduce the need for repeated selectors across files. Make sure that you have the reveal.js development environment installed before proceeding: https://revealjs.netlify.app/installation/#full-setup
## Creating a Theme
To create your own theme, start by duplicating a ```.scss``` file in [/css/theme/source](https://github.com/hakimel/reveal.js/blob/master/css/theme/source). It will be automatically compiled by Grunt from Sass to CSS (see the [Gruntfile](https://github.com/hakimel/reveal.js/blob/master/gruntfile.js)) when you run `npm run build -- css-themes`.
To create your own theme, start by duplicating a ```.scss``` file in [/css/theme/source](https://github.com/hakimel/reveal.js/blob/master/css/theme/source). It will be automatically compiled from Sass to CSS (see the [gulpfile](https://github.com/hakimel/reveal.js/blob/master/gulpfile.js)) when you run `npm run build -- css-themes`.
Each theme file does four things in the following order:
Instructions and more info available in the [readme](https://github.com/hakimel/reveal.js#markdown).
Instructions and more info available in the [readme](https://revealjs.netlify.app/markdown/).
```[]
<sectiondata-markdown>
## Markdown support
Write content using inline or external Markdown.
Instructions and more info available in the [readme](https://github.com/hakimel/reveal.js#markdown).
Instructions and more info available in the [readme](https://revealjs.netlify.app/markdown/).
</section>
```
</script>
@ -345,7 +345,7 @@
<section>
<h2>Speaker View</h2>
<p>There's a <ahref="https://github.com/hakimel/reveal.js#speaker-notes">speaker view</a>. It includes a timer, preview of the upcoming slide as well as your speaker notes.</p>
<p>There's a <ahref="https://revealjs.netlify.app/speaker-view/">speaker view</a>. It includes a timer, preview of the upcoming slide as well as your speaker notes.</p>
<p>Press the <em>S</em> key to try it out.</p>
<asideclass="notes">
@ -355,7 +355,7 @@
<section>
<h2>Export to PDF</h2>
<p>Presentations can be <ahref="https://github.com/hakimel/reveal.js#pdf-export">exported to PDF</a>, here's an example:</p>
<p>Presentations can be <ahref="https://revealjs.netlify.app/pdf-export/">exported to PDF</a>, here's an example:</p>