
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@volue/design-colors
Advanced tools
@volue/design-colors
Color primitives/tokens to be used across Volue's products
npm install @volue/design-colors --save
# or
yarn add @volue/design-colors
In JavaScript, design token names are formatted in lower camelCase. Tokens are exported as nested object structure.
const tokens = require('@volue/design-colors');
console.log(tokens.core.blue100); // rgb(0, 133, 159)
console.log(tokens.background.neutral.default);
Use flat
entrypoint to consume flattened tokens:
const tokens = require('@volue/design-colors/flat');
console.log(tokens.colorBlue100);
console.log(tokens.backgroundNeutralSubtle);
In JSON, design token names are formatted in SNAKE_CASE.
const tokens = require('@volue/design-colors/dist/index.json');
console.log(tokens['COLOR_WHITE']); // rgb(255, 255, 255)
Sass variables and map keys are formatted in kebab-case.
// Using variables
@import '~@volue/design-colors/dist/index';
a {
color: $color-accent90;
}
CSS variables/custom properties are formatted in kebab-case.
@import '~@volue/design-colors/dist/index.custom-properties.css';
a {
color: var(--color-accent90);
}
FAQs
Color primitives for Volue design primitives
The npm package @volue/design-colors receives a total of 853 weekly downloads. As such, @volue/design-colors popularity was classified as not popular.
We found that @volue/design-colors demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.