COSTUI

The Type and Spacing Token Kit

Put your spacing and type scales on one grid: snap the spacing, give every type step a line height on the grid, mark the large-text steps, give each color the smallest step it may set, and size every control from the tokens

CostUI's Spacing Scale Generator, Type Scale Generator and Contrast Checker each answer one question and never meet. The spacing tool's geometric mode prints 40.5 px and 60.75 px, off any grid; the type tool prints 27.65 px and no line height at all; and neither says which type steps count as large text, the number the Contrast Checker's pass and fail depend on. The kit puts them on one grid. In its example, 8 px times 1.5 snaps to 8, 12, 20, 28, 40, 60, 92 and 136 px on a 4 px grid, while a tight 4 px times 1.25 scale collides three times and ships five tokens. The minor third from 16 px becomes whole-pixel tokens from 11 to 40 px with line heights of 20 to 48 px on the grid; 28 px and up are large text, and 19 and 23 px only in bold. A link green at 4.4992:1 fails body text and may only set the 28 px step and up, or 19 px and up in bold; a 16 px button with 8 px padding is 40 px tall, over the 24 px WCAG 2.2 minimum and under the 44 px enhanced target, which 12 px of padding reaches. Every figure is computed from the site's own calculators; the scales, palette and controls are examples, and rules of thumb are called rules of thumb. It is not a full accessibility audit and not legal advice. Included: seven steps, a scale worksheet, a color-by-step grid, a target check sheet, a token sheet, reference tables for every ratio, a worked token sheet in CSS, a quickstart, and a personalised sheet worked from the numbers you enter in the calculators.

Look inside

Two full pages from the kit, exactly as printed. Click either to read it at full size before you decide.

The full contents of The Type and Spacing Token Kit: build the scales on one grid, check the system against WCAG, and the working pagesStep 1, The One Grid Rule: pick one grid unit and one body size before any scale, with line heights on a 4 px and an 8 px grid

What is in it

$19.00one-time · no subscription
Get the kit: $19.00

Price includes any taxes. Sold by GrabURL, who handle checkout and support. The charge appears on your statement as GrabURL.

The kit picks up where the free Spacing Scale Generator and Type Scale Generator leave off. The generators each build one scale; the kit puts both on one grid, gives every type step a line height on that grid, marks which steps count as large text, judges each text color on its exact ratio with the Contrast Checker, and sizes every control from the tokens against the WCAG 2.2 target sizes (24 by 24 CSS px at AA, 44 by 44 at AAA), with rem values from the px to rem converter. Its scales and palette are examples. It is not a full accessibility audit and not legal advice.