
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
@netlify/netlify-design-tokens
Advanced tools
Netlify's design tokens for sharing across products and repos
Install the package in the project of your choice:
yarn add -D @netlify/netlify-design-tokens
From there, you may import any of the dist
files into your codebase for reuse as desired:
Basic usage:
@import '@netlify/netlify-design-tokens/dist/css/color.css';
.myComponent {
color: var(--colorFacetsTeal200);
}
Global dark mode support:
@import '@netlify/netlify-design-tokens/dist/css/color.css';
:root {
--colorTeal: var(--colorFacetsTeal200);
}
@media (prefers-color-scheme: dark) {
:root {
--colorTeal: var(--colorFacetsTeal500);
}
}
.myComponent {
color: var(--colorTeal);
}
Alternatively, use the rgb(<color> / <alpha>)
notation to vary color opacity:
@import '@netlify/netlify-design-tokens/dist/css/color.rgb.css';
:root {
--colorTeal: var(--colorRgbFacetsTeal200);
}
@media (prefers-color-scheme: dark) {
:root {
--colorTeal: var(--colorRgbFacetsTeal200);
}
}
.myComponent {
color: rgb(var(--colorTeal) / 50%);
}
import { colorFacetsTeal500 } from '@netlify/netlify-design-tokens';
const teal = colorFacetsTeal500;
or:
import * as tokens from '@netlify/netlify-design-tokens';
const teal = tokens.colorFacetsTeal500;
const boldText = tokens.typographyWeightBold;
FAQs
Netlify's design tokens for sharing across products and repos
The npm package @netlify/netlify-design-tokens receives a total of 65,394 weekly downloads. As such, @netlify/netlify-design-tokens popularity was classified as popular.
We found that @netlify/netlify-design-tokens demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 16 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
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.