I can think of two motivations for studying type theory:
Understanding and applying existing type theories. E.g. taking the calculus of constructions and using it for theorem proving.
Working on new type theories.
I have so far mainly been motivated by nr 1. Is there a good textbook/other resource that one would recommend for someone motivated to do nr 2?