How do I create a Custom Theme & use the Featured Image

I want to create several Custom Themes & use the Featured Image. Where can I go to add my own theme codes?