The origins of the tikkun leyl Shavuot are kabbalistic.  But the custom really spread once coffee was introduced into the Jewish world. Moshe Sokolow, Jewish Ideas Daily.
Jewish Ideas Daily