Design system

cd design-system

The tokens the page is drawn with, read from src/styles/main.css as it stands.

Colours

cat colors.md

Under each swatch: its step, its value, and its contrast on black, the page's one background. Below 4.5:1, too dim for body text, the contrast is dimmed too.

--color-green-*

  1. 100#0033001.5:1
  2. 200#004d002.1:1
  3. 300#0066002.9:1
  4. 400#0080004.1:1
  5. 500#0099005.6:1
  6. 600#00b3007.4:1
  7. 700#00cc009.6:1
  8. 800#00e60012.3:1
  9. 900#00ff0015.3:1
  10. 950#a5ff9d17.4:1

--color-yellow-*

  1. 100#3333001.6:1
  2. 200#4d4d002.4:1
  3. 300#6666003.5:1
  4. 400#8080005.0:1
  5. 500#9999006.9:1
  6. 600#b3b3009.4:1
  7. 700#cccc0012.2:1
  8. 800#e6e60015.7:1
  9. 900#ffff0019.6:1

--color-black

  1. black#0000001.0:1

Typography

cat type.md

--font-mono

'Ioskeley Mono', ui-monospace, Menlo, Consolas, 'DejaVu Sans Mono', 'Courier New', monospace

!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~

© · × é ─ │ ┌ ┐ └ ┘ ├ ┤ ┬ ┴ ┼ ▀ ▄ █ ▌ ▐ ░ ▒ ▓

font-weight

  1. 200font-extralightSphinx of black quartz, judge my vow. 0123456789
  2. 300font-lightSphinx of black quartz, judge my vow. 0123456789
  3. 400font-normalSphinx of black quartz, judge my vow. 0123456789
  4. 500font-mediumSphinx of black quartz, judge my vow. 0123456789
  5. 600font-semiboldSphinx of black quartz, judge my vow. 0123456789
  6. 700font-boldSphinx of black quartz, judge my vow. 0123456789
  7. 900font-blackSphinx of black quartz, judge my vow. 0123456789

font-size

  1. bodymax(12px, var(--art-size))

    The text: 16px, clamped down so 72 columns still fit, to 12px, the floor for reading. Below that it reflows. Now .

  2. --art-sizeround(down, min(16px, calc((100vw - 24px) / 43.5)), 1px)

    The art: 72 columns across the window, at most 16px, so it always fits. Now , drawn at that size.

line-height

  1. --spacing1.6em

    One terminal line: everything's leading, and the unit of every length. mt-3 is three lines.

    Every length in this layout is a character cell or a terminal line, never a pixel, so a paragraph falls on the grid the art is drawn on.

  2. leading-loose2

    A paragraph's: every <p> of prose states it. Tailwind's own value.

    Every length in this layout is a character cell or a terminal line, never a pixel, so a paragraph falls on the grid the art is drawn on.

  3. --leading-tight1.25

    An art row's: one block tall, so the rows meet with no seam.

    █▀▀▀▀▀▀▀▀█
    █ ░▒▓▓▒░ █
    █▄▄▄▄▄▄▄▄█