Just like the title says...
I have included my global styles.css in _app.js as shown below:
import '../public/styles.css'
Then, within a page's header.js (/components/header.js), I am trying to use a class .buttonPrimary
from the global css file mentioned above, like this:
<a
href={`/api/auth/signin`}
className={buttonPrimary} // THIS
onClick={(e) => {
e.preventDefault()
signIn()
}}
>
Sign in
</a>
However, I am getting an error saying that the class does not exist... I understand that I could simply import the same global css file at the top of the page, but then what is the purpose of loading it globally in _app.js?