Introduction

Maximizing and maintaining the total incident light is a crucial factor for solar cell performance, highlighting the importance of proper light management and removing dirt or other obstructions that can block light1,2,3. A self-cleaning superhydrophobic light management layer on solar cells can greatly tackle the accumulation of dust and dirt, which is estimated to decrease the output power by up to 50%4,5 The combination of self-cleaning and high transparency can be achieved by tailoring the surface microstructure on the outmost layer of solar cells6,7,8,9,10,11. A surface roughness also contributes to haze which extends the light path in the photoactive material of solar cells and results in increased power conversion efficiency12,13. Patterned polymers, such as polydimethylsiloxane (PDMS)3,14, Norland Optical Adhesive (NOA) 6315, and ethylene-tetrafluoro-ethylene (ETFE)16 on multi-junction, dye-sensitized, perovskite, and polycrystalline silicon solar cells have been shown to increase the power conversion efficiency4,5. Free-standing, flexible, and environmentally-friendly films with such properties can be implemented in the optical components, often without additional manufacturing complications17,18,19. Fabrication of films with desirable wetting and optical properties, however, has been challenging due to the counteracting roughness requirements of superhydrophobicity and transparency16,17,18,19,20. While superhydrophobicity is associated with a high level of roughness, it is often at the expense of lower transparency20,21,22,23,24.

In nature, plenty of transparent superhydrophobic surfaces have evolved, for instance, wings of cicada25,26 and glasswing butterflies27 which double in camouflage function, and moth eyes coating28,29 which is vital for their night vision. Extensive investigation on the preparation of superhydrophobic polymeric surfaces has been carried out after comprehensive surface structure descriptions of several natural plant leaves, notably the lotus leaf in 199730,31. Superhydrophobic surfaces are sought to exploit the high mobility of water for various reasons, such as self-cleaning32,33,34, anti-icing44, spin-coating, dip-coating45,46, spray coating47,48, and lithography49. Due to its simplicity, low cost, and high precision, imprint lithography tends to be a common method to fabricate various nano/micro-scale structures50,51. Moreover, fine-tuning the surface structure can enable anisotropic wettability which assists in directing the liquid flow in the desired direction and has been realized by sequential imprinting52, as well as by grating and wrinkling53,54. For instance, in a bio-inspired approach, Lee et al.55. mimicked rice-leaf hierarchical surface structure and achieved superhydrophobic and anisotropic properties. Nonetheless, considerable attention has been focused on a limited number of nature’s functional surfaces, such as lotus leaves56,57, butterfly wings58, shark skin59, and rose petals60,61, leaving many potential bio-templates unexplored.

Recent advances have shown great potential for bio-based materials in optoelectronics13,62. Employing cellulose-based substrates has been attempted as environmentally friendly and renewable materials in solar cells22,63,64,65,66,67,68. As a cellulose derivative, cellulose acetate (CA) can be produced through acetylation of cellulose69,70, and recycling papers71 and textiles72. It benefits from tunable optical clarity73, good processability74,75, compostability76, and biocompatibility77 which make CA a good candidate in a variety of applications, e.g., membranes78,79, textiles80,81, and tissue engineering77,82. Despite the common usage of fluorinated reagents for reducing the surface energy and realizing hydrophobicity in cellulose-based materials83,84,85,86, the modified fluorine-containing molecules are usually costly and nonbiodegradable, and exposure to them through environmental contamination can cause nerve growth hindrance in children87,88,89. In contrast, usage of fluorine-free natural waxes as a water-repellent component is cost-effective, safe, and even reported to delay the photodegradation of wood-based substrates owing to their slight UV absorption90,91.

Addressing the requirements for light management layers in solar cells and drawing inspiration from nature, we hypothesized that bioinspired cellulose-based materials could not only emulate the self-cleaning effect of common leek leaves but also exhibit desired optical criteria for solar cells, namely, high diffusive light transmittance. Hence, to explore new approaches for multifunctional films, a facile replication method was developed. The surface morphology of films were investigated by scanning electron microscope (SEM), and the effect of process parameters was then assessed on the optical properties and surface hydrophobicity by using UV-vis spectroscopy and water contact angle measurement, respectively. The films were then tested as the light management layer on perovskite solar cells and the photovoltaic performance was characterized in a solar simulator. The produced cellulose-based light management layers are expected to pave the path toward replacing inorganic and organic fluorine-containing coatings of substrates in various photovoltaic technologies.

