The HTML export feature does a decent job at picking useful names for sets, but since sets aren't a distinct thing in the JSON, it could do better in some cases. For example, if there's a set of tokens that all follow the format Set-Neutral-Fill-Color-_____, the HTML export will call it Set-Neutral rather than Set-Neutral-Fill-Color. When it identifies a set, it should identify the longest string that still matches all defined tokens in the set.
In fluentui-html.js, look for the fluentui/html/reference formatter:
The HTML export feature does a decent job at picking useful names for sets, but since sets aren't a distinct thing in the JSON, it could do better in some cases. For example, if there's a set of tokens that all follow the format
Set-Neutral-Fill-Color-_____
, the HTML export will call itSet-Neutral
rather thanSet-Neutral-Fill-Color
. When it identifies a set, it should identify the longest string that still matches all defined tokens in the set.In
fluentui-html.js
, look for thefluentui/html/reference
formatter: