Skip to content
Primer printing platePrimer

Migrating to 1.0

0.2 keeps every previous public name as a deprecated alias. 1.0 removes those aliases and makes the palette internal.

  • Names in tokens/deprecated.yaml, including color.canvas, color.muted, color.error, space.1, and font.size.body.
  • terminal.symbols.error. Use terminal.symbols.critical.
  • The classes .primer-muted and .primer-error. Use .primer-subdued and .primer-critical.
  • --primer-palette-* in product CSS. Use a color role or a chart series.
  1. npm run tokens:migrate -- --write in the app, or edit the matches it prints.
  2. node <bundle>/check.mjs and fix every error. Warnings name the replacement.
  3. Map the application’s terminal output to color.text.base, color.text.subdued, color.critical.base, and terminal.space.base. The role arguments muted and error stay, and select color.text.subdued and color.critical.base.
  4. Import the delivered tokens.css instead of hand-written theme variables.

Values do not change when a guarantee still passes. The name does.