Theme Packets: A Modular Approach to Theming Drupal
While Drupal modules get to enjoy best practices, make use of coding standards, and share a pretty consistent coding style – the theme layer is a goddamn nightmare. However, you can actually achieve a much nicer development experience with Theme Packets!
Theme Packets are essentially isolated collections of light-weight files that contain theme functions, templates, preprocessors, and all their associated stylesheets and scripts.
That is to say, it is a methodology of organization that enables you to maintain your sanity and prevent your themes from taking up too much of your own psychic RAM.
Oh, and it’s also a module. (disclaimer: I am the maintainer)
This BOF is primarily targeted for advanced themers/developers that identify a problem in the clutter of files that is their theme, as well as css/html/js ninjas who are new to Drupal or PHP and would like to just “do their thang” without having to deal with writing PHP code.