Skip to content

Commit d2cf210

Browse files
committed
add missing theme readme
1 parent 470a2f6 commit d2cf210

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

css/theme/README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
## Dependencies
2+
3+
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 proceding: https://github.com/hakimel/reveal.js#development-environment
4+
5+
6+
7+
## Creating a Theme
8+
9+
To create your own theme, start by duplicating any ```.scss``` file in [/css/theme/source](https://github.com/hakimel/reveal.js/blob/master/css/theme/source) and adding it to the compilation list in the [Gruntfile](https://github.com/hakimel/reveal.js/blob/master/Gruntfile.js).
10+
11+
Each theme file does four things in the following order:
12+
13+
1. **Include [/css/theme/template/mixins.scss](https://github.com/hakimel/reveal.js/blob/master/css/theme/template/mixins.scss)**
14+
Shared utility functions.
15+
16+
2. **Include [/css/theme/template/settings.scss](https://github.com/hakimel/reveal.js/blob/master/css/theme/template/settings.scss)**
17+
Declares a set of custom variables that the template file (step 4) expects. Can be overridden in step 3.
18+
19+
3. **Override**
20+
This is where you override the default theme. Either by specifying variables (see [settings.scss](https://github.com/hakimel/reveal.js/blob/master/css/theme/template/settings.scss) for reference) or by adding full selectors with hardcoded styles.
21+
22+
4. **Include [/css/theme/template/theme.scss](https://github.com/hakimel/reveal.js/blob/master/css/theme/template/theme.scss)**
23+
The template theme file which will generate final CSS output based on the currently defined variables.

0 commit comments

Comments
 (0)