PAPERCommunity contribution
- Research Article
- Materials Science
- Journal of the American Chemical Society
General Synthesis of Inverse Opal Covalent Organic Framework Photonic Crystals
Fan Zhou, Qing Hao, Youxian Li, Panke Zhou, Bingbing Gao, Qiongfeng Shi, Dong Wang, Hong Liu
Abstract
Constructing highly crystalline inverse opal covalent organic framework photonic crystals (IO COF PhCs) remains challenging due to the incompatibility between the spatial confinement required for inverse opal replication and the synthesis process of COFs. Inspired by the semi-solid chitin infiltration and confined solidification process in beetle photonic architectures, a solvent-free template-assisted melt pressing (STAMP) strategy is developed for the general synthesis of crystalline IO COF PhCs. The quasi-solid precursor state facilitates efficient template infiltration while remaining reactive for COF crystallization, affording ordered macroporous photonic architectures within 3 min. This strategy is broadly applicable to a library of 16 COFs spanning β-ketoenamine, hydrazone, imine, and imide linkages, yielding decimeter-scale monoliths with designable structural colors across the visible spectrum. By integrating periodic macroporosity, permanent framework porosity, and photonic functionality into one material platform, the resulting IO COF PhCs enable cross-scale programmable optical encoding and visually self-reporting adsorption. The application potential of IO COF PhCs is demonstrated for biomimetic anti-counterfeiting patterns and structural-color-indicated Au capture. This work establishes a general route toward crystalline IO COF PhCs and provides a versatile platform for coupling molecular functionality with photonic regulation in advanced smart materials.
Introduction
Photonic crystals (PhCs), as representative bioinspired smart materials, consist of periodically arranged components, enabling selective regulation of light propagation through photonic bandgaps and Bragg diffraction.1−4 These unique optical characteristics have attracted significant interest in frontier applications such as biosensing,5−7 color display,8, 9 and anti-counterfeiting identification.10, 11 Compared with the opal structure PhCs assembled from monodisperse microspheres, inverse opal (IO) PhCs feature a continuous three-dimensional periodic skeleton and interconnected macroporous networks derived from template replication. Beyond photonic regulation, this open architecture provides accessible channels for molecular transport and functional integration, while the periodic dielectric environment enables tunable optical responses through control over the macropore geometry and surrounding refractive index.12, 13 Consequently, IO PhCs offer distinct advantages in optical response tuning,14 mass transport and adsorption,15 and highly sensitive sensing.16 Over the past decades, a variety of IO PhC skeleton materials based on metal oxides,17 organic polymers,18 and hydrogels19 have been successfully developed and investigated. As photonic materials evolve from passive optical structures toward multifunctional smart platforms, the design of skeleton materials has become increasingly important for expanding the functionality of IO PhCs. Extending IO skeletons from conventional dense solids to crystalline porous frameworks offers new opportunities by combining photonic regulation with molecular functionality. The well-defined and tailorable framework structures enable rational engineering of molecular functionalities, while the permanent mesoporous structure provides accessible interfaces for molecular adsorption. Together, these characteristics make crystalline porous frameworks attractive skeleton materials for multifunctional IO PhCs.20, 21 However, successful examples of IO PhCs based on crystalline porous frameworks remain rare, highlighting the critical need for both suitable porous skeleton materials and advanced synthetic strategies.
Covalent organic frameworks (COFs) are an emerging class of crystalline porous materials that have attracted worldwide research attention in various fields such as gas storage,22 separation,23 catalysis,24 energy storage,25 and photoelectric conversion,26, 27 due to their molecular-level designability, abundant active sites, high surface areas, and excellent stability.28, 29 In recent years, COFs have emerged as promising skeleton materials for IO PhCs because of their permanent porosity, environmental robustness, and tunable stimulus responsiveness.30−37 Although researchers have successfully constructed a limited variety of opal-structured photonic crystals through the self-assembly of COF microspheres,38−40 the fabrication of highly crystalline IO COF PhCs with ordered inverse opal architectures remains challenging. Most COFs are intrinsically insoluble and infusible, making presynthesized COF powders difficult to process within hard templates at the nanoscale. On the other hand, when applying in situ COF synthesis within the confined three-dimensional template, the limited solubility of COF precursors and the continuous precipitation of insoluble framework species during solvothermal synthesis make it difficult to achieve complete precursor infiltration and uniform crystalline framework growth.41−43 As a result, previous efforts to construct IO COF PhCs have been constrained by an inherent trade-off between order and scale, with samples of well-preserved order often limited to small domain sizes without observable structural color, while those large enough to exhibit structural color usually suffered from compromised crystallinity,44, 45 collectively hindering the general development of IO COF PhCs. Therefore, a general strategy capable of reconciling COF crystallization with large-area inverse opal templating is highly desired.
Here, inspired by beetles with hierarchical structural coloration (Scheme 1a), such as Hoplia coerulea, a general synthetic strategy for IO COF PhCs is developed, named the solvent-free template-assisted melt pressing (STAMP) strategy. Emulating the semi-solid chitin infiltration and solidification process of beetles, the hot-pressing approach for COF synthesis46 was employed to transform COF precursors into a semi-solid state, enabling their efficient infiltration into hard templates. The confined crystallization of COFs and the faithful replication of inverse opal architectures were achieved simultaneously through a single STAMP process. This strategy enables the preparation of highly crystalline IO COF PhCs containing 4 different chemical linkages within 3 min. Followed by template removal, large-area ordered macroporous architectures while preserving high crystallinity are generated (Scheme 1b). The resulting IO COF PhC platelets exhibited bright and tunable structural colors over large areas up to the decimeter scale. Relying on the proposed STAMP strategy, a library of 16 IO COF PhCs encompassing imine, hydrazone, β-ketoenamine, and imide linkages was established, demonstrating the generality of the strategy (Scheme 1c). Compared with opal COF PhCs, the interconnected macroporosity of IO architectures promotes efficient mass transport and molecular adsorption, while the generality of the STAMP strategy enables versatile tuning of the photonic properties across diverse COF systems. By integrating the molecular programmability of COFs with periodic IO architectures, IO COF PhCs emerge as multifunctional photonic platforms, opening opportunities for advanced applications that are difficult to realize with conventional opal COFs. Leveraging the intrinsically tunable molecular-level fluorescence emission of COFs together with the photonic bandgap controlled by the periodicity of the IO structure, a dye-free dual-modal optical anti-counterfeiting platform integrating molecular-level and structural-level information encoding was established. Furthermore, the combination of COF adsorption sites with the interconnected macroporous channels and stimulus-responsive structural colors of IO architectures enabled self-reporting adsorption, where gold capture could be directly visualized through structural color evolution. In summary, this bioinspired STAMP strategy has enabled the general synthesis of highly crystalline IO COF PhCs and expands the structural diversity and functional scope of COF-based photonic crystals.

