Skip to content

Bug fixes and token map compilers

Pre-release
Pre-release
Compare
Choose a tag to compare
@mirisuzanne mirisuzanne released this 18 Jan 19:20
4c30af3

In addition to fixing a bug with the handling of non-alias # symbols, and implementing deep map merges where appropriate, we also added some functionality around compiling maps for export, and working with different color palettes…

  • BREAKING: Map multi-merge utility and all add-* functions
    for adding one or more token maps (eg add-sizes, add-colors, etc)
    now perform a deep merge of the token maps.
    Previously a shallow merge was performed,
    which could result in removing nested values from maps.

  • Tokens:

    • NEW: map-compile and map-compile-with functions for compiling
      tokens in Accoutrement maps and formatting them for static exports.
  • Animate:

    • NEW: compile-* functions provide an export option for respective token maps
      (see: compile-changes, compile-easing, compile-times).
  • Color:

    • NEW: compile-colors function provides an export option for color token maps.
    • NEW: with-colors mixin allows the overriding of the global color palette for
      a section of contents.
  • Ratio:

    • NEW: compile-ratios function provides an export option for ratio token maps.
  • Scale:

    • NEW: compile-sizes function provides an export option for size token maps.
  • Type:

    • NEW: compile-fonts function provides an export option for font token maps.