v0.2.2

Colour, material and imagery

What the surfaces are, what is shown on them, and where both come from. Covers colour strategy, material and light, choosing a visual medium, working when there are no assets, art-directing photographs, and delivery.

Contents

  1. Colour is a strategy before it is a palette
  2. Where colour comes from
  3. Building the colour system
  4. Material and light
  5. Choosing the medium
  6. When there are no assets
  7. Art-directing photographs
  8. Image treatments as a system
  9. Icons and small graphics
  10. Delivery
  11. Faults

1. Colour is a strategy before it is a palette

Choosing five swatches is not a colour decision. Decide the strategy first: how colour is structured and what it is for. The same hues give opposite results under different strategies.

StrategyStructureSuitsTrap
MonochromeOne hue, or none; value and scale do all the workType-led and Quiet work; a subject with one strong materialGrey timidity: push the value range to its ends
Ground-ledThe ground itself is the identity: saturated, dark or unusual; ink stays minimalBrands with one owned colour; short, bold pagesText contrast on the ground; fatigue on long reading
SignalA neutral field, and one colour reserved for exactly one meaningTools, services, anything with a primary action or a live stateThe signal leaking onto decoration until it means nothing
Two inksTwo colours used like print inks, including where they overlapEditorial, cultural, anything with a print heritageChoosing two inks that have no reason to meet
CodedColour carries data: categories, states, rangesDashboards, maps, catalogues, documentationToo many categories; no redundant encoding
SampledThe palette is measured from the subject: its materials, its photographs, its placeCraft, food, architecture, hospitality, productAveraging everything into beige; sample extremes too
Scene by sceneEach scene or issue has its own ground, inside a fixed frameSeries, collections, editorial, long narrativesRainbow without a rule: tie each ground to its content
One lightColour follows a light source that has a position and changes over timePlaces, products, atmospheres, immersive workA glow with no source
Full chromaMany saturated colours, organised by a strict rulePlay, culture, systems with many partsNo rule: it reads as noise

Write the strategy as one sentence in the direction brief, with its proportions: for example "Signal: 93% bone ground, 6% ink, 1% red, and red only ever marks live data." The proportion is the strategy. A page that is 60% ground, 30% second colour and 10% accent by habit has not chosen one.

2. Where colour comes from

Derive it, in this order of preference:

  1. Owned equity. A colour the organisation already uses and is known by. Use it with more conviction than they do.
  2. The subject's material. Measure real things: the product, the raw material, the place, the packaging, the tool. Sample from photographs of them. Record what each colour was sampled from.
  3. Function. What must be distinguished: states, categories, the one action. Colour that does a job is rarely generic.
  4. Process. The colours of how the thing is made or reproduced: print inks, thermal paper, blueprint, enamel, anodising, a particular screen.
  5. Light and place. The colour temperature of where and when the subject lives.

Do not derive colour from the category ("finance is blue, wellness is green") or from what looks expensive this year. Both lead straight to the twin. Run deal.mjs recent and avoid the palette structures your last projects used.

3. Building the colour system

  • Work in OKLCH. Lightness steps are perceptually even and chroma can be held constant across hues. Mix tints with color-mix(in oklch, ...).
  • Roles, not swatches. Ground, ink, quiet ink, line, signal, focus, and states (success, warning, danger, information). Components use roles only.
  • Tint the neutrals toward the ground or the main hue. Untinted greys beside a coloured ground look dead.
  • Black and white are choices. Pure black on pure white is a strong, harsh statement and sometimes the right one. A tinted near-black by habit is as much a default as pure black.
  • Contrast is checked, not assumed: 4.5:1 for text, 3:1 for large text, control boundaries and focus indicators. Check every text-over-image case at its worst crop.
  • Dark mode is a second composition. Do not invert. Lower chroma on large areas, raise it on small ones, and rebuild elevation: in the dark, nearer surfaces are lighter.
  • States never rely on colour alone. Pair with shape, text or position. Support forced-colors: active.
  • Data colours are a separate, tested set: distinguishable under colour-vision deficiency, ordered when the data is ordered.
