If theme.css is in the web root, load it instead of the one we ship
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3564225. --> Reported by: [phenaproxima](https://www.drupal.org/user/205645) Related to !169 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>So...Mercury's in beta. How can people who are using it, customize things like fonts and colors (the stuff controlled by variables in theme.css)?</p> <p>Well, they could subtheme Mercury. But what if they want to keep using Mercury as-is (as Drupal CMS Starter does), but <em>only</em> change fonts and colors? There's no way to do it without hacking or patching the module directly, or creating a subtheme -- which we explicitly say not to do.</p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>If theme.css exists in the web root, it should override the theme.css that ships with Mercury. We can pull this off with a <code>hook_library_info_alter()</code> implementation.</p> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <p>Make it happen and include a test of some kind (a kernel test is probably the way here).</p>
issue