---
url: /api/plugins/postcss/props-minify/src/variables/pruneCustomProps.md
---
[pantoken-root](../../../../../index.md) / [plugins/postcss/props-minify/src](../index.md) / pruneCustomProps

# Variable: pruneCustomProps

> `const` **pruneCustomProps**: {(): [`Plugin`](https://postcss.org/api/#plugin); `postcss`: `true`; }

Beta

Create the prune-unused-custom-properties PostCSS plugin.

## Type Declaration

## Returns

[`Plugin`](https://postcss.org/api/#plugin)

A PostCSS [Plugin](https://postcss.org/api/#plugin).

### postcss

> **postcss**: `true`

Required PostCSS plugin marker.

## Example

**Run it as a standalone PostCSS pass**

```ts
import postcss from "postcss";
import { pruneCustomProps } from "@pantoken/plugin-prune-custom-props";

const out = postcss([pruneCustomProps()]).process(css, { from: undefined }).css;
// only the --instui-* custom properties reachable from real declarations survive
```
