The functionality of smart inks is primarily derived from the nanoparticles embedded within them. These nanoparticles can be designed to respond to specific triggers. For example, thermochromic inks change color with temperature variation, while photochromic inks alter their hue in response to light exposure. The nanoparticles interact with the external stimuli, causing a physical or chemical change in the ink.