App Router + Pages Router, SSR-safe. This guide covers the complete Next.js setup for Nakshora 3.0.
Install#
terminal
npm install -D @nakshora/postcss postcssConfigure#
postcss.config.mjs
// postcss.config.mjs (App Router + Pages Router)
export default {
plugins: {
'@nakshora/postcss': { content: ['./app/**/*.{ts,tsx}', './components/**/*.{ts,tsx}'] },
},
};Verify#
terminal
npx nakshora doctorDoctor validates your config, checks that content globs match real files, and prints the engine version.
Troubleshooting#
- App Router: postcss.config must be .mjs or .js (not .json) with the content option
Next#
Styling patterns: concepts/utility-first-methodology|utility-first methodology · performance: performance/index|performance guide.
