Package and share whole configurations between projects.
Syntax#
nakshora.config.js
import baseTheme from './company-preset.js';
export default {
presets: [baseTheme],
theme: { extend: { /* project deltas */ } },
};Details & defaults#
A preset is a partial config. Presets apply before your own theme, and can nest. They are the supported way to share a company design system across many apps.
Worked examples#
- Company preset + per-app deltas keeps 12 apps consistent
- Publish your preset to npm and import it like any dependency
Related options#
See the configuration/index|configuration hub for the full option table, and api/theme-resolution|theme resolution for how options merge.
