Theme Configuration
The theme config maps Nivel's runtime theme preference to consumer-owned theme names. Those names should match the theme selectors and tokens defined in the consumer CSS.
JavaScript
const docsConfig = {
theme: {
light: 'my-docs-light',
dark: 'my-docs-dark',
defaultPreference: 'dark'
}
// ...
}Fields
lightis the theme name used for light mode.darkis the theme name used for dark mode.defaultPreferencecan belightordark.
Nivel uses these names in the runtime shell. The actual palette remains local to the consumer; see Custom Theming.