In situ monitoring of small molecule diffusion at solid-solid interfaces is challenging, even with sophisticated equipment. Here, novel chromogenic photonic crystal detectors enabled by integrating bioinspired structural color with stimuli-responsive shape memory polymer (SMP) for detecting trace amounts of small molecule interfacial diffusion are reported. Colorless macroporous SMP membranes with deformed macropores can recover back to the "memorized" photonic crystal microstructures and the corresponding iridescent structural colors when triggered by diffused small molecules. Systematic experimental and theoretical investigations using various microscopes, optical spectroscopy and modeling, spatio-resolved energy-dispersive X-ray spectroscopy, and theoretical diffusion calculations confirm the diffusion-induced shape memory and chromogenic mechanisms. Importantly, proof-of-concept sensing of temporospatial-resolved diffusion of bioactive ingredients used in drug delivery, including anti-inflammatory methyl salicylate in pain relieving patches and vitamin E barriers loaded in contact lens, and phthalates plasticizers in commercial PVC products has been demonstrated. These innovative detectors are inexpensive, reusable, and easy to operate and deploy for both qualitative and quantitative analyses, promising for opening new avenues in biomedical research, threat detection, and monitoring of plastics, food, and environmental safety. Moreover, reconfigurable photonic crystals with micrometer-scale resolution, which are of great importance in tunable and integrated nanooptics, can be fabricated by diffusion-enabled microcontact printing.
Keywords: chromogenic; detectors; photonic crystals; shape memory polymers; stimuli-responsive.