Pretty much as title..
I declared my global styles.css inside _app.js as follow:
import '../public/styles.css'
then inside a page header.js (/components/header.js) i'm using a class .buttonPrimary present inside above mentioned global css file, as follow:
<a
href={`/api/auth/signin`}
className={buttonPrimary} // THIS
onClick={(e) => {
e.preventDefault()
signIn()
}}
>
Sign in
</a>
but it throws error that the class doesn't exists.. I know I could do an import at the top of the page of the same global css file, but what would be the point of loading it globally inside _app.js then?