:root {
  --ground: oklch(0.93 0.02 95);    /* each value recorded with what it was derived from */
  --ink: oklch(0.21 0.02 260);
  --ink-quiet: color-mix(in oklch, var(--ink) 62%, var(--ground));
  --line: color-mix(in oklch, var(--ink) 16%, var(--ground));
  --signal: oklch(0.63 0.21 28);
  --focus: var(--ink);
}

The values above only show the structure. Never start from them.

The audit reports the first screen's ground, the share of pixels carrying colour, and the hues present. Read those against the stated proportions. A "ground-led" page measuring 2% colour did not commit.

4. Material and light

Decide what the surfaces are made of and where the light is. Everything else about a surface follows.

  • One light. Pick its position and softness. Shadows fall one way, at lengths that match elevation. If there is no light in the concept, there are no shadows: use lines, steps of tone, or overlap to separate planes.
  • Elevation means something. A raised surface is temporary, movable or interactive. If everything is raised, nothing is.
  • Radius is a material property. Machined things have small, exact radii; soft things have large ones; paper and screens have none. One radius on every surface says nothing about any of them. Vary by what the surface is, and keep the set small.
  • Lines (hairlines, rules, frames) are structure. Use them where the content has structure. A rule above every block by habit is chrome.
  • Texture (grain, paper, noise, weave) needs a source in the subject and a job in the composition: separating planes, softening banding, tying photographs together. Keep it off text.
  • Translucency and blur show what is behind. Use them when what is behind matters while this surface is open. Provide solid fallbacks for prefers-reduced-transparency and prefers-contrast, and measure the paint cost on a phone.
  • Gradients are light or material: a sky, a glaze, a sheet of metal, a fade into depth. A gradient with no source is decoration.

5. Choosing the medium

The question is which medium communicates the device, not which is most impressive.

MediumIt is best atIt needsIt fails when
PhotographEvidence, presence, people, places, textureReal, specific pictures and a crop decisionIt is stock, generic or decorative
FilmProcess, time, atmosphere, a product in useReal footage, a poster frame, a pause controlIt autoplays as wallpaper
IllustrationThings that cannot be photographed; tone of voice; simplificationA consistent hand and a reason to drawIt is a library of someone else's characters
Drawing and diagramMechanism, structure, sequence, measurementAccuracy: it must be true to how the thing worksIt is decorative line art
DataScale, change, comparison, proofReal numbers with units and sourcesThe numbers are invented or the chart is ornament
The interface itselfWhat the product doesA working component, or a faithful one with labelled sample dataIt is a fake dashboard
The objectA physical product's formA cut-out, a render or a model, lit with intentIt spins for no reason
Generated surfaceMaterial, atmosphere, a system made visible, a rule that never repeatsA rule taken from the subject (creative-coding.md)It is a shader because shaders look advanced
Type aloneVoice, argument, names, numbersA real typographic idea (typography.md)It is a headline over nothing

Decide with four questions:

  1. Evidence or atmosphere? Evidence must be real. Atmosphere can be made.
  2. Does it exist? List what the project really has (§2 of direction.md). Design for that, not for what would be nice.
  3. Is it specific? If the image could illustrate a competitor's page, it is not carrying the device.
  4. Who can make it? You can make type, drawings, diagrams, data graphics, interfaces and generated surfaces in code. You cannot make photographs of real people, places or products.

One medium leads. A second supports. Three or more usually means no decision was made.

6. When there are no assets

This is the usual case, and it is where pages collapse into text in boxes. Work down this list. Every step is honest.

  1. Make the content the image. The real number at huge scale. The real list as a field. The real interface, working. The real document, set properly.
  2. Draw it in code. A plan, a section, a diagram of the mechanism, a pattern from the subject's geometry, a map, a timeline to scale. SVG drawn for this subject is specific in a way stock never is.
  3. Generate a surface from a rule. A field, a material, a light, with its parameters taken from facts.
  4. Design the slot and write the shot. Where a real photograph is essential, build the frame at its true size and crop, fill it with an honest placeholder (a flat field with a one-line description of the picture that belongs there), and give the user a shot list: subject, distance, angle, light, crop ratio, count.

Never: stock photographs standing in for the client's people, place or product; generated faces; invented screenshots; logos of customers who have not agreed. If image generation is available and the user wants it, generated images may serve as atmosphere or as clearly labelled concept art. They are never presented as the real product, place or people.

