diff --git a/.changeset/beige-waves-help.md b/.changeset/beige-waves-help.md deleted file mode 100644 index bc8afafe5..000000000 --- a/.changeset/beige-waves-help.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@primer/primitives": major ---- - -Update `invisible` button variant text color to be default instead of link blue diff --git a/.changeset/dirty-foxes-cover.md b/.changeset/dirty-foxes-cover.md deleted file mode 100644 index a34ecb45a..000000000 --- a/.changeset/dirty-foxes-cover.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@primer/primitives": major ---- - -Fix inconsistent HC transparent colors diff --git a/.changeset/dull-actors-pay.md b/.changeset/dull-actors-pay.md deleted file mode 100644 index fce178450..000000000 --- a/.changeset/dull-actors-pay.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@primer/primitives": major ---- - -Change `fgColor-onEmphasis` to white in dark high contrast theme diff --git a/.changeset/funny-llamas-hunt.md b/.changeset/funny-llamas-hunt.md deleted file mode 100644 index 60e788ed2..000000000 --- a/.changeset/funny-llamas-hunt.md +++ /dev/null @@ -1,91 +0,0 @@ ---- -"@primer/primitives": major ---- - -# Updated neutral base color scales - -## Changes - -- Theme specific neutral scales have been replaced with two new scales: `light` and `dark`. -- The new `light` and `dark` scales are inverted, where 0 is the lightest shade in `light` and the darkest shade in `dark`. -- Functional color tokens have been updated to use the new `light` and `dark` scales, and several overrides have been removed due to the new inverted design. - -## Migration - -- Functional color tokens all work as expected and have been tested to meet minimum contrast requirements. -- If you are using `primer/primitives` base color scales directly, you may need to update how those colors are applied. See the migration table which outlines approximately how the new colors map to the old colors. - -### Light scale migration - -| Old color | New color | -| --------- | --------- | -| `0` | `0` | -| `1` | `2` | -| `2` | `5` | -| `3` | `7` | -| `4` | `7` | -| `5` | `8` | -| `6` | `8` | -| `7` | `9` | -| `8` | `10` | -| `9` | `11` | - -### Dark scale migration - -| Old color | New color | -| --------- | --------- | -| `9` | `0` | -| `8` | `1` | -| `7` | `2` | -| `6` | `4` | -| `5` | `6` | -| `4` | `7` | -| `3` | `8` | -| `2` | `9` | -| `1` | `10` | -| `0` | `11` | - -### Dark high contrast scale migration - -| Old color | New color | -| --------- | --------- | -| `9` | `0` | -| `8` | `3` | -| `7` | `5` | -| `6` | `6` | -| `5` | `7` | -| `4` | `8` | -| `3` | `9` | -| `2` | `10` | -| `1` | `11` | - -### Dark dimmed scale migration - -| Old color | New color | -| --------- | --------- | -| `9` | `1` | -| `8` | `2` | -| `7` | `4` | -| `6` | `5` | -| `5` | `6` | -| `4` | `7` | -| `3` | `7` | -| `2` | `8` | -| `1` | `9` | -| `0` | `10` | - - -### Light high contrast scale migration - -| Old color | New color | -| --------- | --------- | -| `0` | `white` | -| `1` | `2` | -| `2` | `5` | -| `3` | `7` | -| `4` | `7` | -| `5` | `8` | -| `6` | `9` | -| `7` | `10` | -| `8` | `11` | -| `9` | `black` | diff --git a/.changeset/fuzzy-ladybugs-joke.md b/.changeset/fuzzy-ladybugs-joke.md deleted file mode 100644 index 21819d2a3..000000000 --- a/.changeset/fuzzy-ladybugs-joke.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@primer/primitives": major ---- - -Extend neutral scale to include white/black (0-13) diff --git a/.changeset/orange-jokes-dance.md b/.changeset/orange-jokes-dance.md deleted file mode 100644 index bfe7c4270..000000000 --- a/.changeset/orange-jokes-dance.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@primer/primitives': major ---- - -Removed space tokens diff --git a/.changeset/quiet-wombats-punch.md b/.changeset/quiet-wombats-punch.md deleted file mode 100644 index 081cc56ea..000000000 --- a/.changeset/quiet-wombats-punch.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@primer/primitives": major ---- - -- Update counter bg styles -- Contrast fixes diff --git a/.changeset/swift-apricots-cough.md b/.changeset/swift-apricots-cough.md deleted file mode 100644 index 93f5604e1..000000000 --- a/.changeset/swift-apricots-cough.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@primer/primitives': major ---- - -Rename data-[colorName]-color to data-[colorName]-color-emphasis diff --git a/CHANGELOG.md b/CHANGELOG.md index 39a1ff4a3..33efd76a7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,112 @@ # @primer/primitives +## 9.0.0 + +### Major Changes + +- [#1021](https://github.com/primer/primitives/pull/1021) [`8b015a0`](https://github.com/primer/primitives/commit/8b015a0d718eb3434c68d0d73fd55a1114e16fb2) Thanks [@langermank](https://github.com/langermank)! - Update `invisible` button variant text color to be default instead of link blue + +- [#1025](https://github.com/primer/primitives/pull/1025) [`9ab8102`](https://github.com/primer/primitives/commit/9ab8102c9b16737b76f581441c3c2c54f44e6ccb) Thanks [@langermank](https://github.com/langermank)! - Fix inconsistent HC transparent colors + +- [#1023](https://github.com/primer/primitives/pull/1023) [`0f5625e`](https://github.com/primer/primitives/commit/0f5625e957f5ea4c6d105e853beee1bf4869c64d) Thanks [@langermank](https://github.com/langermank)! - Change `fgColor-onEmphasis` to white in dark high contrast theme + +- [#1016](https://github.com/primer/primitives/pull/1016) [`39862e9`](https://github.com/primer/primitives/commit/39862e9839f39810bea1a2f8fd148a5673f1c850) Thanks [@langermank](https://github.com/langermank)! - # Updated neutral base color scales + + ## Changes + + - Theme specific neutral scales have been replaced with two new scales: `light` and `dark`. + - The new `light` and `dark` scales are inverted, where 0 is the lightest shade in `light` and the darkest shade in `dark`. + - Functional color tokens have been updated to use the new `light` and `dark` scales, and several overrides have been removed due to the new inverted design. + + ## Migration + + - Functional color tokens all work as expected and have been tested to meet minimum contrast requirements. + - If you are using `primer/primitives` base color scales directly, you may need to update how those colors are applied. See the migration table which outlines approximately how the new colors map to the old colors. + + ### Light scale migration + + | Old color | New color | + | --------- | --------- | + | `0` | `0` | + | `1` | `2` | + | `2` | `5` | + | `3` | `7` | + | `4` | `7` | + | `5` | `8` | + | `6` | `8` | + | `7` | `9` | + | `8` | `10` | + | `9` | `11` | + + ### Dark scale migration + + | Old color | New color | + | --------- | --------- | + | `9` | `0` | + | `8` | `1` | + | `7` | `2` | + | `6` | `4` | + | `5` | `6` | + | `4` | `7` | + | `3` | `8` | + | `2` | `9` | + | `1` | `10` | + | `0` | `11` | + + ### Dark high contrast scale migration + + | Old color | New color | + | --------- | --------- | + | `9` | `0` | + | `8` | `3` | + | `7` | `5` | + | `6` | `6` | + | `5` | `7` | + | `4` | `8` | + | `3` | `9` | + | `2` | `10` | + | `1` | `11` | + + ### Dark dimmed scale migration + + | Old color | New color | + | --------- | --------- | + | `9` | `1` | + | `8` | `2` | + | `7` | `4` | + | `6` | `5` | + | `5` | `6` | + | `4` | `7` | + | `3` | `7` | + | `2` | `8` | + | `1` | `9` | + | `0` | `10` | + + ### Light high contrast scale migration + + | Old color | New color | + | --------- | --------- | + | `0` | `white` | + | `1` | `2` | + | `2` | `5` | + | `3` | `7` | + | `4` | `7` | + | `5` | `8` | + | `6` | `9` | + | `7` | `10` | + | `8` | `11` | + | `9` | `black` | + +- [#1024](https://github.com/primer/primitives/pull/1024) [`2348455`](https://github.com/primer/primitives/commit/23484550d0af0c6f29496e2dfd6522426adbff39) Thanks [@langermank](https://github.com/langermank)! - Extend neutral scale to include white/black (0-13) + +- [#956](https://github.com/primer/primitives/pull/956) [`13f62d5`](https://github.com/primer/primitives/commit/13f62d5b313bf188ebfde22f114fcaf277a32821) Thanks [@lukasoppermann](https://github.com/lukasoppermann)! - Removed space tokens + +- [#1026](https://github.com/primer/primitives/pull/1026) [`401fef1`](https://github.com/primer/primitives/commit/401fef13e3ef1706638260ed5db1c9911e5bb62f) Thanks [@langermank](https://github.com/langermank)! - - Update counter bg styles + + - Contrast fixes + +- [#968](https://github.com/primer/primitives/pull/968) [`d845fdf`](https://github.com/primer/primitives/commit/d845fdfec1b98e4674127eb6246b6416c0971d62) Thanks [@lukasoppermann](https://github.com/lukasoppermann)! - Rename data-[colorName]-color to data-[colorName]-color-emphasis + ## 8.2.4 ### Patch Changes diff --git a/package.json b/package.json index 6d0b37cbd..bc4ec8bba 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@primer/primitives", - "version": "8.2.4", + "version": "9.0.0", "description": "Typography, spacing, and color primitives for Primer design system", "engines": { "node": ">=18.18.0 <18.19.0"