Results and Discussion
Synthesis and Characterization of IO COF PhCs
In nature, inherent photonic crystal structures have been found in some butterflies and beetles. Their formation process involves ordered smooth endoplasmic reticulum (OSER) membrane structures formed by intracellular self-assembly, which serve as sacrificial templates. Viscous chitin precursors are selectively filled into the interstitial spaces of the templates and solidified. Subsequently, the OSER templates undergo apoptosis, ultimately leaving behind a three-dimensional periodic chitin photonic crystal network.47, 48 Inspired by this natural process, it is proposed that filling COF precursors into the template in a semi-solid viscous form and simultaneously completing plasticization and crystallization within the confined space of the photonic crystal template can overcome the difficulties encountered in the solution-phase synthesis route for IO COF PhCs. To obtain semi-solid COF precursors and achieve template filling, we have adapted the recently successfully implemented hot-pressing method.46
Mimicking the formation process of PhCs in beetles, the STAMP strategy has been developed for the general synthesis of IO COF PhCs. Herein, IO TpBD is employed as a representative example to demonstrate the typical synthetic procedure (Figure 1a, Scheme S1). First, SiO2 colloidal nanoparticles with different sizes are self-assembled and utilized as sacrificial templates to facilitate the formation of inverse opal structures. Subsequently, a mixture of the COF TpBD precursors (2,4,6-triformylphloroglucinol (Tp) and 4,4′-benzidine (BD)) with the catalyst p-toluenesulfonic acid (PTSA) is spread onto the template. The STAMP molding of the IO TpBD platelet is completed by reacting at 120 °C and 3 bar for 3 min. During this process, the mixed COF precursors attain a viscous semi-solid state (vide infra) analogous to the chitin precursor state in beetles, enabling the molding and solidification of the inverse opal structure within the template. After cooling and solidification, the SiO2 template is removed by NaOH etching, while the IO COF skeletons remain unbroken. The resulting platelets exhibit not only the intrinsic brown color of COF TpBD but also bright structural colors, demonstrating the presence of periodic photonic structures within the one-step molded IO TpBD platelets.

