New: Introducing PHP and Composer Support.Read the Announcement
Socket
Book a DemoInstallSign in
Socket

@csstools/postcss-syntax-descriptor-syntax-production

Package Overview
Dependencies
Maintainers
3
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@csstools/postcss-syntax-descriptor-syntax-production

Use the syntax production in syntax descriptors

Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
480K
-14.07%
Maintainers
3
Weekly downloads
 
Created
Source

PostCSS Syntax Descriptor Syntax Production PostCSS Logo

npm install @csstools/postcss-syntax-descriptor-syntax-production --save-dev

PostCSS Syntax Descriptor Syntax Production lets you use the <syntax> production in syntax descriptors following the CSS Specification.

@property --color {
	inherits: true;
	initial-value: black;
	syntax: <color>;
}

/* becomes */

@property --color {
	inherits: true;
	initial-value: black;
	color: "<color>";
}

Usage

Add PostCSS Syntax Descriptor Syntax Production to your project:

npm install postcss @csstools/postcss-syntax-descriptor-syntax-production --save-dev

Use it as a PostCSS plugin:

const postcss = require('postcss');
const postcssSyntaxDescriptorSyntaxProduction = require('@csstools/postcss-syntax-descriptor-syntax-production');

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

Options

preserve

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

postcssSyntaxDescriptorSyntaxProduction({ preserve: true })
@property --color {
	inherits: true;
	initial-value: black;
	syntax: <color>;
}

/* becomes */

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

Keywords

postcss-plugin

FAQs

Package last updated on 27 Dec 2025

Did you know?

Socket

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.

Install

Related posts