
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.
@gravityflow/design-tokens
Advanced tools
Design tokens as PostCSS variables, media queries, and mixins for Gravity Flow development.
Design tokens as PostCSS variables, media queries, and mixins for Gravity Flow development.
Install the module
npm install @gravityflow/design-tokens --save
Note: This package requires node 16.13.0 or later, and npm 8.1.0 or later.
A collection of design tokens as variables and mixins that drive our theme for Gravity Flow in objects that map to PostCSS plugins, grouped for the common, admin, and theme contexts in WordPress.
Currently, we supply customProperties, customMedia, and mixins. Please note the required PostCSS plugins that must be used with each module type.
Use all of our admin custom properties in postcss-custom-properties:
const postcssPlugins = [
...otherPlugins,
require( 'postcss-custom-properties' )( {
importFrom: [
{ customProperties: require( '@gravityflow/design-tokens/custom-properties/admin' ) },
],
} ),
...otherPlugins,
];
Use only our admin color custom properties in postcss-custom-properties:
const postcssPlugins = [
...otherPlugins,
require( 'postcss-custom-properties' )( {
importFrom: [
{ customProperties: require( '@gravityflow/design-tokens/custom-properties/admin/colors' ) },
],
} ),
...otherPlugins,
];
Use all of our admin custom media (media queries) in postcss-custom-media:
const postcssPlugins = [
...otherPlugins,
require( 'postcss-custom-media' )( {
importFrom: [
{ customMedia: require( '@gravityflow/design-tokens/custom-media/admin' ) },
],
} ),
...otherPlugins,
];
Use all of our admin mixins in postcss-mixins (after custom properties):
const postcssPlugins = [
...otherPlugins,
require( 'postcss-mixins' )( {
mixins: require( '@gravityflow/design-tokens/mixins/admin' ),
} ),
...otherPlugins,
];
FAQs
Design tokens as PostCSS variables, media queries, and mixins for Gravity Flow development.
We found that @gravityflow/design-tokens demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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 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.