Subsequently, a series of characterization experiments was performed to confirm the synthesis of the IO TpBD. First, powder X-ray diffraction (PXRD) was used to verify the crystallinity of IO COF PhCs. Compared with the dense COF TpBD prepared without macropores, the IO TpBD shows a similarly strong (100) diffraction peak at 3.6° in the PXRD pattern, along with other corresponding diffraction peaks, demonstrating that the crystallinity is retained during the shaping and etching processes (Figures 1b and S1). Moreover, the Fourier transform infrared (FTIR) spectra show the appearance of the C═C peak at 1571 cm–1 and the C–N peak at 1259 cm–1, together with a shift and broadening of the C═O band, supporting the formation of the keto form in the COF structure (Figure S2). The 13C cross-polarization magic-angle-spinning solid-state nuclear magnetic resonance (13C CP-MAS NMR) spectroscopy was also used to confirm the formation of the β-ketoenamine linkage, with a signal at ∼180 ppm (Figure S3). Meanwhile, as shown in Figure 1c, the nitrogen adsorption isotherms obtained from Brunauer–Emmett–Teller (BET) measurements of the dense COF TpBD and the STAMP-synthesized IO TpBD both exhibit a sharp uptake at low relative pressure (P/P0 < 0.01). The IO TpBD additionally shows an uptake at high relative pressure. The BET surface area of IO TpBD was calculated as 696.4 m2 g–1, higher than that of the common COF TpBD platelets (472.1 m2 g–1) (Figure S4), which might be attributed to the improved accessibility of the micropores afforded by the inverse opal structure.44, 49
Then, the IO PhCs structure of the IO TpBD was further characterized. The surface morphology of IO TpBD was observed by the scanning electron microscope (SEM), showing the ordered IO structure of the platelet (Figure 1d). Due to the certain thickness of the multilayer colloidal crystal, the IO TpBD exhibits a three-dimensional IO area, with the macropores interconnected by apertures (Figures S5, S6, and Video Not Available), which was clearly observed by focused ion beam scanning electron microscopy (FIB-SEM). The exposed cross-section corresponds to the (101) crystal plane of the face-centered cubic (FCC) structure (Figures 1e and S7). Furthermore, the transmission electron microscopy (TEM) image demonstrated the porosity of IO TpBD and the long-range orderliness of the macropores (Figure 1f). The energy-dispersive spectrometer (EDS) mapping images of IO TpBD showed that the IO skeleton highly coincides with the distribution of C, N, and O elements, matching the constituent elements of COF TpBD (Figure S8). The orderly arranged macropores enable the COF platelets to exhibit bright structural color. According to Bragg’s law, by altering the particle size of the SiO2 template spheres, the structural color of the COF platelets can be readily controlled, with a red shift occurring as the template particle size increases (Figures 1g, S9–S11). Meanwhile, the structural color of IO COF PhCs was angle-dependent, that is, presenting various colors under different viewing angles, which is one of the typical characteristics of three-dimensional photonic crystals (Figure 1h). In addition, the STAMP method enables the preparation of large-scale IO COF PhCs. The size of the IO structure is only limited by the areas of the hot-plate and the SiO2 hard template. Consequently, we prepared a structurally uniform IO TpBD platelet with a decimeter scale (Figure S12), demonstrating the potential for practical manufacturing and processing. These results confirm the successful synthesis of the inverse opal skeleton and its effective preservation within the IO COF PhCs.
Mechanism and Optimization of the STAMP Strategy
In order to study the formation mechanism of IO COF PhCs, the influence of hot-pressing temperature and time on the quality of IO COF PhCs using the STAMP synthesis was investigated (Figure 2a). The quality of IO TpBD was qualitatively evaluated based on the crystallinity and structural color, which were reflected by XRD and reflectance spectra, respectively. At a reaction temperature below 100 °C, the products could not be formed into platelets and were broken into powders during the washing and etching process (Figure S13). Although a few macropores were observed at the reaction temperature of 100 °C (Figure S14), they were not enough to produce the long-ordered macropore structure and detectable structural color. As shown in Figure 2b,c, both the generation of structural color and the crystallization of COF required a reaction temperature of at least 120 °C, while excessively high temperatures resulted in a slight decrease in crystallinity. Then, the changes in the product morphology with the duration of hot-pressing were also studied. According to the photographs and SEM images of the products (Figures S15 and S16), the shaping of platelets requires at least 1 min. Otherwise, amorphous fragments without structural color are obtained. After the reaction lasted for 2 min, the crystallinity and reflectance intensity increased simultaneously and gradually tended to stabilize after a longer period, with no substantial further increase observed at 6 min (Figure 2d,e). These results indicate concurrent development of the inverse opal architecture and COF crystallization. A pressure-dependent investigation further showed that pressures from 1 to 6 bar were sufficient to produce the inverse opal architecture (Figure S17), whereas the crystallinity exhibited a maximum at 3 bar, which was therefore selected as the standard applied pressure for IO TpBD synthesis.

