terminalclock style sheet

The design of the clock in one page: monochrome, one character grid, bold and dim. Read from the code, offline, reusable. One style, four media: the terminal, the resume, the CV and the presentation, each in its own fold below.

Theme: · · ·

Pick the use case

use casemediumsizedensityfolds
Terminalcharacter grid, web view13px/1.15whole frame, fixed heighttabs, no folds
Resumeweb page + A4 print / PDF13px/1.5 · 9.5ptone pageentries (open in print)
CVA4 print / PDF, long web page13px/1.5 · 9.5ptmany pages, year columnsections (open in print)
Presentation16:9 deck, fullscreen, PDF handout2.2cqw = 28px at 1280one idea per slidespeaker notes

All four share the Terminal rules and tokens: only text, bold and dim; no colour, no icons, no filled buttons; › · ↳ … as glyphs; every action has a key. The folds below only say what changes for that medium. A fold is a heading with › (closed) or ↓ (open); the keys are e expand all and c collapse all, and print or PDF always opens everything.

Terminal and web view terminalclock: the original rules

Rules

Tokens

Terminal

roleterminalweb view (clock serve)
textthe terminal's default foregroundcolor: var(--fg)
boldSGR 1font-weight: bold
dimSGR 2opacity: .6
reverseSGR 7 (active row / running state only).rv { color: var(--bg); background: var(--fg) }
framerich ROUNDED, border_style="dim"the same box characters

