
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
@wonderflow/tokens
Advanced tools
This repo contains all the design tokens generated from the Wonderflow design language. These tokens are the foundation for our digital products.
To use the tokens you have to install the npm package first:
npm i @wonderflow/tokens
based on the platform you're working on, you can import the tokens from the relative platform folder inside node_modules. For example if you're working on web, you can import the tokens as JSON or CSS (custom-properties):
Currently we ship tokens only for the web platform, others may be added in the future.
If you want to import and use tokens inside your javascript-based project, you can import the json version and use it. Note that the color tokens are provided in HSL format, without the css hsl() notation, which you have to add each time.
import tkns from "@wonderflow/tokens/platforms/web/tokens.json";
<div style={{ color: `hsl(${tkns.color.blue["50"]} / 10%)` }} />;
If your codebase is based on typescript you can import the tokens types which provide types validation for tokens when you use them inside other components. Here an example:
import { Space } from "@wonderflow/tokens/platforms/web/types";
import React from "react";
type MyComponentProps = {
padding: Space,
};
Inside css files the tokens are available as custom env variables (env(--[TOKEN-NAME])), they are then converted into the final value at build-time.
@import "@wonderflow/tokens/platforms/web/tokens.css";
div {
/* Colors are defined as HSL-4 but without the hsl() notation */
color: hsl(env(--color-primary-50) / 50%);
}
NOTE
You need to use
postcss-importorpostcss-easy-importto import files from node_modules
FAQs
Design tokens from Wonderflow design language
We found that @wonderflow/tokens demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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 researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.