Brand

Precise, quiet and fast

One violet, the same on a web page, on a canvas and in an email. Every pair of colours that carries text or a control has its contrast measured, and the numbers are on this page.

Principles

Grounded, with a signal

Readable before anything

Text is at least 4.5 : 1 on every background it meets, the edge of a control and the focus ring at least 3 : 1, in the light theme and in the dark. A test fails below that, so a colour cannot drift.

Violet for the brand, ink for the rest

The violet is the one colour that is ours. Everything neutral is an ink tinted toward it, so greys and brand belong together. The dark theme is a theme of its own, not an inversion.

Signal means live

A cyan, used for what is happening now: the focus, a measurement, a selection that moves. It is not decoration, so when it appears, it means something.

Colour

Seven ramps of eleven steps

Each step is a point of OKLCH, so equal steps look equally far apart. The violet runs through the colours the site has always used: 700 is the primary, 500 the accent; the indigo's 600 is the second colour. A step that sRGB cannot show gives up chroma, never lightness or hue.

violet

#8b5cf6
50
100
200
300
400
500
600
700
800
900
950

indigo

#666af9
50
100
200
300
400
500
600
700
800
900
950

ink

#7c7e95
50
100
200
300
400
500
600
700
800
900
950

signal

#00bac9
50
100
200
300
400
500
600
700
800
900
950

success

#28bc5e
50
100
200
300
400
500
600
700
800
900
950

warning

#e9a700
50
100
200
300
400
500
600
700
800
900
950

danger

#f53e39
50
100
200
300
400
500
600
700
800
900
950

Roles

What a page reads, by meaning

A page, a widget or an email asks for text or primary, not for a value. Each role has one value in the light theme and one in the dark; the cards below are those themes, whatever the site is showing.

light theme

data-theme="light"
Primary Hover Pressed Control Focus Link
  • page #ffffff
  • surface #f9fafd
  • raised #f2f3f9
  • line #e6e7f1
  • control #7c7e95
  • text #0c0c24
  • heading #040415
  • muted #5e617a
  • primary #6d28d9
  • primary-hover #5a24b3
  • primary-pressed #49288b
  • on-primary #ffffff
  • link #6d28d9
  • accent #8b5cf6
  • secondary #4f46e5
  • signal #007781
  • focus #007781
  • success #007f38
  • warning #825b00
  • danger #c60014

dark theme

data-theme="dark"
Primary Hover Pressed Control Focus Link
  • page #040415
  • surface #0c0c24
  • raised #1c1d37
  • line #434560
  • control #7c7e95
  • text #f2f3f9
  • heading #f9fafd
  • muted #a0a3b8
  • primary #7b3dea
  • primary-hover #6d28d9
  • primary-pressed #5a24b3
  • on-primary #ffffff
  • link #a68cfb
  • accent #a68cfb
  • secondary #8792ff
  • signal #40d0df
  • focus #76e1ed
  • success #5fd37f
  • warning #fab72a
  • danger #fd7468

One decision the roles record: white on the violet used for text (500) is 4.23 : 1, which is not enough for a button label, so the fill of a button is a step darker (600 in the dark theme, 5.68 : 1) and the violet as text is a role of its own, link.

Contrast

Every pair, in both themes

WCAG 2.2 ratios of the pairs a page or a widget draws. The minimum is 4.5 : 1 for text and 3 : 1 for the edge of a control, the focus ring and marks that are not text. Measured on 2026-11-24; the tests of FSharp.Wasm.Design fail below any of these.

ForegroundonMinLightDark
textpage4.5Aa 19.20Aa 18.35
textsurface4.5Aa 18.40Aa 17.34
textraised4.5Aa 17.34Aa 14.81
headingpage4.5Aa 20.32Aa 19.47
headingsurface4.5Aa 19.47Aa 18.40
headingraised4.5Aa 18.35Aa 15.72
mutedpage4.5Aa 6.06Aa 8.15
mutedsurface4.5Aa 5.80Aa 7.70
mutedraised4.5Aa 5.47Aa 6.58
linkpage4.5Aa 7.10Aa 7.51
linksurface4.5Aa 6.81Aa 7.10
linkraised4.5Aa 6.42Aa 6.07
on-primaryprimary4.5Aa 7.10Aa 5.68
on-primaryprimary-hover4.5Aa 8.98Aa 7.10
on-primaryprimary-pressed4.5Aa 10.72Aa 8.98
controlpage3.0Aa 3.98Aa 5.11
controlsurface3.0Aa 3.81Aa 4.82
controlraised3.0Aa 3.59Aa 4.12
focuspage3.0Aa 5.31Aa 13.32
focussurface3.0Aa 5.09Aa 12.58
focusraised3.0Aa 4.79Aa 10.75
signalpage3.0Aa 5.31Aa 10.94
signalsurface3.0Aa 5.09Aa 10.34
successpage4.5Aa 5.13Aa 10.75
successsurface4.5Aa 4.92Aa 10.16
warningpage4.5Aa 6.09Aa 11.49
warningsurface4.5Aa 5.84Aa 10.85
dangerpage4.5Aa 6.16Aa 7.62
dangersurface4.5Aa 5.90Aa 7.20

