To implement specific guest responsivity, a hydrophobic cholesterol-based co-ligand, cholest-5-en-3-yl-4-isonicotinate (Cholpy), was incorporated into a two-dimensional Hofmann-type Co(II)Ni(II) coordination polymer. The chemically programmed structure successfully demonstrated the unique guest response with remarkable chromatic changes.