Documentation

A dotted page

One texture over the whole page, under the cards.

A dotted page: the sample page.
The sample page, drawn by UrDeck from this theme.

The theme

This is the theme.json of the recipe, exactly as it is in the repository (site/cookbook/dotted-page/). Save it as themes/my-theme/theme.json next to UrDeck.Host.exe and set "theme": "my-theme", or copy the keys you like into your own theme.

{
  "$schema": "https://urdeck.app/schemas/v1/theme.json",
  "meta": {
    "name": "Dotted page",
    "description": "A faint grid of dots behind the cards.",
    "mode": "dark"
  },
  "colors": {
    "background": "#0b1020",
    "cardFill": "#e61a2238"
  },
  "pattern": {
    "kind": "dots",
    "spacing": 0.13,
    "thickness": 0.012,
    "color": "#33ffffff"
  }
}

How it works

pattern is drawn once over the whole window, above the background and under the cards, the dock and the page indicator. It does not slide with the pages and it is drawn whatever the configuration’s background is, because it belongs to the theme.

  • kind is dots, grid, hatch or scanlines. Dots are round with a radius of thickness.
  • spacing and thickness are fractions of a grid cell. Marks sit on whole pixels, so the spacing is rounded and a line is never under one pixel wide. Marks closer than three pixels are reported (THEME052).
  • color has its alpha first: #33ffffff is white at 20 %. Without a colour the pattern is the muted text colour at a sixteenth of its opacity, which is why the built-in themes look so quiet.

The card fill is slightly translucent (#e61a2238 is 90 %), so a little of the pattern shows through the cards. Make it opaque for a clean card, or change kind to grid and add majorEvery for a drafting sheet.

All recipes · Theme reference