Skip to content

51.0.0

Choose a tag to compare

@github-actions github-actions released this 03 Jul 17:04
4fe2121

@metamask/design-system-react 0.31.0

Added

  • Added PureBlackProvider and usePureBlack for OLED pure-black dark mode; on web, CSS token overrides come from data-pure-black on the document root while the provider supplies context for component logic (#1305, #1312)

Changed

  • Updated ModalContent to use background.alternative for the dialog surface when pure-black mode is active, giving modals visible elevation on OLED black backgrounds (#1308)

@metamask/design-system-react-native 0.33.0

Changed

  • Updated BottomSheetDialog to use background.alternative and pure-black shadow tokens when pure-black mode is active via usePureBlack from @metamask/design-system-twrnc-preset (#1307)

@metamask/design-system-shared 0.27.0

Added

  • Added PureBlackContext, PureBlackContextValue, and PureBlackProviderProps for cross-platform pure-black dark mode state (#1300)

@metamask/design-system-twrnc-preset 0.7.0

Added

  • Added isPureBlack prop to ThemeProvider and usePureBlack hook so React Native apps can apply pureBlackDarkTheme token values through twrnc classes (#1306)

@metamask/design-tokens 8.7.0

Added

  • Added pureBlackDarkTheme and resolveDarkTheme(isPureBlack) for OLED pure-black dark mode token values (#1300)