Wink Creating custom rom - Where to start?

Is there a minium, theorical, guide on how to create a custom rom?