Use modern CSS today: a PostCSS plugin pack that adds only the fallbacks your browsers need
open sourceMIT-0free
PostCSS Preset Env is a plugin pack for PostCSS that converts modern CSS into something most browsers understand. It follows the features listed in CSSDB, takes browser support data from MDN and Can I Use, and uses your browserslist targets to decide which transformations and polyfills are needed, skipping the rest. It packs Autoprefixer and shares the browser list with it, and it only includes plugins for features the W3C has acknowledged.
Problems it solves
- write CSS with newer features like hwb() colours but still support older browsers
- stop hand-maintaining CSS fallbacks for the browsers my site supports
- replace a pile of separate PostCSS plugins with one that tracks browser support
Features
- applies only the transforms your browserslist targets need
- CSSDB feature list with MDN and Can I Use support data
- includes Autoprefixer
- plugins only for W3C-acknowledged CSS features
Alternatives
The same job
These do what PostCSS Preset Env does.
- PostCSS A tool for transforming CSS with JavaScript
- Lightning CSS An extremely fast CSS parser, transformer, bundler, and minifier
- postcss-import PostCSS plugin that inlines @import rules
- Autoprefixer Adds CSS vendor prefixes using Can I Use data
