Skip to content
Compare
Choose a tag to compare
@github-actions github-actions released this 21 Jan 05:05
d9486de

Minor Changes

  • #425 9a98ab0 Thanks @drwpow! - feat: ⚠️ Breaking change: aliasing to specific modes (# character) is deprecated. It was an experimental feature in Cobalt 1.0 with unpredictable behavior. In some upcoming spec changes it will be incompatible with advanced usecases.

  • #425 9a98ab0 Thanks @drwpow! - fix: Improvements to mode aliasing and mode overrides. typography tokens only have to partially-declare overrides for modes, while keeping their core set. While this has been supported, behavior was buggy and sometimes was inconsistent.

  • #425 9a98ab0 Thanks @drwpow! - ⚠️ Breaking change: cubicBezier tokens no longer support aliases as values, in line with the spec.

Patch Changes

  • #425 9a98ab0 Thanks @drwpow! - fix: Improved handling of modes partially overriding object tokens (e.g. typography modes modifying a single value). In plugin-css, for instance, you may notice more output, but it’s done for safer style generation.

  • #425 9a98ab0 Thanks @drwpow! - feat: Further improved reverse alias lookups to be more accurate and more complete

  • #425 9a98ab0 Thanks @drwpow! - fix: Better error messages on alias mismatches

  • #425 9a98ab0 Thanks @drwpow! - fix: [plugin-css] Font Family names without spaces no longer get quotes.

    fix: Font Family tokens are always normalized to an array internally for easier parsing.

  • #425 9a98ab0 Thanks @drwpow! - feat: @terrazzo/plugin-css now returns entire token for variableName. This is a minor breaking change from variableName(name: string)variableName(token: Token), but current users can just use token.id to get the same value as before.

    ⚠️ Minor internal breaking change as a result: transformCSSValue() in @terrazzo/token-tools now requires entire token️ to make this possible.

  • #425 9a98ab0 Thanks @drwpow! - fix: ⚠️ [plugin-css] Minor breaking change: transition tokens no longer generate variables for sub-parts. This is a change done in service to better protect “allowed” token usage. If you want consumers to be able to “break apart” tokens, then they must also exist as individual tokens that get aliased.