Colors, spacing, screens, fonts — the complete theme anatomy with defaults listed.

Syntax#

nakshora.config.js
js
export default {
  theme: {
    colors: { brand: { 500: '#6d28d9' } },
    spacing: { 18: '4.5rem' },
  },
};

Details & defaults#

Replaces whole token namespaces. Anything you define here wins over defaults *and hides them* — for additive changes use extend. See api/theme-resolution|theme resolution.

Worked examples#

  • Replace the whole type scale: theme.fontFamily.sans = ["Inter", …]
  • Reduce palettes: define only the 5 colors your brand allows

See the configuration/index|configuration hub for the full option table, and api/theme-resolution|theme resolution for how options merge.