Next-yak
lastmod 2025-05-21created 2025-05-211 edits
Rust-based zero-runtime CSS-in-JS for Next.js
Features
- Open-source zero-runtime CSS-in-JS library for use in Next.js projects
- Built in Rust and extracts CSS at build time, so there is no runtime JS overhead and performance is fast
- Lightweight runtime design that only changes classes rather than the CSSOM, minimizing browser resource usage
- Supports standard CSS syntax and lets you write styles with a syntax similar to styled-components; CSS is automatically extracted at build time and converted into optimized static CSS
- Fully compatible with both React Server Components and Client Components, and integrates with Next.js's built-in CSS Modules feature
- More intuitive and lighter API than other CSS-in-JS libraries, high performance, postcss-based optimization
- Integration support for atomic CSS frameworks (Tailwind CSS, etc.)