Connect Gradient color to CMS

I would like to connect a gradient color on a section to my CMS. I have read that it is possible to do this with the background color but I’m unsure how I would go about doing this with a gradient color.

Any guesses?