Mesoscopic theory for inhomogeneous mixtures