Looking at this forum post here: CSS vs BabylonJS GUI questions: line height, letter spacing, inline text styles, units, calc(), and gradients
I do not believe it is possible
However, you can simple upload an image of a gradient and use that instead for your gui. 