![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
@mui/styled-engine
Advanced tools
The @mui/styled-engine package is a styling solution for MUI, a popular React UI framework. It acts as an abstraction layer over different styling solutions, allowing developers to switch between different styled engines, such as emotion or styled-components, without changing their MUI component usage. It provides a consistent API for defining styles for MUI components.
Customization of MUI components
This feature allows developers to customize MUI components using a familiar CSS-in-JS syntax. The code sample demonstrates how to create a custom styled version of an MUI Button component with a specific background color and hover state.
{"const StyledButton = styled(Button)({ backgroundColor: 'lightblue', '&:hover': { backgroundColor: 'blue' } }); return <StyledButton>Styled Button</StyledButton>;"}
Theming support
The package provides theming support, enabling developers to define a theme object and apply it to MUI components using a ThemeProvider. The code sample shows how to define a custom theme with a primary color and apply it to a Button component.
{"const theme = createTheme({ palette: { primary: { main: '#007bff' } } }); return <ThemeProvider theme={theme}><Button color='primary'>Themed Button</Button></ThemeProvider>;"}
Style overrides
Developers can use the package to override default styles of MUI components at the theme level. The code sample illustrates how to override the font size of all Button components within a theme.
{"const theme = createTheme({ components: { MuiButton: { styleOverrides: { root: { fontSize: '1rem' } } } } }); return <ThemeProvider theme={theme}><Button>Button with Style Overrides</Button></ThemeProvider>;"}
Styled-components is a popular CSS-in-JS library that allows you to write actual CSS code to style your components. It uses tagged template literals to style components and does not rely on a theme provider like @mui/styled-engine. It is similar in providing a way to style components but does not have built-in integration with MUI.
Emotion is another CSS-in-JS library that enables styling with a JavaScript and CSS syntax. It is similar to @mui/styled-engine in that it can be used with MUI components, and in fact, @mui/styled-engine can use Emotion as its underlying implementation. Emotion provides more flexibility and customization options compared to the abstraction provided by @mui/styled-engine.
JSS (JavaScript Style Sheets) is a styling library that allows you to write CSS in JavaScript. It is similar to @mui/styled-engine in that it can be used to style React components, but it uses a different syntax and approach. JSS was the default styling solution in older versions of MUI before the introduction of the styled-engine abstraction.
This package is a wrapper around the @emotion/react
package.
It also provides a shared interface that can be used with other styled engines, like styled-components.
It is used internally in the @mui/system
package.
Visit https://next.mui.com/material-ui/integrations/styled-components/ to view the full documentation.
7.0.0-alpha.0
<!-- generated comparing v6.4.1..master -->Jan 31, 2025
A big thanks to the 9 contributors who made this release possible. This is the first alpha release of Material UI v7 🎉.
@mui/material@7.0.0-alpha.0
slots
, slotProps
(#45035) @siriwatknpinputProps
and complete slots, slotProps (#45076) @siriwatknp@mui/utils@7.0.0-alpha.0
sx
instead of override when using mergeSlotProps
(#45062) @siriwatknp/base-ui
redirect and prune links (#45083) @mj12albertAll contributors of this release in alphabetical order: @DiegoAndai, @good-jinu, @harry-whorlow, @Janpot, @joshkel, @mj12albert, @oliviertassinari, @siriwatknp, @ZeeshanTamboli
FAQs
styled() API wrapper package for emotion.
The npm package @mui/styled-engine receives a total of 0 weekly downloads. As such, @mui/styled-engine popularity was classified as not popular.
We found that @mui/styled-engine demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 11 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.