Create or install a theme

To install theme assets you need to run swp:theme:install command.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
The swp:theme:install command installs your custom theme for given tenant:

    app/console swp:theme:install <tenant> <theme_dir>

You need specify the directory (theme_dir) argument to install
theme from any directory:

    app/console swp:theme:install <tenant> /dir/to/theme

Once executed, it will create directory app/themes/<tenant>
where <tenant> is the tenant code you typed in the first argument.

To force an action, you need to add an option: --force:

    app/console swp:theme:install <tenant> <theme_dir> --force

To activate this theme in tenant, you need to add and option --activate:
    app/console swp:theme:install <tenant> <theme_dir> --activate

Theme installation will generated declared in theme config elements
like: routes, articles, menus, widgets, content lists and containers