Type

Inter, on a scale of a quarter

Inter (variable) is the typeface of the site and of the platform's pages; it is under the SIL Open Font License 1.1, with its text in the site's LICENSES folder. Code is set in the system's monospace. A step is about a quarter larger than the one before, in whole pixels.

5xl
64 px
Compiled to WebAssembly GC
4xl
48 px
Compiled to WebAssembly GC
3xl
36 px
Compiled to WebAssembly GC
2xl
28 px
Compiled to WebAssembly GC
xl
22 px
Compiled to WebAssembly GC
lg
18 px
Compiled to WebAssembly GC
base
16 px
Compiled to WebAssembly GC
sm
14 px
Compiled to WebAssembly GC
xs
12 px
Compiled to WebAssembly GC

Weights

  • regular 400Hamburgefonstiv 0123456789
  • medium 500Hamburgefonstiv 0123456789
  • semibold 600Hamburgefonstiv 0123456789
  • bold 700Hamburgefonstiv 0123456789
  • heavy 800Hamburgefonstiv 0123456789

Line height

  • tight 1.15headings
  • snug 1.3interface text
  • normal 1.55running text

Space and shape

A grid of 4 px

Space is 4 px times a step. Radius comes in four sizes; the default is 8 px.

--fw-space-0 0 px
--fw-space-1 4 px
--fw-space-2 8 px
--fw-space-3 12 px
--fw-space-4 16 px
--fw-space-6 24 px
--fw-space-8 32 px
--fw-space-12 48 px
--fw-space-16 64 px
--fw-space-24 96 px
sm
4 px
md
8 px
lg
14 px
pill
full

Motion

Fast, and only for a reason

Three durations and two easings. Feedback to a press is the fastest; a change of state is the base; an entrance is the slowest. Nothing animates for its own sake, and a page that asks for reduced motion gets none.

90 ms
--fw-duration-fast
160 ms
--fw-duration-base
280 ms
--fw-duration-slow

ease-out cubic-bezier(0.2, 0, 0, 1) · ease-in cubic-bezier(0.4, 0, 1, 1)

Rules

What follows from the numbers

Do

  • Ask for a role (--fw-text, --fw-primary), not for a hex value.
  • Put white (--fw-on-primary) on --fw-primary and its hover and pressed states: all three are above 4.5 : 1 in both themes.
  • Show the focus with --fw-focus, 2 px, inside the box so that focusing never moves the layout.
  • Use --fw-signal for what is live and nothing else.

Do not

  • Put white text on --fw-violet-500: 4.23 : 1, under the minimum for text.
  • Use a ramp step for text because it looks right: the roles are the ones that were checked.
  • Invert the light theme for the dark one: the dark theme has its own roles and its own measurements.
  • Tell one thing apart from another by colour alone.

Use it

Tokens for a page, a canvas and an email

The source is the F# library FSharp.Wasm.Design in fsharp-wasm-core; the files below are what it generates.

CSS

<link rel="stylesheet" href="/brand/tokens.css">

.card {
  background: var(--fw-surface);
  color: var(--fw-text);
  border-radius: var(--fw-radius-md);
  padding: var(--fw-space-4);
}

F#

open FSharp.Wasm.Design

let primary = Tokens.light.Primary   // Hex "#6d28d9"
let failing =                        // [] — the test of the library
  Tokens.checks
  |> List.filter (fun c ->
       Tokens.ratio Tokens.dark c
       |> Option.exists (fun r -> r < c.Minimum))

Not decided yet: the usage of the logo (it is used as it is on this site), a typeface for code, and moving the canvas widgets' theme (blue today) and the runtime's theme.css onto these tokens. The last one changes how every canvas application looks.