Avocet, a minimalist Pelican theme

Posted on in Tooling

This blog now runs on Avocet, a Pelican theme I created. It is highly inspired by Flex v3, and I built it to learn and refresh my knowledge.

Flat style avocet overlapping a circle

The last themes I built about 10 years ago used Less.js or Sass, Font Awesome and a build pipeline. I suspected that modern CSS made most of that unnecessary. Building Avocet confirmed that one stylesheet can cover the whole design. Custom properties do the work I used a preprocessor for, while automatic dark mode needs no JavaScript because the prefers-color-scheme media query follows the operating system. I left it out of Avocet for now, so the theme stays light.

These are the goals it is built around:

  • No build step so the theme renders straight from a Git checkout.
  • No runtime dependencies beyond Pelican and Jinja.
  • Works without JavaScript.
  • A light theme with a fixed sidebar, a single column of text and the red accent colors.
  • One stylesheet, built on CSS custom properties.

Analytics and advertising were non-goals for me so I left them out.