Skip to content

Commit

Permalink
Version Packages (#1020)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
primer[bot] and github-actions[bot] committed Aug 21, 2024
1 parent 8301cb9 commit d775cbc
Show file tree
Hide file tree
Showing 10 changed files with 108 additions and 128 deletions.
5 changes: 0 additions & 5 deletions .changeset/beige-waves-help.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/dirty-foxes-cover.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/dull-actors-pay.md

This file was deleted.

91 changes: 0 additions & 91 deletions .changeset/funny-llamas-hunt.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fuzzy-ladybugs-joke.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/orange-jokes-dance.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/quiet-wombats-punch.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/swift-apricots-cough.md

This file was deleted.

107 changes: 107 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit d775cbc

Please sign in to comment.