The theme settings per default are stored in the database. For people running a forum locally and/or working with a staging environment, these visual changes soon run out of sync or become a burden to manage.
Please note the following instructions are for the upcoming beta 8, but the same could be accomplished using a small custom/local extension.
If you want to force the theme colouring from your forum do the following:
/extend.php
create an extend.php in your forum root (since beta 8)
<?php
use Flarum\Extend;
return [
(new Extend\Frontend('forum'))
->css(__DIR__ . '/less/variables.less')
];
/less/variables.less
create this less file that will hold the configuration information
@config-primary-color: #5F4BB6;
@config-secondary-color: #000024;
@config-dark-mode: false;
@config-colored-header: true;
Clear your cache:
$ php flarum cache:clear
From now on these configuration for your theme will be enforced no matter what value is being set in the admin. The above is active on the Flagrow forum.