design-tokens: Update dark theme background.default to pure black (#000000)#1045
design-tokens: Update dark theme background.default to pure black (#000000)#1045georgewrmarshall wants to merge 6 commits intomainfrom
Conversation
…nd sync CSS + Figma JSON; update CHANGELOG Co-authored-by: George Marshall <georgewrmarshall@users.noreply.github.com>
📖 Storybook Preview |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix prepared a fix for the issue found in the latest run.
- ✅ Fixed: Hardcoded hex breaks token reference pattern in CSS/Figma
- Replaced the hardcoded #000000 with token references: CSS now uses var(--brand-colors-black) and Figma JSON uses {black}.
Or push these changes by commenting:
@cursor push 55e000d072
Preview (55e000d072)
diff --git a/packages/design-tokens/src/css/dark-theme-colors.css b/packages/design-tokens/src/css/dark-theme-colors.css
--- a/packages/design-tokens/src/css/dark-theme-colors.css
+++ b/packages/design-tokens/src/css/dark-theme-colors.css
@@ -6,7 +6,7 @@
/* Background default should be the darkest shade, 0 elevation.
Section is +1 elevation, subsection is +2 elevation.
Alternative should be deprecated. */
- --color-background-default: #000000;
+ --color-background-default: var(--brand-colors-black);
--color-background-section: var(--brand-colors-grey-grey800);
--color-background-subsection: var(--brand-colors-grey-grey700);
--color-background-alternative: var(--brand-colors-grey-grey1000);
diff --git a/packages/design-tokens/src/figma/darkTheme.json b/packages/design-tokens/src/figma/darkTheme.json
--- a/packages/design-tokens/src/figma/darkTheme.json
+++ b/packages/design-tokens/src/figma/darkTheme.json
@@ -1,7 +1,7 @@
{
"background": {
"default": {
- "value": "#000000",
+ "value": "{black}",
"type": "color",
"parent": "Theme Colors/Dark mode",
"description": "For default neutral surface."You can send follow-ups to the cloud agent here.
Reviewed by Cursor Bugbot for commit bbc33d1. Configure here.
| Section is +1 elevation, subsection is +2 elevation. | ||
| Alternative should be deprecated. */ | ||
| --color-background-default: var(--brand-colors-grey-grey900); | ||
| --color-background-default: #000000; |
There was a problem hiding this comment.
Hardcoded hex breaks token reference pattern in CSS/Figma
Low Severity
The CSS --color-background-default is now hardcoded to #000000 instead of using var(--brand-colors-black), and the Figma JSON uses "#000000" instead of "{black}". Every other background token in both files references its brand color via the token system (var(--brand-colors-grey-grey800), {grey.800}, etc.), and the previous value itself was var(--brand-colors-grey-grey900). The JS file correctly uses brandColor.black. This inconsistency means a future change to --brand-colors-black would update JS tokens but leave CSS and Figma stale.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit bbc33d1. Configure here.
…t in CSS and Figma Applied via @cursor push command
📖 Storybook Preview |
…release PR) Co-authored-by: George Marshall <georgewrmarshall@users.noreply.github.com>
📖 Storybook Preview |
…tisfy tests; JS uses brandColor.black Co-authored-by: George Marshall <georgewrmarshall@users.noreply.github.com>
📖 Storybook Preview |
|
@metamaskbot publish-preview |
📖 Storybook Preview |
|
Preview builds have been published. See these instructions for more information about preview builds. Expand for full list of packages and versions. |
…0/800/900/1000; sync JS, CSS, Figma JSON Co-authored-by: George Marshall <georgewrmarshall@users.noreply.github.com>
📖 Storybook Preview |
|
@metamaskbot publish-preview |
|
Preview builds have been published. See these instructions for more information about preview builds. Expand for full list of packages and versions. |
Testing MetaMask/metamask-design-system#1045 via preview package @metamask-previews/design-tokens@8.3.0-preview.dbe1fac



Description
This updates the dark theme to align with the latest pure-black exploration and elevation mapping. Brand greys are refined and dark-mode background tokens are remapped to preserve contrast on pure black. All three token surfaces (JS, CSS, Figma JSON) are synchronized.
Brand greys updated:
#292929#1f1f1f#141414#000000Dark-mode background tokens updated:
#000000)#141414)#1f1f1f)#000000)#ffffff14#ffffff1f#ffffff29#141414)#1f1f1f)#ffffff14#ffffff1f#ffffff1fNotes:
Manual testing steps
yarn buildyarn test(includes CSS/JSON/JS token parity tests)Preview builds
Comment
@metamaskbot publish-previewto publish@metamask-previewspackages for mobile/extension testing.Slack Thread