diff --git a/.changeset/chatty-chicken-smile.md b/.changeset/chatty-chicken-smile.md new file mode 100644 index 000000000..afd36ca38 --- /dev/null +++ b/.changeset/chatty-chicken-smile.md @@ -0,0 +1,5 @@ +--- +'@primer/primitives': minor +--- + +rm diffStat/addition/bgColor diff --git a/docs/storybook/stories/Migration/v8/DeprecatedAppTokensMap.json b/docs/storybook/stories/Migration/v8/DeprecatedAppTokensMap.json index 0f664453d..d5840bdd7 100644 --- a/docs/storybook/stories/Migration/v8/DeprecatedAppTokensMap.json +++ b/docs/storybook/stories/Migration/v8/DeprecatedAppTokensMap.json @@ -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" }, diff --git a/src/tokens/fallback/color-fallbacks.json b/src/tokens/fallback/color-fallbacks.json index c20c8f165..bc52da6fe 100644 --- a/src/tokens/fallback/color-fallbacks.json +++ b/src/tokens/fallback/color-fallbacks.json @@ -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)", diff --git a/src/tokens/functional/color/dark/app-dark.json5 b/src/tokens/functional/color/dark/app-dark.json5 index 767d0ed06..810292ac6 100644 --- a/src/tokens/functional/color/dark/app-dark.json5 +++ b/src/tokens/functional/color/dark/app-dark.json5 @@ -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}', diff --git a/src/tokens/functional/color/light/app-light.json5 b/src/tokens/functional/color/light/app-light.json5 index 4a4849ef2..d98c3217e 100644 --- a/src/tokens/functional/color/light/app-light.json5 +++ b/src/tokens/functional/color/light/app-light.json5 @@ -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}',