
Security News
OWASP 2025 Top 10 Adds Software Supply Chain Failures, Ranked Top Community Concern
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.
material-design-color
Advanced tools
The colour palette, based on Google's Material Design, for use in your project
The colour palette, based on Google's Material Design, for use in your project.
git clone git://github.com/mrmlnc/material-color.git;bower install --save material-colornpm install --save material-design-color;Support for all popular css preprocessors:
Just import the file, whitch includes variables colors in your project.
// Less, SCSS, Stylus
@import "lib/material-color";
The build variable:
(@|$)clr-(color)-(range)
Example:
@import "lib/material-color";
.example-1 {
background-color: @clr-blue;
}
.example-2 {
background-color: @clr-green-700;
}
Additional variables
Additional variables for text based on Material Design Typography.
// Typography
clr-ui-display-4
clr-ui-display-3
clr-ui-display-2
clr-ui-display-1
clr-ui-headline
clr-ui-title
clr-ui-subhead-1
clr-ui-body-2
clr-ui-body-1
clr-ui-caption
clr-ui-menu
clr-ui-button
Mixin
There are provided lists of variables for looping through the colors. In order to use this functionality you must import file and call mixin(s):
@import "mixins/class-generator";
// Less
.material-color-class("red"); // another color or "all"
.material-color-class("red", background-color); // another property or empty (default: color)
// SCSS
@include material-color-class("red"); // another color or "all"
@include material-color-class("red", background-color); // another property or empty (default: color)
// Stylus
material-color-class('red'); // another color or 'all'
material-color-class('red', background-color); // another property or empty (default: color)
See the Releases section of our GitHub project for changelogs for each release version.
This software is released under the terms of the MIT license.
FAQs
The colour palette, based on Google's Material Design, for use in your project
The npm package material-design-color receives a total of 331 weekly downloads. As such, material-design-color popularity was classified as not popular.
We found that material-design-color 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.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.