Adds gradient snippet