Thanks for the code. In the future, you’ll be better off removing every part of the preamble that you can, while still demonstrating the bug, and also make sure it compiles (so it’s a Minimal, Working Example.) This helps both you and us: you actually found the location of the bug yourself by removing different parts of your preamble. Also, there’s a \...
Welcome on TeX SE !
I think that your code is not giving any output because you're not adding content in document. When you start working on a document in LaTeX, you have two different parts in your file :
% This is where you add packages and you set your layout
% This is what ...