CSSGenerator survives; broken theme imports, spacing bugs and empty media queries are fixed. Here is the delta.

What changes#

BeforeAfter
CSSGenerator APIPreserved — same constructor and generate()
.mr-*/-right spacing bug (emitted keys)Fixed — correct values
Empty responsive media queriesFixed — real responsive variants for every utility
Broken ./types theme importsFixed — themes import cleanly, gain description
No state variantsAdded: hover:, dark:, group-*, peer-* in JIT

Step by step#

  • Replace the nakshora v2 dependency with @nakshora/core
  • Keep your CSSGenerator call sites — the API is stable
  • Re-run generation; expect smaller, correct output
  • Adopt JIT by adding content globs
  • Explore the new state variants in your markup

After the migration#

Run cli/doctor|nakshora doctor to validate the new setup, then diff your pages visually. Because the class grammar is stable, most migrations finish in under an hour.

Warning. Commit your working tree before starting — migration commands rewrite files in place.