change widget's background color

I wanted to create a stats widgets with different pastel colors. We can change font color by using color() but i wanted to change the whole background of a particular widget. is it possible ?
Solution
Use CSS or you can use ->extraAttributes()” on it I suppose.
Was this page helpful?