There are a few ways to add gradients to a library. One way is to use the Gradient tool in the Graph Editor. To add a gradient, click on the gradient icon in the toolbar and select one of the colors you want to use.