Make Theme ​
Generalise (export) a local custom theme into the Modularous theme index so it can be referenced globally.
Command Information ​
- Signature:
modularous:make:theme {name} [--force] - Category: Generators
Arguments ​
| Argument | Required | Description |
|---|---|---|
name | Yes | Name of the custom theme to generalise (must already exist under resources/vendor/modularous/themes/{name}/) |
Options ​
| Option | Description |
|---|---|
--force | Overwrite existing theme export entries |
What It Does ​
Reads the theme's JS entry point at resources/vendor/modularous/themes/{name}/{name}.js and appends a named export to the Modularous themes index file:
js
// vue/src/js/config/themes/index.js
export { default as corporate } from './corporate'This makes the theme available to Modularous theme system without manual edits to the index. Run after creating a new theme folder with create:theme.
Examples ​
bash
php artisan modularous:make:theme corporate
php artisan modularous:make:theme dark-mode --forceRelated ​
- create:theme — create the theme folder structure first