Skip to content

Jig 0.2.0

Choose a tag to compare

@timessuman timessuman released this 01 Sep 18:16
· 523 commits to main since this release
fa3c983

0.1.0 shipped rules that cited design tokens it never installed, and a token name that did not exist. This is the release to actually use.

npx jig-ui@latest install --agent claude

The two that mattered

  • --color-brand was cited nine times and defined nowhere — including 03-patterns.md's primary-button spec, so an agent following the rule wrote background: var(--color-brand) and got nothing.
  • The tokens were never installed. The rules cite them 22 times and 02-tokens.md tells you to import them; the CSS sat in the published tarball and was never copied out. They now vendor to .jig/tokens/, and editing your brand file there is expected — install and update both leave changed files alone.

Also fixed

Rule C-49 had no correction and I-80 no anti-pattern, in a file whose contract states every rule has both — the totals hid it, because the two defects cancelled at 103/103. Ten mode-table values contradicted the tokens. A-07's correction had silently inverted from true to false when --radius-base was renamed to --radius-sm. C-68 depended on a radius token it never named.

Guarded now

scripts/check-tokens.mjs runs in the test suite with four rules, each mutation-tested against the drift it guards. The type table must match its tokens by name — a substring check passes while --text-h3 drifts 24→26, because --spacing-m is also 24px.

Full detail in CHANGELOG.md.