Results and discussion

Replication

The optical tunability of cellulose, as an abundant and renewable biopolymer, makes cellulose-based materials ideal for light management in optoelectronic devices13,92. Here we used a 5% cellulose acetate (CA) solution to replicate the surface structure of leek leaves. Leek plant shows anisotropic superhydrophobicity, and very recently, prevention of bacterial binding was shown93 by mimicking its surface structure onto dental wax. The replicated CA films were then coated with carnauba wax (CW), the hardest natural wax with the highest melting point among commercial vegetable waxes (≈84 °C)94. All in all, this replication process can be potentially used to prepare films with different optical and wetting properties using other types of leaves as the template.

As shown in Fig. 1a, the SEM images of leek leaf reveal a surface covered by µm-sized grooves and a nanoscale epicuticular wax layer. Figure 1b shows the successful replication of the microscale features onto the 5% CA film, including stomata and grooves. However, the leek’s epicuticular wax was not translated during the replication process (See Supplementary Fig. 3 for the high-resolution wax nanostructure). Further, solvent evaporation during the CA replica formation generated smaller-scale wrinkles. Similar wrinkles are also visible on a flat CA film (Supplementary Fig. 4). Figure 1c shows the 2% carnauba wax (CW) coated replica with high and homogenous wax coverage on the surface. The CW-coated replica illustrates both the replicated anisotropic surface structure and the isotropic porous flake-like CW bundles. Altering the CW concentration from 0.5% to 3% changes the wax morphology from sparse to large clusters of CW flakes (Supplementary Fig. 5a–d). Overall, it can be observed that hierarchical structures ranging over two distinct length scales were successfully created by the combination of replication of leek surface features and adding the carnauba wax coating.

Fig. 1: Replication of leek surface features into CA and coating with carnauba wax.
figure 1

SEM micrographs of a leek surface, b replicated cellulose acetate free-standing film, and c 2% carnauba wax coated replica.

Wetting properties

Figure 2 shows the wetting properties of the leek and the replicas (5% CA) with and without the CW coating. The advancing and receding contact angles (θadv and θrec) and their difference (contact angle hysteresis, Δθ) are shown in Fig. 2a. The water contact angle measurements were performed at different orientations relative to the orientation of the grooves, as illustrated in Fig. 2b. The leek leaf had a θadv of 159° and a small Δθ of 3° when the droplet is spreading across the leaf grooves, as compared to θadv of 150° and Δθ of 6° when spreading along the grooves. The high contact angles and low hysteresis are achieved when the droplet is in the Cassie-Baxter state95, and they are the key characteristics of superhydrophobic surfaces96,97,98. These properties make water droplets highly mobile on the surface99. The data also shows anisotropic wetting properties of the leek leaf as both contact angles are higher when the triple phase contact line is moving across the ridge structures as opposed to when moving along the ridges100. The wetting properties of the leek leaf are due to the combination of the nanostructured inherently hydrophobic waxy layer (Supplementary Fig. 3), the grooves, and stomata, resulting in the anisotropic superhydrophobicity of the plant.

Fig. 2: Wetting properties of the films.
figure 2

a contact angles of the films, b schematic representation of the terms across and along, as well as the optical image of water droplet advancing c across and d along the grooves for the film with 2% CW coating, showing anisotropic superhydrophobic behavior. The scale bar at the bottom left indicates 1 mm.

The contact angles of the uncoated replica are about 19° lower, and the hysteresis is about 21° higher than the original leaf. Therefore, the beneficial anti-wetting properties of the leek leaf were lost in the fabrication process. The reason for this is likely the impossibility of replicating the epicuticular wax overhanging features (Supplementary Fig. 5) and the less hydrophobic surface chemistry of CA. When the epicuticular wax is replaced by a 2% CW coating, the replica then shows θadv of 157° and Δθ of 7° in the across direction and θadv of 143° and Δθ of 9° in the along direction, showing that this sample replicated the wetting properties of the original leaf. The wetting anisotropy of the leek leaf is also preserved after the film fabrication steps. As the CW micro-flakes are randomly distributed, the wetting anisotropy is primarily attributed to the direction of the grooves. Furthermore, a CW coating on plain CA film only increases the hydrophobicity to a θadv of 136°. This indicates the importance of grooves and stomata on the replicated leek surface structure in the final superhydrophobicity of the films. A comprehensive comparison between the contact angles using different CW concentrations can be found in supporting information, Supplementary Fig. 6.