Next, the formation process of IO COF PhCs using the STAMP strategy was further investigated to gain deeper insight into the molding mechanism. First, the morphological changes of the COF mixed powder precursors during hot-pressing were observed by in situ video recording. In this process, the COF precursor mixture was sandwiched between two transparent glass plates, in which static weight pressure was applied to simulate the STAMP process (Figure 2f and Video Not Available). Under continuous heating at 120 °C, the dispersed mixture powders transformed from solid yellow powders into a moist clay-like state within a minute-scale process. This could correspond to the melting of the catalyst (PTSA, mp ≈ 100 °C) and the occurrence of the Schiff-base reaction, accompanied by the release of water produced during the reaction, forming a semi-solid clay-like state.50, 51 Moreover, gentle scraping of the reaction product with tweezers revealed that it retained a typical viscoplastic, clay-like consistency and adhered readily to the tip of the tweezers, demonstrating the prolonged maintenance of the clay-state characteristics during the STAMP process. The temperature-variable rheological testing further supported the state change of the mixture powders (Figure 2g). At 120 °C, the mixture powders exhibited significantly lower elastic modulus and higher loss factor compared to those at 80 °C, confirming their softening behavior at a specific temperature. Therefore, we suggest that under such conditions, external pressure drives the semi-solid mixture into the interconnected voids of the SiO2 template, thereby overcoming the slow mass transport within the nanoscale gaps of the hard template. The synergistic effect of this mechanical force and thermal activation not only promotes high-density loading of the monomers in the confined space but also provides a favorable reaction environment for the crystallization of COFs. Therefore, the STAMP strategy enables the generation of highly crystalline COFs and the replication of the IO topology to be accomplished simultaneously within 3 min. In contrast, the traditional solvothermal method only resulted in COF growth on the surface of the template (Figure S18), thereby preventing effective formation of the IO COF architecture. Based on the above experimental results, considering the crystallinity, large-area ordered macropores, and the convenience of synthesis, STAMP at 120 °C for 3 min is used as a standard condition for the synthesis of IO TpBD (Figure 2h).
Benefiting from the efficient one-step crystallization–IO structure integration capability of the STAMP strategy, we found it is applicable to a broader range of COF systems. This enabled the construction of a material library comprising 16 high-quality IO COF PhCs (Table S1), which surpass the total number of opal-structured COF photonic crystals reported to date (Table S2). The generality of the STAMP strategy is further reflected in the diversity of monomers and covalent linkage types employed. Among the synthesized IO COF PhCs, in addition to the β-ketoenamine linkage present in the aforementioned TpBD system, representative COFs linked by hydrazone, imine, and imide were further demonstrated (Figure 3a–c). By simply adjusting the reaction parameters and catalyst, and undergoing a similar semi-solid synthesis process, the XRD patterns of IO Hdz-1, TAPT-DVA, and PI-TAPB all exhibit sharp diffraction peaks, indicating their high crystallinity (Figures 3d–f, S19). The successful formation of various linkages was further confirmed by FTIR spectra (Figure S20), as evidenced by the emergence of characteristic vibrations corresponding to hydrazone linkage (C═N, 1617 cm–1) in IO Hdz-1, imine linkage (C═N, 1578 cm–1) in IO TAPT-DVA, and imide linkage (C═O, 1723 cm–1; C–N–C, 1373 cm–1) in IO PI-TAPB, accompanied by the disappearance of the characteristic bands of the corresponding monomers. Furthermore, the signals corresponding to the linkages can also be found in the 13C CP-MAS NMR spectra (Figure S21). Meanwhile, large-area ordered IO PhC architectures were also preserved following template etching (Figure S22), thus generating the structural colors of different COFs linked by different building blocks (Figure 3g–i). Furthermore, more than ten additional IO COF PhCs were synthesized to further develop the material library, retaining both crystallinity and periodic macropores, which was also verified by the XRD patterns, the reflectance spectra, the SEM images, and NMR spectra (Figures S23–S36). Notably, most of these COF systems were reported for the first time in the form of photonic crystals, establishing a robust materials platform for advanced optical applications through molecular-level programmability.

