Version Packages#50
Merged
Merged
Conversation
gitsad
approved these changes
Jul 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@mobile-reality/mdma-renderer-react@0.5.0
Minor Changes
ae32824: Add opt-in theming to both renderers via a
themeprop onMdmaDocument."light","dark","auto"(follows the OS preference), or a fullMdmaThemetoken object; omit it for the unchanged default light look.styles.cssis now driven by--mdma-*CSS variables, so themes apply viadata-theme/inline variables and can be overridden directly in CSS. ExposesMdmaThemeProvider,useMdmaTheme,lightTheme,darkTheme, and helpers.MdmaDocumentwith nothemeprop now inherits the theme from an ancestorMdmaThemeProvider, so one provider can theme a whole app; an explicitthemeprop still wins.MdmaThemeobject now also selects the light/dark base (by itsbackgroundluminance) so the stylesheet's internal derived colors (heading text, code backgrounds, …) match — a custom dark theme no longer renders near-black text on a dark surface.--mdma-color-*-hover) and the input focus ring — now derive from the base tokens viacolor-mix, so a customprimarygets a coherent matching hover/focus automatically instead of the built-in purple.theme="auto"now follows the OS color scheme viauseColorScheme().MdmaThemetoken shape, so a custom theme object is portable between web and native.@mobile-reality/mdma-renderer-react-native@0.3.0
Minor Changes
ae32824: Add opt-in theming to both renderers via a
themeprop onMdmaDocument."light","dark","auto"(follows the OS preference), or a fullMdmaThemetoken object; omit it for the unchanged default light look.styles.cssis now driven by--mdma-*CSS variables, so themes apply viadata-theme/inline variables and can be overridden directly in CSS. ExposesMdmaThemeProvider,useMdmaTheme,lightTheme,darkTheme, and helpers.MdmaDocumentwith nothemeprop now inherits the theme from an ancestorMdmaThemeProvider, so one provider can theme a whole app; an explicitthemeprop still wins.MdmaThemeobject now also selects the light/dark base (by itsbackgroundluminance) so the stylesheet's internal derived colors (heading text, code backgrounds, …) match — a custom dark theme no longer renders near-black text on a dark surface.--mdma-color-*-hover) and the input focus ring — now derive from the base tokens viacolor-mix, so a customprimarygets a coherent matching hover/focus automatically instead of the built-in purple.theme="auto"now follows the OS color scheme viauseColorScheme().MdmaThemetoken shape, so a custom theme object is portable between web and native.ff4ca64: Unify the React Native renderer's built-in
lightTheme/darkThemepalettes with the web renderer's, so MDMA content looks consistent across web and native. The native defaults were previously a blue-primary palette; they now match the web renderer's purple-primary light/dark themes exactly (samecolors, andfontSizesmall/titlealigned). Pass a customMdmaThemetoMdmaDocument/MdmaThemeProviderto override.Also fixes the RN
TableRendererandChartRenderer(which renders as a table), whose bodies had no themed background (only the header did) — on a dark theme the rows showed through to whatever was behind them. They now fill their container withcolors.background(header stayscolors.surface), matching the web renderer and the other RN card renderers.@mobile-reality/mdma-demo@0.0.14
Patch Changes
@mobile-reality/mdma-demo-native@0.0.3
Patch Changes