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
#8b5cf6indigo
#666af9ink
#7c7e95signal
#00bac9success
#28bc5ewarning
#e9a700danger
#f53e39Roles
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"- 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"- 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.
| Foreground | on | Min | Light | Dark |
|---|---|---|---|---|
| text | page | 4.5 | Aa 19.20 | Aa 18.35 |
| text | surface | 4.5 | Aa 18.40 | Aa 17.34 |
| text | raised | 4.5 | Aa 17.34 | Aa 14.81 |
| heading | page | 4.5 | Aa 20.32 | Aa 19.47 |
| heading | surface | 4.5 | Aa 19.47 | Aa 18.40 |
| heading | raised | 4.5 | Aa 18.35 | Aa 15.72 |
| muted | page | 4.5 | Aa 6.06 | Aa 8.15 |
| muted | surface | 4.5 | Aa 5.80 | Aa 7.70 |
| muted | raised | 4.5 | Aa 5.47 | Aa 6.58 |
| link | page | 4.5 | Aa 7.10 | Aa 7.51 |
| link | surface | 4.5 | Aa 6.81 | Aa 7.10 |
| link | raised | 4.5 | Aa 6.42 | Aa 6.07 |
| on-primary | primary | 4.5 | Aa 7.10 | Aa 5.68 |
| on-primary | primary-hover | 4.5 | Aa 8.98 | Aa 7.10 |
| on-primary | primary-pressed | 4.5 | Aa 10.72 | Aa 8.98 |
| control | page | 3.0 | Aa 3.98 | Aa 5.11 |
| control | surface | 3.0 | Aa 3.81 | Aa 4.82 |
| control | raised | 3.0 | Aa 3.59 | Aa 4.12 |
| focus | page | 3.0 | Aa 5.31 | Aa 13.32 |
| focus | surface | 3.0 | Aa 5.09 | Aa 12.58 |
| focus | raised | 3.0 | Aa 4.79 | Aa 10.75 |
| signal | page | 3.0 | Aa 5.31 | Aa 10.94 |
| signal | surface | 3.0 | Aa 5.09 | Aa 10.34 |
| success | page | 4.5 | Aa 5.13 | Aa 10.75 |
| success | surface | 4.5 | Aa 4.92 | Aa 10.16 |
| warning | page | 4.5 | Aa 6.09 | Aa 11.49 |
| warning | surface | 4.5 | Aa 5.84 | Aa 10.85 |
| danger | page | 4.5 | Aa 6.16 | Aa 7.62 |
| danger | surface | 4.5 | Aa 5.90 | Aa 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.
64 px Compiled to WebAssembly GC
48 px Compiled to WebAssembly GC
36 px Compiled to WebAssembly GC
28 px Compiled to WebAssembly GC
22 px Compiled to WebAssembly GC
18 px Compiled to WebAssembly GC
16 px Compiled to WebAssembly GC
14 px Compiled to WebAssembly GC
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.
4 px
8 px
14 px
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.
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-primaryand 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-signalfor 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.