
Security News
PEP 810 Proposes Explicit Lazy Imports for Python 3.15
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
@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.
Security News
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.