I'm working on moving legacy app to the Nextjs. The app has two layouts: public and admin part. Every layout has it's own css files. Because of the nextjs restrictions when you can import css only in custom _app.js file I can't split layouts. I don't want to include admin css to the public layout and vice versa. What can I do in this case?
I was trying to use styled-jsx, but it brought more problems. I can't wrap the whole css file with thouthands of lines with css.globe`` because there are a lot of errors, such as we don't support nesting etc.