To investigate the self-cleaning property arising from the superhydrophobicity, graphite powder was spread on the 2% CW-coated replica (Supplementary Fig. 7a) and 200 µL was released using a pipette onto the sample. The relationship between the cleaned area and the angle of tilt is presented in Supplementary Fig. 7b. It was observed that at a minimal tilt of 5 degrees, the cleaning effect was virtually nonexistent. However, higher angles facilitating more effective removal of the graphite powder, in which the cleaned area expanded to 9% for 10°, 11% for 20°, and 16% for 30° tilts. Supplementary Fig. 7c–f represents photographs of the films and area selection in image analysis for calculation of the cleaned area.

While our primary focus was not on assessing the durability of the films, the effect of abrasion on surface structure and the water contact angle did not escape our attention. Supplementary Fig. 2c-f revealed alterations in the surface morphology of the samples, which are expected due to the soft material composition of the replicas, and as the result a decrease in the water contact angles (Supplementary Fig. 3b).

Optical properties

In addition to exhibiting anisotropic wetting properties, the surface structures were found to result in intriguing optical capabilities. Figure 3 shows the optical properties of the fabricated films using a 5% CA solution. While the high light transmittance results in the clear appearance of the film when placed on a brick-like background (Fig. 3a), high anisotropic light scattering fades the vertical lines when the film is lifted. This optical anisotropy results in visual effects, as shown in Fig. 4b, c. The effect of CW concentration on the total light transmittance and haze of the replica is demonstrated in Fig. 4d, e. While the CA replica shows a light transmittance of 94% at 550 nm, increasing the CW concentration predictably reduced the light transmittance to 91, 85, and 79% for 1, 2, and 3% CW-coated replicas, respectively. This is due to the formation of rough and larger surface features at higher CW concentrations (Supplementary Fig. 5a–d). The effect of CW morphology is even more pronounced in case of scattered light, where the coating increases the haze at 550 nm from 55% with the plain CA replica to 75% for the 2% CW coating. However, the higher CW concentration of 3 wt% declines haze due to the formation of large clusters of CW micro-flakes (Supplementary Fig. 5d).

Fig. 3: The optical properties of the films.
figure 3

a Photograph of the replica while placed on the background, b about 2 cm above, showing disappearance of the vertical lines due to anisotropic light scattering in the perpendicular direction and c forming hexagons after ca. 60° rotation, d transmittance and e haze spectra of flat CA, replica, and CW-coated films (the lines and bands represent the mean values and standard deviations of three measurements), f schematic of laser beam interference with the film and anisotropic scattering of light, g photograph of white halogen light beam (top), after passing through a plain CA film (middle), and replica (bottom) while the scale bar shows 5 mm, and h their corresponding relative intensities for a horizontal profile line.

Fig. 4: PSC architecture and characteristics.
figure 4

a Replica-integrated PSC with the architecture of glass/FTO/c-TiO2/m-TiO2/Cs0.05(FA0.83MA0.17)0.95Pb(I0.83 Br0.17)3/spiro-OMeTAD/Au, as well as the average and standard error from the mean of J–V curves of PSCs with b replica and c 2% CW-coated replica as compared to the pristine devices. The average and standard error of the means are taken from seven devices for each sample.

Figure 3f illustrates the anisotropic scattering of light due to the surface structure. The presence of leek surface structure, including both the grooves and stomata, favors the light scattering in the direction perpendicular to the grooves. The results of the light beam interference with the plain CA and the replica are demonstrated in Fig. 3g, h. The interference of light with plain CA leads to a similar result as with no film due to the high transmittance and extremely low haze of this film (see Supplementary Fig. 8). This near-intact transmission of light is due to the fairly smooth surface of film (Supplementary Fig. 4). Interference of light with the CA replica, however, diverges the light in the perpendicular direction of the grooves’ alignment. Consequently, the initial ca. 0.5 cm light beam diameter is horizontally diffused to ca. 3.5 cm with a wide intensity distribution. Furthermore, changing the initial CA concentration alters the thickness and, thus, the optical properties of the replicas. The effect of thickness on the optical properties is illustrated in Supplementary Fig. 8, showing a decrease in the light transmittance and an increase in the haze with increasing thickness.

