Replaces size.get(), palette.get(), shadow.get(), line-height.get(), custom-property.get(), and font-size.get() uses with the unified design-token.get
Uses var() at the point of use instead of as part of the outp[ut (as was specified in the issue), because it seems more transparent and expected
Animation $transition variables are now a map just like the other design tokens, and all uses of the transition variables now use the CSS custom properties for those, matching the other design tokens
Divides the design tokens into primary & secondary to avoid issues with Sass modules (@using the design tokens in tools/design-token in order to allow validation of a design token’s existence was causing import loops when design-tokens.get() was used in the design-tokens files themselves. Now primary design tokens can’t use the design-token.get() helper)
How to QA
👀 Visual changes
No visual changes
👾 Code changes
Check:
[ ] The documentation is correct, understandable, and up-to-date.
Fixes #769
Changes
size.get()
,palette.get()
,shadow.get()
,line-height.get()
,custom-property.get()
, andfont-size.get()
uses with the unified design-token.getvar()
at the point of use instead of as part of the outp[ut (as was specified in the issue), because it seems more transparent and expected$transition
variables are now a map just like the other design tokens, and all uses of the transition variables now use the CSS custom properties for those, matching the other design tokensprimary
&secondary
to avoid issues with Sass modules (@using the design tokens intools/design-token
in order to allow validation of a design token’s existence was causing import loops whendesign-tokens.get()
was used in the design-tokens files themselves. Now primary design tokens can’t use the design-token.get() helper)How to QA
👀 Visual changes
No visual changes
👾 Code changes
Check:
Preflight checks
test/scss/
have been updatedunreleased
section of CHANGELOG.md