Disclosed herein is a donor-acceptor-donor (D-A-D) compound of formula I, where in the acceptors are mono-substituted tetraphenylethylene moieties. Also disclosed herein are fluorescent nanodots that comprise the compound of formula (I) and uses of said compound or nanodots in in vivo imaging or detecting of cancer cells in a subject.