Make it your own

The Folio theme, installed the same way as the Tufte theme.

Add the theme

smalldocs add rahuldave/smalldocs-folio

The command installs _extensions/folio/, with both modes and local fonts.

Choose it

In _smalldocs.yml:

theme: folio
toc: true
code-copy: true

For a _quarto.yml built by SmallDocs, put theme: folio under smalldocs:. The normal SmallDocs navigation control switches between the two color modes.

With Quarto

quarto add rahuldave/smalldocs-folio
format:
  folio-html:
    toc: true

Editable sources

The repository contains the full theme source in src/, font files and Bootstrap in vendor/, the build scripts, tests, and these example pages. Run sh scripts/build.sh to rebuild the CSS and Quarto Sass. The compiled files in _extensions/folio/ are committed too, so installing the theme needs no CSS compiler.

The design

Cream paper, forest green, and expressive Caslon. A quieter cousin of the CRBooks catalog.

All code uses IBM Plex Mono, bundled with the theme. The source and examples have an MIT license; the fonts retain their SIL Open Font License notices.

Folio takes its Caslon headings, cream paper, forest green, and rust accents from the CRBooks catalog.

Optional title label

The current theme does not add a fixed label above your title. To restore that effect, create styles.css in your site folder and add it to _smalldocs.yml:

theme: folio
css: styles.css

Put this rule in styles.css, and change the quoted label to suit your site:

html .quarto-title::before {
  content: "FIELD NOTES / SMALLDOCS";
  display: block;
  font: 500 .6rem var(--bs-font-sans-serif);
  letter-spacing: .16em;
  color: var(--e-secondary);
  margin-bottom: 1.3rem;
}

The rule adds the same decorative text above every title. For text that changes with the page, use its content or subtitle: in its front matter. Remove the CSS rule to turn the label off.

The theme handbook describes this theme and shows how to connect your stylesheet with SmallDocs and Quarto.