Skip to content

60.0.0

Choose a tag to compare

@github-actions github-actions released this 12 Aug 21:32
4c09dc5

@metamask/design-system-react 0.36.0

Added

  • Added BoxBackgroundColor.BackgroundElevated1, BoxBackgroundColor.BackgroundElevated2, and BoxBorderColor.BorderAlternative via @metamask/design-system-shared (#1445)

Changed

  • Updated peer dependency to @metamask/design-tokens@^9.0.0 (#1444)
    • Required coordination bump; visual impact comes from the design-tokens 9.0.0 dark theme change for apps not already on OLED pure-black
    • See design-tokens Migration Guide
  • Updated ModalContent to use BackgroundElevated1 and BorderAlternative instead of branching on pure-black mode (#1445)
    • elevated1 and border.alternative resolve to the same values as the previous pure-black path (background.alternative, border.muted); appearance is unchanged for OLED pure-black consumers
  • Updated Toast to use BackgroundElevated2 instead of BackgroundSection (#1445)
    • Dark theme unchanged (elevated2 matches background.section); light theme changes from background.section (#F3F5F9) to background.elevated2 / background.default (#FFFFFF)
  • Design-system components no longer branch on usePureBlack() for surface styling; consumers should remove PureBlackProvider / data-pure-black wiring and use elevated tokens (bg-elevated1, bg-elevated2, border-alternative) instead (#1444, #1445)

@metamask/design-system-react-native 0.40.0

Added

  • Added BoxBackgroundColor.BackgroundElevated1, BoxBackgroundColor.BackgroundElevated2, and BoxBorderColor.BorderAlternative via @metamask/design-system-shared (#1445)

Changed

  • Updated peer dependency to @metamask/design-tokens@^9.0.0 (#1444)
    • Required coordination bump; visual impact comes from the design-tokens 9.0.0 dark theme change for apps not already on OLED pure-black
    • See design-tokens Migration Guide
  • Updated BottomSheetDialog to use bg-elevated1 instead of branching on pure-black mode (#1445)
    • elevated1 resolves to the same value as the previous pure-black path (background.alternative, #0d0d0f); appearance is unchanged for OLED pure-black consumers
  • Updated Toast to use BackgroundElevated2 instead of theme-conditional BackgroundDefault / BackgroundSection (#1445)
    • elevated2 maps to background.default in light and background.section in dark, matching the previous branch; appearance is unchanged
  • Design-system components no longer branch on usePureBlack() for surface styling; consumers should remove ThemeProvider isPureBlack wiring and use elevated tokens (bg-elevated1, bg-elevated2, border-alternative) instead (#1444, #1445)

@metamask/design-system-shared 0.33.0

Added

  • Added BoxBackgroundColor.BackgroundElevated1 and BoxBackgroundColor.BackgroundElevated2 for stepped surface elevation over scrims and floating UI (#1445)
  • Added BoxBorderColor.BorderAlternative for hairline borders on elevated surfaces (#1445)

@metamask/design-system-tailwind-preset 0.11.0

Added

  • Added background.elevated1, background.elevated2, and border.alternative Tailwind color utilities mapped to new design tokens (#1445)

Changed

  • Updated peer dependency to @metamask/design-tokens@^9.0.0 (#1444)
    • Required coordination bump; visual impact comes from the design-tokens 9.0.0 dark theme change for apps not already on OLED pure-black
    • See design-tokens Migration Guide

@metamask/design-system-twrnc-preset 0.9.0

Added

  • Added bg-elevated1, bg-elevated2, and border-alternative twrnc color classes from new design tokens (#1445)

Changed

  • Updated peer dependency to @metamask/design-tokens@^9.0.0 (#1444)
    • Required coordination bump; visual impact comes from the design-tokens 9.0.0 dark theme change for apps not already on OLED pure-black
    • See design-tokens Migration Guide
  • getThemeColors() no longer varies by isPureBlack; OLED values are now canonical on the dark theme (#1444)
  • pureBlackThemeColors is deprecated and now aliases dark theme colors (#1444)

@metamask/design-tokens 9.0.0

Added

  • Added background.elevated1 and background.elevated2 for stepped surface elevation over scrims and floating UI (e.g. modals, toasts, menus) (#1445)
  • Added border.alternative for hairline borders on elevated surfaces in dark mode (#1445)

Changed

  • BREAKING: Updated canonical darkTheme to use OLED pure-black surface values (previously only available via pureBlackDarkTheme or data-pure-black overrides) (#1444)
    • background.default changes from #222325 to #000000; section, alternative, muted, and border values shift to the OLED palette
    • Apps already on pure-black / OLED dark mode (e.g. MetaMask extension and mobile) already use these values and should see no visual change
    • Apps on legacy default dark without pure-black overrides will see dark-theme UI changes on upgrade
    • See Migration Guide
  • resolveDarkTheme() now always returns canonical darkTheme; the isPureBlack parameter is ignored but retained for call-site compatibility (#1444)
    • No additional visual impact for callers already passing isPureBlack=true; see Migration Guide