V
V
Vladimir2020-09-05 20:20:14
css
Vladimir, 2020-09-05 20:20:14

How to keep importing styles from react in next.js?

Good evening. Can you please tell me how can I leave the default import of react styles in next?

What I want: What next requires:
import '../css/global.css';

<style jsx>{' 
     .home {
         width: 200px;
     }
 '}</style>


At the same time, I will have to transfer the entire project to such a presentation of styles, I tried to transfer some of the styles - let's say everything works on the footer, but on the mini-map it doesn't.

Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Timur Kostenko, 2020-09-05
@ktim8168

Add styles as mentioned in the documentation Global Styles , Styles for Components

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question