Supplementary Fig. 9 reports the thermal stability of replicas under a solar simulator over 240 h. A surface temperature of 66 °C was recorded immediately after the exposure (Supplementary Fig. 9a). The SEM images (Supplementary Fig. 9d) reveal that the fine wax features had rearranged due to high temperature, leading to a diminished surface area and, consequently, a reduction in hydrophobicity. As the result, the θadv of 157° in the across direction is reduced to 146° (Supplementary Fig. 9b). Additionally, UV–vis spectroscopy results showed that the replica maintained its total light transmittance (Supplementary Fig. 9c). However, the CW-coated replica suffered a loss in UV-blockage, presumably due to photocatalytic degradation. The observed changes warrant further investigation, and addressing them through future work is imperative for enhancing their durability and reliability in applications.

Application in solar cells

The optical properties of these films, showing both high transmittance and haze, make them ideal for light management in photovoltaics to improve their performance. Furthermore, their superhydrophobicity makes them good candidates to tackle the degradation of photovoltaics by repelling water. Also, self-cleaning facilitates the removal of dirt (Supplementary Movie 1), which often blocks the incident light in outdoor conditions of solar cells and deteriorates efficiency over time. To demonstrate the effectiveness of their optical properties, the replica and 2% CW-coated replica were optically coupled with perovskite solar cell (PSC) devices —an emerging photovoltaic technology that has found widespread application in various practical contexts101— using polyvinyl alcohol that has high transparency and a matching refractive index of ca. 1.5 in the visible wavelength range102,103. Figure 4a illustrates the PSC devices based on the mesoporous structure with the architecture of Glass/FTO/c-TiO2/m-TiO2/ Cs0.05(FA0.83MA0.17)0.95Pb(I0.83 Br0.17)3/spiro-OMeTAD/Au. A silver painted device is also presented in Supplementary Fig. 10. The performance average and the standard error of the mean of devices with CA replica and 2% CW-coated replica are reported in Fig. 4b-c. The uncoated replica improved the power conversion efficiency (PCE) by 6 ± 0.3% on average. The averages and standard deviations were taken from seven samples made in multiple batches to ensure the statistical significance and reproducibility of the results (Supplementary Fig. 11). Interestingly, despite the ca. 6% (Fig. 3d) lowered light transmission into the cell by the replica, the PCE was improved due to the slightly improved short-circuit current (JSC) and particularly higher open-circuit voltage (VOC) (Fig. 4b). One would expect a lower light transmission to the cell to decrease the photocurrent generation in the cell. The replica must, therefore, have improved light absorption inside the cell to compensate for the transmission loss.

Owing to their high haze (Fig. 3e), the CA replica films successfully improved the light absorption by extending the light path in the active layer of the cell. This improvement in performance is similar to the effect observed with transparent wood65 on GaAs solar cells, transparent paper22 on organic solar cells, and cellulose composites68 on perovskite solar cells as the light management layer. The performance of CW-coated replica-integrated cells, however, was on average 2.8% lower compared to the uncoated ones. In this case, the increased light absorption efficiency by path lengthening was not sufficiently high to compensate for the additional transmission loss by the CW coating (Fig. 3d) which led to lowered JSC (Fig. 4c). Both the uncoated and CW-coated replica film increased the VOC of the cell, however, the mechanism for this improvement is unclear. VOC would be expected to increase if the replica films increased the light absorption rate in the active layer. However, this did not happen because the results show that JSC was either slightly increased (Fig. 4b) or decreased (Fig. 4c) by the films. All in all, a detailed investigation into the effects of external factors on VOC is needed and will be explored in future work. Finally, with a UVA (320-400 nm) block percentage of 21% (Fig. 3d), the CW-coated replica is expected to enhance the UV stability of the cells. Integrating the proposed light management layers with proper cell encapsulation can guarantee better performance and longevity.

