Customize the look of your presentation with custom CSS added with the meta-data variable template.css.
decker.yaml
template:
css: custom.css
custom.css
.red-font {
color: #ff0000;
}
.blue-font {
color: #0000ff;
}
Markdown
## Red font {.red-font}
This is red text!!
## Blue font
## {.blue-font}
This is blue font
This is red text!!
This is blue font
Set an image as the slide background by adding {size="cover"} to a level 1 header. Replace <image.path> with the path of the background image.
# Background Image Example {size="cover"}{.grid}
## {.left}
{width=50%}
## {.right}
{width=50%}
## {width=30%} Human-Computer Interaction | Universität Wuerzburg {.bottom}
See next slide.
Human-Computer Interaction | Universität WuerzburgSet a color as the slide background by adding {style="background-color:<COLOR>"} to the level 1 header. Replace <COLOR> with the color you wish to use e.g. #ff0000.
# Background Color Example {style="background-color:#90D5FF" .grid}
## {.left}
{width=50%}
## {.right}
{width=50%}
## {width=30%} Human-Computer Interaction | Universität Wuerzburg {.bottom}
See next slide.
Human-Computer Interaction | Universität WuerzburgInclude a background image on all slides (e.g. the Uni Würzburg banner) by adding the following code to the CSS file (replace /assets/title-banner-jmu.jpg with the location of your title banner file):
body {
background: url( "/assets/title-banner-jmu.jpg" );
background-size: contain;
background-repeat: no-repeat;
}
Keep in mind that if a slide has a lot of text content it is possible that the slide title will overlay the banner