papertoothv0.5.2 Theming
  1. papertooth
  2. Getting started
  3. Theming

Theming

Every effect is a CSS custom property. Set the grid, the paper and the fonts here and the whole site follows; copy the result into your own stylesheet. Inks and colours have their own page.

Notes from the week

A paragraph in the current ribbon, with a link in pen and a highlighted phrase.

A line written in fountain pen.

A note in coloured pencil, graphite, ballpoint and brush pen.

The code for what is on screen

:root {
  --pt-grid: 24px;
  --pt-dot-size: 0.8px;
  --pt-dot: rgba(88, 86, 80, 0.26);
  --pt-grain: 0.1;
  --pt-wobble: 1;
  --pt-font-type: "Courier Prime", monospace;
  --pt-font-hand: "Caveat", cursive;
}

Pens, pencils, ribbons and highlighters: see Inks and colours.

Parameters

SettingDefaultValues
--pt-grid24pxDot pitch and line height. Text snaps to it.
--pt-sheet-width720pxWidest the sheet gets, rounded down to whole cells.
--pt-paper, --pt-desk#fefefe, #cdcbc5Paper and desk colours.
--pt-dot, --pt-dot-sizewarm grey, .8pxPrinted dots.
--pt-linepale blueRuling on grid, graph and lined paper.
--pt-grain.1Paper grain, 0 to 1.
--pt-pen, --pt-pencil, --pt-ribbonindigo, red pencil, blackCurrent tools.
--pt-hlyellowHighlighter colour.
--pt-wobble1Letter wobble, 0 to 2.
--pt-tilt1Multiplies every --pt-rot, 0 to 2.
--pt-draw, --pt-ease.75sDrawing-on timing.
--pt-font-type, -hand, -type-head, -jpCourier Prime, Caveat…Fonts.
--pt-s-body, -small, -h1, -h220, 16, 36, 26pxType sizes.