config/themes
Note
You need version
1.4.0or newer.
Starting with version 1.4.0, you can use themes with umejs! Themes can decide things like the template, builders, helpers and more! For more details, you should read the dedicated section about themes. For more details about using a theme, see Using a theme.
The TL;DR would be to first install the theme if you want an external one. For example:
npm install @example/umejs-theme
You would then define this theme in the config like in the following example. If you have a local theme, simply point to your main theme file. You can of course have multiple themes active at the same time.
const ume = require('@dantenl/umejs');
const path = require('path');
ume({
themes: ['./path/to/local/theme.ume.js', '@example/umejs-theme']
// example contentDir
contentDir: path.join(__dirname, 'content'),
});
The themes array is left from last to first, meaning that first the @example/umejs-theme is loaded and then where applicable, is overwritten by the local theme.