Skip to content

Commit

Permalink
Fix inconsistent HC transparent colors (#1025)
Browse files Browse the repository at this point in the history
* fix inconsistent alpha

* Create dirty-foxes-cover.md

* fix format

* github-actions[bot] Regenerated snapshots

---------

Co-authored-by: langermank <[email protected]>
  • Loading branch information
langermank and langermank committed Aug 9, 2024
1 parent cb03f14 commit 9ab8102
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 51 deletions.
5 changes: 5 additions & 0 deletions .changeset/dirty-foxes-cover.md
Original file line number Diff line number Diff line change
@@ -0,0 1,5 @@
---
"@primer/primitives": major
---

Fix inconsistent HC transparent colors
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified blob-report/report.zip
Binary file not shown.
65 changes: 14 additions & 51 deletions src/tokens/functional/color/dark/overrides/dark.high-contrast.json5
Original file line number Diff line number Diff line change
Expand Up @@ -70,58 70,24 @@
},
},
accent: {
muted: {
$value: '{base.color.blue.5}',
$type: 'color',
alpha: 0.1,
},
emphasis: {
$value: '{base.color.blue.9}',
$type: 'color',
},
},
success: {
muted: {
$value: '{base.color.green.4}',
$type: 'color',
alpha: 0.14,
},
emphasis: {
$value: '{base.color.green.9}',
$type: 'color',
},
},
open: {
muted: {
$value: '{bgColor.success.muted}',
$type: 'color',
alpha: 0.14,
},
},
danger: {
muted: {
$value: '{base.color.red.4}',
$type: 'color',
alpha: 0.09,
},
emphasis: {
$value: '{base.color.red.9}',
$type: 'color',
},
},
closed: {
muted: {
$value: '{bgColor.danger.muted}',
$type: 'color',
alpha: 0.09,
},
},
severe: {
muted: {
$value: '{base.color.orange.4}',
$type: 'color',
alpha: 0.088,
},
emphasis: {
$value: '{base.color.orange.9}',
$type: 'color',
Expand All @@ -134,29 100,12 @@
},
},
done: {
muted: {
$value: '{base.color.purple.5}',
$type: 'color',
alpha: 0.09,
},
emphasis: {
$value: '{base.color.purple.9}',
$type: 'color',
},
},
upsell: {
muted: {
$value: '{bgColor.done.muted}',
$type: 'color',
alpha: 0.09,
},
},
sponsors: {
muted: {
$value: '{base.color.pink.5}',
$type: 'color',
alpha: 0.09,
},
emphasis: {
$value: '{base.color.pink.9}',
$type: 'color',
Expand Down Expand Up @@ -215,6 164,20 @@
alpha: 1,
},
},
closed: {
muted: {
$value: '{borderColor.danger.muted}',
$type: 'color',
alpha: 1,
},
},
upsell: {
muted: {
$value: '{borderColor.done.muted}',
$type: 'color',
alpha: 1,
},
},
severe: {
muted: {
$value: '{base.color.orange.4}',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 171,20 @@
alpha: 1,
},
},
upsell: {
muted: {
$value: '{borderColor.done.muted}',
$type: 'color',
alpha: 1,
},
},
closed: {
muted: {
$value: '{borderColor.danger.muted}',
$type: 'color',
alpha: 1,
},
},
},
// patterns
avatar: {
Expand Down

0 comments on commit 9ab8102

Please sign in to comment.