@csstools/postcss-property-rule-prelude-list
Declare a list of custom properties in a single at-property rule
Last updated 3 months ago by romainmenke .
MIT-0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @csstools/postcss-property-rule-prelude-list 
SYNC missed versions from official npm registry.

PostCSS Property Rule Prelude List PostCSS Logo

npm install @csstools/postcss-property-rule-prelude-list --save-dev

PostCSS Property Rule Prelude List lets you declare a list of custom properties in a single @property rule following the CSS Specification.

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

/* becomes */

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

Usage

Add PostCSS Property Rule Prelude List to your project:

npm install postcss @csstools/postcss-property-rule-prelude-list --save-dev

Use it as a PostCSS plugin:

const postcss = require('postcss');
const postcssPropertyRulePreludeList = require('@csstools/postcss-property-rule-prelude-list');

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

Current Tags

  • 2.0.0                                ...           latest (3 months ago)

2 Versions

  • 2.0.0                                ...           3 months ago
  • 1.0.0                                ...           3 months ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dev Dependencies (0)
None
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |