I was going to keep this to myself due to it being fairly tied to my environment but since there's interest in such functionality maybe someone will find what I've done useful.
Generating 75k css file dynamically when its contents may only ever change as a result of deployment is a waste, thus I have a patch to phpbb that essentially replaces styles.php link with a link to static css file and a Python script to generate the stylesheets.
The generator is not perfect, and currently I'm aware of the following issue: I have maxthon (prosilver-based) style with its own images and en-us language pack with images for prosilver. If a user wants to view the board in maxthon and en-us, what images should they be seeing? I don't know this even for a vanilla board, and currently the stylesheet generator won't build maxthon+en-us combination at all, leaving users who choose this combination to view the board without styles.