Overall, the results confirmed the hypothetical idea of the self-cleaning capabilities and high diffusive light transmittance of bio-inspired cellulose acetate films. To reach the necessary level of hydrophobicity required for efficient self-cleaning, a bio-based CW coating needed to be added. This work also uncovered a trade-off between achieving optimal self-cleaning performance and maintaining high levels of light transmittance and provides design guidelines for simultaneous optimization of both properties. In terms of technological readiness level (TRL), the current performance of the films on the solar cell devices, particularly regarding their durability, falls short of the TRL required to compete with established market solutions. Therefore, we leave the door open for future studies in order to elevate this coating to a higher TRL which will necessitate extensive research focused on enhancing its mechanical properties. Ultimately, the advantage of the developed light management layer becomes more evident when the self-cleaning property of the CW-coated replica ensures maximum incident light by eliminating the accumulated dirt, which can maintain cell performance in real-life outdoor conditions.

Conclusion

A facile bio-inspired route is presented to produce free-standing cellulose-based films with desirable properties for solar cells and optoelectronic applications. Compared to previously reported routes, we employed abundant leek leaves that are widely accessible, and obtained hydrophobicity by simple deposition of a plant-based wax, avoiding the usage of commonly used fluorinated compounds. Film parameters can be determined by tuning the initial solution concentrations. Anisotropic scattering of light, as well as high total light transmittance of 94%, can be achieved. Applying the films on perovskite solar cells was shown to improve the relative cell efficiency by 6%. Furthermore, the anisotropic superhydrophobicity can assist the fluid transfer in a favored direction based on the application. Despite the lower transmittance of the CW-coated replica, in a trade-off between optical transparency and superhydrophobicity/self-cleaning, the developed films as the light management layer can ensure the performance of photovoltaics over time. Thus, the developed route to produce all-biobased light management layers can provide an opportunity for future investigation to replace inorganic optical coatings and substrates with bio-inspired organic coatings.

Methods

Materials

All chemicals were used as received. Polydimethylsiloxane (PDMS, 10:1 ratio of base component:curing agent, viscosity of the mixture 3.5 Pa.s, product number: 01673921, SylgardTM 184 silicone elastomer kit, Dow Chemical Co., USA), cellulose acetate (CA) with an average Mn ~50,000 (39.7 wt% acetyl, product number: 419028-500 G), and Carnauba wax No.1 yellow (CW, containing aliphatic esters, ω-hydroxy esters and unsaturated alcohols, product number 243213-250 G) from Sigma-Aldrich, acetone (≥99%, Honeywell Riedel de-Häen, Germany), ethanol (Etax A7, Altia Industrial Ojy, Finland), toluene (99.8%, Sigma-Aldrich, Germany), polyvinyl alcohol (PVA, Mw 85,000-124,000, Sigma-Aldrich, USA), fluorine-doped tin oxide glass substrates (Greatcell solar, TEC15), TiO2 paste (30 NR-D, Dyesol), acetylacetone (Sigma-Aldrich, P7754), titanium diisopropoxide (Sigma-Aldrich), lead iodie-PbI2(TCI, L0279), lead bromide-PbBr2 (TCI, L0288), cesium iodide-CsI (abcr GmbH, AB207757), formamidinium iodide (Greatcell solar), methylamonium bromide (Greatcell solar), dimethylformamide-DMF (anhydrous-Sigma-Aldrich), dimethyl sulfoxide-DMSO (anhydrous- Sigma Aldrich), chlorobenzene (anhydrous-Sigma-Aldrich), acetonitrile (anhydrous-Sigma-Aldrich), Spiro-OMETAD (Sigma-Aldrich), tert-butylpyridine-tBP (Sigma-Aldrich), Lithium bis(trifluoromethanesulfonyl)imide-LITFSI (Sigma-Aldrich), FK 209 Co(II) PF6 salt (Sigma-Aldrich), gold (Kurt J. Lesker Company), graphite (flakes, 99% Carbon, −100 mesh ≥80%, Sigma-Aldrich) were used. Leeks were purchased from a local market.

Fabrication process

