Reduce number of tokens / remove dead tokens #1180
pylapp
started this conversation in
Ideas, studies
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Context
Today with for example version v0.21.0 we have 1,971 tokens (403 core raw tokens, 79 Orange brand raw tokens, 50 Sosh brand raw tokens, 139 Wireframe brand raw tokens, 967 core semantic tokens, 333 core component tokens).
These tokens are mostly defined in Figma, then exposed thanks to the tokenator in Swift code.
But it is possible some of these tokens are not used, maybe because an issue in the conception of the component or because in the end the token is not mandatory.
Reducing the number of tokens will reduced the weight of the repository to be cloned when projects downloads it. In addition, it will reduce the memory used to store them for nothing.
Removing useless tokens will help users find the ones they need without being polutted / disturbed by the number of tokens too big.
Dead code tools like periphery are not enough as because tokens are public it will ignore them.
Related to #935
Definition of Done
Beta Was this translation helpful? Give feedback.
All reactions