We're providing several solutions for the CSS if()
function with hybrid build-time and runtime processing. Transforms CSS if()
functions to native @media
and @supports
rules where possible, with runtime fallback for dynamic conditions. The following packages are provided by this monorepo:
- A modern JavaScript polyfill,
- a PostCSS plugin,
- a Lightning CSS plugin and
- a Stylelint plugin (to extend to prevent lint false positives)
Please have a look at our CONTRIBUTION guidelines.
MIT License - see LICENSE file for details.