design-system-utils
design-system-utils copied to clipboard
Shortcuts feature
trafficstars
This is a proposed new feature, below comes from the readme ed
If your tokens object has a different structure, you can remap existing shortcut method locations, names or even create new shortcuts, (e.g. move the font-size object to the root).
You can also rename existing shortcut methods. This could be useful for non-English speaking languages or you just don't like what I chose originally. Either way, you now have that power.
Renamed shorcuts retain the functionality of the original method. New, shortcut methods alias to the
.get()method.