Learn about browser support and compatibility with other tooling.
Browser support
Sprig CSS v2 is designed for and tested on modern browsers, and the core functionality of the framework specifically depends on these browser versions:
Browser | Minimum version |
|---|---|
Chrome | 111 (released March 2023) |
Safari | 16.4 (released March 2023) |
Firefox | 128 (released July 2024) |
Sprig also includes support for many bleeding-edge platform features like field-sizing: content, @starting-style and text-wrap: balance that have limited browser support. It's up to you whether you want to use them.
If you need to support older browsers, we recommend sticking with v1.4 until your support requirements change.
Sass, Less and Stylus
Sprig CSS v2 is not designed to be used with CSS preprocessors. Think of Sprig itself as your preprocessor — you shouldn't use Sass for the same reason you wouldn't use Sass and Stylus together.
CSS modules
Sprig is compatible with CSS modules, but we don't recommend them: utility classes already solve the scoping problem modules exist to solve.