A PostCSS plugin pack that rewrites newer CSS into forms older browsers understand, based on your browserslist.

A PostCSS plugin pack from CSSTools that turns modern CSS into code that works in more browsers by adding fallbacks and polyfills. It decides which features to transform from the cssdb staging data and your targets.
Features listed on the site include nesting, cascade layers, media query ranges, custom selectors, light-dark(), color-mix() and oklab(). Its example shows oklch() and color-mix() turned into rgb() fallbacks, with display-p3 values inside a color-gamut media query.
You install postcss-preset-env from npm and add it to your PostCSS config. It enables Stage 2 features by default, and the stage option changes that.
nestingoklch()relative colourlight-dark():has()Baseline