Skip to content

fix: Improve MUI theme integration …#620

Merged
wandeljan merged 2 commits into
mainfrom
feat/mui-theme-fixes
Jul 13, 2026
Merged

fix: Improve MUI theme integration …#620
wandeljan merged 2 commits into
mainfrom
feat/mui-theme-fixes

Conversation

@wandeljan

@wandeljan wandeljan commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator
  • Automatically set dark mode so it doesnt break existing apps
  • Type-only import: pulls in Nova's `declare module "@mui/material/styles
  • Update design-tokens to latest

- Automatically set dark mode so it doesnt break existing apps
- Type-only import: pulls in Nova's `declare module "@mui/material/styles
@github-actions

github-actions Bot commented Jul 13, 2026

Copy link
Copy Markdown
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-07-13 11:11 UTC

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the library’s Material UI theme integration to be dark-mode-only compatible, clarifies/introduces migration guidance around createNovaTheme vs createNovaMuiTheme, and bumps core dependencies (@wandelbots/design-tokens, @wandelbots/nova-js) to newer versions.

Changes:

  • Added sanitization in createNovaTheme to prevent palette.mode: "light" from crashing upstream, and documented dark-only support.
  • Updated theme type augmentation import strategy to be type-only (module augmentation without runtime side effects).
  • Upgraded @wandelbots/design-tokens and @wandelbots/nova-js (with corresponding lockfile updates).

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
stories/WandelbotsTheme.mdx Documents dark-only theme support and migration notes for theme creation API.
stories/ThemingComponents.mdx Adds migration guidance for renamed/deprecated theme factory export.
src/themes/theming.ts Implements palette.mode sanitization and keeps deprecated alias export.
src/themes/themeTypes.ts Switches to type-only import for MUI theme augmentation from design-tokens.
package.json Bumps @wandelbots/design-tokens and @wandelbots/nova-js versions.
pnpm-lock.yaml Locks updated dependency graph for the upgraded packages.
Files not reviewed (1)
  • pnpm-lock.yaml: Generated file

Comment thread src/themes/theming.ts Outdated
Comment thread stories/WandelbotsTheme.mdx Outdated
Comment thread pnpm-lock.yaml Outdated
@wandeljan
wandeljan force-pushed the feat/mui-theme-fixes branch from 0ef4902 to 3b56773 Compare July 13, 2026 11:02
@wandeljan
wandeljan merged commit fd8e35e into main Jul 13, 2026
16 checks passed
@wandeljan
wandeljan deleted the feat/mui-theme-fixes branch July 13, 2026 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants