Styling Quarto Presentations
There are 11 built-in themes provided for Reveal presentations! The default
, dark
, and simple
themes use fairly classic typography and color schemes and are a good place to start.
The default
theme is used automatically — use the theme option to switch to an alternate theme.
If you don’t have a list of things, but you want to increment components of your slide…
content before the pause
content after the pause
If you have columns and you would like to increment when and how columns appear…
Fade out
Fade in then GROW then fade semi out
Slide up while fading in
::: columns
::: {.column width="30%"}
::: {.fragment .fade-in-then-out}
Fade out
:::
:::
::: {.column width="3%"}
:::
::: {.column width="30%"}
::: {.fragment .fade-in}
::: {.fragment .grow}
::: {.fragment .semi-fade-out}
Fade in then GROW then fade semi out
:::
:::
:::
:::
::: {.column width="3%"}
:::
::: {.column width="30%"}
::: {.fragment .fade-up}
Slide up while fading in
:::
:::
:::
If you want to remind your audience of something important…
are quite useful for displaying content side-by-side…
converts all letters in the strings to lowercase
converts all letters in the strings to uppercase
When you are interested in outputting both your code and its output in your presentation, you can control where the output goes!
```{r}
#| label: starwars-heights-default-output
#| tbl-cap: "A table of maximum and minimum heights for each homeworld in Starwars."
starwars %>%
group_by(homeworld) %>%
summarize(max_height = max(height),
min_height = min(height)
) %>%
slice_max(order_by = max_height, n = 5) %>%
gt::gt() %>%
gt::cols_label(homeworld = "Homeworld",
max_height = "Maximum Height",
min_height = "Minimum Height")
```
Homeworld | Maximum Height | Minimum Height |
---|---|---|
Quermia | 264 | 264 |
Kashyyyk | 234 | 228 |
Kamino | 229 | 183 |
Naboo | 224 | 96 |
Kalee | 216 | 216 |
```{r}
#| label: starwars-heights-fragment-output
#| tbl-cap: "A table of maximum and minimum heights for each homeworld in Starwars."
#| output-location: fragment
starwars %>%
group_by(homeworld) %>%
summarize(max_height = max(height),
min_height = min(height)
) %>%
slice_max(order_by = max_height, n = 5) %>%
gt::gt() %>%
gt::cols_label(homeworld = "Homeworld",
max_height = "Maximum Height",
min_height = "Minimum Height")
```
Homeworld | Maximum Height | Minimum Height |
---|---|---|
Quermia | 264 | 264 |
Kashyyyk | 234 | 228 |
Kamino | 229 | 183 |
Naboo | 224 | 96 |
Kalee | 216 | 216 |
```{r}
#| label: starwars-heights-column-output
#| tbl-cap: "A table of maximum and minimum heights for each homeworld in Starwars."
#| output-location: column
starwars %>%
group_by(homeworld) %>%
summarize(max_height = max(height),
min_height = min(height)
) %>%
slice_max(order_by = max_height, n = 5) %>%
gt::gt() %>%
gt::cols_label(homeworld = "Homeworld",
max_height = "Maximum Height",
min_height = "Minimum Height")
```
Homeworld | Maximum Height | Minimum Height |
---|---|---|
Quermia | 264 | 264 |
Kashyyyk | 234 | 228 |
Kamino | 229 | 183 |
Naboo | 224 | 96 |
Kalee | 216 | 216 |
```{r}
#| label: starwars-heights-column-fragment-output
#| tbl-cap: "A table of maximum and minimum heights for each homeworld in Starwars."
#| output-location: column-fragment
starwars %>%
group_by(homeworld) %>%
summarize(max_height = max(height),
min_height = min(height)
) %>%
slice_max(order_by = max_height, n = 5) %>%
gt::gt() %>%
gt::cols_label(homeworld = "Homeworld",
max_height = "Maximum Height",
min_height = "Minimum Height")
```
Homeworld | Maximum Height | Minimum Height |
---|---|---|
Quermia | 264 | 264 |
Kashyyyk | 234 | 228 |
Kamino | 229 | 183 |
Naboo | 224 | 96 |
Kalee | 216 | 216 |
```{r}
#| label: starwars-heights-column-slide-output
#| tbl-cap: "A table of maximum and minimum heights for each homeworld in Starwars."
#| output-location: slide
starwars %>%
group_by(homeworld) %>%
summarize(max_height = max(height),
min_height = min(height)
) %>%
slice_max(order_by = max_height, n = 5) %>%
gt::gt() %>%
gt::cols_label(homeworld = "Homeworld",
max_height = "Maximum Height",
min_height = "Minimum Height")
```
Homeworld | Maximum Height | Minimum Height |
---|---|---|
Quermia | 264 | 264 |
Kashyyyk | 234 | 228 |
Kamino | 229 | 183 |
Naboo | 224 | 96 |
Kalee | 216 | 216 |