glam uses tera, and I suspect it might be a lot nicer than the current patchwork of very complicated macros.