Add the extra CSS asset
@snap-clean:
output:
html:
meta:
css: ["@default", "@snap", "@snap-clean"]
js: ["@snap"]
Before we dive a bit deeper, here is a simple example of the
litedown clean theme.
Next, we’ll take a brief tour of some theme components.
Here we have an unordered list.
And next we have an ordered one.
To emphasize specific words or text, you can:
alert class, e.g. important note.fg class for custom colour, e.g. important note.bg class for custom background, e.g. important note.Use inline (\(\alpha\), \(\pi\)) or display math as needed:
$$P(E) = {n \choose k} p^k (2-p)^{n-k} \int^\infty_0 x dx$$
$$\hat{\sigma} = \sqrt\frac{\sum(Y_i – \hat{Y}_i)^2} {n – 2}$$
Here is a long sentence that will wrap onto the next line as it hits the column width, and continue this way until it stops.
Some other text in another column.
A second paragraph.
Multicolumn support is very flexible and we can continue with a single full span column in the same slide.
![]()
The clean theme rolls its own minimalist aesthetic for tables.
This should interface directly with “manual” markdown tables…
| Feature | Quarto | litedown |
|---|---|---|
| Speed | Slow | Fast |
| Size | Large | Small |
| Deps | Many | Few |
… or “computed” tables (next slide).
library(fixest)
mods = feols(
rating ~ complaints + #privileges +
learning + csw0(raises + critical),
data = attitude
)
dict = c("rating" = "Overall Rating",
"complaints" = "Handling of Complaints",
# "privileges" = "No Special Priviledges",
"learning" = "Opportunity to Learn",
"raises" = "Performance-Based Raises",
"critical" = "Too Critical")
library(modelsummary)
modelsummary(
setNames(mods, c("(1)", "(2)")),
coef_map = dict, stars = TRUE,
gof_map = NA
) |>
# some optional stylistic tweaks
tinytable::group_tt(j = list("Dep. variable: Overall Rating" = 2:3)) |>
tinytable::style_tt(i = 1:2, j = 2:3, background = "pink")
The litedown clean theme aims to be a minimalist and elegant presentation theme, ported from the original Quarto reveal.js version.
columns classes.Render with litedown::fuse().