Next.js example for prefers-mode Getting Started yarn yarn dev Then, in your browser, go to https://localhost:3000 and inspect the css classes assigned to "Hello".