This is the atomic design of thymine.  Thymine like cytosine is a pyrimidine and is smaller than adenine.
 
 
This is the atomic design of adenine.  Adenine like guanine is a purine and is larger than thymine.
 
 
Note the hydrogen bond between thymine and adenine.  Guanine and Cytosine also have a hydrogen bond between them.