Skip to content

Refactor Theme Provider to not Mount MUI and CSS by Default #19

@jenny-s51

Description

@jenny-s51

Follow up to #16

The ThemeProvider automatically imports MUI styles at module level, causing:

  • JavaScript injection into SCSS files during build (with sass as peer dependency)
  • Prevents tree shaking - MUI styles bundled even when unused
  • Stylesheet conflicts - unintended theme overrides in consuming apps

Solution: Refactor theme provider to not Mount MUI and CSS by default.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions