As always, thank you greatly for this insight into the development process. This helps me greatly in developing on our end without hacking "core" files. I believe this will be sufficient for us to modify what we need on our end
you might have noticed the new bootstrap5 theme in the oacs-5-10 branch. The support (including theme switching for programmatically generated HTML) is growing and should be part of OpenACS 5.10.1