Skip to content

v5.0.0

Choose a tag to compare

@primer-css primer-css released this 30 Sep 22:15
· 1013 commits to main since this release
7019854

Major Changes

  • #245 65ad2df Thanks @colebemis! - All deprecated color variables have been removed. See removed variables for the complete list of removed variables.

  • #245 65ad2df Thanks @colebemis! - The deprecations directory in the dist directory has been renamed to deprecated:

    dist/
    - deprecations/
    + deprecated/

    You'll need to update your imports accordingly:

    - import deprecatedColors from '@primer/primitives/dist/deprecations/colors.json'
    + import deprecatedColors from '@primer/primitives/dist/deprecated/colors.json'

Minor Changes

  • #245 65ad2df Thanks @colebemis! - The dist directory now contains a removed directory with data about removed variables organized by category:

      dist/
        js/
        ts/
        json/
        scss/
        deprecated/
    +   removed/
    +     colors.json

    Each JSON file in the removed directory contains a mapping of removed variables to replacement variables. Example:

    // dist/removed/colors.json
    {
      "text.primary": "fg.default", // this means: `text.primary` is deprecated. Use `fg.default` instead
      "auto.blue.4": ["accent.fg, accent.emphasis"], // this means: `auto.blue.4` is deprecated. Use `accent.fg` or `accent.emphasis` instead
      "text.white": null // this means: `text.white` is deprecated. We don't have a replacement for it
    }

    This data will allow you to write linters to prevent usage of removed variables.

Patch Changes