
Research
/Security News
11 Malicious NuGet Tools Pose as Game Cheats to Drop a Windows Host-Surveillance Payload
11 malicious NuGet tools pose as game cheats to deploy Windows payloads, track hosts, and use Google Sheets for telemetry and control.
react-mui-styles
Advanced tools
MUI Styles - The legacy JSS-based styling solution of Material UI.
Please use the latest version 2.x. Versions prior to are deprecated with bugs.
| Version | Compatible |
|---|---|
| ^5.x | MUI |
| ^18.x | React |
| ^14.x | Node |
Using npm:
npm install react-mui-styles
import * as React from "react";
import { makeStyles } from "react-mui-styles";
const useStyles = makeStyles({
container: {
width: "100vw",
height: "100vh",
padding: 0,
},
});
export default function App() {
const classes = useStyles();
return <div className={classes.container}>Hello world</div>;
}
MakeStyles with theme
import * as React from "react";
import { Theme } from '@mui/material';
import { makeStyles } from "react-mui-styles";
const useStyles = makeStyles((theme: Theme) => ({
container: {
width: "100vw",
height: "100vh",
padding: 0,
},
[theme.breakpoints.down('md')]: {
container: {
width: 100
},
},
[theme.breakpoints.down('sm')]: {
container: {
width: 300
},
},
[theme.breakpoints.down('xs')]: {
container: {
width: 500
},
}
}));
export default function App() {
const classes = useStyles();
return <div className={classes.container}>Hello world</div>;
}
Styled components
import * as React from "react";
import { styled } from "react-mui-styles";
import { Card } from "@mui/material";
const MuiCard = styled(Card)({
borderRadius: 5,
padding: 15,
textAlign: "center",
maxWidth: 200,
});
export default function StyledComponents() {
return <MuiCard>Styled with card</MuiCard>;
}
With styles component
import * as React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from 'react-mui-styles';
const useStyles = {
container: {
width: "100vw",
height: "100vh",
padding: 0,
},
};
function WithStylesComponent(props) {
const { classes } = props;
return <div className={classes.container}>With styles component</div>;
}
WithStylesComponent.propTypes = {
classes: PropTypes.object.isRequired,
};
export default withStyles(useStyles)(WithStylesComponent);
FAQs
React MUI Styles
The npm package react-mui-styles receives a total of 0 weekly downloads. As such, react-mui-styles popularity was classified as not popular.
We found that react-mui-styles demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.

Research
/Security News
11 malicious NuGet tools pose as game cheats to deploy Windows payloads, track hosts, and use Google Sheets for telemetry and control.

Research
/Security News
4 compromised asyncapi packages deliver miasma botnet loader on macOS, Linux and Windows.

Research
/Security News
A compromised jscrambler npm release added a malicious preinstall hook that runs hidden native binaries on Linux, macOS, and Windows.