
Product
Rust Support in Socket Is Now Generally Available
Socket’s Rust and Cargo support is now generally available, providing dependency analysis and supply chain visibility for Rust projects.
@csstools/csstools-cli
Advanced tools
CSSTools CLI lets you run any plugin from @csstools/postcss-plugins from the command line.
We recommend using the CSSTools CLI as a prototyping and debugging tool. ⚠️ If you are building/customizing a toolchain it is best not to use the CLI.
With npx you can use the CLI directly without installing it globally.
npx -y @csstools/csstools-cli
CSSTools CLI
Transform CSS with any plugin from https://github.com/csstools/postcss-plugins
Usage:
@csstools/csstools-cli postcss-preset-env [input.css] [OPTIONS] [-o|--output output.css]
@csstools/csstools-cli postcss-preset-env <input.css>... [OPTIONS] --dir <output-directory>
@csstools/csstools-cli postcss-preset-env <input.css>... [OPTIONS] --replace
Available Plugins:
css-blank-pseudo
css-has-pseudo
css-prefers-color-scheme
postcss-color-function
postcss-color-functional-notation
postcss-color-hex-alpha
postcss-color-rebeccapurple
postcss-custom-properties
postcss-dir-pseudo-class
postcss-double-position-gradients
postcss-env-function
postcss-focus-visible
postcss-focus-within
postcss-font-format-keywords
postcss-gap-properties
postcss-hwb-function
postcss-ic-unit
postcss-image-set-function
postcss-is-pseudo-class
postcss-lab-function
postcss-logical
postcss-nesting
postcss-normalize-display-values
postcss-oklab-function
postcss-overflow-shorthand
postcss-place
postcss-pseudo-class-any-link
Plugin Help:
@csstools/csstools-cli <plugin-name>
@csstools/csstools-cli postcss-preset-env
Each plugin can have specific options.
These can be found by running npx -y @csstools/csstools-cli <plugin-name>.
More details can always be found in the README of that plugin on github.
npx -y @csstools/cli postcss-preset-env
PostCSS Preset Env
Lets you convert modern CSS into something most browsers can understand, determining the polyfills you need based on your targeted browsers or runtime environments.
Usage:
@csstools/cli postcss-preset-env [input.css] [OPTIONS] [-o|--output output.css]
@csstools/cli postcss-preset-env <input.css>... [OPTIONS] --dir <output-directory>
@csstools/cli postcss-preset-env <input.css>... [OPTIONS] --replace
Options:
-o, --output Output file
-d, --dir Output directory
-r, --replace Replace (overwrite) the input file
-m, --map Create an external sourcemap
--no-map Disable the default inline sourcemaps
-p, --plugin-options Stringified JSON object with plugin options
Plugin Options:
stage number
features object
browsers string
autoprefixer object
preserve boolean
importFrom string
exportTo string
{
"stage": 0,
"features": {
"blank-pseudo-class": {
"preserve": false
},
"color-functional-notation": {
"preserve": true
}
},
"browsers": "last 2 versions",
"autoprefixer": {
"grid": true
},
"preserve": false,
"importFrom": "path/to/file.css",
"exportTo": "path/to/file.css"
}
Copy this bit of CSS to have it in your clipboard.
a, b {
color: red;
& c, & d {
color: white;
}
}
Run :
pbpaste | ... pipes the clipboard contents to the next command.
pbpaste | npx -y @csstools/csstools-cli postcss-nesting --no-map
Output :
a, b {
color: red
}
a c, b c, a d, b d {
color: white;
}
Copy this bit of CSS to have it in your clipboard.
.banner {
color: #222222;
inset: logical 0 5px 10px;
padding-inline: 20px 40px;
resize: block;
transition: color 200ms;
}
Run :
pbpaste | npx -y @csstools/csstools-cli postcss-logical --no-map --plugin-options '{ "dir": "rtl" }'
note the single quotes around the JSON object with plugin options.
Output :
.banner {
color: #222222;
top: 0;
left: 5px;
bottom: 10px;
right: 5px;
padding-right: 20px;
padding-left: 40px;
resize: vertical;
transition: color 200ms;
}
FAQs
Transform CSS with any plugin from csstools/postcss-plugins
The npm package @csstools/csstools-cli receives a total of 470 weekly downloads. As such, @csstools/csstools-cli popularity was classified as not popular.
We found that @csstools/csstools-cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?

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.

Product
Socket’s Rust and Cargo support is now generally available, providing dependency analysis and supply chain visibility for Rust projects.

Security News
Chrome 144 introduces the Temporal API, a modern approach to date and time handling designed to fix long-standing issues with JavaScript’s Date object.

Research
Five coordinated Chrome extensions enable session hijacking and block security controls across enterprise HR and ERP platforms.