
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@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.
The npm package @easypost/easy-ui-tokens receives a total of 168 weekly downloads. As such, @easypost/easy-ui-tokens popularity was classified as not popular.
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 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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.