Skip to content
opsinjs
Edit this page

opsinjs

Reference

Generated tables of every token, variable, attribute, key, contrast pair and type, with the error codes and both glossaries.

The generated pages are written by scripts from the same sources the build ships, so a row cannot describe a token the build does not have. pnpm run check regenerates them and diffs the result, so a page that drifts from its source fails the build. To change a row, change the source. An edit between a page's generated markers is erased by the next pnpm run generate. A program should read the same lists from /llms.txt, the .md twin of each page, or /r/index.json.

PageContents
TokensEvery design token, what it controls and what reads it
CSS variablesEvery --opsin-* custom property, with its light and dark defaults
Data attributesEvery data-* attribute the components emit. Empty until the script reads the component sources
KeyboardEvery keyboard interaction. Empty until the script reads each component page's table
ContrastMeasured WCAG 2.2 ratios and APCA Lc for every token pair, in both themes
TypesEvery TypeScript symbol the site's lib/ exports. Not an installable API
Error codesEvery development warning, its stable code and the page that prevents it
GlossaryThe words opsinjs uses about itself, written by hand
Plain English A to ZThe clinical terms a reader meets, and the plain words to use instead