
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
Library for generation color palette based on the base color for material design.
Customat using some ES6 features therefore in production you can use ES5-compiled version customat.cmpld.js.
This is only one function that takes a single argument — the base color. The base color can be specified in one of the following formats:
Result — an object that contains the generated palette in the same format (see example), or null on error.
<script src="customat.js"></script>
<script>
var baseColor = '#009688',
palette = customat(baseColor)
console.log(palette)
</script>
{
50: "#e0f2f1",
100: "#b2dfdb",
200: "#80cbc4",
300: "#4db6ac",
400: "#26a69a",
500: "#009688",
600: "#00897c",
700: "#00786d",
800: "#00695f",
900: "#004d45"
}
npm install customat
var customat = require('./customat')
console.log(customat('rgb(0, 150, 136)'))
{
'50': 'rgb(224,242,241)',
'100': 'rgb(178,223,219)',
'200': 'rgb(128,203,196)',
'300': 'rgb(77,182,172)',
'400': 'rgb(38,166,154)',
'500': 'rgb(0,150,136)',
'600': 'rgb(0,137,124)',
'700': 'rgb(0,120,109)',
'800': 'rgb(0,105,95)',
'900': 'rgb(0,77,69)'
}
0.3.0
FAQs
Material design palette generator
We found that customat 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
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.