Silica nanoparticles functionalized with chromogenic spirobenzopyran and thiourea subunits show selective colour changes in the presence of certain long-chain carboxylates.