App Router + Pages Router, SSR-safe. This guide covers the complete Next.js setup for Nakshora 3.1.

Install#

terminal
bash
npm install -D @nakshora/postcss postcss

Configure#

postcss.config.mjs
js
// postcss.config.mjs (App Router + Pages Router)
export default {
  plugins: {
    '@nakshora/postcss': { content: ['./app/**/*.{ts,tsx}', './components/**/*.{ts,tsx}'] },
  },
};

Verify#

terminal
bash
npx nakshora doctor

Doctor 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.