The fabrication process is illustrated in Fig. 5. Leek leaves were used as the master mold. The leaves (ca. 5 cm × 5 cm) were placed on the bottom of a petri dish, and PDMS with the ratio of 10:1 (monomer to the crosslinking agent) was cast on top. The curing process was performed at room temperature (RT) to form the mold. Cellulose acetate solutions were prepared by dissolving the as-received powder with concentrations of 2, 5, and 10 wt% in a 4:1 mixture of acetone and ethanol in order to tune film thicknesses. The films were produced by drop** ca. 25 µL cm−2 of solution on the PDMS mold. To assist the film formability, solvent evaporation was delayed by placing the replica in a permeable container to increase the vapor pressure.

Fig. 5: Fabrication process.
figure 5

Schematic illustration of the fabrication process to obtain flexible bio-based films with anisotropic optical and wetting properties.

The chemical structure of carnauba wax includes a complex mixture of long-chain esters, along with free fatty acids and alcohols104. The carnauba wax flakes were dissolved in toluene by heating in an oil bath at 90 °C and magnetic stirring at 500 rpm. Carnauba wax solutions with concentrations of 0.5, 1, 2, and 3 wt% were prepared. The CA films were attached to glass slide substrates using PVA solution as the adhesive (5 wt% in water) and then spin-coated using Laurell WS-650MZ-23NPPB. The process was carried out by depositing 50 µL of the CW solution on the CA replica, resting for 30 s, and spin-coating for 30 s at 500 rpm.

Film characterization

To characterize the optical properties of the films, the total transmittance and haze were measured using a UV-visible spectrophotometer (UV-2600 with ISR-2600Plus integrating sphere attachment, Shimadzu, Japan). The optical properties were measured from 300 nm to 800 nm. The transmittance and haze were calculated using the following equations105, and the results were reported for 3 sets of measurements:

$${{{\mbox{Transmittance}}}} \, ( \%) = \frac{{T}_{2}}{{T}_{1}}\times 100$$
(1)
$${{{{{\rm{Haze}}}}}} \, ( \% ) = \left(\frac{{T}_{4}}{{T}_{2}}-\frac{{T}_{3}}{{T}_{1}}\right)\times 100$$
(2)

where T is the total transmittance, T1 is the reference transmitted light without the sample, T2 is the total light transmitted with the presence of the sample, T3 is light beam scattering by the device, and T4 is the diffusive transmittance, referring to the light transmitted by both the sample and the device.

The UVA (320–400 nm) block percentage was calculated using the following equation106:

$${{{{{\rm{UVA\; blocking}}}}}} \, ( \% ) = 100-\frac{{\int }_{320}^{400}{T}\left({{{{{\rm{\lambda }}}}}}\right) \, {d}{{{{{\rm{\lambda }}}}}}}{{\int }_{320}^{400}{d}{{{{{\rm{\lambda }}}}}}}\times 100$$
(3)

A halogen white light source (DH-2000, Ocean optics) was utilized to investigate the behavior of light after interference with the films. The beam was illuminated after coupling the light source with a 400 µm optical fiber (Ocean optics QP400-2-SR-BX) and a collimating lens (Ocean optics 74-UV). The films were then placed between the light source and a paper white background (as illustrated in Supplementary Fig. 1), and the results were photographed after illumination using Sony IMX586 48-megapixel sensor. The corresponding relative intensities were then derived for a horizontal profile line passing through the center of the beam using ImageJ software (version 1.53e, National Institutes of Health, USA).

The water contact angles were measured by Theta Flex optical tensiometer (Biolin scientific). The advancing and receding contact angles (θadv and θrec) were measured using the needle-in-sessile droplet method by increasing the volume from 5 to 8 µL droplet size and decreasing from 8 to 0 µL with a droplet pum** rate of 0.1 µL s−1. Contact angle values are averaged over 6 measurements for leek and 3-4 measurements for the fabricated films from different areas and reported along with the standard deviations.

The self-cleaning tests were performed by covering the surface of the samples with graphite powder in a doctor blade method, leaving ∼120 mg of powder on the sample. The samples were then titled 5°, 10°, 20°, and 30° and 200 µL of distilled water was dispensed using a pipette on them from a ca. 10 cm height. The cleaned area of the samples was then calculated by image analysis using ImageJ software. Furthermore, the self-cleaning behavior of garden soil-polluted substrates was qualitatively examined by titling the samples to 10°, placing 50 µL water droplets for four times on the surfaces, and recording it using a Sony IMX586 48-megapixel sensor.