A missing photograph is a constraint, and constraints make devices. Several of the lenses (Nothing but the content, One of each, Actual size) are built for exactly this.

7. Art-directing photographs

When photographs exist, direct them. Do not just place them.

  • Crop to the subject of the picture. Decide what the picture is of and cut away the rest. Tight crops and off-centre subjects have more force than safe wide ones.
  • Three distances. A strong set mixes far (the place), middle (the thing in use) and near (a detail). A page of pictures all taken from the same distance is flat.
  • A ratio set. Choose two or three aspect ratios and hold them. Mixed ratios without a system look like an upload folder.
  • Scale with intent. One picture very large, others much smaller. Equal sizes say equal importance.
  • Sequence. Order pictures so each adds something: wide then close, before then after, whole then part.
  • Consistency. If the pictures come from different sources, unify them with one treatment (§8).
  • Faces look at something. Place the picture so a gaze points into the page or at the thing it concerns.
  • Per breakpoint. Choose the narrow crop by hand with <picture> or object-position. Never let the centre crop decide.

8. Image treatments as a system

A treatment is a rule applied to every image, derived from the subject's process or material. One treatment, everywhere, or none.

TreatmentHowSource it needs
Duotone or tritoneSVG feColorMatrix / feComponentTransfer, or mix-blend-mode over a colour fieldTwo inks in the colour strategy
Halftone or ditherCanvas (creative-coding.md) or a pre-processed assetA print or screen heritage
Monochromefilter: grayscale(1) contrast(1.1)A strategy where colour is reserved for something else
GrainA small tiled noise texture with mix-blend-mode; avoid full-screen live feTurbulenceFilm, paper or material in the subject
Mask and shapeclip-path, mask-imageA shape that belongs to the device
Blend with groundmix-blend-mode: multiply on a light ground, screen on a dark oneImages that should sit in the page like ink

Treat at build time when possible. Live filters on large images cost paint on every scroll.

9. Icons and small graphics

  • Use an icon where it speeds recognition: navigation, actions, status. A feature list does not need an icon per item.
  • One set, one stroke weight, one grid, matched to the type's weight and corner character. Inline SVG with currentColor.
  • Decorative icons take aria-hidden="true". Icon-only buttons need an accessible name.
  • If the subject has its own marks (symbols from its trade, its notation, its instruments), those are better than any generic set. Draw them.

10. Delivery

<img src="/img/yard-1600.avif" srcset="/img/yard-800.avif 800w, /img/yard-1600.avif 1600w, /img/yard-2400.avif 2400w"
     sizes="(min-width: 1024px) 66vw, 100vw" width="2400" height="1350"
     alt="Container yard at dusk with trucks queued at gate 3" fetchpriority="high" decoding="async">
<picture>   <!-- art direction: a different crop for the narrow screen -->
  <source media="(max-width: 600px)" srcset="/img/yard-portrait-800.avif" width="800" height="1000">
  <img src="/img/yard-1600.avif" width="1600" height="900" alt="...">
</picture>
  • Always set width and height, or aspect-ratio. Lazy-load below the first screen only. Never lazy-load the LCP image; give it fetchpriority="high".
  • AVIF or WebP with sensible quality; SVG for drawings; video only where time is the point.
  • Alt text says what the image shows and why it is there. Decorative images take alt="".
  • Video: muted playsinline for autoplay, a poster, a pause control for anything over five seconds, captions for speech.
  • Budgets and measurement are in performance-engineering.md.

11. Faults

FaultReads as
A palette with no proportionsFive swatches used evenly: no strategy
The accent on everythingA signal that means nothing
Colour from the categoryThe twin
Shadows with no light, on every surfaceKit styling
One radius everywhereNo material
Texture over textDecoration costing legibility
A gradient or glow with no sourceAtmosphere by default
Stock or generated peopleA lie, and visitors can tell
Pictures all at one distance and one sizeAn upload folder
Centre crops at every breakpointNobody looked at the phone
Three or more media competingNo lead medium was chosen
Text in boxes and nothing elseThe asset problem was never faced (§6)