Getting started
How to get started with next-yak
next-yak
next-yak is a CSS-in-JS solution tailored for Next.js that seamlessly combines the expressive power of styled-components syntax with efficient build-time extraction of CSS using Next.js's built-in CSS configuration.
next-yak | Next.js | react | swc_core |
---|---|---|---|
4.x | >= 15.0.4 | 19.x | 5.0.1 |
3.x | 15.x | 18.x / 19.x | 3.0.2 |
2.x | 14.x | 18.x / 19.x | 0.279.0 |
Installation
Start using next-yak
With the installation and configuration done, you can now use next-yak directly in your components.
If you used styled-components
before, you'll feel right at home.
Here's a simple example:
You're now ready to use next-yak in your Next.js project and if you need to migrate from styled-components, you can follow the migration guide.