Make a theme

A theme changes how the dashboard looks: its colours, and, if you want, its fonts, pictures, icons and a style sheet of its own. It is a folder of data, with no code, and it serves every campaign on your computer.

You need Node 24 and RPG Engine (npm install -g rpg-engine). You do not need a campaign to make a theme, but you need one to see it on the dashboard.

Steps

  1. Make the theme. In a terminal, from the folder where you want it:

    rpg package new "Old Parchment"
    

    You should see:

    Made the theme Old Parchment 0.1.0 in ...\old-parchment and linked it: choose it in Settings, in the dashboard of any campaign on this computer. Change its theme.yaml there: the dashboard shows each change by itself.
    

    The folder old-parchment holds theme.yaml, an empty style.css and a README.md. The theme is linked: the engine reads it from your folder, so every campaign on this computer sees your changes. Use --folder <path> to make it somewhere else. The folder must be empty, and no other installed theme may have the same name.

  2. Open the dashboard of any campaign and choose the theme in Settings › Dashboard › Theme. If you have no campaign yet, make one for testing: rpg init test-campaign --system free.

  3. Edit theme.yaml. It has the keys every theme needs set, and every other key in a comment: take the # off a line to use it. The page shows each change as you save it.
    • name, version and engine come first. engine is the lowest RPG Engine that reads the theme, in quotes: engine: "0.35". package new writes the version you have.
    • light and dark are both required, each with ten colours: paper, panel, rule, ink, muted, accent, gold, on-gold, ally, low. The others are optional and derived when left out.
    • Every file the theme names (fonts, pictures, icons, style.css) is a file of this folder, written from it, never a web address. Each file is at most 1000 KB. Each font names its licence file, .txt or .md, beside it.
  4. Check it after each change:

    rpg package list
    

    A theme that passes is listed by its name and version. One that fails a check is listed with the reason and the fix, and the dashboard keeps its own look until you fix it:

    Themes of the dashboard, which the player chooses in Settings: old-parchment, linked from ...\old-parchment (not offered: light: muted #dddddd does not read: on panel #fdfcf9 is 1.32:1, ..., the page needs 4.5:1; #616161 would do).
    
  5. Add variants of its colours, if you want. Under variants in theme.yaml, each variant has a name and, under light and dark, only the colours it changes. A name alone is the theme as written. The player chooses one in Settings › Dashboard › Colours; the first is shown until they do. A variant changes colours only: never a picture, a font or a shape.

    variants:
      - name: Ink
      - name: Sea
        light: {accent: "#17524e", gold: "#17524e"}
        dark: {accent: "#7fd6cf", gold: "#7fd6cf"}
    

    A variant that fails a check is left out alone; the theme and the other variants stay.

  6. Publish it on GitHub. Put the folder’s contents at the top of a public repository (theme.yaml at the root of the default branch), add a licence file (LICENSE, LICENSE.md or COPYING), and give the repository the topic rpg-engine-theme (on GitHub: the gear beside About, then Topics).

  7. Check that it installs as others will get it. From a campaign folder:

    rpg package install https://github.com/<you>/<repository>
    

    You should see Installed the theme Old Parchment 0.1.0 for every campaign on this computer: the player chooses it in Settings. It takes the place of Old Parchment 0.1.0. It takes the place of your linked copy; link it again to go on editing (see “Update it”).

The dashboard’s Packages page lists the repositories with the topic rpg-engine-theme, with the name and version of their theme.yaml. Players add yours from there, or by pasting its link.

What a player gets

package install takes a GitHub link, a .zip or a folder. It keeps only theme.yaml, the files it names, the pictures style.css names and a licence at the top: nothing else in the repository. The .zip may unpack to at most 50 MB, and what is kept to at most 20 MB. A theme installs for every campaign on the computer, in place of one with the same name. A theme is data, so no permission window is shown.

Update it

  • To work on a theme you already published, clone it and link the clone: rpg package install <its folder> --link. Linked, it is read where it is, it is never offered updates, and uninstalling it leaves your folder alone.
  • To release a new version, raise version in theme.yaml and push. The Packages page offers the update to players who installed it from your repository.
  • If the theme uses a key that needs a newer engine, raise engine too. An older engine refuses to install it and offers no update to it.

When something fails

  • not offered: light: muted #dddddd does not read: ... #616161 would do: two colours do not read on each other. Text needs 4.5:1, the focus ring 3:1. Use the colour it suggests, or change the one under it.
  • engine is written in quotes, as engine: "0.22": without them YAML reads 0.30 as the number 0.3: write engine in quotes.
  • Old Parchment 0.1.0 needs rpg-engine 0.99 or newer; this is 0.35.0.: engine asks for a newer RPG Engine than the one installed. Update RPG Engine, or lower engine.
  • variants.Pale: light: accent #eeeeee does not read: ...: that variant is not offered; fix its colours.
  • A theme old-parchment is installed on this computer already: package new will not make a second theme with the same name. Pick another name, or remove that one with rpg package uninstall theme:old-parchment.
  • ... is not empty: package new needs an empty or new folder.

To take a theme off the computer: rpg package uninstall theme:<id>, where <id> is its name in lower case with hyphens, such as theme:old-parchment.

Reference


© 2026 Stefano Caronia · code under the MIT license