Skip to content
Primer printing platePrimer

Terminal roles

Terminal cell counts live in tokens/terminal.yaml. Resolved values, including colors, are in dist/themes.json. dist/contract.json lists the terminal role arguments and the color token each one uses. Primer does not ship a terminal renderer. An application maps color.text.base, color.text.subdued, color.accent.base, color.success.base, color.warning.base, color.critical.base, and color.info.base onto its own output.

Terminal cells and web dimensions are different units. The role arguments muted and error select color.text.subdued and color.critical.base. The deprecated token names color.muted and color.error are in tokens/deprecated.yaml. The symbol alias terminal.symbols.error points at terminal.symbols.critical.