# postcss-convert-values

> Convert values with PostCSS (e.g. ms -> s)

Latest version **9.0.3** (published 2026-09-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install postcss-convert-values
pnpm add postcss-convert-values
yarn add postcss-convert-values
bun add postcss-convert-values
```

## Health

**Score 75/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 9.0.3 |
| Published | 2026-09-17 |
| First published | 2015-04-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | ^22.22.3 \|\| ^24.15.0 \|\| >=26.0 |
| Dependencies | 2 |
| Unpacked size | 18.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4976 |
| Author | Ben Briggs |
| Maintainers | beneb, trysound, ludovicofischer, ai, chriseppstein, andyjansson, evilebottnawi, cssnano-bot |
| Keywords | css, optimisation, postcss, postcss-plugin |

## Links

- npm: https://www.npmjs.com/package/postcss-convert-values
- Repository: https://github.com/cssnano/cssnano
- Issues: https://github.com/cssnano/cssnano/issues
- npm.io page: https://npm.io/package/postcss-convert-values

## Dependencies (2)

- [browserslist](https://npm.io/package/browserslist.md) ^4.29.0
- [postcss-value-parser](https://npm.io/package/postcss-value-parser.md) ^4.2.0

## Alternatives

- [style-dictionary](https://npm.io/package/style-dictionary.md) — 2.0M weekly downloads
- [postcss-merge-idents](https://npm.io/package/postcss-merge-idents.md) — 1.7M weekly downloads
- [@fontsource/noto-sans](https://npm.io/package/@fontsource/noto-sans.md) — 93.0K weekly downloads
- [uglifycss](https://npm.io/package/uglifycss.md) — 71.6K weekly downloads
- [mat4-interpolate](https://npm.io/package/mat4-interpolate.md) — 23.3K weekly downloads

## Recent versions

- 9.0.3 (latest) — 2026-09-17
- 5.0.0-rc.2 (next) — 2021-03-15
- 4.0.0-nightly.2020.2.6 (nightly) — 2021-02-06
- 9.0.2 — 2026-09-05
- 9.0.1 — 2026-09-01
- 9.0.0 — 2026-08-27
- 8.0.4 — 2026-08-16
- 8.0.3 — 2026-08-09
- 8.0.2 — 2026-08-04
- 8.0.1 — 2026-06-11
- 8.0.0 — 2026-05-06
- 7.0.12 — 2026-05-02
- 7.0.11 — 2026-04-20
- 7.0.10 — 2026-04-13
- 7.0.9 — 2026-03-06
- … 78 more at https://npm.io/package/postcss-convert-values/versions

## README

<h1 style="text-align: center">
    <br>
    <img width="360" src="./media/logo.svg" alt="cssnano">
    <br>
    <br>
    <br>
</h1>

> A modular CSS minifier, built on top of the [PostCSS](https://github.com/postcss/postcss) ecosystem.

<div style="text-align: center">

[![Backers on Open Collective](https://img.shields.io/opencollective/backers/cssnano?logo=opencollective&logoColor=white)](#backers)
[![Sponsors on Open Collective](https://img.shields.io/opencollective/sponsors/cssnano?logo=opencollective&logoColor=white)](#sponsors)
[![NPM version](https://img.shields.io/npm/v/cssnano.svg?logo=npm)](https://www.npmjs.org/package/cssnano)
[![Build Status](https://github.com/cssnano/cssnano/actions/workflows/test.yml/badge.svg)](https://github.com/cssnano/cssnano/actions/workflows/test.yml)
[![codecov](https://codecov.io/gh/cssnano/cssnano/branch/main/graph/badge.svg)](https://codecov.io/gh/cssnano/cssnano)
[![Gitter](https://img.shields.io/badge/Gitter-Join_the_PostCSS_chat-brightgreen.svg?logo=gitter)](https://gitter.im/postcss/postcss)

</div>

cssnano is a modern, modular CSS compression tool written on top of the PostCSS
ecosystem, which allows us to use a lot of powerful features in order to minify
CSS.

Our preset system allow you to load cssnano in a different configuration
depending on your needs; the default preset performs safe transforms, whereas
the advanced preset performs more aggressive transforms that are safe only when
your site meets the requirements; but regardless of the preset you choose, we
handle more than whitespace transforms!

Optimisations range from compressing colours & removing comments, to discarding
overridden at-rules, normalising `unicode-range` descriptors, even mangling
gradient parameters for a smaller output value! In addition, where it's made
sense for a transform, we've added [Browserslist](https://github.com/ai/browserslist)
to provide different output depending on the browsers that you support.

For further details check out the [website](https://cssnano.github.io/cssnano):

- [Installation guide for your build process](https://cssnano.github.io/cssnano/docs/getting-started).
- [Full list of optimisations](https://cssnano.github.io/cssnano/docs/what-are-optimisations/).

You can now [try cssnano online](https://cssnano.github.io/cssnano/playground/)!

## Contributing

See [CONTRIBUTING.md](CONTRIBUTING.md).

## Contributors

This project exists thanks to all the people who contribute. [[Contribute](CONTRIBUTING.md)].
<a href="https://github.com/cssnano/cssnano/graphs/contributors"><img src="https://opencollective.com/cssnano/contributors.svg?width=890&button=false" /></a>


## Backers

Thank you to all our backers! 🙏 [[Become a backer](https://opencollective.com/cssnano#backer)]

<a href="https://opencollective.com/cssnano#backers" target="_blank"><img src="https://opencollective.com/cssnano/backers.svg?width=890"></a>
## Sponsors
Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [[Become a sponsor](https://opencollective.com/cssnano#sponsor)]

<a href="https://opencollective.com/cssnano/sponsor/0/website" target="_blank"><img src="https://opencollective.com/cssnano/sponsor/0/avatar.svg"></a>
<a href="https://opencollective.com/cssnano/sponsor/1/website" target="_blank"><img src="https://opencollective.com/cssnano/sponsor/1/avatar.svg"></a>
<a href="https://opencollective.com/cssnano/sponsor/2/website" target="_blank"><img src="https://opencollective.com/cssnano/sponsor/2/avatar.svg"></a>
<a href="https://opencollective.com/cssnano/sponsor/3/website" target="_blank"><img src="https://opencollective.com/cssnano/sponsor/3/avatar.svg"></a>
<a href="https://opencollective.com/cssnano/sponsor/4/website" target="_blank"><img src="https://opencollective.com/cssnano/sponsor/4/avatar.svg"></a>
<a href="https://opencollective.com/cssnano/sponsor/5/website" target="_blank"><img src="https://opencollective.com/cssnano/sponsor/5/avatar.svg"></a>
<a href="https://opencollective.com/cssnano/sponsor/6/website" target="_blank"><img src="https://opencollective.com/cssnano/sponsor/6/avatar.svg"></a>
<a href="https://opencollective.com/cssnano/sponsor/7/website" target="_blank"><img src="https://opencollective.com/cssnano/sponsor/7/avatar.svg"></a>
<a href="https://opencollective.com/cssnano/sponsor/8/website" target="_blank"><img src="https://opencollective.com/cssnano/sponsor/8/avatar.svg"></a>
<a href="https://opencollective.com/cssnano/sponsor/9/website" target="_blank"><img src="https://opencollective.com/cssnano/sponsor/9/avatar.svg"></a>



## License

MIT © [Ben Briggs](https://beneb.info)

---
_Source: https://npm.io/package/postcss-convert-values · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