Bioinspired Dual Optical Anti-Counterfeiting
In nature, beetles like H. coerulea can construct vivid and intricate patterns on their elytra by modulating the spatial distribution and periodicity of photonic crystal structures. Analogously, the STAMP strategy enables the scalable fabrication of elaborate IO COF patterns with various structural colors through patterned pressing and adjustment of template periodicity (Figures S37–S39). These systems can therefore serve as versatile platforms for a wide range of photonics-related sensing applications.
Reminiscent of the natural solvatochromic behavior of H. coerulea (Figure S40), solvents with different refractive indices filling the macropores can shift the reflection peak position of IO Hdz-1 (Figures S41 and S42). As shown by the dot arrays patterned on COF Hdz-1, after being treated with toluene, all array points exhibited a redshift, some even to the invisible near-infrared region. It is worth noting that the color-changing process is completely reversible and repeatable, demonstrating the great potential of IO COF PhCs in the fields of intelligent display and visual response. Compared with the opal photonic crystal assembled by monodisperse colloids, the patterns on IO COF PhCs exhibit better mechanical stability. Even after wiping, bending, and washing, the structural color remains intact (Figure S43).
Beyond simple structural coloration, H. coerulea integrates structural color and fluorescence within its elytra (Figure 4a), producing distinct optical appearances under daylight and UV illumination.52 To emulate this biological functionality, the STAMP strategy enables diverse COF linkages with tunable photonic periodicity, allowing customizable integration of structural colors and intrinsic COF fluorescence beyond the capability of conventional opal COF PhCs. Taking advantage of the strong and tunable fluorescence of hydrazone-linked COFs arising from intramolecular hydrogen bonding and programmable monomer design,53 1,3,5-triformylbenzene and 1,3,5-tri(4-formylphenyl)benzene were selected as aldehyde monomers to synthesize IO Hdz-1 and IO Hdz-2, respectively (Figure 4b). Mirroring the dual optical “photonic cell” architecture of H. coerulea, the IO COFs displayed periodicity-dependent structural colors under daylight but switched to their intrinsic blue (Hdz-1) or yellow (Hdz-2) fluorescence under UV illumination (Figure 4c,d). Based on this dual optical response, an IO COF label library was established for bioinspired anti-counterfeiting. Reflection spectra encoded the first optical information layer through structural color, while PL emission at ∼500 nm (Hdz-1) and ∼550 nm (Hdz-2) provided a second layer under UV illumination (Figure 4e,f), presenting a dual layer of optical information under different light irradiation. These optical signals exhibit excellent long-term stability. Taking IO Hdz-1 as an example, both the reflection and fluorescence spectra show no significant decrease in intensity or shift in peak position after 270 days (Figure S44). The orthogonality of the two optical channels was further evaluated by measuring the reflection and fluorescence responses under UV, daylight, and simultaneous UV/daylight illumination (Figure S45). The result indicates negligible detectable cross-talk between the two channels.

The dual optical information-integrated IO Hdz PhCs have great potential in biomimetic anti-counterfeiting applications. By rationally arranging the IO COF pixels with different optical information, an array containing encrypted information was obtained, which displays different text or pattern information under different light sources (Figure 4g). The information visible under daylight was defined as false information, whereas the true information was revealed only under UV illumination. As a proof of concept, a 5 × 9 IO COF pixel array was designed, with every three columns of pixels constituting a letter (Figure S46). As expected, the array displayed the colorful “SEU” letters under daylight (Figure 4h). For a more intuitive view, the specific colors were extracted from the photographs. In contrast, the encrypted information “COF” became visible only under UV illumination. The two types of optical information carried by IO COF PhCs have significant differences in excitation mode, regulation channel, and visual texture. Therefore, there is no interference between the false and true information, making the COF pixel array a reliable dual-optical anti-counterfeiting platform for information encryption. This dual-optical anti-counterfeiting strategy, inspired by the integrated structural color and fluorescence of H. coerulea, demonstrates the potential of IO COF PhCs for information encryption.
Smart Adsorption for Au Capture
The unique combination of molecular programmability, permanent porosity, and interconnected photonic architectures makes IO COF PhCs suitable for smart adsorption applications. Inspired by the reversible structural color changes of the elytral photonic structures of H. coerulea upon water uptake, we envisioned coupling molecular adsorption with photonic signal transduction to enable simultaneous adsorption and visual reporting. Unlike conventional opal COF photonic crystals, the interconnected macroporous architecture of IO COF PhCs facilitates efficient mass diffusion and high-capacity adsorption while simultaneously serving as an optical reporter. As a proof of concept, Au capture was selected to demonstrate this smart adsorption platform (Figure 5a). The rationally designed COF skeleton provides abundant N and O binding sites for efficient Au capture, whereas the ordered IO architecture enables direct visualization of adsorbent saturation through structural color evolution.

