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.
@easypost/easy-ui-tokens
Advanced tools
[Design tokens](https://github.com/EasyPost/easy-ui/blob/main/documentation/decisions/004_design_tokens.md) for [Easy UI](https://github.com/EasyPost/easy-ui), EasyPost's design system.
Design tokens for Easy UI, EasyPost's design system.
Easy UI Tokens uses Style Dictionary as its organizational paradigm and build tool. It transpiles JSON configuration values to platform-specific variables.
import tokens from "@easypost/easy-ui-tokens/js/tokens.js";
console.log(tokens["color-blue-100"]);
import '@easypost/easy-ui-tokens/css/variables.css';
div {
background: var(--ezui-color-blue-100);
}
CSS variables are prefixed with --ezui
to signal that these variables are Easy UI variables.
@import "@easypost/easy-ui-tokens/scss/variables.scss";
div {
background: $ezui-color-blue-100;
}
// Map:
@import "@easypost/easy-ui-tokens/scss/map.scss";
div {
background: map-get($ezui-tokens, "color-blue-100");
}
SCSS variables are prefixed with $ezui
to signal that these variables are Easy UI variables.
const tokens = require("@easypost/easy-ui-tokens/json/tokens.json");
console.log(tokens["color-blue-100"]);
Command | Runs |
---|---|
npm run build | Builds Easy UI design tokens |
npm run clean | Removes temp directories |
npm run dev | Builds Easy UI design tokens on file changes |
FAQs
[Design tokens](https://github.com/EasyPost/easy-ui/blob/main/documentation/decisions/004_design_tokens.md) for [Easy UI](https://github.com/EasyPost/easy-ui), EasyPost's design system.
We found that @easypost/easy-ui-tokens demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
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.