Releases: primer/primitives
v5.0.0
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! - Thedeprecations
directory in thedist
directory has been renamed todeprecated
: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! - Thedist
directory now contains aremoved
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
- #250
9948e13
Thanks @Juliusschaeper! - Fix duplicate hex value (red 9)
v4.8.1
v4.8.0
v4.7.1
Patch Changes
- #233
647cf69
Thanks @colebemis! - Delete experimentaldata/colors_v2
directory
v4.7.0
Minor Changes
-
#224
eaf6bb5
Thanks @colebemis! - Add new functional color variables. See primer.style/primitives/colors for details about the new color system. -
#224
eaf6bb5
Thanks @colebemis! - Introduce a Dark High Contrast theme.Note: The Dark High Contrast theme will only work with the new functional color variables
-
#224
eaf6bb5
Thanks @colebemis! - Deprecate variables from the old color system. See primer.style/primitives/colors#deprecated-variables for the complete list of deprecated variables.
v4.6.9
v4.6.8
Patch Changes
-
#220
a811195
Thanks @colebemis! - FixsearchKeyword.hl
incolors_v2
-
#223
a474221
Thanks @colebemis! - FixheaderSearch.*
variables in colors_v2