8 November 2026

Reviewing the design: a palette by roles

The pages of tabelline grew faster than their palette. Six colours named after Munari's shapes still paint everything, but which colour a new element should take is decided case by case, the yellow that should only warn does five other jobs, and galleries are copied from post to post. This post looks at what we have, proposes a palette by roles (neutral, primary, secondary, status and data) for both looks, maps every component to it, and lists the choices to make. What is chosen becomes the new Design Ref.

Everything below that shows a colour uses the proposed tokens, live, in the look picked at the top of the page: switch it to see the quaderno's version. The contrast numbers are computed when the page is built, from the fixed values of the two looks.

What we have

The Design Ref records the design as it is. Munari draws everything with six colours named after where they go: paper, ink, and the circle, the square, the triangle and a fourth. Here are the jobs each one does today:

Six colours, and their jobs
in the Munari look, on 8 November 2026
jobswhere it goes
paper1the page, and mixed into every tint
ink6text, headings, links, rules, code edges, the switch and the tabs
circle8section markers, the indice, kickers, ### headings, link underlines, code keywords, the rosa note, the line under a table's heading
square3the cover, code strings, the azzurra note
triangle6the cover, the plain note, table group headings, quotes, link hover, highlights
fourth2the verde note, numbers in code
From docs/munari.nim and the devlog post Munari meets Japan.
Fixed colours in the sources of the pages
distinct hex values per file, 115 in all
hex values
devlog/palettes.nim31
quaderno.nim22
design.nim14
explainer.nim12
parti.nim8
munari.nim7
specs.nim7
coverage.nim5
devlog/designing_0_1.nim5
devlog/tabellone.nim4
Counted on 8 November 2026 (snapshot in devlog/data/design-review/); files with fewer than three are left out.

Five things don't hold up:

  1. The roles are implicit. A colour named circle tells you its shape, not its job; to pick one for a new element you look for something similar and copy it.
  2. The triangle should only warn, the rule says, yet its yellow fills plain notes, group headings, quotes, link hover and highlights. A real warning has nothing left to look like.
  3. Notes have colours but no meanings. azzurra has come to mean a living document and verde something done, by habit; rosa and the plain note mean whatever the writer wanted.
  4. Components are copied, not shared. Each post with a gallery carries its own CSS for it; the tables of the docs take optQuaderno() and Munari paints over it with !important.
  5. The quaderno has fixed colours only, so it can't follow a palette, and a few posts (the palettes post most of all) write their own hex values.

Shape is one thing, colour another

