I built this theme to go with my template to make revealjs slides with pandoc
Just include the theme css
in your html
. This theme is meant to be used without revealjs layout adjustment (ie with disableLayout: True
).
For the default parameters, the css can be downloaded from github releases, if you want customization, you will have to build it yourself (see [#Building])
This should automatically adjust the font size to the viewport (with pure css, yes it's possible) so that the slides always display with the same aspect ratio (if you only use em
, rem
or %
as units). The default is 4/3 but it can be customized through scss variables.
Here is the set of features I recommend you set to get all the capabilities of this theme
Reveal.initialize({
display: "",
disableLayout: True,
})
screenshots:
Here is an exemple of a presentation I built with this theme with changed colorscheme.
This theme will automatically / responsively resize to the available area, whiel keeping its aspect ratio (by default 4/3 but you can change that through css variables)
Warning
Responsive resizing only works if elements are sized with relative
units (%
) or font units (rem
and em
).
Avoid using absolute units (px
, cm
, in
...) and viewport units vw
, vh
.list-in-blocks
used on anul
or in a wrapping div around anul
, changes the list from standard style to colored boxes automatically placed (using flexbox)..centered-slide
on a section makes that sectiondisplay:flex
with[!IMPORTANT] For this class to work the option
display: ""
to be passed to reveal Otherwise reveal will arbitrarily set your slides todisplay: block
This is called "cleanpurple", but you can totally change the main color (or the font size, or most things), just edit the variables in the css.
For an example of customization, see for example here
To build, we need the revealjs
source, included in the revealjs/
submodule. Check that you have cloned the submodule (either by cloning directly with) --recurse-submodules
or run
$ git submodule update --init --recursive
We also need sass
to be installed.
Afterwards, you can just build with
$ make
The resulting css
file will be in dist/
. Just import it instead of your previous theme.