Skip to content

Commit

Permalink
chore(docs): fix intro paragraph to transitive transforms (#641)
Browse files Browse the repository at this point in the history
  • Loading branch information
dbanksdesign authored May 25, 2021
1 parent 2f5f98d commit 2b6be3b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/version_3.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ Don't worry! This change is backwards-compatible; you will still be able to use

This is the big one that required a big re-architecture of how the Style Dictionary build process works.

Up until now the build process looked like this: https://amzn.github.io/style-dictionary/#/build_process
After merging all of the token files, it would iterate through the merged object and transform tokens it found, but only do value transforms on tokens that did not reference another token. The original intent here was that a value of any reference should be the same for all references of it, so we only need to do a value transform once. Then after all tokens are transformed, resolve all aliases/references.
Up until now the build process would merge all token files, then iterate through the merged object and transform tokens it found, but only do value transforms on tokens that did not reference another token. The original intent here was that a value of any reference should be the same for all references of it, so we only need to do a value transform once. Then after all tokens are transformed, Style Dictionary would resolve all aliases/references.

However, we heard from the community there were a number of reasons why someone might want to transform the value of an aliased token.

Expand Down

0 comments on commit 2b6be3b

Please sign in to comment.