Open wzamites opened 1 year ago
Would something like the multi-brand multi-platform example work for you? You wouldn't be defining different dictionary. Its the same dictionary, with the same configs but looped with different source files. We do a variation of that. Loop modes, loop platforms. All share same custom transforms, formats etc.
I have the following folder structure:
light-colors.json
anddark-colors.json
have identically named attributes but have differnet values. This is so that the files can be interchanged depending on if the application is in dark mode or light mode.For exmaple: light-colors.json:
"grey": "#D3D3D3"
dark-colors.json:"grey": "#5A5A5A"
However, since the colors are identically named, I am not able to include all 3 of these files in the
source
orinclude
arrays. The identical naming introduces collisions.I would prefer to specify these different souces within the
files
object within theplatforms
object in the config. For now it looks like the only solution is to define entirely differnet dictionaries for every configuration of tokens I have, and runbuildAllPlatforms()
many times, effectively bypassing theplatforms
functionality.Has anyone else come across this? What are some solutions?