# @gravityforms/design-tokens

> Design tokens as PostCSS variables, media queries, and mixins for Gravity Forms development.

Latest version **8.0.2** (published 2026-09-01) · GPL-2.0-or-later license · 0 weekly downloads

## Install

```sh
npm install @gravityforms/design-tokens
pnpm add @gravityforms/design-tokens
yarn add @gravityforms/design-tokens
bun add @gravityforms/design-tokens
```

## Health

**Score 55/100 (C)** — status: active.

Positive: no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads; no types; no esm support.

## Facts

| | |
|---|---|
| Version | 8.0.2 |
| Published | 2026-09-01 |
| First published | 2022-05-11 |
| Weekly downloads | 0 |
| License | GPL-2.0-or-later |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=24.11.1 |
| Dependencies | 2 |
| Unpacked size | 79 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Rocketgenius |
| Maintainers | faction23, sswebster, alexcancado, sherifmesallam, paulmskim, ryanurban, carlhancock, nickpelton |
| Keywords | gravityforms, custom-properties, design-tokens, theme |

## Links

- npm: https://www.npmjs.com/package/@gravityforms/design-tokens
- Repository: https://github.com/gravityforms/gravitypackages
- Homepage: https://github.com/gravityforms/gravitypackages/tree/HEAD/packages/npm/design-tokens/README.md
- Issues: https://github.com/gravityforms/gravitypackages/issues
- npm.io page: https://npm.io/package/@gravityforms/design-tokens

## Dependencies (2)

- [find-config](https://npm.io/package/find-config.md) 1.0.0
- [@gravityforms/node-utils](https://npm.io/package/@gravityforms/node-utils.md) ^4.0.0

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 8.0.2 (latest) — 2026-09-01
- 8.0.1 — 2026-05-27
- 8.0.0 — 2026-04-14
- 7.4.1 — 2026-03-24
- 7.4.0 — 2026-03-13
- 7.3.0 — 2026-03-12
- 7.2.0 — 2026-03-11
- 7.1.0 — 2026-03-09
- 7.0.2 — 2025-12-23
- 7.0.1 — 2025-12-17
- 7.0.0 — 2025-11-27
- 6.2.10 — 2025-11-19
- 6.2.9 — 2025-10-22
- 6.2.8 — 2025-10-17
- 6.2.7 — 2025-07-28
- … 75 more at https://npm.io/package/@gravityforms/design-tokens/versions

## README

# Gravity Forms Design Tokens

Design tokens as PostCSS variables, media queries, and mixins for Gravity Forms development.

## Installation

Install the module

```bash
npm install @gravityforms/design-tokens --save
```

**Note**: This package requires `node` 20.10.0 or later, and `npm` 10.2.3 or later.

## Overview

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.

## Usage

Use all of our Gravity Forms admin custom properties in [postcss-custom-properties](https://github.com/postcss/postcss-custom-properties):

```js
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](https://github.com/postcss/postcss-custom-properties):

```js
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](https://github.com/postcss/postcss-custom-media):

```js
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](https://github.com/postcss/postcss-mixins) (after custom properties):

```js
const postcssPlugins = [
        ...otherPlugins,
	require( 'postcss-mixins' )( {
		mixins: require( '@gravityforms/design-tokens/gravityforms/mixins/admin' ),
	} ),
	...otherPlugins,
];
```

---
_Source: https://npm.io/package/@gravityforms/design-tokens · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
