Creating a PocoCMS theme from scratch

Creating the simplest possible theme

Let's create the simplest possible PocoCMS theme. Spoiler alert: it will do absolutely nothing. This is the first step in a progressive series of theme building.

Components of the simplest possible theme

The minimum requirements for a theme are:

  1. A subdirectory under .poco/themes. It will be used as the name of the theme
  2. A README.md file in that subdirectory. It may be empty (and therefore useless)
  3. A LICENSE file in that subdirectory.

Creating the theme files

Let's build that minimal theme.

mkdir .poco/themes/t1

Note: the directory name will also be the theme name.

Using the theme

---
theme: t1
---

Well? How do I look?

And the answer to that question is... whelming.

Screenshot of a minimal, empty theme

We can do much better with very little effort.

Next: Add a classless stylesheet to your theme