Reorganize theme file structure
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3542451. -->
Reported by: [lanny heidbreder](https://www.drupal.org/user/19794)
Related to !135
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>Mercury's file structure grew haphazardly over the course of time. It should be cleaned up.</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<ul>
<li><code>/images/icons/</code> should be moved under <code>/icons/</code> or maybe go away entirely.</li>
<li><code>/lib/</code> contains one file and should go under <code>/src/</code> somewhere.</li>
<li><code>/public/images</code> I think can be deleted?</li>
<li><code>/public/fonts</code> should this be moved up a level and we can delete the public folder?</li>
<li><code>/scripts/</code> contains one file, which should probably go wherever the stuff under <code>/vitePlugins/</code> ends up.</li>
<li><code>/static/</code> may or may not be needed after we get the static Storybook build working on GitLab pages.</li>
<li><code>/vitePlugins/</code> has some things that aren't Vite plugins. <code>/vitePlugins/twingCustoms/</code> was supposed to contain only <code>filters.js</code> and <code>functions.js</code>, as those are custom Twig filters and functions to be used with Twing. The stuff in here, <code>/lib/</code>, and <code>/scripts/</code> all needs to be organized sensibly. Also, any two-word folders that survive the reorganization should be in <code>kebab-case</code>, not <code>camelCase</code>.</li>
</ul>
<h3 id="summary-remaining-tasks">Remaining tasks</h3>
<ul>
<li>Come up with and implement better file structure</li>
<li>Modify the Vite/Storybook build, the <code>.info.yml</code>, the <code>.libraries.yml</code>, and all relative <code>import</code>/<code>include</code> paths to work correctly with the new file structure</li>
</ul>
> Related issue: [Issue #3558134](https://www.drupal.org/node/3558134)
issue