utils/sets_and_themes library

Functions

arrangeJsonFilesBySection(String tokenFileDirectory) Map<String, dynamic>
Loads all the design token info into a single structure resulting in something that looks like it would if it was all in one file
getSetsFromJson(Map<String, dynamic> input) List<String>
Finds the order of the token sets in the input json
getThemesFromJson(Map<String, dynamic> input) List<TokenTheme>
Finds the themes in the input json
metadataAsSection(Map<String, dynamic> metadataContents) Map<String, dynamic>
Accepts the contents of a $metadata JSON that was probably loaded from a file Returns the $metadata changed so that it works in a single JSON structure
themesAsSection(List themesContents) List
Accepts the contents of a $themes JSON that was probably loaded from a file Returns the $themes changed so that it works in a single JSON structure