breakpoints, variants, colors, typography — the typed options object.

How the engine does it#

The v2 config object is the ancestor of nakshora.config.js. Reading it today is reading v3 with fewer keys.

Example#

js
new CSSGenerator({
  theme: { breakpoints: { mobile: '480px' }, colors: { brand: '#6d28d9' } },
  variants: ['hover', 'md'],
})

From v2 to v3#

Everything in this article survives the upgrade — the v2 → v3 migration guide keeps the generator API stable while fixing spacing and responsive bugs.

Utilities · Themes · Configuration