Skip to content

Commit

Permalink
Version Packages
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Aug 6, 2024
1 parent 0f5625e commit fa8264a
Show file tree
Hide file tree
Showing 7 changed files with 100 additions and 112 deletions.
5 changes: 0 additions & 5 deletions .changeset/beige-waves-help.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/orange-jokes-dance.md

This file was deleted.

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

This file was deleted.

99 changes: 99 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,104 @@
# @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

- [#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` |

- [#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

- [#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 fa8264a

Please sign in to comment.