A CSS property value parser that uses css-tree for parsing,
and models nodes on top of PostCSS’s Node/Container/Root classes so the API feels familiar to PostCSS users.
This package powers part of Prettier. Please consider becoming a sponsor if you find this package useful or are a Prettier user. https://github.com/sponsors/shellscape
Using npm:
npm install postcss-values-parser --save-dev
Note: This package is ESM‑only. Use import in Node.js. In CommonJS on Node >= 20.19.0, require() can load ES modules:
// CommonJS (Node >= 20.19.0)
const { parse } = require('postcss-values-parser');
registerWalkers(Container)) to walk by node typePlease see the Documentation for general use and further information on using the package.
TypeScript
99.5%
A CSS property value parser that uses css-tree for parsing,
and models nodes on top of PostCSS’s Node/Container/Root classes so the API feels familiar to PostCSS users.
This package powers part of Prettier. Please consider becoming a sponsor if you find this package useful or are a Prettier user. https://github.com/sponsors/shellscape
Using npm:
npm install postcss-values-parser --save-dev
Note: This package is ESM‑only. Use import in Node.js. In CommonJS on Node >= 20.19.0, require() can load ES modules:
// CommonJS (Node >= 20.19.0)
const { parse } = require('postcss-values-parser');
registerWalkers(Container)) to walk by node typePlease see the Documentation for general use and further information on using the package.
TypeScript
99.5%