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.
| Page | Contents |
|---|---|
| Tokens | Every design token, what it controls and what reads it |
| CSS variables | Every --opsin-* custom property, with its light and dark defaults |
| Data attributes | Every data-* attribute the components emit. Empty until the script reads the component sources |
| Keyboard | Every keyboard interaction. Empty until the script reads each component page's table |
| Contrast | Measured WCAG 2.2 ratios and APCA Lc for every token pair, in both themes |
| Types | Every TypeScript symbol the site's lib/ exports. Not an installable API |
| Error codes | Every development warning, its stable code and the page that prevents it |
| Glossary | The words opsinjs uses about itself, written by hand |
| Plain English A to Z | The clinical terms a reader meets, and the plain words to use instead |