Description
Distinguish a known number/length token mismatch from an unknown token kind.
Graphic-design metadata distinguishes font metrics, variable-font axes, fill rules, color labels and design-token units. Numeric axis differences and text labels do not render a font or apply a color profile. The source convention must match before comparing metrics or resolving a design-system reference.
Distinguish a known number/length token mismatch from an unknown token kind.
When to use this tool
Use Design Token Unitless Length Mismatch Flag when checking the stated font, color or design-token convention.
How to use the tool and how it works
- Enter firstKind, secondKind. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read known, mismatched. Inspect known, mismatched before interpreting the associated values.
Accept number, length or unknown kind for each token. known requires neither unknown; mismatched requires known and unequal kinds.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| firstKind | First Kind | Required. Text; one of "number", "length", "unknown"; maximum UTF-16 length 8192. |
| secondKind | Second Kind | Required. Text; one of "number", "length", "unknown"; maximum UTF-16 length 8192. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| known | Both kinds declared number or length. | Required. Boolean. |
| mismatched | True only for known unequal kinds; unknown does not count as a mismatch. | Required. Boolean. |
{
"input": {
"firstKind": "number",
"secondKind": "length"
},
"output": {
"known": true,
"mismatched": true
}
} Limitations and assumptions
- Unknown-versus-known is flagged unknown rather than mismatched; no token value, unit or design-system schema is inspected.
- Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
Alternative or Complementary methods
Inspect actual fonts, rendered paths, color profiles and the complete applicable design-system specification for visual or production decisions.
References
Similar or alternative tools
- Design Token Reference Label
Record a design token's explicit reference label.
- Type Size Leading Ratio Tool
Compare measured leading and type size in explicit common units, returning the reciprocal ratios without generating leading.