This PR adds support to the pipeline for consumingW3C DTCG draft format token files. JSON files and the proprietary syntax and the DTCG format can be mixed and matched—the pipeline will convert DTCG tokens into the old syntax when loading so that existing code investments continue to function.
This is not a general-purpose DTCG format parser—think of it as a custom compatibility shim, not a full parser. I'm only supporting the specific token types and syntaxes that the Fluent platforms are using. I'm also assuming that the shadow token type will be extended to support an array of shadows, which seems virtually guaranteed but is not formally allowed by the spec.
Without changing input files to the DTCG format, this PR should introduce only minimal changes:
A typo is fixed when using the GrayText high contrast / system color
The Meta node is now required when importing proprietary JSON (all of our files already have it)
This PR adds support to the pipeline for consuming W3C DTCG draft format token files. JSON files and the proprietary syntax and the DTCG format can be mixed and matched—the pipeline will convert DTCG tokens into the old syntax when loading so that existing code investments continue to function.
This is not a general-purpose DTCG format parser—think of it as a custom compatibility shim, not a full parser. I'm only supporting the specific token types and syntaxes that the Fluent platforms are using. I'm also assuming that the
shadow
token type will be extended to support an array of shadows, which seems virtually guaranteed but is not formally allowed by the spec.Without changing input files to the DTCG format, this PR should introduce only minimal changes:
GrayText
high contrast / system colorMeta
node is now required when importing proprietary JSON (all of our files already have it)