@mui/system, Override theme type

Viewed 32

How do I make @mui/system aware of my theme settings?

When using Stack's sx prop, theme is defined in createTheme.d.ts, but there doesn't seem to be a way to extend or provide overrides.

As a workaround, I'm using styled to extend Stack with my theme values.

1 Answers

As @Camilo stated, use import {Stack} from "@mui/material" instead of from @mui/system.

Related