Make it your own
The Nocturne theme, installed the same way as the Tufte theme.
Add the theme
smalldocs add rahuldave/smalldocs-nocturneThe command installs _extensions/nocturne/, with both modes and local fonts.
Choose it
In _smalldocs.yml:
theme: nocturne
toc: true
code-copy: trueFor a _quarto.yml built by SmallDocs, put theme: nocturne under smalldocs:.
The normal SmallDocs navigation control switches between the two color modes.
With Quarto
quarto add rahuldave/smalldocs-nocturneformat:
nocturne-html:
toc: trueEditable 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/nocturne/ are committed too, so
installing the theme needs no CSS compiler.
The design
Midnight ink, warm brass, and a literary serif. Made for focused reading, with a pearl-paper light mode.
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.
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: nocturne
css: styles.cssPut this rule in styles.css, and change the quoted label to suit your site:
html .quarto-title::before {
content: "THE NOTEBOOK · VOL. 01";
display: block;
font: 400 .59rem var(--bs-font-monospace);
letter-spacing: .14em;
color: var(--e-accent);
margin-bottom: 1.5rem;
}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.