Skip to content

Commit

Permalink
Handle muted foreground color combined with default control backgro…
Browse files Browse the repository at this point in the history
…und in dark mode (#782)

* match muted bg to control bg

* adjust fgcolor

* revert bg color change

* update legacy muted value

* Create quick-experts-allow.md

* github-actions[bot] Regenerated snapshots

* Update quick-experts-allow.md

---------

Co-authored-by: langermank <[email protected]>
  • Loading branch information
langermank and langermank authored Nov 22, 2023
1 parent 105afb5 commit ba763cc
Show file tree
Hide file tree
Showing 15 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .changeset/quick-experts-allow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@primer/primitives": patch
---

Update the muted foreground color to increase contrast against default controls in dark mode

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.
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.
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.
2 changes: 1 addition & 1 deletion data/colors/vars/global_dark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {alpha, get} from '../../../src/utils-v1'
export default {
fg: {
default: '#e6edf3',
muted: '#7d8590',
muted: '#848d97',
subtle: get('scale.gray.4'),
onEmphasis: get('scale.white')
},
Expand Down
2 changes: 1 addition & 1 deletion src/tokens/functional/color/dark/primitives-dark.json5
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
},
mix: {
color: '{base.color.gray.4}',
weight: 0.5,
weight: 0.25,
},
},
onEmphasis: {
Expand Down

0 comments on commit ba763cc

Please sign in to comment.