# @csstools/postcss-property-rule-optional-descriptors

> Omit optional descriptors in at-property rules

Latest version **1.0.0** (published 2026-08-15) · MIT-0 license · 0 weekly downloads

## Install

```sh
npm install @csstools/postcss-property-rule-optional-descriptors
pnpm add @csstools/postcss-property-rule-optional-descriptors
yarn add @csstools/postcss-property-rule-optional-descriptors
bun add @csstools/postcss-property-rule-optional-descriptors
```

## Health

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

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

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2026-08-15 |
| First published | 2026-08-15 |
| Weekly downloads | 0 |
| License | MIT-0 |
| TypeScript types | none |
| Module format | ESM |
| Node | >=20.19.0 |
| Dependencies | 0 |
| Unpacked size | 4.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1052 |
| Maintainers | jonathantneal, alaguna, romainmenke |
| Keywords | at-property, fallback, postcss-plugin |

## Links

- npm: https://www.npmjs.com/package/@csstools/postcss-property-rule-optional-descriptors
- Repository: https://github.com/csstools/postcss-plugins
- Homepage: https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-property-rule-optional-descriptors#readme
- Issues: https://github.com/csstools/postcss-plugins/issues
- Funding: https://github.com/sponsors/csstools
- npm.io page: https://npm.io/package/@csstools/postcss-property-rule-optional-descriptors

## Recent versions

- 1.0.0 (latest) — 2026-08-15

## README

# PostCSS Property Rule Optional Descriptors [<img src="https://postcss.github.io/postcss/logo.svg" alt="PostCSS Logo" width="90" height="90" align="right">][PostCSS]

`npm install @csstools/postcss-property-rule-optional-descriptors --save-dev`

[PostCSS Property Rule Optional Descriptors] lets you omit optional descriptors in `@property` rules following the [CSS Houdini Specification].

```css
@property --foo {
	initial-value: "red";
}

@property --bar {
	syntax: "<color>";
	initial-value: "green";
}

/* becomes */

@property --foo {
	initial-value: "red";
	syntax: "*";
	inherits: true;
}

@property --bar {
	syntax: "<color>";
	initial-value: "green";
	inherits: true;
}
```

## Usage

Add [PostCSS Property Rule Optional Descriptors] to your project:

```bash
npm install postcss @csstools/postcss-property-rule-optional-descriptors --save-dev
```

Use it as a [PostCSS] plugin:

```js
const postcss = require('postcss');
const postcssPropertyRuleOptionalDescriptors = require('@csstools/postcss-property-rule-optional-descriptors');

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



[cli-url]: https://github.com/csstools/postcss-plugins/actions/workflows/test.yml?query=workflow/test
[css-url]: https://cssdb.org/#property-rule-optional-descriptors
[discord]: https://discord.gg/bUadyRwkJS
[npm-url]: https://www.npmjs.com/package/@csstools/postcss-property-rule-optional-descriptors

[PostCSS]: https://github.com/postcss/postcss
[PostCSS Property Rule Optional Descriptors]: https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-property-rule-optional-descriptors
[CSS Houdini Specification]: https://drafts.css-houdini.org/css-properties-values-api/#determining-registration

---
_Source: https://npm.io/package/@csstools/postcss-property-rule-optional-descriptors · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
