# @csstools/postcss-gradient-stop-increments-experimental

> Increment CSS gradient stops

Latest version **3.0.8** (published 2026-10-02) · CC0-1.0 license · 0 weekly downloads

## Install

```sh
npm install @csstools/postcss-gradient-stop-increments-experimental
pnpm add @csstools/postcss-gradient-stop-increments-experimental
yarn add @csstools/postcss-gradient-stop-increments-experimental
bun add @csstools/postcss-gradient-stop-increments-experimental
```

## Health

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

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

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 3.0.8 |
| Published | 2026-10-02 |
| First published | 2023-03-21 |
| Weekly downloads | 0 |
| License | CC0-1.0 |
| TypeScript types | none |
| Module format | ESM |
| Node | >=20.19.0 |
| Dependencies | 3 |
| Unpacked size | 14.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1058 |
| Maintainers | jonathantneal, alaguna, romainmenke |
| Keywords | css, gradient, gradient-stop, postcss, postcss-plugin |

## Links

- npm: https://www.npmjs.com/package/@csstools/postcss-gradient-stop-increments-experimental
- Repository: https://github.com/csstools/postcss-plugins
- Homepage: https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-gradient-stop-increments#readme
- Issues: https://github.com/csstools/postcss-plugins/issues
- Funding: https://github.com/sponsors/csstools
- npm.io page: https://npm.io/package/@csstools/postcss-gradient-stop-increments-experimental

## Dependencies (3)

- [@csstools/css-calc](https://npm.io/package/@csstools/css-calc.md) ^3.4.3
- [@csstools/css-tokenizer](https://npm.io/package/@csstools/css-tokenizer.md) ^4.0.2
- [@csstools/css-parser-algorithms](https://npm.io/package/@csstools/css-parser-algorithms.md) ^4.0.2

## Recent versions

- 3.0.8 (latest) — 2026-10-02
- 3.0.7 — 2026-10-01
- 3.0.6 — 2026-09-25
- 3.0.5 — 2026-09-13
- 3.0.4 — 2026-07-22
- 3.0.3 — 2026-05-13
- 3.0.2 — 2026-04-12
- 3.0.1 — 2026-02-21
- 3.0.0 — 2026-01-14
- 2.0.9 — 2025-05-27
- 2.0.8 — 2025-04-19
- 2.0.7 — 2025-02-23
- 2.0.6 — 2024-12-27
- 2.0.5 — 2024-11-11
- 2.0.4 — 2024-11-01
- … 17 more at https://npm.io/package/@csstools/postcss-gradient-stop-increments-experimental/versions

## README

# PostCSS Gradient Stop Increments [<img src="https://postcss.github.io/postcss/logo.svg" alt="PostCSS Logo" width="90" height="90" align="right">][PostCSS]

`npm install @csstools/postcss-gradient-stop-increments-experimental --save-dev`

[PostCSS Gradient Stop Increments] lets you increment gradient stops following the [CSSWG 8616 proposal].

```css
.example-1 {
	background: linear-gradient(red 50%, blue ++1px);
}

.example-2 {
	background: conic-gradient(red ++60deg, blue ++10deg ++50deg, green ++60deg, yellow ++60deg);
}

.example-3 {
	background: conic-gradient(pink ++60deg, cyan 0 ++20deg, gold 0 ++10deg);
}

.example-4 {
	background: linear-gradient(orange 20px, magenta 2vi, aqua ++2vw);
}

/* becomes */

.example-1 {
	background: linear-gradient(red 50%, blue calc(50% + +1px));
}

.example-2 {
	background: conic-gradient(red +60deg, blue 70deg 120deg, green 180deg, yellow 240deg);
}

.example-3 {
	background: conic-gradient(pink +60deg, cyan 0 80deg, gold 0 90deg);
}

.example-4 {
	background: linear-gradient(orange 20px, magenta 2vi, aqua calc(max(20px, 2vi) + +2vw));
}
```

## Usage

Add [PostCSS Gradient Stop Increments] to your project:

```bash
npm install postcss @csstools/postcss-gradient-stop-increments-experimental --save-dev
```

Use it as a [PostCSS] plugin:

```js
const postcss = require('postcss');
const postcssGradientStopIncrementsExperimental = require('@csstools/postcss-gradient-stop-increments-experimental');

postcss([
	postcssGradientStopIncrementsExperimental(/* pluginOptions */)
]).process(YOUR_CSS /*, processOptions */);
```



## Options

### preserve

The `preserve` option determines whether the original notation
is preserved. By default, it is not preserved.

```js
postcssGradientStopIncrementsExperimental({ preserve: true })
```

```css
.example-1 {
	background: linear-gradient(red 50%, blue ++1px);
}

.example-2 {
	background: conic-gradient(red ++60deg, blue ++10deg ++50deg, green ++60deg, yellow ++60deg);
}

.example-3 {
	background: conic-gradient(pink ++60deg, cyan 0 ++20deg, gold 0 ++10deg);
}

.example-4 {
	background: linear-gradient(orange 20px, magenta 2vi, aqua ++2vw);
}

/* becomes */

.example-1 {
	background: linear-gradient(red 50%, blue calc(50% + +1px));
	background: linear-gradient(red 50%, blue ++1px);
}

.example-2 {
	background: conic-gradient(red +60deg, blue 70deg 120deg, green 180deg, yellow 240deg);
	background: conic-gradient(red ++60deg, blue ++10deg ++50deg, green ++60deg, yellow ++60deg);
}

.example-3 {
	background: conic-gradient(pink +60deg, cyan 0 80deg, gold 0 90deg);
	background: conic-gradient(pink ++60deg, cyan 0 ++20deg, gold 0 ++10deg);
}

.example-4 {
	background: linear-gradient(orange 20px, magenta 2vi, aqua calc(max(20px, 2vi) + +2vw));
	background: linear-gradient(orange 20px, magenta 2vi, aqua ++2vw);
}
```

[cli-url]: https://github.com/csstools/postcss-plugins/actions/workflows/test.yml?query=workflow/test

[discord]: https://discord.gg/bUadyRwkJS
[npm-url]: https://www.npmjs.com/package/@csstools/postcss-gradient-stop-increments-experimental

[PostCSS]: https://github.com/postcss/postcss
[PostCSS Gradient Stop Increments]: https://github.com/csstools/postcss-plugins/tree/main/experimental/postcss-gradient-stop-increments
[CSSWG 8616 proposal]: https://github.com/w3c/csswg-drafts/issues/8616

---
_Source: https://npm.io/package/@csstools/postcss-gradient-stop-increments-experimental · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