As shown in Figures 5b and S47, with increasing immersion time in HAuCl4 aqueous solution, the structural color of IO Hdz-1 PhCs changed from bright green to dark indigo, accompanied by a pronounced blue shift of the reflection peak from ∼550 to ∼480 nm and a significant decrease in reflection intensity. However, SEM images revealed that the IO architecture and macropore periodicity were well preserved after adsorption, which rules out the effect of gold adsorption-induced skeleton shrinkage (Figure 5c). Instead, numerous nanoparticles were observed throughout the IO Hdz-1 PhCs (Figures 5c and S48), suggesting the in situ formation of Au nanoparticles (AuNPs) during adsorption. Therefore, we hypothesized that the optical response can be reasonably attributed to the localized surface plasmon resonance (LSPR) of these AuNPs. As previously reported,54 when the photonic stop band of the PhCs overlaps with the LSPR band of the AuNPs, the coupling interaction enhances light absorption, thereby reducing the overall reflection intensity. Consequently, reflection from the overlapping spectral region is suppressed, whereas only the non-overlapping region contributes to the observed reflection, giving rise to the indigo structural color. This hypothesis was further corroborated by other characterization techniques. TEM and EDS analysis further verify the presence of large AuNPs within the macropores (Figure S49). As shown in Figure 5d, PXRD confirmed that the crystallinity of IO Hdz-1 was fully retained after adsorption, while characteristic diffraction peaks of metallic Au appeared. The X-ray photoelectron spectroscopy (XPS) spectra of IO Hdz-1 before and after immersion also confirmed the adsorption of Au (Figure S50). Furthermore, XPS high-resolution scan analysis verified the coexistence of Au0 (∼84.9 and 88.7 eV), Au+ (∼85.9 and 89.8 eV), and minor Au3+ species (∼86.9 and 90.9 eV), indicating the generation of metallic Au species (Figure 5e). Collectively, these results demonstrate that AuCl4– ions are adsorbed and subsequently reduced within the interconnected IO COF PhCs, where plasmon–photonic coupling enables direct visualization of adsorbent saturation through structural color evolution.
Benefiting from the ordered and interconnected macroporous architecture, all IO COF PhCs exhibited markedly enhanced Au adsorption capacities compared with their dense counterparts (Figure 5f). Among them, IO TAPy-Bpy achieved an adsorption capacity of 2060 mg g–1, representing a 48% enhancement over the corresponding dense COF platelet (Table S3). The interconnected macroporous channels facilitate mass transport while exposing more accessible adsorption sites, thereby allowing the intrinsic adsorption capability of COF skeletons to be more efficiently utilized. Notably, although the amorphous IO COF PhCs also possessed an IO architecture (Figure S51), their adsorption capacity remained much lower than that of crystalline IO COF PhCs, highlighting the indispensable role of the permanent microporosity and well-defined adsorption sites provided by crystalline COF skeletons. In addition, the Au uptake kinetics of IO Hdz-1 further showed that adsorption equilibrium was reached within 300 min and was well described by the pseudo-second-order rather than the pseudo-first-order model, suggesting a chemisorption-dominated process (Figure S52 and Table S4). The Au capture process also exhibited good selectivity and reversibility. In the presence of competing metal ions, IO Hdz-1 showed a pronounced preference for Au capture (Figure S53). Moreover, the captured Au species could be effectively desorbed using 0.5 M HCl/thiourea under ultrasonic treatment, restoring the original structural color and enabling at least three reversible adsorption–desorption cycles (Figure S54). Collectively, the ordered inverse opal architecture enhances the intrinsic adsorption capability of COFs by improving molecular transport and adsorption-site accessibility while simultaneously providing photonic readout of the adsorption state, thereby establishing a self-reporting smart adsorption platform.
Conclusion
In summary, we developed a general STAMP strategy that overcomes the challenge of constructing highly crystalline IO COF PhCs. Inspired by the infiltration and confined solidification of semi-solid precursors within the photonic architectures of beetles such as H. coerulea, STAMP exploits a quasi-solid reaction state that simultaneously enables efficient template infiltration and COF crystallization. Therefore, this strategy reconciles the inherent incompatibility between inverse opal replication and COF formation, affording highly crystalline IO COF PhCs with long-range ordered macroporosity, tunable structural colors, and macroscopic processability. The broad applicability of this strategy across diverse linkage chemistries establishes a general strategy for highly crystalline IO COF PhCs that has remained largely inaccessible using conventional synthetic methods. Beyond constructing photonic structures, STAMP transforms COFs into programmable photonic platforms by integrating molecular functionality with periodic optical architectures. The resulting IO COF PhCs synergistically combine permanent porosity, efficient mass transport, structural coloration, and COF-specific chemical functions within a single crystalline framework. Such cross-scale integration enables functions beyond those of opal COF PhCs, conventional COFs, or photonic crystals alone, including dye-free dual-modal optical encoding through fluorescence-photonic bandgap coupling and self-reporting adsorption through adsorption-induced photonic responses. The demonstrations of biomimetic anti-counterfeiting and visually indicated gold capture highlight the versatility of IO COF PhCs as multifunctional smart materials. This convergence of bioinspired synthesis, molecular programmability, and photonic regulation establishes IO COF PhCs as a new class of crystalline porous photonic materials, opening opportunities for advanced applications in intelligent sensing, information security, and adaptive chemical systems.
Author Contributions
The manuscript was written through the contributions of all authors. All authors have given approval to the final version of the manuscript.
References
- John. Strong Localization of Photons in Certain Disordered Dielectric Superlattices. Phys. Rev. Lett. 58(23) (1987). Source
- Yablonovitch. Inhibited Spontaneous Emission in Solid-State Physics and Electronics. Phys. Rev. Lett. 58(20) (1987). Source
- Cai. From Colloidal Particles to Photonic Crystals: Advances in Self-Assembly and Their Emerging Applications. Chem. Soc. Rev. 50(10), 5898 (2021). Source
- Rundquist. Dynamical Bragg Diffraction from Crystalline Colloidal Arrays. J. Chem. Phys. 91(8), 4932 (1989). Source
- Ge. Responsive Photonic Crystals. Angew. Chem., Int. Ed. 50(7), 1492 (2011). Source
- Wang. A Recent Review on Stimuli-Responsive Hydrogel Photonic Materials. Macromol. Rapid Commun. 46(14) (2025). Source
- Lu. Supramolecular Photonic Hydrogel for High-Sensitivity Alkaline Phosphatase Detection via Synergistic Driving Force. Small 19(12) (2023). Source
- Fu. Electrically Responsive Photonic Crystals with Bistable States for Low-Power Electrophoretic Color Displays. Nat. Commun. 13(1) (2022). Source
- Ding. Structural Color Patterns by Electrohydrodynamic Jet Printed Photonic Crystals. ACS Appl. Mater. Interfaces 9(13), 11933 (2017). Source
- Wang. Stimulus-Responsive Photonic Crystals for Advanced Security. Adv. Funct. Mater. 32(40) (2022). Source
- Huang. Butterfly-Inspired Tri-State Photonic Crystal Composite Film for Multilevel Information Encryption and Anti-Counterfeiting. Adv. Mater. 35(17) (2023). Source
- Fathi. Inverse Opal Photonic Crystals: Recent Advances in Fabrication Methods and Biological Applications. J. Drug Delivery Sci. Technol. 72 (2022). Source
- Lemago. Inverse Opal Photonic Crystals: Synthesis Techniques, Unique Properties, and Multifunctional Applications. Appl. Surf. Sci. Adv. 28 (2025). Source
- Dong. Inverse Opals with a Skeleton Structure: Photonic Crystals with Two Complete Bandgaps. Adv. Mater. 14(20), 1457 (2002). Source
- Kim. Ordered Macroporous Platinum Electrode and Enhanced Mass Transfer in Fuel Cells Using Inverse Opal Structure. Nat. Commun. 4(1) (2013). Source
- Li. 3D Inverse Opal SnO2 Decorated with MoS2 for Ultra-Sensitive NO2 Sensing. Sens. Actuators, B 444 (2025). Source
- Liang. Sulfur Cathodes with Hydrogen Reduced Titanium Dioxide Inverse Opal Structure. ACS Nano 8(5), 5249 (2014). Source
- Wu. Water-Writing Pattern on PEDOT:PSS Inverse Opal Films through the Synergistic Effect of Morphology/Conformation Transition. ACS Appl. Mater. Interfaces 16(30), 39876 (2024). Source
- Fu. Bio-Inspired Self-Healing Structural Color Hydrogel. Proc. Natl. Acad. Sci. U.S.A. 114(23), 5900 (2017). Source
- Liu. Hierarchical 3D Inverse Opal MOF Composites for Synergistic Toluene Adsorption-Photothermal Desorption. Chem. Eng. J. 531 (2026). Source
- Qin. Electrochemical Fabrication of Long-Range Ordered Macro-Microporous Metal–Organic Framework Films. J. Mater. Chem. A 10(17), 9497 (2022). Source
- Zhou. Carbon Dioxide Capture from Open Air Using Covalent Organic Frameworks. Nature 635(8037), 96 (2024). Source
- Jin. Bottom-Up Synthesis of 8-Connected Three-Dimensional Covalent Organic Frameworks for Highly Efficient Ethylene/Ethane Separation. J. Am. Chem. Soc. 144(12), 5643 (2022). Source
- Ding. Construction of Covalent Organic Framework for Catalysis: Pd/COF-LZU1 in Suzuki–Miyaura Coupling Reaction. J. Am. Chem. Soc. 133(49), 19816 (2011). Source
- Zheng. Orthoquinone-Based Covalent Organic Frameworks with Ordered Channel Structures for Ultrahigh Performance Aqueous Zinc–Organic Batteries. Angew. Chem., Int. Ed. 61(12) (2022). Source
- Hao. Oriented Two-Dimensional Covalent Organic Framework Films for Near-Infrared Electrochromic Application. J. Am. Chem. Soc. 141(50), 19831 (2019). Source
- Hao. A Covalent Organic Framework Film for Three-State Near-Infrared Electrochromism and a Molecular Logic Gate. Angew. Chem., Int. Ed. 60(22), 12498 (2021). Source
- Ding. Covalent Organic Frameworks (COFs): from Design to Applications. Chem. Soc. Rev. 42(2), 548 (2013). Source
- Diercks. The Atom, the Molecule, and the Covalent Organic Framework. Science 355(6328) (2017). Source
- Ascherl. Solvatochromic Covalent Organic Frameworks. Nat. Commun. 9(1) (2018). Source
- Yu. Photostimulus-Responsive Large-Area Two-Dimensional Covalent Organic Framework Films. Angew. Chem., Int. Ed. 58(45), 16101 (2019). Source
- Xu. Vinylene-Linked Covalent Organic Frameworks (COFs) with Symmetry-Tuned Polarity and Photocatalytic Activity. Angew. Chem., Int. Ed. 59(52), 23845 (2020). Source
- Zhang. Covalent Organic Framework Nanofluidic Membrane as a Platform for Highly Sensitive Bionic Thermosensation. Nat. Commun. 12(1) (2021). Source
- Zhao. 3D Hydrazone-Functionalized Covalent Organic Frameworks as pH-Triggered Rotary Switches. Small 17(41) (2021). Source
- She. Recent Progress in External-Stimulus-Responsive 2D Covalent Organic Frameworks. Adv. Mater. 34(22) (2022). Source
- Sun. Photoresponsive Covalent Organic Frameworks with Diarylethene Switch for Tunable Singlet Oxygen Generation. Chem. Mater. 34(4), 1956 (2022). Source
- Hao. A Sweat-Responsive Covalent Organic Framework Film for Material-Based Liveness Detection and Sweat Pore Analysis. Nat. Commun. 14(1) (2023). Source
- Fonseca. Assembly of Covalent Organic Frameworks into Colloidal Photonic Crystals. J. Am. Chem. Soc. 145(37), 20163 (2023). Source
- Ma. Self-Assembly of Super-Uniform Covalent Organic Framework Colloidal Particles into Multi-Dimensional Ordered Superstructures. Small 20(43) (2024). Source
- Fonseca. Co-Assembly of Covalent Organic Framework Particles into Binary Ordered Superstructures. J. Am. Chem. Soc. 147(32), 28617 (2025). Source
- Zhao. Macro/Microporous Covalent Organic Frameworks for Efficient Electrocatalysis. J. Am. Chem. Soc. 141(16), 6623 (2019). Source
- Zou. Hierarchically Macro–Microporous Covalent Organic Frameworks for Efficient Proton Conduction. Adv. Funct. Mater. 33(18) (2023). Source
- Huang. Hierarchical Porous Covalent Organic Framework Nanosheets with Adjustable Large Mesopores. Chem 10(10), 3100 (2024). Source
- Liu. Ordered Macro-Microporous Single Crystals of Covalent Organic Frameworks with Efficient Sorption of Iodine. J. Am. Chem. Soc. 145(4), 2544 (2023). Source
- Wu. Crystalline and Stable Hierarchical Porous Conjugated Organic Framework as an Ideal Platform for Electrosynthesis. J. Am. Chem. Soc. 147(24), 21089 (2025). Source
- Jin. Rapid Solid-Phase Synthesis of Highly Crystalline Covalent Organic Framework Platelets. Nat. Chem. Eng. 2(9), 581 (2025). Source
- Vigneron. Natural Layer-by-Layer Photonic Structure in the Squamae of H. Coerulea (Coleoptera). Phys. Rev. E 72(6) (2005). Source
- Ghiradella. Many Variations on a Few Themes: a Broader Look at Development of Iridescent Scales (and Feathers). J. R. Soc. Interface 6, S243 (2009). Source
- Wang. A General Strategy for the Synthesis of Hierarchically Ordered Metal-Organic Frameworks with Tunable Macro-, Meso-, and Micro-Pores. Small 19(3) (2023). Source
- Wang. Organic Flux Synthesis of Covalent Organic Frameworks. Chem 9(8), 2178 (2023). Source
- Karak. Constructing Ultraporous Covalent Organic Frameworks in Seconds via an Organic Terracotta Process. J. Am. Chem. Soc. 139(5), 1856 (2017). Source
- Mouchet. Controlled Fluorescence in a Beetle’s Photonic Structure and Its Sensitivity to Environmentally Induced Changes. Proc. R. Soc. B 283(1845) (2016). Source
- Li. Tuneable Near White-Emissive Two-Dimensional Covalent Organic Frameworks. Nat. Commun. 9(1) (2018). Source
- Rout. Plasmonic Resonance-Induced Effects on Stopband and Emission Characteristics of Dye-Doped Opals. Plasmonics 10(3), 713 (2015). Source