Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
material-ui-with-sass
Advanced tools
material-ui-with-sass is a combination fork of [material-ui](https://github.com/callemall/material-ui)@v0.7.5 and [material-ui-sass](https://github.com/gpbl/material-ui-sass) that still uses traditional css (well, sass) to apply styles.
material-ui-with-sass is a combination fork of material-ui@v0.7.5 and material-ui-sass that still uses traditional css (well, sass) to apply styles.
Currently, it works with react >= 0.13, including 0.14.0-beta1
Because of this decision. I'm in a situation where upgrading to material-ui v0.8 would've been too time-consuming to refactor the entire project in favor of their inline-js styles. And so, material-ui-with-sass was born. It's currently pretty far behind the original material-ui, but if you find this useful, please contribute! This repo could use some love.
Check out our github io site for live examples. Although this looks identical to material-ui's demo site, it has been updated to reflect material-ui-with-sass's current state.
material-ui-with-sass is available as an npm package.
npm install material-ui-with-sass
The styles are separated into 2 sass files:
It is important that when you compile the sass that you use something like autoprefixer!
This allows you to override any variables defined in _custom-variables.scss without having to modify material-ui-with-sass source files directly. For example, your main.scss file could look something like this:
@import "node_modules/material-ui-with-sass/src/sass/scaffolding";
// Define a custom sass file to override any variables defined in scaffolding.scss
@import "my-custom-overrides.scss";
@import "node_modules/material-ui-with-sass/src/sass/components";
Once material-ui-with-sass is included in your project, you can use the components this way:
/** MyAwesomeReactComponent.jsx */
var React = require("react"),
var mui = require("material-ui-with-sass");
var MyAwesomeReactComponent = React.createClass({
render: function() {
return (
<mui.RaisedButton label="Default" />
);
}
});
module.exports = MyAwesomeReactComponent;
This project is seriously lagging behind the original material-ui, but I'm hoping there are enough people who want to use material-ui, but either didn't want to, or simply couldn't refactor the entire project to use inline-js styling, that this will gain a little popularity. Please contribute if you can!
This project is licensed under the terms of the MIT license
FAQs
material-ui-with-sass is a combination fork of [material-ui](https://github.com/callemall/material-ui)@v0.7.5 and [material-ui-sass](https://github.com/gpbl/material-ui-sass) that still uses traditional css (well, sass) to apply styles.
The npm package material-ui-with-sass receives a total of 225 weekly downloads. As such, material-ui-with-sass popularity was classified as not popular.
We found that material-ui-with-sass 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.