← Design

Tokens

One source, tokens/tokens.json, generates every format. Consumers fetch the CSS and pick a theme.

Web

@import "https://reference.nomograph.ai/tokens/colors.css";  /* raw scales */
@import "https://reference.nomograph.ai/tokens/themes.css";  /* roles    */
<html data-theme="void">   <!-- or "light" (default) -->

Style against roles (--color-bg, --color-text,--color-accent), never the raw scales, so a theme swap is one attribute.

Build tools

https://reference.nomograph.ai/tokens/colors.json

Papers

https://reference.nomograph.ai/tokens/colors.tex   % \definecolor

Source of truth

Edit tokens/tokens.json only; just tokensregenerates the rest and CI fails on drift. Adding a format or a theme is one edit to the source.