mix jetons.inspect (jetons v0.2.2)

Copy Markdown View Source

Inspect and debug design tokens.

Provides four modes for exploring token files and resolver documents.

Token Lookup

mix jetons.inspect -f tokens.resolver.json --token color.background.brand.default
mix jetons.inspect -f tokens.resolver.json --token color.background.brand.default --set brand=markant

Reference Tracing

mix jetons.inspect -f tokens.resolver.json --refs button.primary.color-background.default

List Permutations

mix jetons.inspect -f tokens.resolver.json --permutations

Diff Contexts

# Diff defaults vs a specific context
mix jetons.inspect -f tokens.resolver.json --diff --set theme=dark

# Diff two explicit contexts
mix jetons.inspect -f tokens.resolver.json --diff --set brand=acme --vs brand=markant

Options

  • -f / --file — (required) input JSON or resolver file
  • --token — token dot-path to look up across contexts
  • --refs — token dot-path for reference chain tracing
  • --permutations — list all valid modifier combinations
  • --diff — diff resolved tokens between two contexts
  • --set — modifier input for context selection (format: name=value, repeatable)
  • --vs — second context for diff comparison (format: name=value, repeatable)