Drupal's "theme" concept introduces unhealthy dependencies and hinders modularity. Use theme-agnostic front-end components instead, and let them live outside the theme.
(Disclaimer: Yes, Drupal is not the only system with "themes". Forgive the clickbait headline.)