The falling sand abrasion test was conducted by releasing 10, 20, and 40 g of sand (sieved to 0.5—1 µm, product number: 175401, Biltema, Finland) out of a funnel with a diameter of 5 mm. The funnel was positioned at a height of 30 cm above the test samples, which were mounted at a 45° angle. The test setup is depicted in Supplementary Fig. 2a.

A solar simulator (11002 SunLite, ABET Technologies) was utilized to test the optical and thermal stability of the fabricated films over time. For this means, the films were attached on solar cells using PVA solution and placed under one sun (100 mW cm−2) white light intensity for 240 hours. The temperature of the surface right after the test was measured using an FLIR i7 thermal camera.

The morphologies of the leek master mold and replicas were characterized using Tescan Mira3 scanning electron microscope (SEM) after sputter-coating with 5 nm of Au/Pd (80/20). Before sputtering, the leek leaves were dried using the freeze-drying method.

PSC fabrication

Triple-cation perovskite solar cells were fabricated using the one-step fabrication technique107. First, fluorine-doped tin oxide glass substrates were etched using a laser scriber. The pre-cut substrates were cleaned by washing with detergent, rinsing with DI water, and 15 min sonication in all the following solvents, Hellmanex diluted in DI water (2%), Ethanol, and Isopropanol, successively. After drying in a hydrothermal oven at 120 °C, the substrates were treated with UV ozone cleaning to ensure the removal of organic residuals. TiO2 compact layer (c-TiO2) was deposited on FTO substrates by spray pyrolysis of the solution containing acetylacetone (0.4 mL), titanium diisopropoxide bis(acetylacetonate) (0.26 mL) in 6 mL of ethanol, at 450 °C. A mesoporous TiO2 (m-TiO2) scaffold layer was deposited on top of the c-TiO2 by spin coating the dispersion of 30NRD TiO2 paste in ethanol (150 mg TiO2 paste in 1 mL ethanol) at 4000 rpm for 10 s, then annealing at 450 °C. After cooling down to room temperature, the samples were transferred to the nitrogen-filled glovebox. In order to make the triple cation perovskite layer, perovskite precursor was prepared from FAI (0.97 M), PbI2 (1.06 M), MABr (0.2 M), and PbBr2 (0.22 M) in a mixed solvent of DMF: DMSO (4:1, v:v). CsI (0.078 M) was made using DMSO as solvent. Then 80 µL of the above solution was spin-coated onto the as-prepared FTO/c-TiO2/m-TiO2 substrate with a two-step spin coating program (1000 rpm for 10 s, followed by 6000 rpm for 20 s). Five seconds before the end of the last step, 180 µL of chlorobenzene was dropped on the center of the spinning substrate as the antisolvent treatment step. The resulting perovskite films with the chemical formula of Cs0.05(FA0.83MA0.17)0.95Pb(I0.83 Br0.17)3 were annealed at 100 °C for 1 h. The Spiro-OMeTAD solution was made by mixing Spiro-OMeTAD (64.3 mg), tert-butylpyridine (25.3 μL), LITFSI (14.5 μL), FK 209 Co(II) PF6 salt (7.9 µL) and chlorobenzene (702 µL). To form the hole transport layer (HTL), 50 µL of the above solution was dropped on the as-prepared perovskite films at 4000 rpm, and then the substrates were spin-coated for 10 s. Finally, the gold electrode was thermally evaporated on top of the HTL. The electrodes were then painted with silver paste to ensure better contact and less resistance. The devices were kept for one night in the glovebox before the current-voltage characterization.

I–V measurement

The current (I)–voltage (V) characteristics of the cells were scanned using a Keithley 2450 source measure unit, under air mass (AM) 1.5 simulated sunlight (100 mW cm−2). The sun simulator was calibrated with a silicone reference solar cell. After the fabrication of the cells, the I–V behavior of the plain PSCs was recorded. The replicas were then glued on top of the glass and immediately after drying the I–V characteristics were measured. The averages and standard deviations were then reported from seven devices for each sample.