Synthesis of metal-free lightweight materials with sequence-encoded properties