
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@plentymarkets/tailwind-colors
Advanced tools
Package to generate a 10-color palette based on a given color hex. Useful to generate Tailwind CSS palettes.
npm install --save palettey
import { createPaletteFromColor } from "palettey";
// Generate a luminance palette
createPaletteFromColor("primary", "#7953e0", {
useLightness: false,
})
// Generate a lightness palette
createPaletteFromColor("primary", "#7953e0", {})
To create css variables for the generated palette you can use:
const palette = createPaletteFromColor("primary", "D20000", {});
Object.entries(palette.test).forEach((entry) => {
const [step, color] = entry;
document.documentElement.style.setProperty(
`--color-primary-${step}`,
color
);
});
Check out Palette Generator to try the generator online.
Based on tailwind-css-palette-generator created by Simeon Griggs Contribution by George Ciesinski
FAQs
Generate a 10-color palette from a base color
The npm package @plentymarkets/tailwind-colors receives a total of 235 weekly downloads. As such, @plentymarkets/tailwind-colors popularity was classified as not popular.
We found that @plentymarkets/tailwind-colors demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 10 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.