
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@gravityforms/design-tokens
Advanced tools
Design tokens as PostCSS variables, media queries, and mixins for Gravity Forms development.
Design tokens as PostCSS variables, media queries, and mixins for Gravity Forms development.
Install the module
npm install @gravityforms/design-tokens --save
Note: This package requires node
20.10.0 or later, and npm
10.2.3 or later.
A collection of design tokens as variables and mixins that drive our theme for Gravity Forms in objects that map to PostCSS plugins, grouped for the 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 Gravity Forms admin custom properties in postcss-custom-properties:
const postcssPlugins = [
...otherPlugins,
require( 'postcss-custom-properties' )( {
importFrom: [
{ customProperties: require( '@gravityforms/design-tokens/gravityforms/custom-properties/admin' ) },
],
} ),
...otherPlugins,
];
Use only our Gravity Forms admin color custom properties in postcss-custom-properties:
const postcssPlugins = [
...otherPlugins,
require( 'postcss-custom-properties' )( {
importFrom: [
{ customProperties: require( '@gravityforms/design-tokens/gravityforms/custom-properties/admin/colors' ) },
],
} ),
...otherPlugins,
];
Use all of our Gravity Forms admin custom media (media queries) in postcss-custom-media:
const postcssPlugins = [
...otherPlugins,
require( 'postcss-custom-media' )( {
importFrom: [
{ customMedia: require( '@gravityforms/design-tokens/gravityforms/custom-media/admin' ) },
],
} ),
...otherPlugins,
];
Use all of our Gravity Forms admin mixins in postcss-mixins (after custom properties):
const postcssPlugins = [
...otherPlugins,
require( 'postcss-mixins' )( {
mixins: require( '@gravityforms/design-tokens/gravityforms/mixins/admin' ),
} ),
...otherPlugins,
];
FAQs
Design tokens as PostCSS variables, media queries, and mixins for Gravity Forms development.
We found that @gravityforms/design-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 researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.