Nakshora 2.0 is configured through a single file — a typed options object passed to CSSGenerator. Every option on this page links to a deep-dive article.

The config file#

nakshora.config.js
js
import { CSSGenerator } from 'nakshora';

const generator = new CSSGenerator({
  theme: {
    breakpoints: { mobile: '480px' },
    colors: { brand: '#6d28d9' },
  },
  variants: ['hover', 'focus'],
});

Every option#

OptionTypeDeep dive
contentstring[]
themeobjectconfiguration/theme|Theme & extend
theme.extendobjectconfiguration/extend|Extending vs overriding
darkModestringconfiguration/darkmode|Dark mode option
prefixstringconfiguration/prefix|Class prefix
importantboolean | stringconfiguration/important|Important mode
corePluginsarray | objectconfiguration/core-plugins|Disabling core plugins
safelistarrayconfiguration/safelist|Safelist
pluginsarrayconfiguration/plugins|Plugin API
presetsarrayconfiguration/presets|Presets
Tip. v2 configuration is the ancestor of the v3 file format — if you know one, you know both.