Your generator API survives; broken theme imports, spacing bugs and empty media queries are fixed. Here is the delta.
What changes#
| Before | After |
|---|---|
CSSGenerator API | Preserved — same constructor and generate() |
.mr-*/-right spacing bug (emitted keys) | Fixed — correct values |
| Empty responsive media queries | Fixed — real responsive variants for every utility |
Broken ./types theme imports | Fixed — themes import cleanly, gain description |
| No state variants | Added: hover:, dark:, group-*, peer-* in JIT |
Step by step#
- Replace the
nakshorav2 dependency with@nakshora/core - Keep your
CSSGeneratorcall sites — the API is stable - Re-run generation; expect smaller, correct output
- Adopt JIT by adding
contentglobs - Explore the new state variants in your markup
After the migration#
Run 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.
