Utilities for working with design tokens in Rust, implementing the Design Tokens Format Module.
This initial version simply provides structs for representing design tokens in Rust.
In the near future, this crate will provide utilities for importing and validating design tokens from JSON.
You may be looking for:
[dependencies]
design_tokens = "0.1.0"
# Optional: Preserve key order using `indexmap`.
design_tokens = { version = "0.1.0", features = ["ordered"] }
- ordered: If you want to preserve insertion order of elements, you can use the
ordered
feature which leverages theindexmap
crate.