Prefer writing traditional CSS? Next.js has built-in support for CSS Modules (files ending in .module.css). Class names are scoped locally to that component automatically, so .card in one file will never accidentally collide with .card in another.
ADVERTISEMENT