Skip to content

Commit

Permalink
update diffStat tokens (#728)
Browse files Browse the repository at this point in the history
* update diffStat tokens

* rm diffStat/bgColor

* update fallback

* rm color-diffstat-addition-bg from storybook
  • Loading branch information
lukasoppermann authored Sep 21, 2023
1 parent 71274d5 commit 51dbba8
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 36 deletions.
5 changes: 5 additions & 0 deletions .changeset/chatty-chicken-smile.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@primer/primitives': minor
---

rm diffStat/addition/bgColor
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@
},
"color-diffstat-deletion-border": {},
"color-diffstat-addition-border": {},
"color-diffstat-addition-bg": {
"background": "diffStat-addition-bgColor"
},
"color-diffstat-addition-bg": {},
"color-search-keyword-hl": {
"background": "highlight-neutral-bgColor"
},
Expand Down
2 changes: 1 addition & 1 deletion src/tokens/fallback/color-fallbacks.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"--diffBlob-deletion-bgColor-word": "var(--color-diff-blob-deletion-word-bg)",
"--diffBlob-hunk-bgColor-num": "var(--color-diff-blob-hunk-num-bg)",
"--diffBlob-expander-iconColor": "var(--color-diff-blob-expander-icon)",
"--diffStat-addition-bgColor": "var(--color-diffstat-addition-bg)",
"--diffStat-addition-bgColor": "var(--bgColor-success-emphasis)",
"--codeMirror-fgColor": "var(--color-codemirror-text)",
"--codeMirror-bgColor": "var(--color-codemirror-bg)",
"--codeMirror-gutters-bgColor": "var(--color-codemirror-gutters-bg)",
Expand Down
16 changes: 0 additions & 16 deletions src/tokens/functional/color/dark/app-dark.json5
Original file line number Diff line number Diff line change
Expand Up @@ -218,22 +218,6 @@
},
},
},
diffStat: {
addition: {
bgColor: {
$value: '{bgColor.success.emphasis}',
$type: 'color',
$extensions: {
'org.primer.figma': {
collection: 'mode',
mode: 'dark',
group: 'component',
scopes: ['bgColor'],
},
},
},
},
},
codeMirror: {
fgColor: {
$value: '{fgColor.default}',
Expand Down
16 changes: 0 additions & 16 deletions src/tokens/functional/color/light/app-light.json5
Original file line number Diff line number Diff line change
Expand Up @@ -215,22 +215,6 @@
},
},
},
diffStat: {
addition: {
bgColor: {
$value: '{bgColor.success.emphasis}',
$type: 'color',
$extensions: {
'org.primer.figma': {
collection: 'mode',
mode: 'light',
group: 'component',
scopes: ['bgColor'],
},
},
},
},
},
codeMirror: {
fgColor: {
$value: '{fgColor.default}',
Expand Down

0 comments on commit 51dbba8

Please sign in to comment.