Web colours (the same values the clock's web view uses)

tokendarklightuse
--bg#0b0b0b#fafafapage background
--fg#ddd#111text
--btn#1d1f23#eeeweb nav buttons (filled: a known deviation)
--bd#333#cccborders
--on-bg#e8e8e8#111active control background
--on-fg#111#fffactive control text
--barrgba(18,19,22,.97)rgba(250,250,250,.97)bottom bar
--in#111#fffinputs

E-ink devices: pre, pre * { color:#000 !important; background:none !important; font-weight:600 } and .rv { background:#000; color:#fff }.

Type and grid

Digit font

The clock draws time with a 3 × 5 block font, every cell doubled horizontally, two spaces between glyphs. Live, from the same table:


██████      ██  ██████  ██████  ██  ██
██  ██      ██      ██      ██  ██  ██
██  ██      ██  ██████  ██████  ██████
██  ██      ██  ██          ██      ██
██████      ██  ██████  ██████      ██
██████  ██████  ██████  ██████  ██████
██      ██          ██  ██  ██  ██  ██
██████  ██████      ██  ██████  ██████
    ██  ██  ██      ██  ██  ██      ██
██████  ██████      ██  ██████  ██████
    ██████  ██████
██  ██  ██  ██
    ██  ██  ██████
██  ██  ██  ██
    ██████  ██    

Digit font (JSON)

{
 "0": ["███", "█ █", "█ █", "█ █", "███"],
 "1": ["  █", "  █", "  █", "  █", "  █"],
 "2": ["███", "  █", "███", "█  ", "███"],
 "3": ["███", "  █", "███", "  █", "███"],
 "4": ["█ █", "█ █", "███", "  █", "  █"],
 "5": ["███", "█  ", "███", "  █", "███"],
 "6": ["███", "█  ", "███", "█ █", "███"],
 "7": ["███", "  █", "  █", "  █", "  █"],
 "8": ["███", "█ █", "███", "█ █", "███"],
 "9": ["███", "█ █", "███", "  █", "███"],
 ":": [" ", "█", " ", "█", " "],
 "O": ["███", "█ █", "█ █", "█ █", "███"],
 "F": ["███", "█  ", "███", "█  ", "█  "],
 " ": ["   ", "   ", "   ", "   ", "   "]
}

Logo

╭───────────────────╮
│                   │
│ ██  ███   ██  ███ │
│  █  █ █ █  █  █ █ │
│  █  █ █    █  █ █ │
│  █  █ █ █  █  █ █ │
│ ███ ███   ███ ███ │
│                   │
│   terminalclock   │
│                   │
╰───────────────────╯

logo.txt · logo.svg · digit-font.json

Glyphs

Only these. Do not add decoration (no emoji, no icon fonts).

glyphcode pointmeaningexample
›U+203Aselection marker in lists; prompt of a text box› Sachsen
▏U+258Ftext cursor inside a text box (bold)› Dresden▏
·U+00B7separator between facts on one line, and in hintsenter saves · esc cancels
…U+2026a clipped line or path (never let a line run past the frame)…/node_modules/.bin/mapscii
█U+2588the big digits, and filled cells███
─ │ ╭ ╮ ╰ ╯U+2500…the rounded panel frame (rich ROUNDED), dim╭──╮
← ↑ → ↓U+2190…key hints and the direction of a change↑↓ pick
◀ ▶U+25C0 U+25B6back / next in the footer (dim) ◀ back next ▶
±U+00B1adjust by an amount±10 s
—U+2014an empty value—
☰U+2630a list a reminder belongs to☰ Shopping 2/5
↳U+21B3a line that belongs to the one above (command line output)↳ Call mum

Components

Frame (rounded, dim)

╭─ CLOCK ────────╮
│                │
│    12:34:56    │
│                │
╰────────────────╯

Panel(box=ROUNDED, border_style="dim", padding=(1, 4))

About: table rows

   version  0.4.16
    python  3.12.3
    config  ~/.config/terminalclock
    daemon  running

dim right-aligned label, plain value

List: the selection is ›

  Dresden
› Dülmen
  Dortmund

never colour; the row may also be bold

Shortcut: text with the key in brackets

Journey lookup (l)   History (h)   Back (esc)

not filled, not reversed; the mouse sends the same key

Text box

Map start — latitude,longitude

┌──────────────────────────────┐
│ › 51.05,13.74▏               │
└──────────────────────────────┘
enter saves · esc cancels

every key is text; esc leaves, then q quits

State wording and hint line

Currently: Offline · sachsen
 Change in Settings (s)

say what is true now, with the way to change it

Hint line (one dim line in the footer)

enter opens MapSCII · g Organic Maps · s settings · a/z zoom · arrows pan · q quits

Long text

mapscii · …/.local/share/terminalclock/mapscii/node_modules/.bin/mapscii
A very long line is clipped at the frame with an ellipsi…

Tabs and keys

keytab
1clock
2stopwatch
3timer
4alarm
5settings
6about
7calendaradd-on
8prayeradd-on
9weatheradd-on
0remindersadd-on
-mediaadd-on
!commuteadd-on
@dictionaryadd-on
#browseradd-on
$pyshelladd-on
&agentsadd-on
*findadd-on
~recent foldersadd-on
+encyclopediaadd-on
=mapsadd-on

tab/shift+tab cycle, q/esc quit, space start / pause, r reset, l lap, arrows adjust.

Picture ramps (media art)

Light to dense. One character per tone; braille uses the 2 × 4 dots of a cell instead.

ascii .:-=+*#%@
blocks ░▒▓█
dots ·:•●
fine .'`^\",:;Il!i><~+_-?][}{1)(|/tfjrxnuvczXYUJCLQ0OZmwqpdbkhao*#MW&8%B@$
braille⠁⠃⠇⡇⣇⣧⣷⣿

Screenshots (real)

clock

terminalclock ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ ││ ││ │ ◀ back                                       C L O C K                                        next ▶│ ││ ││ │  ██    ██████      ██████  ██████      ██████  ██████  │ │████    ██      ██      ██      ██  ██  ██  ██      ██  │ │  ██    ██████      ██████  ██████      ██  ██      ██  │ │  ██        ██  ██      ██  ██      ██  ██  ██      ██  │ │██████  ██████      ██████  ██████      ██████      ██  │ ││ │Sunday, 15 November 2026│ ││ │Europe/Berlin · UTC+01:00│ ││ │New York  09:32:07 · Sun 15 Nov  (-6h)│ │Karachi   19:32:07 · Sun 15 Nov  (+4h)│ │Tokyo     23:32:07 · Sun 15 Nov  (+8h)│ ││ │TIMER  18:41  RUNNING│ │STOPWATCH  12:34  PAUSED│ │ALARM  06:45  ON│ ││ ││ ││ │[1] clock[2] stopwatch[3] timer[4] alarm[5] settings[6] about│ │[7] calendar[8] prayer[9] weather[0] reminders[-] media│ │f 12/24 h · tab cycles modes · q quit│ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

about (table rows)

terminalclock ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ ││ ││ │ ◀ back                                       A B O U T                                        next ▶│ ││ ││ ││ │terminalclock  v0.4.0│ │monochrome terminal clock · world clocks · timer · stopwatch · alarm│ ││ │version0.4.0 · git checkout (/Users/ali/Github/terminalclock-dev)│ │   homehttps://github.com/usmandroid/terminalclock               │ │licenseMIT © 2026 usmandroid                                     │ │ python3.11.18 · rich 15.0.0                                     │ │ daemonrunning · pid 4242 · up 3h12m                             │ │healthy · heartbeat 0.2s ago · state v3                   │ │aliasesclock  ·  launcher  ·  ~/.local/bin/clock                 │ │tc  ·  alias  ·  ~/.zshrc                                 │ │ config~/.config/terminalclock/config.json                       │ │add-ons7 calendar · 8 prayer · 9 weather · 0 reminders · - media │ │optional · all installed                                  │ ││ │clock update · checks and installs the latest version│ ││ ││ ││ │[1] clock[2] stopwatch[3] timer[4] alarm[5] settings[6] about│ │[7] calendar[8] prayer[9] weather[0] reminders[-] media│ │tab cycles modes · q quit│ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

calendar

terminalclock ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ ││ ││ │ ◀ back                                    C A L E N D A R                                     next ▶│ ││ ││ ││ ││ ││ ││ │                    November 2026                    Holidays, events & reminders            │ │Mo    │ Tu    │ We    │ Th    │ Fr    │ Sa    │ Su   Sun 01 Nov  ·  21 Jumada al-Ula 1448│ │ │  │  │  │  │  │ 1*21  All Saints' Day                       │ │ 222 │  323 │  424 │  525 │  626 │  727 │  828Fri 20 Nov  ·  10 Jumada al-Akhirah 1448│ │ 929 │ 1030 │ 111 │ 122 │ 133 │ 144 │ 155  + Sara's birthday (36)                │ │166 │ 177 │ 188 │ 199 │ 20+10 │ 2111 │ 2212│ │2313 │ 2414 │ 2515 │ 2616 │ 2717 │ 2818 │ 2919│ │3020 │  │  │  │  │  │ │ ││ │Greg · Nov 2026  ·  Hijri: Jumada al-Ula - Jumada al-Akhirah 1448  ·  Bavaria (DE)│ ││ ││ ││ ││ ││ ││ │[1] clock[2] stopwatch[3] timer[4] alarm[5] settings[6] about│ │[7] calendar[8] prayer[9] weather[0] reminders[-] media│ │←→ month ↑↓ year · v/y view · s/d calendars · h/e/o holidays/events/reminders · r region · t today│ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

reminders (list, ›)

terminalclock ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ ││ ││ │ ◀ back                                   R E M I N D E R S                                    next ▶│ ││ ││ │    November 2026     Reminders (5)                                                             │ │Mo Tu We Th Fr Sa Su [ ] Tue 17 Nov 18:00 Day 1 Africa: Jollof rice  ☰ 2/5│ │                   1[ ] Wed 18 Nov 18:30 Day 2 Asia: Biryani│ │ 2 3 4 5 6 7 8[ ] Thu 19 Nov 09:15 Dentist│ │ 9101112131415[ ] Fri 20 Nov       Sara's birthday│ │1617+18+19+20+2122[ ] Mon 30 Nov       Pay rent ↻monthly│ │23242526272829│ │30+│ ││ ││ ││ │────────────                                                              │ │West African classic│ │Party rice, smoky and spicy. Cook it low and slow.                        │ │See the method.                                                           │ ││ │To-do · Cooking week · 2/5                                                  │ │Cooking week│ ││ │[x] Rice│ │[x] Tomatoes│ │[ ] Scotch bonnet pepper│ │… +5 more                                                                   │ │↳ Day 1 Africa: Jollof rice                                                 │ ││ │5 open│ ││ ││ │[1] clock[2] stopwatch[3] timer[4] alarm[5] settings[6] about│ │[7] calendar[8] prayer[9] weather[0] reminders[-] media│ │↑↓ select · enter read · space done · a add · A/e editor · l link · x delete│ │u undo · m move · v preview/source · p to-dos · n new list · / search│ ││ ││ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

prayer

terminalclock ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ ││ ││ │ ◀ back                                P R A Y E R   T I M E S                                 next ▶│ ││ ││ ││ ││ │Sunday 15 November 2026  ·  6 Jumada al-Akhirah 1448 (after Maghrib)  ·  default: mwl · shafi│ ││ │     Fajr  Sunrise    Dhuhr      Asr  Maghrib     Isha   method│ │▸ Lahore, Punjab, PK                05:06    06:30    11:48    14:43    17:04    18:23      mwl│ │Makkah, Mecca Region, SA          05:15    06:32    12:06    15:16    17:39    18:51      mwl│ │Munich, Bavaria, DE               05:32    07:20    11:59    14:13    16:36    18:18      mwl│ │Dearborn, Michigan, US            05:46    07:24    12:18    14:49    17:11    18:42      mwl│ ││ │Now 19:32:07  ·  Lahore  ·  UTC+05:00│ │Next: Fajr in 9h 34m (05:07)│ │Method: Muslim World League · Shafi Asr · high latitudes: auto  (default · m h l to change)│ │Qibla 260° W · 3,598 km   31.558°N 74.351°E · Asia/Karachi│ ││ │4 cities│ ││ ││ ││ ││ │[1] clock[2] stopwatch[3] timer[4] alarm[5] settings[6] about│ │[7] calendar[8] prayer[9] weather[0] reminders[-] media│ │↑↓ city · ←→ move · v view · a add · x remove · m/h/l this city's method/asr/high-lat · f 12/24h│ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

Reuse kit

Copy what you need into another project. Nothing here depends on terminalclock.

CSS: tokens and classes

/* terminalclock look: monochrome, one monospace grid. Tokens are the ones `clock serve` uses. */
:root{--bg:#0b0b0b;--fg:#ddd;--bd:#333}
:root[data-theme=light]{--bg:#fafafa;--fg:#111;--bd:#ccc}
body{background:var(--bg);color:var(--fg);font:13px/1.15 ui-monospace,Menlo,Consolas,monospace}
.tc-screen{white-space:pre}                 /* a character grid: never wrap */
.tc-bold{font-weight:700}                   /* terminal bold */
.tc-dim{opacity:.6}                         /* terminal dim */
.tc-rv{color:var(--bg);background:var(--fg)}  /* terminal reverse: the active row only, never a button */
.tc-select:before{content:"\203A  "}         /* the selection marker */
.tc-cursor:after{content:"\258F";font-weight:700}
.tc-sep:before{content:" \00B7  "}           /* separator between facts */
/* a shortcut is text with its key in brackets: "History (h)". No filled buttons, no colour. */

JavaScript: big digits

// Big block digits exactly as the clock draws them: every cell doubled, two spaces between glyphs.
function tcBigText(s, blinkOff) {
  const rows = ['', '', '', '', ''];
  for (const ch of s) {
    let g = FONT[ch] || FONT[' '];
    if (ch === ':' && blinkOff) g = [' ', ' ', ' ', ' ', ' '];
    for (let i = 0; i < 5; i++) rows[i] += [...g[i]].map(c => c + c).join('') + '  ';
  }
  const r = rows.map(x => x.slice(0, -2)), w = Math.max(...r.map(x => x.length));
  return r.map(x => x.padEnd(w)).join('\n');
}
// FONT = the "Digit font" JSON above ({"0": ["███","█ █",...], ":": [" ","█"," ","█"," "], ...})

Python / rich: frame, rows, list, shortcut, hint

from rich.box import ROUNDED
from rich.panel import Panel
from rich.table import Table
from rich.text import Text
from rich.style import Style

# the frame: rounded, dim, 1 line / 4 columns of air; content centred as one block (Align.center(Group(...)))
frame = Panel(body, box=ROUNDED, border_style="dim", padding=(1, 4), expand=True)

# a table row: dim right-aligned label, plain value (the About page)
t = Table.grid(padding=(0, 2))
t.add_column(style="dim", no_wrap=True, justify="right")
t.add_column(no_wrap=True)
t.add_row("version", "0.4.16")

# a list: the selection is marked with the arrow, never with colour
row = Text(("› " if selected else "  ") + label, no_wrap=True, overflow="ellipsis")

# a shortcut: plain text with its key in brackets; the mouse sends the same key as the keyboard
button = Text(" History (h) ", style=Style(meta={"act": {"k": "h"}}))

# the one hint line in the footer, and the only emphasis: bold and dim
hint = Text("enter saves · esc cancels", style="dim", no_wrap=True)
title = Text("Currently: ", style="dim") + Text("Offline", style="bold")

ANSI cheat sheet

bold     ESC[1m   ...   ESC[22m
dim      ESC[2m   ...   ESC[22m
reverse  ESC[7m   ...   ESC[27m      (active row only)
reset    ESC[0m
no 30-37 / 38;5 / 38;2 colour codes anywhere

design-tokens.json

Known deviations (be aware, do not copy)

Checklist before a UI change is done

Resume one page · web and A4 print

The Terminal rules applied to a page people read on screen and print. Reference implementation in this repo: index.html + resume.css + resume.js (data in _data/*.json). The PDF is the browser's print of the same page: one layout, not two.

Rules

Tokens

elementscreenprint
body13px/1.5, monospace stack of the Terminal, max-width: 96ch9.5pt/1.35, page margin 14mm
name h124px bold20pt
section h216px, rule var(--bd)11.5pt, break-after: avoid
dimopacity: .6opacity: .6
colours--bg --fg --bd from Tokens above; auto = no data-theme attribute and a prefers-color-scheme rule--bg:#fff --fg:#000 --bd:#999 whatever the theme
e-ink#fff / #000, font-weight: 600n/a

Components

Entry with a detail line

Motius GmbH                   München, Germany
Tech Specialist · FunKI         2022 - Present
↳ Channel Estimation · Python MATLAB
  Implemented least-squares and MMSE estimators …

Fold: open and closed

↓ Motius GmbH      (open: header + detail lines)
  Tech Specialist · FunKI
  ↳ Channel Estimation …
› Fraunhofer IIS   (closed: header only)
  Research Assistant · Positioning

Skills: About rows

   Languages  Python · MATLAB · C++ · C
Technologies  Linux · Embedded C · Web of Things

Hint line (web only)

expand all (e) · collapse all (c) · theme (t) · print (p) · source
Kit: CSS
/* Resume: the terminalclock style sheet (STYLESHEET.html, section "Resume") applied to
   the web page and its print/PDF output. Monochrome: text, bold, dim. No icons, no colour,
   no filled buttons. Themes: auto (follows the visitor's system, live; the default), dark,
   light, e-ink. No data-theme attribute = auto. Print is always black on white. */
:root {
  --bg: #0b0b0b;
  --fg: #ddd;
  --bd: #333;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --bg: #fafafa;
    --fg: #111;
    --bd: #ccc;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #fafafa;
  --fg: #111;
  --bd: #ccc;
  color-scheme: light;
}
:root[data-theme="eink"] {
  --bg: #fff;
  --fg: #000;
  --bd: #000;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
}
body {
  font:
    13px/1.5 ui-monospace,
    Menlo,
    Consolas,
    "DejaVu Sans Mono",
    monospace;
  padding: 28px 6vw 80px;
}
:root[data-theme="eink"] body {
  font-weight: 600;
}
main {
  max-width: 96ch;
  margin: 0 auto;
}
a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--bd);
}
a:hover {
  border-bottom-color: var(--fg);
}
.dim {
  opacity: 0.6;
}
.b {
  font-weight: 700;
}

h1 {
  font-size: 24px;
  margin: 0 0 4px;
}
h2 {
  font-size: 16px;
  margin: 30px 0 8px;
  border-bottom: 1px solid var(--bd);
  padding-bottom: 4px;
}
header p {
  margin: 2px 0;
}
.sep:before {
  content: " \00B7  ";
}

/* entry: bold name + dim line left, dim place + dates right */
.entry {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 18px;
  margin: 10px 0 2px;
}
.entry .r {
  text-align: right;
  opacity: 0.6;
}
.entry .sub {
  opacity: 0.6;
}

/* foldable entries: summary is the entry header, the marker is a glyph from the guide */
details.job {
  margin: 0;
}
details.job > summary {
  list-style: none;
  cursor: pointer;
  position: relative;
}
details.job > summary::-webkit-details-marker {
  display: none;
}
details.job > summary:before {
  content: "\203A";
  position: absolute;
  left: -2.2ch;
  top: 0;
  font-weight: 700;
}
details.job[open] > summary:before {
  content: "\2193";
}

/* detail lines belong to the entry above: ↳ */
ul.items {
  list-style: none;
  margin: 2px 0 6px;
  padding: 0;
}
ul.items li {
  padding-left: 2ch;
  text-indent: -2ch;
  margin: 3px 0;
  max-width: 90ch;
}
ul.items li:before {
  content: "\21B3  ";
  opacity: 0.6;
}
.tag,
.langs {
  opacity: 0.6;
}
.langs {
  display: block;
  max-width: calc(var(--limit, 90) * 1ch);
}
.tag:before {
  content: " \00B7  ";
}
p.desc {
  margin: 2px 0 8px;
  max-width: 90ch;
}

/* publications: [n] in dim, newest first; the abstract folds */
ol.pubs {
  list-style: none;
  margin: 6px 0;
  padding: 0;
  counter-reset: pub;
}
ol.pubs li {
  counter-increment: pub;
  position: relative;
  padding-left: 5ch;
  margin: 10px 0;
  max-width: 90ch;
}
ol.pubs li:before {
  content: "[" counter(pub) "]";
  position: absolute;
  left: 0;
  opacity: 0.6;
}
details.abs {
  margin: 2px 0 0;
}
details.abs > summary {
  list-style: none;
  cursor: pointer;
  opacity: 0.6;
}
details.abs > summary::-webkit-details-marker {
  display: none;
}
details.abs > summary:before {
  content: "\203A  ";
}
details.abs[open] > summary:before {
  content: "\2193  ";
}

/* skills: the About pattern, dim right-aligned label + plain value */
/* strict line limit (--limit characters, personal.json options.max_line_chars): lists wrap between items */
.it {
  white-space: nowrap;
}
.rows {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 2px 2ch;
  margin: 6px 0;
  max-width: calc(var(--limit, 90) * 1ch);
}
.rows dt {
  text-align: right;
  opacity: 0.6;
}
.rows dd {
  margin: 0;
}

/* shortcuts are text with the key in brackets; one dim hint line */
button.link {
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}
button.link[aria-pressed="true"] {
  font-weight: 700;
}
button.link[aria-pressed="true"]:before {
  content: "\203A ";
}
.hint {
  margin-top: 44px;
  opacity: 0.6;
  font-size: 12px;
}
.hint button.link {
  opacity: 1;
}

@media (max-width: 640px) {
  body {
    padding: 20px 5vw 60px;
  }
  .entry {
    grid-template-columns: 1fr;
  }
  .entry .r {
    text-align: left;
  }
}

@media print {
  @page {
    size: A4;
    margin: 14mm;
  }
  :root:root,
  :root[data-theme] {
    --bg: #fff;
    --fg: #000;
    --bd: #999;
    color-scheme: light;
  }
  body {
    padding: 0;
    font-size: 9.5pt;
    line-height: 1.35;
    font-weight: 400;
  }
  main {
    max-width: none;
  }
  h1 {
    font-size: 20pt;
  }
  h2 {
    font-size: 11.5pt;
    margin: 12pt 0 4pt;
    break-after: avoid;
  }
  .hint,
  .themes {
    display: none;
  }
  details.job > summary:before {
    content: none;
  }
  .entry {
    grid-template-columns: 1fr auto;
  }
  .entry .r {
    text-align: right;
  }
  .entry,
  ul.items li,
  details.job,
  ol.pubs li {
    break-inside: avoid;
  }
  details.abs > summary:before {
    content: none;
  }
  a {
    border: 0;
  }
}

/* controls that need JavaScript (theme, fold-all, print) are hidden without it; the page itself,
   its folds (<details>) and the auto dark/light theme (a CSS media query) work without */
.jsonly {
  display: none;
}
.js .jsonly {
  display: revert;
}
Kit: markup
<details class="job" open>
  <summary>
    <div class="entry">
      <div><span class="b">Company</span><br><span class="sub">Role<span class="sep"></span>Team</span></div>
      <div class="r">City, Country<br>2022 - Present</div>
    </div>
  </summary>
  <ul class="items">
    <li><span class="b">Detail title</span><span class="tag">Python MATLAB</span><br>One plain paragraph.</li>
  </ul>
</details>

<dl class="rows"><dt>Languages</dt><dd>Python<span class="sep"></span>C++</dd></dl>

Checklist

CV many pages · A4 print and long web page

Everything in Resume applies (tokens, glyphs, entries, links, themes, keys); the CV only adds length. Same resume.css plus the block in the kit below.

Rules

Tokens

elementvalue
body, headings, dim, coloursas Resume
year column12ch, dim, right-aligned, white-space: nowrap
gap between rows10px (screen) · 6pt (print)
publication hangpadding-left: 5ch; text-indent: -5ch
running header / footer8pt, dim, @page margin boxes (Chromium 131+; other browsers print without)

Components

Timeline rows

2022 - Present  Motius GmbH, München
                Tech Specialist · FunKI
                ↳ Channel Estimation · Python MATLAB
2019 - 2022     Fraunhofer IIS, Nürnberg
                Research Assistant · Positioning

Publications

[3]  S. U. Ali, A. Author. Title of the paper.
     Venue, 2024 · doi:10.0000/xxxx
[2]  A. Author, S. U. Ali. Another title.
     Venue, 2023

Running header (print)

Sheikh Usman Ali · Curriculum Vitae                                                              2/3
Kit: CSS added to resume.css
/* CV = resume.css (which already has the [n] publication list and the folding abstract) plus: a year column and a running header. */
.cv-rows{display:grid;grid-template-columns:12ch 1fr;gap:10px 2ch;margin:6px 0}
.cv-rows dt{text-align:right;opacity:.6;white-space:nowrap}
.cv-rows dd{margin:0}
.cv-rows dd .sub{opacity:.6}
details.sec{margin:0}                         /* a CV section that folds on the web */
details.sec>summary{list-style:none;cursor:pointer}
details.sec>summary h2{display:inline-block;width:100%}
@media print{
  @page{size:A4;margin:16mm 14mm 18mm;
        @top-left{content:"Sheikh Usman Ali \00B7  Curriculum Vitae";font:8pt ui-monospace,monospace;opacity:.6}
        @bottom-right{content:counter(page) "/" counter(pages);font:8pt ui-monospace,monospace;opacity:.6}}
  .cv-rows>*{break-inside:avoid}
  details.sec>summary:before{content:none}
}
Kit: markup
<details class="sec" open>
  <summary><h2>Experience</h2></summary>
  <dl class="cv-rows">
    <dt>2022 - Present</dt>
    <dd><span class="b">Company</span>, City<br><span class="sub">Role<span class="sep"></span>Team</span>
        <ul class="items"><li><span class="b">Detail</span><span class="tag">Python</span><br>Plain paragraph.</li></ul></dd>
  </dl>
</details>

<ol class="pubs">
  <li><span class="b">Title</span><br><span class="b">S. U. Ali</span>, A. Author<br><span class="dim">Venue, 2024.</span>
    <details class="abs"><summary>abstract</summary><p class="desc">Text.</p></details></li>
</ol>

Checklist

Presentation 16:9 deck · fullscreen · PDF handout

The Terminal rules on a slide: one frame, one idea, only text, bold and dim. Try the deck below (click it, then ← →, n notes, f fullscreen).

╭──────────────────────────────╮
│                              │
│   Title in one line          │
│   Name · Place · 2026        │
│                              │
╰──────────────────────────────╯
◀ back next ▶

One idea per slide

  • The first point
  • The point being made
  • The next point
Notes: say the source here. Not printed.
◀ back next ▶

    

source or unit, one dim line

◀ back next ▶

· · ·

Rules

Tokens

elementat 1280 × 720unit used
title h148px bold3.8cqw
body28px, line-height 1.32.2cqw
source, frame, big-digit rows20px dim1.6cqw
footer, notes16 to 19px dim1.3 to 1.5cqw
safe margin64px sides, 76px bottom5cqw / 6cqw
colours--bg --fg --bd as Tokens above; print forces #fff / #000
Kit: CSS
/* Presentation: a 16:9 deck. Needs --bg --fg --bd from the Tokens table. Sizes are container
   units, so the same slide is 28px text at 1280 wide and scales to any screen or projector. */
.sl-deck {
  position: relative;
  aspect-ratio: 16/9;
  container-type: inline-size;
  overflow: hidden;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--bd);
  outline: 0;
}
.sl {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  display: none;
  flex-direction: column;
  justify-content: center;
  padding: 5cqw 5cqw 6cqw;
  font:
    2.2cqw/1.3 ui-monospace,
    Menlo,
    Consolas,
    "DejaVu Sans Mono",
    monospace;
}
.sl.on {
  display: flex;
}
.sl h1 {
  font-size: 3.8cqw;
  line-height: 1.15;
  margin: 0 0 0.7em;
}
.sl p {
  margin: 0 0 0.6em;
  max-width: 40ch;
}
.sl .dim,
.sl .src {
  opacity: 0.6;
}
.sl .src {
  font-size: 1.6cqw;
}
.sl ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sl li {
  position: relative;
  padding-left: 2ch;
  margin: 0.3em 0;
  opacity: 0.6;
} /* every point stays visible */
.sl li.now {
  opacity: 1;
  font-weight: 700;
}
.sl li.now:before {
  content: "\203A";
  position: absolute;
  left: 0;
} /* the current point */
.sl pre {
  margin: 0;
  font-size: 1.6cqw;
  line-height: 1;
  white-space: pre;
} /* frames and big digits */
.sl pre.sl-frame {
  font-size: 2.2cqw;
  line-height: 1.1;
} /* the title slide frame: bars connect */
.sl-foot {
  position: absolute;
  left: 5cqw;
  right: 5cqw;
  bottom: 2cqw;
  display: flex;
  justify-content: space-between;
  opacity: 0.6;
  font-size: 1.3cqw;
}
.sl-notes {
  display: none;
  position: absolute;
  left: 5cqw;
  right: 5cqw;
  bottom: 5cqw;
  border: 1px solid var(--bd);
  background: var(--bg);
  padding: 1cqw 1.5cqw;
  font-size: 1.5cqw;
}
.sl-deck.notes .sl-notes {
  display: block;
} /* n toggles; never printed */
@media print {
  @page {
    size: 1280px 720px;
    margin: 0;
  }
  .sl-deck {
    aspect-ratio: auto;
    border: 0;
    overflow: visible;
    background: #fff;
    color: #000;
    container-type: normal;
  }
  .sl {
    display: flex !important;
    position: relative;
    width: 1280px;
    height: 720px;
    break-after: page;
    font-size: 28px;
    --bg: #fff;
    --fg: #000;
    --bd: #999;
  }
  .sl h1 {
    font-size: 48px;
  }
  .sl .src {
    font-size: 20px;
  }
  .sl pre {
    font-size: 20px;
  }
  .sl pre.sl-frame {
    font-size: 28px;
  }
  .sl-foot {
    font-size: 16px;
  }
  .sl li {
    opacity: 1;
  }
  .sl li.now {
    font-weight: 400;
  }
  .sl li.now:before {
    content: none;
  } /* handout: every point plain */
  .sl-notes {
    display: none !important;
  }
}
Kit: JavaScript
// tcDeck(root): root = .sl-deck holding .sl sections. Keys while it has focus:
//   → space  next point, then next slide      ← backspace  back      f  fullscreen      n  speaker notes
// Lists reveal one point at a time: the current <li> is bold with ›, the others stay dim.
function tcDeck(root) {
  const s = [...root.querySelectorAll(".sl")];
  let i = 0,
    k = 0;
  const pts = () => [...s[i].querySelectorAll("li")];
  const mark = () => pts().forEach((x, j) => x.classList.toggle("now", j === k));
  s.forEach((x, n) => {
    const no = x.querySelector(".no");
    if (no) no.textContent = n + 1 + "/" + s.length;
  });
  const go = (n, end) => {
    i = Math.max(0, Math.min(s.length - 1, n));
    s.forEach((x, j) => x.classList.toggle("on", j === i));
    k = end ? Math.max(0, pts().length - 1) : 0;
    mark();
  };
  const next = () => (k < pts().length - 1 ? (k++, mark()) : go(i + 1));
  const back = () => (k > 0 ? (k--, mark()) : go(i - 1, true));
  root.tabIndex = 0;
  root.addEventListener("keydown", (e) => {
    if (e.key === "ArrowRight" || e.key === " ") next();
    else if (e.key === "ArrowLeft" || e.key === "Backspace") back();
    else if (e.key === "f")
      document.fullscreenElement ? document.exitFullscreen() : root.requestFullscreen();
    else if (e.key === "n") root.classList.toggle("notes");
    else return;
    e.preventDefault();
  });
  go(0);
  return { next, back };
}
Kit: markup (three slides)
<div class="sl-deck" id="deck">
  <section class="sl">
    <pre class="sl-frame">╭──────────────────────────────╮
│                              │
│   Title in one line          │
│   Name · Place · 2026        │
│                              │
╰──────────────────────────────╯</pre>
    <div class="sl-foot"><span>◀ back   next ▶</span><span class="no"></span></div>
  </section>
  <section class="sl">
    <h1>One idea per slide</h1>
    <ul><li>The first point</li><li class="now">The point being made</li><li>The next point</li></ul>
    <div class="sl-notes">Notes: say the source here. Not printed.</div>
    <div class="sl-foot"><span>◀ back   next ▶</span><span class="no"></span></div>
  </section>
  <section class="sl">
    <pre id="bignum"></pre>
    <p class="src">source or unit, one dim line</p>
    <div class="sl-foot"><span>◀ back   next ▶</span><span class="no"></span></div>
  </section>
</div>

Checklist