I was once told that stable isotopes of lighter elements such as H, N C , etc are found in stars, planets, etc. Can anyone suggest any literature which talks about the formation of these isotopes?
The lightest elements (mainly hydrogen and helium and in trace amounts lithium and beryllium) were formed about 100 seconds after Big Bang through the Big Bang nucleosynthesis (this process lasted up to 20 minutes after Big Bang). After the formation of stars new elements, from helium to iron, are produced in stellar nucleosynthesis (thermonuclear fusion: CNO cycle, proton–proton chain reaction and triple-alpha process) during stellar evolution. Elements higher than iron are produced in supernovae through the r-process and s-process.
A very good book about this and generally about properties of stellar interiors and the structure and evolution of stars is: "The Physics of Stars" A. C. Phillips.
About the nuclear physics of stars, you can see also a book of Christian Iliadis "Nuclear Physics of Stars".