普通にimportしただけだと動かない EmotionというCSSフレームワークを使ってちょっとお試しで実装していました。 package.jsonは以下の通りとなっております。 { "dependencies": { "@emotion/core": "^10.0.28", "next": "9.4.4", "react": "16.13.1", "react-dom": "16.13.1" }, "devDependencies": { "@types/node": "^14.0.22", "@types/react": "^16.9.43", "typescript": "^3.9.6" } }