Rational synthesis of AB-type N-substituted core-functionalized naphthalene diimides (cNDIs).