Support theme inheritance
Add an `extend` helper function
Document inheritance