Overview of Linaria features
masterLinaria is a zero-runtime CSS-in-JS library. It allows you to write styles using JavaScript/TypeScript while extracting them into static CSS files during the build process.
Key capabilities include:
- Zero Runtime: CSS is extracted to files at build time, avoiding runtime overhead.
- CSS Syntax: Supports familiar CSS syntax, including Sass-like nesting.
- Dynamic Styles: Supports dynamic prop-based styles (via React bindings) by using CSS variables under the hood.
- Logic in JS: Use standard JavaScript for styling logic instead of a separate CSS preprocessor.
- Tooling Support: Provides CSS sourcemaps for easier debugging and integrates with
stylelintfor linting CSS within JS files. - Preprocessor Support: Optionally compatible with Sass or PostCSS.