Dokumentation · Design
Design direction
Task A2, written 15 November 2026. The notation manual (notation-manual.md) fixes what marks and colours mean.
This document fixes everything else: the idea, the type, the tokens, the grid, the composition of the three page
levels, motion, interaction, states, widths and accessibility. The prototype in prototype/ shows it.
1. The idea
Only meaning has colour. The interface is ink on paper: no brand colour, no tinted panels, no frames. The notation allows three hues and gives each one meaning, so the design gives the whole page to them: a page on which nothing changed is grey, and on a page where something did, the green and the red are the first things seen. The character comes from three things the notation leaves free. Type: one family with a width axis, set large and plain for the message a page opens with, and narrow with tabular figures wherever a number stands, so the figures look like the register of a meter. Density: charts are drawn to the edge of their column, every line on the page is an axis or a table rule, and space, not boxes, separates things. **Motion that explains**: figures roll like a meter's counter when the accounting method changes, last year's column becomes this year's, a site opens into its metering points on the scale it already had.
The subject supplied the vocabulary: the meter and its counter, the hour and the day, the grid's own distinction between what is measured, what is estimated and what is still to come.
What was rejected, and why: a product colour (it would be the fourth hue, and the only one without a meaning); a dark "control room" look as the default (it reads as monitoring, and the owner's readers print and forward these pages); framed cards (section 13 of the manual); a display typeface for the message (the notation's rule against decorative type is right: the message is a sentence to be read, not a headline to be admired).
2. Typography
One family: Archivo (Omnibus-Type; SIL Open Font License 1.1, free to ship and to subset). A grotesque with
two variable axes, weight 100–900 and width 62–125 %. It was chosen for four properties, checked in the font
file: tabular figures (tnum), the glyphs the notation needs (Δ, −, ₂, æ ø å, …), a true narrow width, and
plain, upright forms without ornament. The prototype ships a Latin subset of 88 KB as one file
(prototype/fonts/, with the licence). Fallback: system-ui.
The width axis does a job. A label must stand horizontally above a column that may be 20 px wide, and a table must hold six columns on a phone. Narrow type makes both possible without shrinking it below 12 px.
| Role | Size / line | Weight | Width | Notes |
|---|---|---|---|---|
| Message | 35 / 41 px at 1280, fluid down to 23 / 27 px | 560 | 88 % | Sentence case, at most 31 em wide, cited numbers underlined in the highlight blue |
| Card figure | 23 px at every width / 1.1 (B20, the compact card; it was 46, 40 and 36) | 560 | 72 % | Tabular; the unit beside it at 14 px, weight 500; it stands to the right of the label and of what narrows it, not above them |
| Title lines, body, controls | 14 / 20 px | 400; the measure and chosen controls 650 | 96 % | |
| Subtitle of a visual | 14 / 19 px | 650 | 96 % | |
| Table | 13 / 18 px | 400; header 650; totals 700 | 90 % | Tabular |
| Chart labels | 12 px | 450; totals and open rows 700 | 82 % | Tabular; never below 12 px |
| Card variances | 13 / 19 px | 400 | 88 % | Tabular |
| Caveats, notes, key | 12.5–13 / 17 px | 400 | 96 % | Secondary text colour |
Scale: 12 · 13 · 14 · 23–35 · 46. The gap between 14 and the message is deliberate: a page has reading text, labels, and one sentence that matters.
X1 in a style that fits its first screen (O1f, O1g; the owner's yes of 29 November 2026 for the one-screen Overblik): the message
is set by the style's fitted tokens (message.fitWidth, type.message.fitSize). In Analytisk that is **25 px at 1 440 (fluid from
20 px, clamp(20px, 1.75vw, 25px)), line 1.172, weight 560, width 88 %, at the page's width**: about 132 characters a line at
1 440, twice the 31 em above. Why: at 35 px in 31 em the message took four lines (164 px), and the first screen at 1 440 × 900 has
4–5 px of slack; a narrower measure takes a third line (about +29 px) that it does not have. It is the cost of the one screen,
and it stays until the owner rules on a cap (asked). Every other page, and a page that does not fit, keeps the row above.
Numerals are lining and tabular everywhere a number can stand above or below another. Bold is semantic only (manual §7). No italics, no capitals for labels, no letter-spacing except −0.008 em on the message.
3. Colour tokens
The semantic colours are the manual's. Everything else is neutral. Names are those of prototype/style.css.
| Token | Light | Dark | Use |
|---|---|---|---|
--page | #FFFFFF | #17181A | The one ground. There is no second surface |
--text | #000000 | #F2F2F2 | Text, labels, focus outline, tooltip edge. 21:1 / 15.9:1 |
--text-2 | #595959 | #B0B0B0 | Secondary text, units, legends. 7.0:1 / 8.2:1 |
--assist | #F1F1F1 | #26282B | Hover band, selected row, empty band of an absent value |
--rule | #000000 | #F2F2F2 | Table header and total rules |
--rule-2 | #BFBFBF | #55585C | The two rules of the filter row, the hairline above cards, day boundaries |
--total | #F2F2F2 | #232527 | Ground of a totals row |
--grid | #E2E2E2 | #303236 | Value grid where marks have no labels |
--ac | #404040 | #DCDCDC | Actual: solid fill, hatch stripes, outlines. 10.4:1 / 13.0:1 |
--py | #A6A6A6 | #747474 | Earlier measured values and their variance axes. 2.4:1 / 3.8:1 against the page, 4.3:1 / 3.4:1 against AC |
--axis | #404040 | #BFBFBF | Category axes |
--good | #2BA84A | #7BC043 | A change for the better. 3.1:1 / 8.0:1 |
--bad | #B81414 | #E5484D | A change for the worse. 6.7:1 / 4.5:1 |
--neutral, --highlight | #1F6FD1 | #5B9BFF | A change that is neither; the ring. 4.9:1 / 6.4:1 |
--scale-band | #DCE8FA | #22324E | The band that marks a deviating scale (manual §5). Not needed in the prototype: no page deviates |
--heat-0 … --heat-6 | #E9E9E9 #D2D2D2 #B4B4B4 #929292 #6E6E6E #484848 #1E1E1E | #26282B #3A3D41 #54585C #72767B #94989C #BBBEC1 #EDEDED | Heat map ramp, low to high |
Checks made (palette validator of the visualisation guidance, 15 November 2026):
- The three impact colours in the light theme pass every check: separation for red-green colour blindness 13.3 (target 8), 9.2 for blue-yellow, at least 3:1 against the page.
- In the dark theme separation is 10.4 and 8.1 and contrast passes. One check is reported as failed and is accepted: the green and the blue are lighter than the band the validator recommends for series colours. The band is a rule for series that should look equally heavy; here the difference in lightness between green and red is what keeps them apart for colour-blind readers, and darker greens were tried and dropped to 3.4–6.3.
- The dark theme is chosen, not inverted: the relations hold (AC has the highest contrast, PY is quieter, the
heat ramp runs towards contrast with the page), and every colour was checked against
#17181A. - Impact colours never carry text. Variance numbers are in the text colour with a small coloured mark beside them.
The light theme is the default of every style, whatever the system setting says (S7, the owner's ruling of 30 November 2026); the theme can be switched in the top bar, and the choice is remembered on the device as a convenience. A first visit wears Varm skifer, in its light theme; a saved style and a saved theme win.
4. Grid and density
| 1280 px and wider | Below 1100 px | Below 760 px (phone) | |
|---|---|---|---|
| Page margin | 24 px | 24 px | 16 px |
| Columns | 12, gutter 40 px | 12, every cell full width | 1 |
| Vertical gaps | 34 px between cells, 26 px around the card row | same | 30 px |
| Content width | up to 1440 px, then centred | ||
| Cards | 4 in a row | 4 in a row | 1 in a row (B20: the compact card needs its variance lines whole, which two cards of 171 px do not hold) |
| Method switch | Choices side by side | A list | A list |
Density rules:
- A chart fills its cell. Its width is the cell's width; its height follows from the page scale and the number of rows, not from a fixed frame. 2. No boxes. Cells are separated by the gutter. The only horizontal rules that are not axes are the two lines of the filter row, the hairline above each card and the line above the key. 3. **The first screen at 1280 × 900 holds the message, the titles, the caveats, the cards and the top of the first chart.** An executive who does not scroll has the result and its two variances. 4. Labels on the marks, not in legends. A legend exists only for the heat map's colour scale and the key at the foot. 5. Row step 22 px in structure charts, 24 px in tables: dense enough for 16 rows in a third of a screen, large enough for a finger with the whole row as the target.
5. The three page levels
Every page has the same spine, in this order: top bar (organisation, the three levels, data-through date, theme) · filter row (selection, period, comparison, accounting method) · message · three title lines · caveats · the visuals · notes · key. What differs is what the visuals answer.
Overview (index.html; page X1)
Question: do we use and emit less than last year, are we on target, and can the figures be trusted?
message: consumption and emissions against last year, the site that rose most, the one that fell most
titles · caveats (coverage, factor status, mixed method)
┌ card ──────┐ ┌ card ──────┐ ┌ card ──────┐ ┌ card ──────┐
│ Elforbrug │ │ Scope 2,el │ │ Egen prod. │ │ Datadækn. │ figure · ΔPY · ΔPL · strip of ΔPY % per month
└────────────┘ └────────────┘ └────────────┘ └────────────┘
┌ per month ──────────────────────────────┐ ┌ per site ───────────┐
│ ΔPY % pins │ │ five largest rises │
│ ΔPY bars (8 of 12 columns) │ │ five largest falls │ one scale for the unit
│ AC columns, PY behind │ │ the rest · total │
└─────────────────────────────────────────┘ └─────────────────────┘
A card chooses the measure of the two charts; the fourth card (coverage) leads to the metering point that lowers it. The charts share the scale of their unit, so the total of the site variances is the same length as the sum of the monthly variance bars beside it.
Analysis (analysis.html; pages A1–A3 in one prototype page)
Question: which sites drive consumption and its change, and when is the power used?
message · titles · caveats
┌ per site, ranked ─────────────────────────────┐ ┌ load duration curve ─┐
│ name │ AC bar, PY behind │ ΔPY │ ΔPY % │ │ AC and PY, kW │
│ 15 rows, a row opens into its metering points │ │ key figures as table │
│ remainder (8 of 12 columns) │ └──────────────────────┘
└───────────────────────────────────────────────┘
┌ load by day and clock hour ───────────────────────────────────────────┐
│ day means (columns) │
│ heat map, 316 days × 24 hours hour means (bars) │ one kW scale with the curve
└───────────────────────────────────────────────────────────────────────┘
Choosing a site opens it in place and narrows the curve, the key figures and the heat map to it; the message and the first title line follow. The heat map is the widest thing in the product on purpose: it is the picture of a year.
Metering point (detail.html; page D1)
Question: what exactly was measured, with which quality, and how was the emission of each hour computed?
message for the chosen week · titles · caveats
week chooser
┌ per hour ───────────────────────────────────────────┐ ┌ master data ─┐
│ consumption, kWh per hour (columns) │ │ id, type, │
│ emission factor, g/kWh (thin line) │ │ grid area │
│ emissions, kg per hour (columns) (9 of 12) │ │ the tree │
└─────────────────────────────────────────────────────┘ └──────────────┘
┌ intervals of the week (table) ─────────┐ ┌ changed values (table) ────┐
└────────────────────────────────────────┘ └────────────────────────────┘
The three tiers share the time axis, so a reader sees in one column why an hour emitted what it did. Here the table is not behind a button: on the detail level the numbers are the content.
6. Where the wow comes from
It comes from four moments, each of which is the notation doing its work in front of the reader. None adds a mark, a colour or a shape the manual does not define.
| # | Moment | What happens | Why it breaks no rule |
|---|---|---|---|
| 1 | The message points at its evidence | The page opens with one large sentence. As the charts settle, blue rings draw themselves, in the order the sentence names them, around the same numbers in the cards and bars. Pointing at a number in the sentence thickens its ring | The ring is the notation's own highlight for a cited number (manual §14). Drawing it in sequence only adds the order of reading |
| 2 | Last year becomes this year | On the first view the columns stand at last year's height and grow or shrink to this year's; the variance bars and pins grow from their axes at the same time, green or red | The motion is the variance: the distance each column travels is the bar above it. It is linear, 0.64 s, and ends in the exact static chart |
| 3 | The counter rolls | Switch the accounting method and each digit of the emission figure rolls to its new value like the register of a meter, while the columns below move from the old method's values to the new and hatched tops appear where a method's factors are provisional | It shows that the same consumption is being read with another method (manual §8): the marks stay, their values change. Nothing is coloured, because a change of method is not a change for better or worse |
| 4 | A year in one picture, and a site that opens | The heat map shows 7.584 hours: weekends as light stripes, the summer holiday as a pale band, the school year in one site. Choose a site and its row opens into its metering points, bars growing out of the parent's on the same scale, while the picture of the year redraws for that site | The heat map follows manual §10 (ink ramp, legend, bars on the kW scale). The unfolding keeps the scale (manual §5), which is exactly what makes it readable |
A fifth thing is quieter and is what a second-time viewer notices: the honesty of the marks. A month whose
factors are not final has a hatched top as high as the part that can still move. A missing night is an empty
band that says how many hours it is. A target in another method gets i.r. and a reason.
7. Motion
Principles: motion shows what changed; it is linear, so a length in motion is never misread as accelerating; it is short; it never repeats; it always ends in the exact static drawing; labels appear with the final geometry, so no number is shown that is not a value.
| Motion | Trigger | What moves | Duration | Reduced motion |
|---|---|---|---|---|
| Variance forms | First view of the overview; a change of measure | AC columns from PY's height to their own; variance bars and pins from their axes | 640 ms, linear | The final chart at once |
| Method changes | The method switch, while emissions are shown | Columns, provisional tops, variance marks from old to new values | 420 ms, linear | The final chart at once |
| Counter rolls | Any change of a card's figure | Each digit rolls to its new value; a figure whose number of digits changes is replaced | 520 ms, ease-out | The new figure at once |
| Rings draw | After the charts have settled | Each ring is drawn once around, in the message's order | 450 ms each, 170 ms apart | Rings are present from the start |
| A row unfolds | Choosing a site in the ranked chart | Child rows open to full height and their bars grow at the parent's scale; closing reverses it | 340 ms open, 240 ms close, linear | Rows appear at once |
| Hover, focus, tooltip, theme | Pointer, keyboard, the theme button | Nothing is animated | 0 | Same |
Not animated, deliberately: page loads, section entrances, scrolling, the heat map, tables, the tooltip. A
newer change cancels a running one and starts from the current data. prefers-reduced-motion is honoured in
script and in the style sheet; with it set, every state is reached instantly and nothing is lost.
8. How a drill-down unfolds
- In place first. A site in the ranked chart opens under its own row; the parent stays, bold, as the sum
of its children. The scale is held from before the click, so the children's bars are visibly parts of the
parent's.
2. The page follows. The first title line gains the filter (
…, Hedelundskolen, 10 målepunkter), the filter row shows it, the message is rewritten for the selection, the address gainssted=…. The visuals that depend on the selection redraw; a unit keeps its meaning, and a scale that must change (a site's kW are not the organisation's) changes for every chart of that unit at once. 3. Then across levels. A card or a row leads one level down with the filters carried in the address: overview → analysis of that measure → metering point → (later) day and hour. Each level has its own message and titles; the way back is the browser's. 4. **A drill never changes what a colour or a fill means, and never changes a scale in the middle of a comparison.**
9. Hover and focus
| Behaviour | |
|---|---|
| Target | The whole category or row, full height or width, so a 2 px pin is as easy to hit as a column |
| Hover | The assisting grey behind the category, at once; a tooltip beside the pointer, never over the mark it describes |
| Tooltip | Title: what and when (okt 2026, tir. 3.11.2026 kl. 22:00–23:00). Rows: AC, PY, ΔPY, ΔPY %, with a small impact square before a variance. Then the states in words (Foreløbig: 100 % af værdien). The one floating layer: page ground, a 1 px edge in the text colour, a soft shadow |
| Heat map | The cell is outlined; the tooltip gives the cell, the mean of its day and the mean of its clock hour |
| Duration curve | A vertical hairline; the tooltip reads the curve as a sentence |
| Message | Pointing at a cited number thickens its ring |
| Focus | Tab reaches: skip link, levels, theme, method, cards, the rows of a structure chart that can be opened, the table buttons, scrollable regions. Focus shows the 2 px outline in the text colour and the same tooltip. Enter or Space opens a row; arrow keys move within the method switch; Escape closes the tooltip |
| Touch | A tap on a category shows its tooltip; a tap on a row that can be opened opens it |
Hover never recolours a mark and never uses an impact colour.
10. Empty, loading and error states
| State | What is shown |
|---|---|
| Loading | The frame of the chart at its final height with the title lines in place; no spinner, no skeleton animation. The message line reads Henter … |
| Being recomputed | The last figures stay, with a caveat: Tallene genberegnes. Siden opdateres, når de er klar. |
| No data for the filter | In the chart's place: Ingen værdier for Fjordskolen i uge 53. and one way out: Vælg en anden periode |
| Figure unavailable | In the figure's place: Ikke tilgængelig and the reason (Målepunktet har intet prisområde). Never 0 |
| Partly absent | Section 9 of the manual: bands, symbols, caveats |
| Variance not applicable | i.r. with the reason |
| Error | In the chart's place: what failed and what to do, without the raw error: Tallene kunne ikke hentes. Prøv igen. with a button of that name. The rest of the page stays |
| No access | Du har ikke adgang til dette sted. |
| First run, nothing loaded | The overview explains what is being fetched and how far it is (Henter måledata: 14 af 300 målepunkter) |
Texts state what happened and what the reader can do; they do not apologise.
11. Widths
Checked in a browser at 390 and 1280 px, light and dark.
| 1280 px | 390 px | |
|---|---|---|
| Message | 35 px, three lines | 23 px, five to six lines |
| Cards | Four in a row | Two by two; the strip narrows with the card |
| Monthly columns | Categories of about 67 px; relative labels with one decimal | Categories of about 30 px; relative labels without decimals; the tier label is Δ % |
| Site variances | Beside the months | Below them, at the same scale |
| Ranked chart | Three tiers | Two tiers (no absolute variance tier); names shortened in the middle |
| Heat map | 3 px per day, 10 px per hour, hour means beside it | 3 px per day, 8 px per hour, scrolls sideways inside its frame and opens at the newest days; hour labels at both ends; hour means in the table view |
| Hour chart | A week across the cell, about 5 px per hour | 6 px per hour, scrolls sideways inside its frame |
| Tables | In their cell | Scroll sideways inside their frame; the page never scrolls sideways |
| Method switch | Choices side by side | A list |
The page itself never scrolls horizontally. Where a chart is wider than a phone, it scrolls inside a frame that can be focused and is named for screen readers.
12. Accessibility
| Topic | What the design does |
|---|---|
| Contrast | Text 21:1 and 7:1 (light), 15.9:1 and 8.2:1 (dark). Marks at least 3:1, with the light PY fill in the light theme (2.4:1) as the stated exception: it is a fill that always stands beside AC and never carries text |
| Colour is never alone | Direction and sign carry a variance besides its colour; fills carry scenarios and quality; the states have words |
| Colour blindness | Section 3: green and red are separated by lightness as well as hue |
| Keyboard | Section 9. Tab order follows reading order. Nothing needs a pointer |
| Screen readers | Each chart is an image with a name that states measure, grouping and comparison, and has a real table with the same numbers behind Vis som tabel. Structure-chart rows that can be opened are buttons with a spoken summary and their open state. The message is a live region, so a change of method or selection is announced as its new sentence. Card figures are read as their text, not digit by digit |
| Zoom and text size | Layout in px for the marks, but the page reflows at 200 % zoom like the phone layout |
| Motion | Section 7 |
| Language | lang="da"; all interface text in one place in the product (strings.ts, architecture §7.5) |
| The executive pages get a print style for one landscape A4 page (architecture §7.2). The notation needs no change for print, because it never depended on colour alone. The prototype's print style only hides the controls |
13. What the prototype is and is not
It is three static pages with hand-written SVG and generated data, made to judge the design. It is not the chart package: the production charts are the copied package (architecture §7.5) extended by the heat map, the duration curve and the dense series, and they take these rules as their specification. Differences worth knowing:
- Period, selection and comparison are shown but fixed; the accounting method, the theme, the measure cards, the site drill-down and the week chooser work.
- The prototype shows PY as the only reference and PL only in the cards; PP, BY, BU and FC are specified in the manual and not drawn.
- The scale band, small multiples, the variance heat map and the incomplete state (A05) are specified and not drawn.
- The interval table of the detail page shows the week; the product pages it.
Kilde: docs/design/direction.md i løsningens
repository.