Today shape and colour are welded together. Each shape has one colour (the circle is always the circle's colour) and the colours are named after the shapes (--m-cerchio), so a colour means "the circle's job" and a circle can only be one colour. They can be pulled apart: two channels, each saying one thing.

Each shape keeps a default colour (the circle primary, the triangle warning, the square secondary) and takes another only for a reason that can be said in words. Here is what that allows, drawn with the tokens below:

Parts of a page

Part 1: from zero

Part 2: the pieces

Part 3: how it is built

A page in three parts colours each section's circle by its part; the indice shows the parts at a glance.

How serious

Careful: this may change

This breaks: the API changed

Always a triangle, so always a warning; the colour says how serious.

Categories in data

three series

Colour and shape together tell series apart, and still do without colour.

What it gains

  1. Meaning never rests on colour alone. The kind of thing is in its shape, so a reader who doesn't see the colours (colour blindness, a print in black and white) still gets it; WCAG's Use of Color asks exactly this.
  2. Colour is free to say more: the part of a page (your three-part structure), how serious a warning is, a category of data.
  3. A palette changes colours only. Swapping Haru for another palette, or the quaderno for Munari, leaves every shape where it is; the tokens below are named by role, not by shape.
  4. Shapes can mark data: a legend or a column of markers can use shape and colour together.

What it costs

  1. It departs from Munari's covers, where the three shapes come in three fixed colours. The page cover can keep that as a picture; the rule is about what shapes and colours mean.
  2. More combinations, more noise. A shape in a colour with no reason is decoration, which the pages forbid. Hence the rule: the default colour, unless the reason can be said.
  3. The yellow triangle is a convention the world reads as "warning". A triangle in another colour reads a little less so; its colours stay among the status colours. And it is drawn as a road sign, yellow with an ink edge: a yellow shape on its own pale yellow note has far less than the 3:1 contrast a graphic needs (WCAG 1.4.11).
  4. The square needs a job or it is decoration. As the shape of the sheet itself it has one; as a separate mark it would look like a checkbox, and is not allowed. Today it is barely visible: the cards of a gallery have only a pencil border. So every sheet set apart (a note, a card, a card of a gallery) carries the square's straight top edge in its colour, secondary unless a reason says otherwise.

So: shape for kind, colour for role, a default colour per shape, and another colour only with a reason.

A palette by roles

Design systems agree on a simple idea: name colours after what they do, and give every role the same few shades. Here are five roles, simplest first.

Neutral

A scale from paper to ink in ten steps, mixed in OKLab. It does most of the work: the page, the text, rules, code backgrounds, grey text. --n-0 is the paper and --n-9 the ink; one more token, --surface, is a sheet a little whiter than the paper, for code and tables.

0123456789

Primary, secondary, and two for status

Each colour role has three tokens: the colour itself (--primary) for shapes and edges, a soft version mixed into the paper (--primary-soft, for backgrounds) and a text version mixed with ink (--primary-text), dark enough to read.

primarythe circle: sections, kickers, links
colour · soft · text
secondarythe square: info, living documents
colour · soft · text
warningthe triangle: warnings only
colour · soft · text
successthe fourth: done, works
colour · soft · text

Data

Tables and charts need more colours than a page does. Three kinds, each from the roles above so a table belongs to the page it is on:

Since a tabelline colour can be a CSS variable (fmtBar(color = "var(--secondary)")), a table can use them directly.

Can it be read?

Text tokens must reach 4.5:1 against the paper (WCAG AA for body text). With a colour mixed half and half with ink, primary, secondary and success pass in both looks, on paper and on their soft tints. Warning doesn't, in either look. Today's --m-cerchio-testo, which has only a quarter of ink, passes on paper but not on its own soft background.

Contrast of the text tokens
WCAG 2 ratio; 4.5 or more reads as body text
on paperon its soft
Munari (Haru)
--n-75.955.45
--primary-text7.395.96
--secondary-text5.875.09
--warning-text4.494.21
--success-text5.875.09
Quaderno
--n-74.924.55
--primary-text10.437.21
--secondary-text8.726.36
--warning-text3.943.70
--success-text6.505.22
Munari today
--m-cerchio-testo4.653.83
--n-7 (grey text) is measured on --n-1. In bold: below 4.5. Computed when this page was built.

The yellow is the hardest: even mixed half with ink, which turns it olive, it falls short in both looks. So the rule stays as it is, and --warning-text is dropped: the warning colour is never text; a warning is ink on its soft background, with the triangle beside it.

Every component, mapped

Each component of the pages takes its colours from a token. The table is the proposal, grouped from the simplest piece to the most complex, with today's colour for comparison.

Every component and its token
the proposal, and today's colour in the Munari look
proposedtoday
Page
background--n-0paper
text--n-9ink
grey text (captions, dates, footer)--n-7ink 62% in paper
rules and borders--n-3ink 12% in paper
Text
section marker, indice numbers (a circle)--primarycircle
kicker, ### headings--primary-textcircle text
link underline--primarycircle text
link hover--primary-softtriangle
highlight (<mark>)--warning-softtriangle 55%
quote edge--n-4triangle
Code
code sheet--surfacewhite 60% in paper
output, inline code--n-1ink 6% in paper
keywords--primary-textcircle text
strings--secondary-textsquare text
numbers--success-textfourth text
comments--n-7grey
"show code" fold under a table--secondarysquare (from #16)
Notes
plain note--n-1triangle 38% in paper
info, living document--secondary-softsquare 20% (azzurra)
done, works--success-softfourth 26% (verde)
missing, differs from gt--primary-softcircle 20% (rosa)
warning (new), with the triangle--warning-softnone
Navigation
cards of living documents--secondary-softsquare 20%
tabs, look switch (selected)--n-9ink
gallery card edge--n-3currentColor 18%
gallery card number--n-7currentColor 60%
Tables
top and bottom rule--n-9ink, over optQuaderno
line under the heading--primarycircle
row lines--n-3ink 12% in paper
group headings--n-1triangle 22% in paper
bars (fmtBar)--secondaryfixed per table
data coloursdata palettesfixed per table

Shapes keep their default colour in this table; a page in parts or a warning that breaks something may give them another, as above. Four changes stand out. The yellow is freed: plain notes, quotes and group headings go neutral, and link hover takes the primary's soft tint, so the triangle's colour is left to warnings (and to the highlighter pen, a choice below). Notes get meanings: info, done, missing, and a new warning note with the triangle. Tables follow the page instead of being painted twice. The quaderno gets the same tokens, mixed from its own seven values (blue pen as primary, red pen as secondary), so a component is written once for both looks.

The components, in the proposed palette

Swipe through the components, drawn with the tokens only. Switch the look at the top to see the same cards as a quaderno.

1 of 6

Text

Kicker

A section

Body text in ink, a link, a touched link, a highlight and grey text.

A quote: a grey edge, nothing else.
2 of 6

Notes

Plain: an aside.
Info: a living document, a page to go to.
Done: what works.
Missing: a gap, or a difference from gt.
Warning: the API will change.
3 of 6

Code

let answer = 6 * 7 # a comment echo "the answer is ", answer
the answer is 42
4 of 6

Navigation

  1. What we have
  2. A palette by roles
  3. Every component
Design Refa card of a living document
👑 Nim🐍 Python🏴‍☠️ R
the tabs, the switch
5 of 6

A table

Three tabelline
×result
small
2 × 36
4 × 520
bigger
6 × 742
6 of 6

Data

sequential

diverging

categorical (the parts of a table)

Choices to make

Each has my recommendation first. What you pick goes into the next PR and the Design Ref.

  1. Token names. English role names (--n-0…--n-9, --primary, --primary-soft, --primary-text, …), the same in both looks, or Italian ones like the rest of the theme (--neutro-*, --primario, …). Recommended: English, since agents and other projects read them.
  2. Shape apart from colour. Shape says the kind (circle a place, triangle a warning, square a sheet), colour says the role, each shape has a default colour and takes another only with a reason, or each shape keeps its one colour as today. Recommended: apart.
  3. "Missing / differs" notes. The primary's soft tint (as the rosa note is today), or a separate accent (an orange such as 洒落柿 sharegaki) so primary stays only "this is tabelline". Recommended: primary soft: one colour fewer.
  4. The highlighter. <mark> keeps the warning's soft yellow (a highlighter pen is yellow), or it takes the primary's soft tint so yellow means warning only. Recommended: keep yellow; it is never a shape, so it can't be mistaken for the triangle.
  5. Tables. A preset in the library that uses the tokens (optQuaderno(): colours as var(--n-9), …, so a table follows whichever look the page has) and replaces optQuaderno() in every page; optQuaderno itself is removed before 0.1 is tagged, or kept as a library preset for people who like it. Recommended: replace, and keep optQuaderno out of 0.1; that needs a word with the 0.1 build thread.
  6. The quaderno. It gets the same tokens from its seven values (blue pen primary, red pen secondary), or stays as it is, frozen. Recommended: tokens, so new components work in both.
  7. Coloured parts. On a page in parts, each section's circle (and its entry in the indice) takes the colour of its part, or every circle stays primary. Recommended: try it on the Design Ref first, the first page written in three parts.

What happens next

When you have picked, one PR does it all:

How it is built

This page computes everything it shows. Each look is seven hex values (paper, ink, primary, secondary, warning, success, and the paper again for the surface); tokens mixes them in OKLab, the space CSS's color-mix(in oklab, ...) uses, with Björn Ottosson's matrices: the ten neutral steps put 0, 4, 8, 14, 25, 40, 55, 65, 80 and 100% of ink in the paper; a soft tint is 22% of the colour in paper; a text colour is 50% of the colour in ink. The tokens are written as CSS variables on html (the quaderno) and on html[data-tema="munari"], so every swatch, card and table here changes with the look switch. Contrast is the WCAG 2 ratio of the two relative luminances. The fixed-colour count read every .nim file under docs/ and counted the distinct #RRGGBB values once, on 8 November 2026; it is kept as a dated snapshot, docs/devlog/data/design-review/hex-colours.tsv, so the post keeps its numbers as the pages change.