-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample.qmd
63 lines (43 loc) · 1.24 KB
/
example.qmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
---
title: "Mono light theme example"
author: "Some Body"
institute: "University of Where"
format:
mono-light-revealjs:
theme: [default, custom.scss]
---
## Mono light
This theme is based on the xaringanthemer style "mono light": <https://pkg.garrickadenbuie.com/xaringanthemer/reference/style_mono_light.html>.
And here is some code:
```r
a <- 1 + 3
cat(a)
```
## Typography
This is *italics* and this is **bold text**.
> Just a simple quote.
---Nobody
## Dark background {background-color=var(--inverse)}
A list:
- Of my
- favourite
- things and some `code`.
```r
a <- 1 + 3
cat(a)
```
> Just a simple quote.
## Customisation
To customise the theme, you need to set `theme: [default, custom.scss]` and use `custom.scss` file, like so.
```yaml
format:
mono-light-revealjs:
theme: [default, custom.scss]
```
You can customise now the theme in `custom.scss`. For example, if you want to change the base colour of the theme to a green hue, add the following to the `custom.scss` file:
```scss
/*-- scss:defaults --*/
$base-color: #136f63;
```
<br>
For a list of customisable variables, see `_extensions/mono-light/mono-light.scss` and [Sass variables](https://quarto.org/docs/presentations/revealjs/themes.html#sass-variables).