CSS-in-JS in NextJS
In NextJS, you can also use the CSS-in-JS approach. In this approach, CSS code is written directly in the component file. You have already encountered this approach in the React tutorial in the lesson about Styled Components.
For the CSS-in-JS approach in React, there are various libraries. You can learn about their configuration on the NextJS documentation page on CSS-in-JS.
Apply Styled Components in your project.