Can someone help me put nightmode in my paste(indigo)

Like where to put the specific codes.

Thanks in advance