@trvt/designtokens
v0.11.13
Published
Trivet Design Tokens, a system for tokens
Downloads
95
Readme
Default Trivet tokens
NOTE: TOKEN NAMING UNDER REVIEW
Trivet utilises the popular Style Dictionary approach to tokens. We can utilise the W3C Design Token standard. (There is a risk of breaking changes as the format is still in draft)
The crazy eight
Tokens are set up in 8 foundational types. Trivet provides the foundation with context via topics.
Colour
The colour tokens contain a basic colour library based on the the open source color pallet. Note that these colours are omitted from the main set of custom properties. Library files like these can be very large and shouldn't be exposed as part of the Styling API.
Token structure
Note that Trivet wouldn't use all of these. This is a structure to help create tokens with consistent and predictable names.